Skip to contentSkip to conversation

Broken cursor and kernel log swamped with trapped reads/writes from BAR/PFIFO_READ/FB

Bug 57350 [email protected] 1 participant 31 messages Dec 18, 2012 – Aug 31, 2013 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

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

Marcin Slusarz <[email protected]> changed:

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

           Assignee|[email protected] |[email protected]
                   |.org                        |rg
         QA Contact|                            |[email protected]
            Product|DRI                         |xorg
            Version|XOrg CVS                    |unspecified
          Component|DRM/other                   |Driver/nouveau
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
In reply to a message not in the archive

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

--- Comment #6 from Rui Salvaterra <[email protected]> --- Indeed it is, I'm sorry for the noise. Wrong dmesg notwithstanding, I sometimes also get a lot of PAGE_NOT_PRESENT errors on this very same machine.

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
In reply to a message not in the archive

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

--- Comment #7 from Parag <[email protected]> --- This affects my MacBookPro6,2 with GT330 GPU as well. Exact same symptoms and error messages as the reporter. Last working kernel for me is 3.5.0-17 Ubuntu. I have tried 3.7.4 and various 3.8 rc releases and both show the same 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
In reply to a message not in the archive

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

Mourad De Clerck <[email protected]> changed:

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

                 CC|                            |bugs-freedesktop-mfMr2rENS1yIwRZHo2/[email protected]
                   |                            |m

--- Comment #8 from Mourad De Clerck <[email protected]> --- This also affects my MacbookPro7,1 with an MCP89 (NVAF)

The same symptoms: the middle of the cursor is transparent, and if I proceed to login directly (Gnome 3), it locks up eventually.

One difference is the reason: VRAM_LIMIT instead of PAGE_NOT_PRESENT. The channel and address range seem to match the original submitter's dmesg.

The workaround to suspend and resume also seems to work for me too on 3.7.

It started happening from 3.7 onwards. I tried 3.8-rc4, and the bug's still there (however resume doesn't work on 3.8-rc4, probably something else wrong).

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
In reply to a message not in the archive

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

--- Comment #9 from [email protected] --- Created attachment 73708
--> https://bugs.freedesktop.org/attachment.cgi?id=73708&action=edit
zcat /proc/config.gz > config

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
In reply to a message not in the archive

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

--- Comment #10 from [email protected] --- Also happens on my MacBookPro6,2

lspci -nn | grep VGA:

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT216 [GeForce GT 330M] [10de:0a29] (rev a2)

from dmesg:

[ 1678.891945] nouveau E[     PFB][0000:01:00.0] trapped read at 0x00007139c0

on channel 0x0001fed0 BAR/PFIFO_READ/FB reason: PAGE_NOT_PRESENT

Workaround mentioned with suspend/resume also works for me.

Running kernel config attached.

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
In reply to a message not in the archive

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

--- Comment #11 from Ankur <ankur-ZXPOjz+jPNRWk0Htik3J/[email protected]> --- I also have this issue on a MacBook5,1

Bottom half of mouse cursor is transparent.

There are thousands of "trapped read at ... on channel ... BAR/PFIFO_READ/FB
reason: PAGE_NOT_PRESENT" with occasional "trapped write"s.

All issues resolve after resuming from suspend.

Running Arch Linux (kernel 3.7.5 x86_64)
xf86-video-nouveau 1.0.6
xorg-server 1.12.2
libdrm 2.4.41

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
In reply to a message not in the archive

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

--- Comment #12 from Marcin Slusarz <[email protected]> --- Created attachment 74513
--> https://bugs.freedesktop.org/attachment.cgi?id=74513&action=edit
limit pmem to 64kB

does it change anything?

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
In reply to a message not in the archive

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

--- Comment #13 from Bruno <[email protected]> --- (In reply to comment #12)

Quoted 4 lines

Created attachment 74513 [details] [review]
limit pmem to 64kB

does it change anything?

No change for me (applied on top of linux-3.7.6, MacBookPro(2,1)).

The error seems very much related to the cursor itself. Errors are only generated on cursor move/change.

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
In reply to a message not in the archive

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

Marcin Slusarz <[email protected]> changed:

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

  Attachment #74513|0                           |1

is obsolete| |

--- Comment #14 from Marcin Slusarz <[email protected]> --- Created attachment 74545
--> https://bugs.freedesktop.org/attachment.cgi?id=74545&action=edit
initialize pmem offset

what about this one?

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
In reply to a message not in the archive

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

--- Comment #15 from Bruno <[email protected]> --- (In reply to comment #14)

Quoted 4 lines

Created attachment 74545 [details] [review]
initialize pmem offset

what about this one?

No change with this one (instead of the previous one) either.

Now as well as since the bug appeared there is sporadically a write error between the many ready errors. (same error message but s/read/write/)

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
In reply to a message not in the archive

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

--- Comment #16 from Marcin Slusarz <[email protected]> --- Just to be sure we are not chasing two different bugs - can you confirm 3863c9bc887e9638a9d905d55f6038641ece78d6 is the commit which introduced *this* bug?

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
In reply to a message not in the archive

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

--- Comment #17 from Bruno <[email protected]> --- (In reply to comment #16)

Quoted 3 lines

Just to be sure we are not chasing two different bugs - can you confirm 3863c9bc887e9638a9d905d55f6038641ece78d6 is the commit which introduced *this* bug?

I can't quickly check, both 3863c9bc887e9638a9d905d55f6038641ece78d6 and preceding 8a9b889e668a5bc2f4031015fe4893005c43403d don't compile here (gcc 4.6.3).

They are failing on redeclaration of NV_* enums in nouveau_drv.h which were previously declared in core/include/core/device.h and struct nouveau_engine which was previously declared in core/include/core/engine.h

Will look tomorrow evening (CET) at GIT history around those commits in order to get it compiling so I can check.

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
In reply to a message not in the archive

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

--- Comment #18 from Bruno <[email protected]> --- I checked at commit aa4cc5d274c09909fe32861825c2377d0ccb3bfd and the bug is not yet present.

I checked at commit 9274f4a9ba7e70d1770e237fca16d52f27f0c728 and the bug is not yet present.

Kernel does not build starting with commit 9458029940ffc64bca0c5a30ea626c377205842e (fails on the redeclarations mentioned in comment #17).

Commit 77145f1cbdf8d28b46ff8070ca749bad821e0774 is the first one to build again and is affected by the bug.

The duplicate NV_* enum may be easy to fix though the struct nouveau_engine seems harder to correct.

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
In reply to a message not in the archive

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

--- Comment #19 from Marcin Slusarz <[email protected]> --- Weird, 3863c9bc887e9638a9d905d55f6038641ece78d6 compiles fine here on both gcc 4.7.2 and 4.6.3. Can you attach compile log?

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
In reply to a message not in the archive

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

--- Comment #20 from Bruno <[email protected]> --- Created attachment 74862
--> https://bugs.freedesktop.org/attachment.cgi?id=74862&action=edit
Kernel config + compile log for 3863c9bc887e9638a9d905d55f6038641ece78d6

This includes the build log for rebuilding (trying to) kernel after touching all files under drivers/gpu/drm/nouveau.

The kernel config preceeds the build log in the same file.

For the whole range of commits where compilation fails the errors are the same though I did not take extra care to check if it was always failing for the same source files.

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
In reply to a message not in the archive

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

--- Comment #21 from Marcin Slusarz <[email protected]> --- Created attachment 74935
--> https://bugs.freedesktop.org/attachment.cgi?id=74935&action=edit
compilation fix

I'm not sure why I can't hit it, but this patch will probably resolve your compilation problem...

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
In reply to a message not in the archive

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

--- Comment #22 from Bruno <[email protected]> --- (In reply to comment #21)

Quoted 5 lines

Created attachment 74935 [details] [review]
compilation fix

I'm not sure why I can't hit it, but this patch will probably resolve your compilation problem...

The patch does not fix compilation for me.

Are you building in-tree or out-of-tree?
I'm building out-of-tree.

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
In reply to a message not in the archive

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

--- Comment #24 from Bruno <[email protected]> --- It seems that there is a fix for this issue in nouveau/master tough that kernel stalls on click to open menu in enlightenment 0.17.1 [compositing enabled]...

And once the stall has happened, the GPU seems rather confused, OSX wont successfully start anymore and older Linux kernels show incorrectly tiled content with nouveau (nouveaufb) while EFIFB gets things displayed as usual.

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

#22 lore raw
In reply to a message not in the archive

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

--- Comment #25 from Marcin Slusarz <[email protected]> --- Note that one recent commit in xf86-video-nouveau
(http://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?id=912d418fdfd2e99eef1e5c631c76dda1d82cf451)
may reduce visibility of this bug... Did you update xf86-video-nouveau too?

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

#23 lore raw
In reply to a message not in the archive

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

--- Comment #26 from Bruno <[email protected]> --- (In reply to comment #23)

Quoted 1 line

in-tree

Yes, compiling in-tree does work... so includes search paths somehow are broken between those two revisions I mentioned in comment #18 when building out-of-tree. Not so good.

(In reply to comment #25)

Quoted 3 lines

Note that one recent commit in xf86-video-nouveau (912d418fdfd2e99eef1e5c631c76dda1d82cf451) may reduce visibility of this bug... Did you update xf86-video-nouveau too?

No, I just updated kernel. For userspace I'm still on xf86-video-nouveau-1.0.4, libdrm-2.4.40, mesa-9.0.1 and xorg-server-1.13.1
The nouveau/master commit I tried was 43b629c047... (drm/nouveau: Fix DPMS 1 on G4 Snowball, from snow white to coal black) by Stefan de Konink.

(In reply to comment #16)

Quoted 3 lines

Just to be sure we are not chasing two different bugs - can you confirm 3863c9bc887e9638a9d905d55f6038641ece78d6 is the commit which introduced *this* bug?

Bug present in 3863c9bc887e9638a9d905d55f6038641ece78d6. Bug not present in preceding 8a9b889e668a5bc2f4031015fe4893005c43403d.

So yes, I can confirm.

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

#24 lore raw
In reply to a message not in the archive

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

--- Comment #27 from Ankur <ankur-ZXPOjz+jPNRWk0Htik3J/[email protected]> --- Bug is still present with linux-3.8.4, xf86-video-nouveau-1.0.7

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

#25 lore raw
In reply to a message not in the archive

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

--- Comment #28 from Ankur <ankur-ZXPOjz+jPNRWk0Htik3J/[email protected]> --- Sorry, last comment should read bug is *no longer* present for me with latest kernel and drivers.

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

#26 lore raw
In reply to a message not in the archive

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

--- Comment #29 from David Herrmann <[email protected]> --- I cannot reproduce it, either. linux-3.8.4 + libdrm-2.4.43 but I don't know what fixed it.
Feel free to mark as fixed.

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

#27 lore raw
In reply to a message not in the archive

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

--- Comment #30 from Mourad De Clerck <[email protected]> --- Well, with my MCP89 on 3.8.x, I still get:

trapped read at 0x000040fdd0 on channel 0x0000fee0 BAR/PFIFO_READ/FB reason:
VRAM_LIMIT

On 3.9-rc4 it's even worse: complete screen corruption and hard lock.

Is mine a different bug?

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

#28 lore raw
In reply to a message not in the archive

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

--- Comment #31 from Bruno <[email protected]> --- I do get lock-ups with 3.8.4 and 3.9-rc4.

3.9-rc4 does not have the corrupted cursor anymore but still has lots of trapped reads or writes.

Kernel is still alive at lockup time and kernel log reports
...

[  521.627844] nouveau E[     PFB][0000:02:00.0] trapped read at 0x000040fe2c
on channel 0x0000fee0 [unknown] BAR/PFIFO_READ/FB reason: PAGE_NOT_PRESENT
[  521.627864] nouveau E[     PFB][0000:02:00.0] trapped read at 0x000040fe34
on channel 0x0000fee0 [unknown] BAR/PFIFO_READ/FB reason: PAGE_NOT_PRESENT
[  521.627882] nouveau E[     PFB][0000:02:00.0] trapped read at 0x000040fe3c
on channel 0x0000fee0 [unknown] BAR/PFIFO_READ/FB reason: PAGE_NOT_PRESENT
[  521.630177] nouveau E[     PFB][0000:02:00.0] trapped write at 0x00004025c0
on channel 0x0000fee0 [unknown] BAR/PFIFO_WRITE/FB reason: PAGE_NOT_PRESENT
[  521.632255] nouveau E[   PFIFO][0000:02:00.0] still angry after 101 spins,
halt
[  521.632273] nouveau E[     PFB][0000:02:00.0] trapped read at 0x00004025c0
on channel 0x0000fee0 [unknown] BAR/PFIFO_READ/FB reason: PAGE_NOT_PRESENT
[  524.640022] [sched_delayed] sched: RT throttling activated
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

#29 lore raw
In reply to a message not in the archive

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

--- Comment #32 from [email protected] --- Still broken for me on kernel 3.8.11-1 and xf86-video-nouveau 1.0.7-1 with the GeForce GT 330M.

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

#30 lore raw
In reply to a message not in the archive

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

--- Comment #33 from Bruno <[email protected]> --- 3.9.0 with xf86-video-nouveau-1.0.7, libdrm-2.4.44 and mesa-9.1.2 seems to behave properly (no broken cursor and no log spamming).

Not sure which part of the updates did the trick.

There is still seldom complaints showing up, e.g. on VT switch. Will attach that log later on hopefully with some indication of which action triggers which messages.

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

#31 lore raw
In reply to a message not in the archive

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

--- Comment #34 from [email protected] --- (In reply to comment #33)

Quoted 8 lines

3.9.0 with xf86-video-nouveau-1.0.7, libdrm-2.4.44 and mesa-9.1.2 seems to behave properly (no broken cursor and no log spamming).

Not sure which part of the updates did the trick.

There is still seldom complaints showing up, e.g. on VT switch. Will attach that log later on hopefully with some indication of which action triggers which messages.

Ah. Well.

Yes, I'm not getting log spamming or a broken mouse cursor with 3.9 or 3.8.11, but the corruption on the console (pre X) that started at the same time still persists.

Perhaps not the same issue, but I'd be fairly certain it's related closely somehow. So I guess this ticket can be closed if there's another one open for the console graphics corruption?

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

#32 lore raw
In reply to a message not in the archive

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

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

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

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

--- Comment #35 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Closing as fixed per the comments. There are several NVAF-related bugs currently open, feel free to subscribe to them. (I've requested retests on them, although haven't heard back yet.)

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