Skip to contentSkip to conversation

New: Unknown opcode 0x43 + protection fault on a Graphics Blaster Riva TNT card

Bug 68835 [email protected] 1 participant 21 messages Sep 2, 2013 – Jan 28, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=68835

Priority: medium
Bug ID: 68835
Assignee: [email protected]
Summary: Unknown opcode 0x43 + protection fault on a Graphics
Blaster Riva TNT card
QA Contact: [email protected]
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86 (IA32)
Status: NEW
Version: unspecified
Component: Driver/nouveau
Product: xorg

Created attachment 85048
--> https://bugs.freedesktop.org/attachment.cgi?id=85048&action=edit
dmesg output: system boot + a couple of S3 suspensions + a S4 hibernation

Opening this as suggested in bug #67161 comment #6.

Running Fedora 19 with a live USB on an old system with Creative Labs Graphics Blaster Riva TNT:

Linux localhost 3.9.5-301.fc19.i686 #1 SMP Tue Jun 11 20:01:50 UTC 2013 i686 i686 i386 GNU/Linux

If I run dmesg I see some errors like:

[    5.213896] nouveau E[   VBIOS][0000:01:00.0] 0x012e[ ]: unknown opcode 0x43

or:

[   99.820645] nouveau E[  PGRAPH][0000:01:00.0]  NOTIFY nsource:
PROTECTION_ERROR nstatus: PROTECTION_FAULT
[   99.820677] nouveau E[  PGRAPH][0000:01:00.0] ch 1 [X[666]] subc 2 class
0x0042 mthd 0x0180 data 0x00003a04
[   99.820697] nouveau E[  PGRAPH][0000:01:00.0]  NOTIFY nsource:
PROTECTION_ERROR nstatus: PROTECTION_FAULT
[   99.820714] nouveau E[  PGRAPH][0000:01:00.0] ch 1 [X[666]] subc 6 class
0x0044 mthd 0x0180 data 0x00003a04
[   99.820732] nouveau E[  PGRAPH][0000:01:00.0]  NOTIFY nsource:
PROTECTION_ERROR nstatus: PROTECTION_FAULT
[   99.820749] nouveau E[  PGRAPH][0000:01:00.0] ch 1 [X[666]] subc 6 class
0x0043 mthd 0x0180 data 0x00003a04
[   99.821101] nouveau E[  PGRAPH][0000:01:00.0]  NOTIFY nsource:
PROTECTION_ERROR nstatus: PROTECTION_FAULT
[   99.821121] nouveau E[  PGRAPH][0000:01:00.0] ch 1 [X[666]] subc 6 class

0x0019 mthd 0x0180 data 0x00003a04

The "unknown opcode" error appears at boot and waking up from S3/S4. Regarding the protection fault lines, it seems like they appeared on boot and on one of the wakeups from S3.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 68835] Unknown opcode 0x43 + protection fault on a Graphics Blaster Riva TNT card

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #1 from Mauro Molinari <[email protected]> --- Created attachment 85049
--> https://bugs.freedesktop.org/attachment.cgi?id=85049&action=edit
BIOS dump obtained from /sys/kernel/debug/dri/0/vbios.rom

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 68835] Unknown opcode 0x43 + protection fault on a Graphics Blaster Riva TNT card

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #2 from Mauro Molinari <[email protected]> --- Created attachment 85050
--> https://bugs.freedesktop.org/attachment.cgi?id=85050&action=edit
BIOS dump obtained with vbtracetool

I'm also attaching the BIOS dump obtained from vbtracetool, as requested, although it seems to be equal to the one from /sys/kernel/debug/dri/0/vbios.rom (just a single character differs).

Let me know if you also need the POST trace.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 68835] [NV04] Unknown opcode 0x43 + protection fault

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|Unknown opcode 0x43 +       |[NV04] Unknown opcode 0x43
                   |protection fault on a       |+ protection fault
                   |Graphics Blaster Riva TNT   |
                   |card                        |

--- Comment #3 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- The POST trace is what I had in mind as the vtracetool output.

As for the protection faults, they're yet another issue from the bios. Would be good to figure out what causes them to get printed, and file another bug. (Really best to keep it to one issue per... issue.)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 68835] [NV04] Unknown opcode 0x43

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

Mauro Molinari <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|[NV04] Unknown opcode 0x43  |[NV04] Unknown opcode 0x43
                   |+ protection fault          |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 68835] [NV04] Unknown opcode 0x43

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #4 from Mauro Molinari <[email protected]> --- Created attachment 85078
--> https://bugs.freedesktop.org/attachment.cgi?id=85078&action=edit
POST trace

(In reply to comment #3)

Quoted 1 line

The POST trace is what I had in mind as the vtracetool output.

Sorry, I didn't understand. Here it is.

Quoted 3 lines

As for the protection faults, they're yet another issue from the bios. Would be good to figure out what causes them to get printed, and file another bug. (Really best to keep it to one issue per... issue.)

Ok, so let's keep this bug for the unknown opcode thing. I'm opening a new bug for that.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 68835] [NV04] Unknown opcode 0x43

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

Mauro Molinari <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Blocks|                            |68854
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 68835] [NV04] Unknown opcode 0x43

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #5 from Mauro Molinari <[email protected]> --- I've opened Bug 68854 for the protection fault problem. Let me know what can I do to try to figure out what it is causing it.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|[NV04] Unknown opcode 0x43  |[NV04] Script offset
                   |                            |calculated incorrectly for
                   |                            |some BMP 1.x VBIOSes
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #6 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Created attachment 91533
--> https://bugs.freedesktop.org/attachment.cgi?id=91533&action=edit
Change heuristic for choosing script offset location for old bioses

Please try this patch, should get rid of the unknown opcode error, and also may help with suspend/resume if there were problems before.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#11 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #7 from Mauro Molinari <[email protected]> --- Hi Ilia,
is there a guide anywhere on how to apply a patch, build the patched driver and use it for testing? I'm not a Linux kernel expert...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#12 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #8 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- (In reply to comment #7)

Quoted 3 lines

Hi Ilia,
is there a guide anywhere on how to apply a patch, build the patched driver and use it for testing? I'm not a Linux kernel expert...

Grab a copy of the kernel (the patch is against 3.13-rc7, but it should apply cleanly to just about any 3.7+ version), apply the patch (patch -p1 < thepatch), and then build as usual.

Here's a (fairly complex) guide to building kernels on Fedora:

https://fedoraproject.org/wiki/Building_a_custom_kernel

Although that is for generating rpm's... you can probably do something much simpler for just a local install, but I can't help with that (these distros tend to expect initrd's, etc, which I know fairly little about and thus avoid).

Let me know if you don't plan on testing this out in the next week or so; I think the patch is fairly safe to just check in anyways, so you'd be able to test it out eventually in a future release.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#13 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #9 from Mauro Molinari <[email protected]> --- Hi Ilia,
honestly I don't know if I could test this within a week or so, because I would need to make a Fedora installation on a new disk/partition, sort out how to build a custom kernel with patched nouveau and test it (I've never done this before, maybe something like that ages ago on a Slackware 4 distribution... :-P). In fact, the tests I made were on a live Fedore 19, because the actual installed distribution I'm currently using on this system is an OpenMediaVault (based on Debian Squeeze), which is too old to try this.

I can afford this, but I can't bet on the time I will need.

If you feel safe to check it in anyway, I will surely test a live distribution with the new kernel as soon as it will become available (or, in the mean time, I may be able to do all the steps needed to test this patch on Fedora 19...). By the way, if you check it in now, which new Linux kernel version do you expect to inherit the fix?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#14 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #10 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- The fix is now upstream, should appear in 3.13-rc8 (as well as the final 3.13 release which should happen in a few weeks). If you test it out, and everything works (including suspend/resume/hibernate), I'll ask for it to be included in "stable" kernels.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#15 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- The fix should be in 3.13.0 and later. I'm going to mark this bug as fixed, but do test it out when you get a chance and let us know whether it fixes your issue (and/or breaks anything, like suspend, since vbios scripts are found now).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#16 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #12 from Mauro Molinari <[email protected]> --- (In reply to comment #11)

Quoted 4 lines

The fix should be in 3.13.0 and later. I'm going to mark this bug as fixed, but do test it out when you get a chance and let us know whether it fixes your issue (and/or breaks anything, like suspend, since vbios scripts are found now).

Hi Ilia,
just to let you know that I got to install Fedora 19 on a new hard disk and that I'm following the procedure you pointed me to build a patched custom 3.12 kernel with your patch applied. It's currently compiling (it takes a lot of time on this old Pentium 3...). When I've completed my testings, I'll let you know.

On the other hand, I have another small glitch: the maximum resolution proposed by the monitor configuration utility of Fedora is 1024x768@60Hz, while my monitor preferred resolution is 1280x1024 and it can support up to 75Hz resolution. I see that the xrandr output is not consistent with what I get using monitor-get-edid+monitor-parse-edid, which returns the correct data. Is this something related to the nouveau driver?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#17 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #13 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- (In reply to comment #12)

Quoted 6 lines

(In reply to comment #11)

Quoted 4 lines

The fix should be in 3.13.0 and later. I'm going to mark this bug as fixed, but do test it out when you get a chance and let us know whether it fixes your issue (and/or breaks anything, like suspend, since vbios scripts are found now).

Quoted 6 lines

Hi Ilia,
just to let you know that I got to install Fedora 19 on a new hard disk and that I'm following the procedure you pointed me to build a patched custom 3.12 kernel with your patch applied. It's currently compiling (it takes a lot of time on this old Pentium 3...). When I've completed my testings, I'll let you know.

Great! You could also have grabbed a pre-compiled 3.13 kernel off of rawhide, if that's availble. I'm really not sure what the Fedora situation is though, so I can't give specific advice.

Quoted 7 lines

On the other hand, I have another small glitch: the maximum resolution proposed by the monitor configuration utility of Fedora is 1024x768@60Hz, while my monitor preferred resolution is 1280x1024 and it can support up to 75Hz resolution. I see that the xrandr output is not consistent with what I get using monitor-get-edid+monitor-parse-edid, which returns the correct data. Is this something related to the nouveau driver?

I believe you have a different bug already open about this, yes?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#18 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #14 from Mauro Molinari <[email protected]> --- (In reply to comment #13)

Quoted 3 lines

Great! You could also have grabbed a pre-compiled 3.13 kernel off of rawhide, if that's availble. I'm really not sure what the Fedora situation is though, so I can't give specific advice.

Hmmm... I will seek for further information, however applying the patch to 3.12 was easy, it's just so slow to compile. I left the PC running over night and this morning it's still there... It's building all the flavors of the kernel, so I should better try to just make one flavor next time, but I'm not sure about what to choose (the above page talks about xen, smp, up, pae, kdump, debug and debuginfo... and I'm not sure what would be the best in my case).

Quoted 1 line

I believe you have a different bug already open about this, yes?

Not yet. I already talked about it in a comment in bug #68854, but you didn't give me an ok to open a new bug! :-) Should I?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#19 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

Mauro Molinari <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED

--- Comment #15 from Mauro Molinari <[email protected]> --- Hi Ilia,
good news! After almost two days of hard work, the kernel compilation ended with success! With the new patched kernel, I don't find "unknown opcode 0x43" anymore in dmesg output (I'm going to attach it). Suspend and resume work ok!

So, I think this is definitely fixed! Thank you!

Unfortunately, the PROTECTION_ERRORs are still there (bug #68854). I'm also going to open a new bug for the resolution issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#20 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #16 from Mauro Molinari <[email protected]> --- Created attachment 92960
--> https://bugs.freedesktop.org/attachment.cgi?id=92960&action=edit
New dmesg output got after patching the 3.12 kernel

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#21 lore raw

[Bug 68835] [NV04] Script offset calculated incorrectly for some BMP 1.x VBIOSes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=68835

--- Comment #17 from Mauro Molinari <[email protected]> --- I created bug #74164 for the resolution issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau