* 4.9-rc7 nouveau fails on arm64 64k page kernel but works with 4k
@ 2016-12-01 16:46 Jeremy Linton
[not found] ` <CAKb7Uvhewyhnrnd=fw9QrdEDLecG_VMZ8Wfuh-LyCgeW6X_wCw@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Linton @ 2016-12-01 16:46 UTC (permalink / raw)
To: linux-arm-kernel
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,
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <CAKb7Uvhewyhnrnd=fw9QrdEDLecG_VMZ8Wfuh-LyCgeW6X_wCw@mail.gmail.com>]
[parent not found: <CAKb7UvgZLafVmC3N0R-dfm4FDtCxUO3fC-4zLwsKauAj=hx=tw@mail.gmail.com>]
[parent not found: <CAKb7UvgW331K53x3wub5o+6LOqeLN5PqgiiJG6WXi+WJDVDzDg@mail.gmail.com>]
* [Nouveau] 4.9-rc7 nouveau fails on arm64 64k page kernel but works with 4k [not found] ` <CAKb7UvgW331K53x3wub5o+6LOqeLN5PqgiiJG6WXi+WJDVDzDg@mail.gmail.com> @ 2016-12-07 9:39 ` Alexandre Courbot 2016-12-07 9:53 ` Michel Dänzer 0 siblings, 1 reply; 5+ messages in thread From: Alexandre Courbot @ 2016-12-07 9:39 UTC (permalink / raw) To: linux-arm-kernel On Fri, Dec 2, 2016 at 12:23 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: > 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? > > > On Dec 1, 2016 5:13 PM, "Jeremy Linton" <jeremy.linton@arm.com> 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 > dri-devel at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > > > _______________________________________________ > Nouveau mailing list > Nouveau at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/nouveau > ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Nouveau] 4.9-rc7 nouveau fails on arm64 64k page kernel but works with 4k 2016-12-07 9:39 ` [Nouveau] " Alexandre Courbot @ 2016-12-07 9:53 ` Michel Dänzer 2016-12-07 9:57 ` Alexandre Courbot 0 siblings, 1 reply; 5+ messages in thread From: Michel Dänzer @ 2016-12-07 9:53 UTC (permalink / raw) To: linux-arm-kernel On 07/12/16 06:39 PM, Alexandre Courbot wrote: > On Fri, Dec 2, 2016 at 12:23 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: >> 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). -- Earthling Michel D?nzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Nouveau] 4.9-rc7 nouveau fails on arm64 64k page kernel but works with 4k 2016-12-07 9:53 ` Michel Dänzer @ 2016-12-07 9:57 ` Alexandre Courbot 2016-12-07 20:08 ` Ilia Mirkin 0 siblings, 1 reply; 5+ messages in thread From: Alexandre Courbot @ 2016-12-07 9:57 UTC (permalink / raw) To: linux-arm-kernel On Wed, Dec 7, 2016 at 6:53 PM, Michel D?nzer <michel@daenzer.net> wrote: > On 07/12/16 06:39 PM, Alexandre Courbot wrote: >> On Fri, Dec 2, 2016 at 12:23 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: >>> 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Nouveau] 4.9-rc7 nouveau fails on arm64 64k page kernel but works with 4k 2016-12-07 9:57 ` Alexandre Courbot @ 2016-12-07 20:08 ` Ilia Mirkin 0 siblings, 0 replies; 5+ messages in thread From: Ilia Mirkin @ 2016-12-07 20:08 UTC (permalink / raw) To: linux-arm-kernel On Wed, Dec 7, 2016 at 4:57 AM, Alexandre Courbot <gnurou@gmail.com> wrote: > On Wed, Dec 7, 2016 at 6:53 PM, Michel D?nzer <michel@daenzer.net> wrote: >> On 07/12/16 06:39 PM, Alexandre Courbot wrote: >>> On Fri, Dec 2, 2016 at 12:23 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: >>>> 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. 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-12-07 20:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-01 16:46 4.9-rc7 nouveau fails on arm64 64k page kernel but works with 4k Jeremy Linton
[not found] ` <CAKb7Uvhewyhnrnd=fw9QrdEDLecG_VMZ8Wfuh-LyCgeW6X_wCw@mail.gmail.com>
[not found] ` <CAKb7UvgZLafVmC3N0R-dfm4FDtCxUO3fC-4zLwsKauAj=hx=tw@mail.gmail.com>
[not found] ` <CAKb7UvgW331K53x3wub5o+6LOqeLN5PqgiiJG6WXi+WJDVDzDg@mail.gmail.com>
2016-12-07 9:39 ` [Nouveau] " Alexandre Courbot
2016-12-07 9:53 ` Michel Dänzer
2016-12-07 9:57 ` Alexandre Courbot
2016-12-07 20:08 ` Ilia Mirkin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox