bugzilla-daemon at freedesktop.org
2015-Jul-13 00:34 UTC
[Nouveau] [Bug 91319] New: Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 Bug ID: 91319 Summary: Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree Product: xorg Version: unspecified Hardware: PowerPC OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau Assignee: nouveau at lists.freedesktop.org Reporter: psaisanas at gmail.com QA Contact: xorg-team at lists.x.org Created attachment 117079 --> https://bugs.freedesktop.org/attachment.cgi?id=117079&action=edit kernel dmesg log & NVDA,BMP FCODE ROM Hi, When running a Powermac 11.2, (G5 Quad - powerpc64) with a Quadro FX4500 (NV47), previous kernels had no issue extracting the FCODE ROM / DCB block via the OpenFirmware device tree. Last vanilla kernel that i have compiled that seemed to work fine was kernel 3.18.16. Normally, it will find the "BIT SIGNATURE" via OpenFirmware method. However, when compiling a newer vanilla kernel 4.1.2, nouveau seems to have an issue reading the FCODE ROM / DCB block / from the OpenFirmware device tree. Also, interestingly, this time around it attempts to use the PROM method and attempts to find the "BIT SIGNATURE" via this method. Apparently it found a signature, but looks like garbage and seems like it cant extract the DCB BLOCK. As instructed, i have attached a dmesg.log along with a dump of the NVDA,BMP image out of the following folder: /sys/firmware/devicetree/base/pci at 0,f0000000/NVDA,Parent at 0/. Not sure if this is correct, but i have passed the following nouveau module options as i understood: options nouveau config="NvMSI=0,debug=debug,VBIOS=trace" I have placed the kernel dmesg log along with the NVDA,BMP dump in the attached nouveau_powerpc64_pmac11.2.tar.xz archive. Please let me know if there is any more info required. Thanks for your help! Best Regards, Peter -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150713/cdc76135/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Jul-13 00:41 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 Ilia Mirkin <imirkin at alum.mit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #117079|text/plain |application/octet-stream mime type| | -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150713/9698ad32/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Jul-13 09:28 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 Peter Saisanas <psaisanas at gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |psaisanas at gmail.com --- Comment #1 from Peter Saisanas <psaisanas at gmail.com> --- Created attachment 117085 --> https://bugs.freedesktop.org/attachment.cgi?id=117085&action=edit dmesg log with "nouveau.debug=debug,VBIOS=trace" booting kernel 4.1.2 with "nouveau.debug=debug,VBIOS=trace" appended on kernel command line. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150713/4f66ab1a/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Jul-13 14:56 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #2 from Ilia Mirkin <imirkin at alum.mit.edu> --- Aha, looks like the issue is that your VBIOS in OF does not have a PCIR section, and the nouveau VBIOS parser has come to expect that. Going to have to read more code to work out a proper solution to that. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150713/38d31a14/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Jul-21 01:13 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #3 from Peter Saisanas <psaisanas at gmail.com> --- Hi, I have managed to extract the actual Open Firmware nVidia Quadro FX4500 PCI expansion ROM which i have attached. The actual ROM itself seems to have a PCIR header located @ offset 0x20. Could it be that nouveau is actually trying to read the PCIR header directly off the XROM (which is how i assume it would be done in x86) and not via the OF device tree for ppc arch in the newer versions of nouveau by any chance? Regards, Peter -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150721/862e2780/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Jul-21 01:14 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #4 from Peter Saisanas <psaisanas at gmail.com> --- Created attachment 117271 --> https://bugs.freedesktop.org/attachment.cgi?id=117271&action=edit OF Powermac Quadro FX4500 ROM -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150721/83342bbf/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Jul-21 01:20 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #5 from Ilia Mirkin <imirkin at alum.mit.edu> --- Actually that's not from OF, it's from the PROM. And while it has a PCIR header, it doesn't contain the various other tables we expect. However the one in OF (i.e. the NVDA,BMP thing) does. But it's missing the PCIR header so the nouveau vbios reader logic throws it out, and falls back on the PROM one, which, in turn, fails. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150721/b21e4f6e/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-02 07:44 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #6 from Ilia Mirkin <imirkin at alum.mit.edu> --- You can try this patch, in Ben's tree which is ~4.3-rcN : http://cgit.freedesktop.org/~darktama/nouveau/commit/?id=5b5cc342d3154120f9bb5ca7839ab556e728c786 This worked for me, but could use more testing. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151002/74b51aa6/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-05 00:26 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #7 from Peter Saisanas <psaisanas at gmail.com> --- Created attachment 118662 --> https://bugs.freedesktop.org/attachment.cgi?id=118662&action=edit 4.3-rc4 dmesg with "nouveau.debug=debug,VBIOS=trace" -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151005/b5dd00ad/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-05 00:29 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #8 from Peter Saisanas <psaisanas at gmail.com> --- Hi, I assume the patch is within 4.3-rc4? If so, it still doesn't seem to extract the VBIOS via the OpenFirmware. I have compiled and booted the 4.3-rc4 kernel and booted with "nouveau.debug=debug,VBIOS=trace" which is attached. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151005/d3048355/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-05 00:34 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #9 from Ilia Mirkin <imirkin at alum.mit.edu> --- (In reply to Peter Saisanas from comment #8)> Hi, > I assume the patch is within 4.3-rc4? > > If so, it still doesn't seem to extract the VBIOS via the OpenFirmware. > > I have compiled and booted the 4.3-rc4 kernel and booted with > "nouveau.debug=debug,VBIOS=trace" which is attached.Odd. [ 10.214404] nouveau 0000:0a:00.0: bios: trying OpenFirmware... [ 10.214499] nouveau 0000:0a:00.0: bios: image 0 invalid With my patch it's pretty much rigged to always accept the OF vbios. Are you sure you were able to apply it properly? -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151005/1b97d984/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-05 00:36 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #10 from Ilia Mirkin <imirkin at alum.mit.edu> --- (In reply to Ilia Mirkin from comment #9)> (In reply to Peter Saisanas from comment #8) > > Hi, > > I assume the patch is within 4.3-rc4? > > > > If so, it still doesn't seem to extract the VBIOS via the OpenFirmware. > > > > I have compiled and booted the 4.3-rc4 kernel and booted with > > "nouveau.debug=debug,VBIOS=trace" which is attached. > > Odd. > > [ 10.214404] nouveau 0000:0a:00.0: bios: trying OpenFirmware... > [ 10.214499] nouveau 0000:0a:00.0: bios: image 0 invalid > > With my patch it's pretty much rigged to always accept the OF vbios. Are you > sure you were able to apply it properly?In fact, after my patch, nvkm_debug(subdev, "image %d invalid\n", idx); is in a section that should never get hit by the OF logic (since it will specify no_pcir=true, which in turn skips the whole image validation thing). -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151005/58d16914/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-05 03:06 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #11 from Peter Saisanas <psaisanas at gmail.com> --- No i didn't apply the patch, i assumed that it was already in vanilla 4.3-rc4. Sorry, my misunderstanding. I have tried to patch vanilla 4.3-rc4 but the patch will not apply cleanly. Ill try to patch it manually when i get a chance. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151005/d1baced6/attachment-0001.html>
bugzilla-daemon at freedesktop.org
2015-Oct-05 05:56 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #12 from Ilia Mirkin <imirkin at alum.mit.edu> --- (In reply to Peter Saisanas from comment #11)> No i didn't apply the patch, i assumed that it was already in vanilla > 4.3-rc4. > > Sorry, my misunderstanding. > > I have tried to patch vanilla 4.3-rc4 but the patch will not apply cleanly. > > Ill try to patch it manually when i get a chance.Try it from the drivers/gpu directory. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151005/825014e0/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-06 10:10 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #13 from Peter Saisanas <psaisanas at gmail.com> --- I can confirm that the patch works with my config which is great news. However, the patch does not apply cleanly to vanilla 4.3-rc4, it seems to reject parts of the patch to shadowof.c. After manually changing shadowof.c, i.e. the parts of the patch that was rejected, compiled and hooray, it works! Awesome, thanks imirkin! Do you require any more info? -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151006/a0e5eb90/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-07 14:47 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #14 from Ilia Mirkin <imirkin at alum.mit.edu> --- (In reply to Peter Saisanas from comment #13)> Do you require any more info?Nope. Will leave this open until the fix hits mainline. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151007/d2af632a/attachment.html>
bugzilla-daemon at freedesktop.org
2015-Oct-22 06:15 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 Ilia Mirkin <imirkin at alum.mit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #15 from Ilia Mirkin <imirkin at alum.mit.edu> --- This patch is in 4.3-rc6. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151022/d9180366/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Dec-01 04:28 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 reeskm at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reeskm at gmail.com --- Comment #16 from reeskm at gmail.com --- I'm having this exact same problem on kernel 4.9.49 on ppc 32-bit. I see that this was previously fixed. Should this be re-opened or should I file a new bug report? -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20171201/c52fce36/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Dec-01 13:21 UTC
[Nouveau] [Bug 91319] Nouveau driver cannot extract FCODE ROM / DCB Block from OpenFirmware Device tree
https://bugs.freedesktop.org/show_bug.cgi?id=91319 --- Comment #17 from Ilia Mirkin <imirkin at alum.mit.edu> --- (In reply to reeskm from comment #16)> I'm having this exact same problem on kernel 4.9.49 on ppc 32-bit. > I see that this was previously fixed. Should this be re-opened or should I > file a new bug report?When in doubt, file a new bug report. When not in doubt, file a new bug report. Reports are trivial to merge but impossible to tease apart. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20171201/78ef9d5c/attachment.html>