4.9-rc7 nouveau fails on arm64 64k page kernel but works with 4k
Hi,
I placed a 9600GT in a softiron 3k running fedora 25, and the nouveau driver failed to claim the device with :
[drm] Initialized
nouveau 0000:01:00.0: NVIDIA G94 (094100a1) nouveau 0000:01:00.0: bios: version 62.94.0d.00.04
nouveau: probe of 0000:01:00.0 failed with error -22
Which with a little bit of debugging seems to be a failure in:
[77216.692605] [<ffff000001404120>] ttm_bo_validate+0xb0/0x1e8 [ttm] [77216.698697] [<ffff0000014045ac>] ttm_bo_init+0x354/0x410 [ttm] [77216.704706] [<ffff0000019d7bd0>] nouveau_bo_new+0x1f4/0x314 [nouveau] [77216.711308] [<ffff0000019e4620>] nv50_display_create+0x10c/0xa1c [nouveau] [77216.718340] [<ffff0000019df898>] nouveau_display_create+0x50c/0x59c [nouveau] [77216.725632] [<ffff0000019d3e24>] nouveau_drm_load+0x22c/0x8c0 [nouveau] [77216.732286] [<ffff00000137a1a0>] drm_dev_register+0xc0/0xf0 [drm] [77216.738409] [<ffff00000137b8a4>] drm_get_pci_dev+0xbc/0x188 [drm] [77216.744663] [<ffff0000019d35e8>] nouveau_drm_probe+0x180/0x208 [nouveau] [77216.751354] [<ffff0000084c30dc>] local_pci_probe+0x50/0xb4 [77216.756827] [<ffff0000084c3e40>] pci_device_probe+0xf8/0x148 [77216.762474] [<ffff0000085b6a10>] driver_probe_device+0x284/0x420 [77216.768467] [<ffff0000085b6ccc>] __driver_attach+0x120/0x124 [77216.774115] [<ffff0000085b446c>] bus_for_each_dev+0x6c/0xac [77216.779673] [<ffff0000085b6204>] driver_attach+0x2c/0x34 [77216.784972] [<ffff0000085b5cb4>] bus_add_driver+0x244/0x2b0 [77216.790531] [<ffff0000085b78e4>] driver_register+0x68/0xfc [77216.796004] [<ffff0000084c29a8>] __pci_register_driver+0x60/0x6c [77216.802047] [<ffff00000137bcb8>] drm_pci_init+0x108/0x138 [drm] [77216.808146] [<ffff000001530158>] nouveau_drm_init+0x158/0x10000 [nouveau] [77216.814922] [<ffff0000080831a8>] do_one_initcall+0x44/0x128 [77216.820483] [<ffff0000081cad6c>] do_init_module+0x68/0x1e0 [77216.825957] [<ffff000008150d84>] load_module+0xfac/0x12bc [77216.831343] [<ffff00000815132c>] SyS_finit_module+0xe4/0xf0 [77216.836902] [<ffff000008082b70>] el0_svc_naked+0x24/0x28
By default fedora is using a 64k page kernel, switching to a mainline 4.9-rc7 kernel using the same configuration the same problem exists (there are a couple others, mentioned briefly in the defect). Changing the mainline kernel from 64k to 4k pages corrects the problem and a terminal display can be seen.
The fedora defect is:
https://bugzilla.redhat.com/show_bug.cgi?id=1400623
Thanks,
A message that is not in the archive (sent off-list or not yet received): CAKb7Uvhewyhnrnd=fw9QrdEDLecG_VMZ8Wfuh-LyCgeW6X_wCw@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CAKb7UvgZLafVmC3N0R-dfm4FDtCxUO3fC-4zLwsKauAj=hx=tw@mail.gmail.com
That's right -- nouveau currently requires 4k page sizes to work. This is a software limitation, not a hardware one though.
On Dec 1, 2016 5:13 PM, "Jeremy Linton" <[email protected]> wrote:
Hi,
I placed a 9600GT in a softiron 3k running fedora 25, and the nouveau driver failed to claim the device with :
[drm] Initialized
nouveau 0000:01:00.0: NVIDIA G94 (094100a1) nouveau 0000:01:00.0: bios: version 62.94.0d.00.04
nouveau: probe of 0000:01:00.0 failed with error -22
Which with a little bit of debugging seems to be a failure in:
[77216.692605] [<ffff000001404120>] ttm_bo_validate+0xb0/0x1e8 [ttm] [77216.698697] [<ffff0000014045ac>] ttm_bo_init+0x354/0x410 [ttm] [77216.704706] [<ffff0000019d7bd0>] nouveau_bo_new+0x1f4/0x314 [nouveau] [77216.711308] [<ffff0000019e4620>] nv50_display_create+0x10c/0xa1c [nouveau] [77216.718340] [<ffff0000019df898>] nouveau_display_create+0x50c/0x59c [nouveau] [77216.725632] [<ffff0000019d3e24>] nouveau_drm_load+0x22c/0x8c0 [nouveau] [77216.732286] [<ffff00000137a1a0>] drm_dev_register+0xc0/0xf0 [drm] [77216.738409] [<ffff00000137b8a4>] drm_get_pci_dev+0xbc/0x188 [drm] [77216.744663] [<ffff0000019d35e8>] nouveau_drm_probe+0x180/0x208 [nouveau] [77216.751354] [<ffff0000084c30dc>] local_pci_probe+0x50/0xb4 [77216.756827] [<ffff0000084c3e40>] pci_device_probe+0xf8/0x148 [77216.762474] [<ffff0000085b6a10>] driver_probe_device+0x284/0x420 [77216.768467] [<ffff0000085b6ccc>] __driver_attach+0x120/0x124 [77216.774115] [<ffff0000085b446c>] bus_for_each_dev+0x6c/0xac [77216.779673] [<ffff0000085b6204>] driver_attach+0x2c/0x34 [77216.784972] [<ffff0000085b5cb4>] bus_add_driver+0x244/0x2b0 [77216.790531] [<ffff0000085b78e4>] driver_register+0x68/0xfc [77216.796004] [<ffff0000084c29a8>] __pci_register_driver+0x60/0x6c [77216.802047] [<ffff00000137bcb8>] drm_pci_init+0x108/0x138 [drm] [77216.808146] [<ffff000001530158>] nouveau_drm_init+0x158/0x10000 [nouveau] [77216.814922] [<ffff0000080831a8>] do_one_initcall+0x44/0x128 [77216.820483] [<ffff0000081cad6c>] do_init_module+0x68/0x1e0 [77216.825957] [<ffff000008150d84>] load_module+0xfac/0x12bc [77216.831343] [<ffff00000815132c>] SyS_finit_module+0xe4/0xf0 [77216.836902] [<ffff000008082b70>] el0_svc_naked+0x24/0x28
By default fedora is using a 64k page kernel, switching to a mainline 4.9-rc7 kernel using the same configuration the same problem exists (there are a couple others, mentioned briefly in the defect). Changing the mainline kernel from 64k to 4k pages corrects the problem and a terminal display can be seen.
The fedora defect is:
https://bugzilla.redhat.com/show_bug.cgi?id=1400623
Thanks,
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): CAKb7UvgW331K53x3wub5o+6LOqeLN5PqgiiJG6WXi+WJDVDzDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 2 lines · Ilia Mirkin
That's right -- nouveau currently requires 4k page sizes to work. This is a software limitation, not a hardware one though.
Looking at the trace I wonder - is the limitation in Nouveau or in TTM?
Quoted 62 lines · Jeremy Linton
Hi,
I placed a 9600GT in a softiron 3k running fedora 25, and the nouveau driver failed to claim the device with :
[drm] Initialized
nouveau 0000:01:00.0: NVIDIA G94 (094100a1) nouveau 0000:01:00.0: bios: version 62.94.0d.00.04
nouveau: probe of 0000:01:00.0 failed with error -22Which with a little bit of debugging seems to be a failure in:
[77216.692605] [<ffff000001404120>] ttm_bo_validate+0xb0/0x1e8 [ttm] [77216.698697] [<ffff0000014045ac>] ttm_bo_init+0x354/0x410 [ttm] [77216.704706] [<ffff0000019d7bd0>] nouveau_bo_new+0x1f4/0x314 [nouveau] [77216.711308] [<ffff0000019e4620>] nv50_display_create+0x10c/0xa1c [nouveau] [77216.718340] [<ffff0000019df898>] nouveau_display_create+0x50c/0x59c [nouveau] [77216.725632] [<ffff0000019d3e24>] nouveau_drm_load+0x22c/0x8c0 [nouveau] [77216.732286] [<ffff00000137a1a0>] drm_dev_register+0xc0/0xf0 [drm] [77216.738409] [<ffff00000137b8a4>] drm_get_pci_dev+0xbc/0x188 [drm] [77216.744663] [<ffff0000019d35e8>] nouveau_drm_probe+0x180/0x208 [nouveau] [77216.751354] [<ffff0000084c30dc>] local_pci_probe+0x50/0xb4 [77216.756827] [<ffff0000084c3e40>] pci_device_probe+0xf8/0x148 [77216.762474] [<ffff0000085b6a10>] driver_probe_device+0x284/0x420 [77216.768467] [<ffff0000085b6ccc>] __driver_attach+0x120/0x124 [77216.774115] [<ffff0000085b446c>] bus_for_each_dev+0x6c/0xac [77216.779673] [<ffff0000085b6204>] driver_attach+0x2c/0x34 [77216.784972] [<ffff0000085b5cb4>] bus_add_driver+0x244/0x2b0 [77216.790531] [<ffff0000085b78e4>] driver_register+0x68/0xfc [77216.796004] [<ffff0000084c29a8>] __pci_register_driver+0x60/0x6c [77216.802047] [<ffff00000137bcb8>] drm_pci_init+0x108/0x138 [drm] [77216.808146] [<ffff000001530158>] nouveau_drm_init+0x158/0x10000 [nouveau] [77216.814922] [<ffff0000080831a8>] do_one_initcall+0x44/0x128 [77216.820483] [<ffff0000081cad6c>] do_init_module+0x68/0x1e0 [77216.825957] [<ffff000008150d84>] load_module+0xfac/0x12bc [77216.831343] [<ffff00000815132c>] SyS_finit_module+0xe4/0xf0 [77216.836902] [<ffff000008082b70>] el0_svc_naked+0x24/0x28By default fedora is using a 64k page kernel, switching to a mainline 4.9-rc7 kernel using the same configuration the same problem exists (there are a couple others, mentioned briefly in the defect). Changing the mainline kernel from 64k to 4k pages corrects the problem and a terminal display can be seen.
The fedora defect is:
https://bugzilla.redhat.com/show_bug.cgi?id=1400623Thanks,
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 5 lines · Alexandre Courbot
Quoted 2 lines · Ilia Mirkin
That's right -- nouveau currently requires 4k page sizes to work. This is a software limitation, not a hardware one though.
Looking at the trace I wonder - is the limitation in Nouveau or in TTM?
Nouveau. Non-4K page sizes work fine with radeon (and presumably amdgpu).
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): d196c0c8-f429-4275-6246-a4e817b4bdf9-otUistvHUpPR7s880joybQ@public.gmane.org
Quoted 8 lines · Michel Dänzer
Quoted 5 lines · Alexandre Courbot
Quoted 2 lines · Ilia Mirkin
That's right -- nouveau currently requires 4k page sizes to work. This is a software limitation, not a hardware one though.
Looking at the trace I wonder - is the limitation in Nouveau or in TTM?
Nouveau. Non-4K page sizes work fine with radeon (and presumably amdgpu).
Thanks for the precision. I will check if Tegra iGPUs are also affected by this - if they are then it gives me a good excuse to take care of this bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): CAAVeFuKfo3sZL84wTiR6ur=PVsPhcaU62ggTwy9r1aQEOq2HZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 6 lines · Alexandre Courbot
Quoted 5 lines · Michel Dänzer
Quoted 4 lines · Alexandre Courbot
Quoted 2 lines · Ilia Mirkin
That's right -- nouveau currently requires 4k page sizes to work. This is a software limitation, not a hardware one though.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Looking at the trace I wonder - is the limitation in Nouveau or in TTM?
Nouveau. Non-4K page sizes work fine with radeon (and presumably amdgpu).
Thanks for the precision. I will check if Tegra iGPUs are also affected by this - if they are then it gives me a good excuse to take care of this bug.
For the most part it's confusion in the (nouveau) code as to what's a gpu page and what's a cpu page (and the shifts involved). There are some fringe issues that will need to be addressed, like the fact that it's no longer a 1:1 mapping, which might be assumed in some places.
However I thought that 64K-pages were frowned upon nowadays for the kernel - outside of HPC loads, most of the kernel memory becomes pagecache, and files don't tend to be 64K-sized, so you have tons of wasted memory (since you never cache multiple files in the same page).
But don't take that as me disapproving of such a project. It'd esp be nice to do something like this outside of the PPC64 environment, where BE concerns mix in with the 64K page concerns, and nothing works as a result.
-ilia
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 6 lines · Alexandre Courbot
Quoted 5 lines · Michel Dänzer
Quoted 4 lines · Alexandre Courbot
Quoted 2 lines · Ilia Mirkin
That's right -- nouveau currently requires 4k page sizes to work. This is a software limitation, not a hardware one though.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Looking at the trace I wonder - is the limitation in Nouveau or in TTM?
Nouveau. Non-4K page sizes work fine with radeon (and presumably amdgpu).
Thanks for the precision. I will check if Tegra iGPUs are also affected by this - if they are then it gives me a good excuse to take care of this bug.
I *should* have this fixed with a large chunk of MMU work I have pending (I had to drop it temporarily to work on atomic/mst support, but it'll be picked up, rebased, and finished in the near future). I haven't actually tested on 64KiB pages yet, but, I plan to before releasing it.
Quoted 5 lines
_______________________________________________
Nouveau mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau