https://bugs.freedesktop.org/show_bug.cgi?id=60236
Priority: medium Bug ID: 60236 Assignee: dri-devel@lists.freedesktop.org Summary: corruption of text and bottom of screen in xonotic menus since 325422c49449acdd8df1eb2ca8ed81f7696c38cc Severity: normal Classification: Unclassified OS: Linux (All) Reporter: pheldens@ziggo.nl Hardware: Other Status: NEW Version: git Component: Drivers/Gallium/r600 Product: Mesa
bisected to this commit
325422c49449acdd8df1eb2ca8ed81f7696c38cc is the first bad commit commit 325422c49449acdd8df1eb2ca8ed81f7696c38cc Author: Jerome Glisse jglisse@redhat.com Date: Mon Jan 7 17:45:59 2013 -0500
r600g: add async for staging buffer upload v2
v2: Add virtual address to dma src/dst offset for cayman
Signed-off-by: Jerome Glisse jglisse@redhat.com
:040000 040000 4ef6e784f3acb7f21da0c5e1923810c78917d16d 55f0ce7d9793ce04d392fc7943059545053a9d79 M src
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #1 from Paul Heldens pheldens@ziggo.nl --- linux 3.8-rc6 3.7.4 had it also
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #2 from Paul Heldens pheldens@ziggo.nl --- also corruption in 2D apps (seamonkey)
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #3 from Paul Heldens pheldens@ziggo.nl --- Created attachment 74238 --> https://bugs.freedesktop.org/attachment.cgi?id=74238&action=edit screen shot Xonotic
https://bugs.freedesktop.org/show_bug.cgi?id=60236
Paul Heldens pheldens@ziggo.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #74238|0 |1 is obsolete| |
--- Comment #4 from Paul Heldens pheldens@ziggo.nl --- Created attachment 74239 --> https://bugs.freedesktop.org/attachment.cgi?id=74239&action=edit screen shot Xonotic
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #5 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #1)
linux 3.8-rc6 3.7.4 had it also
325422c49449acdd8df1eb2ca8ed81f7696c38cc (r600g: add async for staging buffer upload v2) only takes affect on 3.8 kernels. Previous kernels didn't support the DMA rings. So if you are seeing the same issue on multiple kernels, it's either something else or you are seeing two issues. It may be the same issue as bug 58042.
https://bugs.freedesktop.org/show_bug.cgi?id=60236
smoki smoki00790@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #74238|text/plain |image/png mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #6 from Paul Heldens pheldens@ziggo.nl --- Tested it again to be sure
Linux borgir 3.7.6 does NOT have the problem, pardon the mistake.
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #7 from Jerome Glisse glisse@freedesktop.org --- And what GPU is this ? Because here it works ...
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #8 from Paul Heldens pheldens@ziggo.nl --- OpenGL renderer string: Gallium 0.4 on AMD RV730
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #9 from Andy Furniss lists@andyfurniss.entadsl.com --- (In reply to comment #0)
bisected to this commit
325422c49449acdd8df1eb2ca8ed81f7696c38cc is the first bad commit commit 325422c49449acdd8df1eb2ca8ed81f7696c38cc Author: Jerome Glisse jglisse@redhat.com Date: Mon Jan 7 17:45:59 2013 -0500
r600g: add async for staging buffer upload v2 v2: Add virtual address to dma src/dst offset for cayman Signed-off-by: Jerome Glisse <jglisse@redhat.com>
:040000 040000 4ef6e784f3acb7f21da0c5e1923810c78917d16d 55f0ce7d9793ce04d392fc7943059545053a9d79 M src
Looks correct to me on rv790.
I get nothing like the corruption in the screens, for me it's just the band at the bottom of the screen and it's not always there (but seems to be reliable first test after boot from power off).
I tested a couple of cycles with mesa reset just before this commit and couldn't see the problem. With mesa on this commit I can see it.
Kernel is drm-fixes.
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #10 from Paul Heldens pheldens@ziggo.nl --- Yes for me this effect varies also
if I open , say a browser with a complex webpage, and then start xonotic again the text may be garbled the 2nd start
its as if video memory or some caches get corrupted
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #11 from Jerome Glisse glisse@freedesktop.org --- Created attachment 74300 --> https://bugs.freedesktop.org/attachment.cgi?id=74300&action=edit Fix
Can you check if that patch fix it for you ?
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #12 from Paul Heldens pheldens@ziggo.nl --- still has the problem with that patch
noticed this in dmesg:
radeon 0000:01:00.0: DMA copy src buffer too small (4295180288 18382848) [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream ! radeon 0000:01:00.0: DMA copy src buffer too small (1032192 1024000) [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #13 from Jerome Glisse glisse@freedesktop.org --- Created attachment 74303 --> https://bugs.freedesktop.org/attachment.cgi?id=74303&action=edit Fix v2
This v2 avoid the kernel message. Weird you still have issue i don't here with this patch.
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #14 from Jerome Glisse glisse@freedesktop.org --- Try also applying the patch of https://bugs.freedesktop.org/show_bug.cgi?id=60034
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #15 from Paul Heldens pheldens@ziggo.nl --- fix v2 ( 3.8.0-rc6 x86_64)
radeon 0000:01:00.0: DMA copy src buffer too small (7516413696 18382848) [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
still the xonotic garbage, though it does not happen with every try, best test 3x
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #16 from Paul Heldens pheldens@ziggo.nl --- just applied
Try also applying the patch of https://bugs.freedesktop.org/show_bug.cgi?id=60034
same problem still
though it started 3x well, then when I open my browser with some pages, and retry, the corruption in xonotic is back again..
radeon 0000:01:00.0: DMA copy src buffer too small (3221445120 18382848) [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #17 from Paul Heldens pheldens@ziggo.nl --- Created attachment 74306 --> https://bugs.freedesktop.org/attachment.cgi?id=74306&action=edit corruption after patches
looks a bit different, also xonotic seems to start more often right (without corruption) than wrong with the patches applied
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #18 from Paul Heldens pheldens@ziggo.nl --- https://bugs.freedesktop.org/attachment.cgi?id=74306
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #19 from Andy Furniss lists@andyfurniss.entadsl.com --- (In reply to comment #18)
I've tried quite hard on both 64 bit and 32 bit setups and with both patches applied can no longer get any corruption.
One thing I did notice is that there is a slight difference between running the sdl and glx versions, in that the sdl has a few strange chars in console - but it's the same with llvmpipe.
Are you running glx or sdl?
Can you get any corruption if you run it with the env
LIBGL_ALWAYS_SOFTWARE=1
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #20 from Paul Heldens pheldens@ziggo.nl --- xonotic-linux64-glx
LIBGL_ALWAYS_SOFTWARE=1 starts correctly 5x in a row
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #21 from Jerome Glisse glisse@freedesktop.org --- Paul do you have an up to date kernel, there are have been change to dma portion of kernel in 3.8 serie. Without my patch i got the corruption but with it i can't get any here.
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #22 from Jerome Glisse glisse@freedesktop.org --- Especially you should not have kernel message with my patch
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #23 from Paul Heldens pheldens@ziggo.nl --- just retested
linux 3.8.0-rc6
fresh mesa tree (74a17a764dc2ad20d9d6f56afee963b23b597132 today) , with Fix v2 (1.59 KB, patch) 2013-02-06 20:44 UTC, Jerome Glisse
xonotic-linux64-glx (0.6): Corruption at first start
dmesg error: radeon 0000:01:00.0: DMA copy src buffer too small (343597592584 18382848) [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
Everything works OK with linux 3.7.6
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #24 from Jerome Glisse glisse@freedesktop.org --- Do you have multiscreen ? What is your screen resolution ?
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #25 from Paul Heldens pheldens@ziggo.nl --- 1920 * 1200 LOW detail
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #26 from Paul Heldens pheldens@ziggo.nl --- ~ > xrandr Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 8192 x 8192 HDMI-0 disconnected (normal left inverted right x axis y axis) VGA-0 disconnected (normal left inverted right x axis y axis) DVI-0 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 519mm x 324mm 1920x1200 60.0*+ 1920x1080 60.0 1600x1200 60.0 1680x1050 59.9 1680x945 60.0 1400x1050 59.9 1600x900 60.0 1280x1024 60.0 1440x900 59.9 1280x960 60.0 1366x768 60.0 1360x768 60.0 1280x800 59.9 1280x768 60.0 1024x768 60.0 1024x576 60.0 800x600 60.3 848x480 60.0 640x480 60.0 720x400 70.1
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #27 from Jerome Glisse glisse@freedesktop.org --- Created attachment 74381 --> https://bugs.freedesktop.org/attachment.cgi?id=74381&action=edit Kernel fix
Ok try this kernel patch without and with the mesa patch. This one should definitely fix the issue.
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #28 from Andy Furniss lists@andyfurniss.entadsl.com --- (In reply to comment #27)
Created attachment 74381 [details] [review] Kernel fix
Ok try this kernel patch without and with the mesa patch. This one should definitely fix the issue.
Won't apply against 3.8-rc6 or drm fixes for me.
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #29 from Paul Heldens pheldens@ziggo.nl --- 3.8-rc6 Here neither, only chunk 1 with 25x lines fuz
https://bugs.freedesktop.org/show_bug.cgi?id=60236
Jerome Glisse glisse@freedesktop.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #74381|0 |1 is obsolete| |
--- Comment #30 from Jerome Glisse glisse@freedesktop.org --- Created attachment 74433 --> https://bugs.freedesktop.org/attachment.cgi?id=74433&action=edit Kernel fix
This one apply against Linus master
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #31 from Paul Heldens pheldens@ziggo.nl --- 3.8-rc6
your latest kernel patch applied well.
with fix v2 all corruption seems gone. on ~10 startups
without fix v2 I still see dynamic corruption at the bottom of screen
https://bugs.freedesktop.org/show_bug.cgi?id=60236
Paul Heldens pheldens@ziggo.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #74239|0 |1 is obsolete| | Attachment #74306|0 |1 is obsolete| |
--- Comment #32 from Paul Heldens pheldens@ziggo.nl --- Created attachment 74451 --> https://bugs.freedesktop.org/attachment.cgi?id=74451&action=edit xonotic with kernel without v2 patch 3.8-rc6
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #33 from Paul Heldens pheldens@ziggo.nl --- i've seen no more dmesg errors
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #34 from Andy Furniss lists@andyfurniss.entadsl.com --- (In reply to comment #30)
Created attachment 74433 [details] [review] Kernel fix
This one apply against Linus master
Like Paul, I need the mesa patch as well to get rid of the junk at the bottom of the screen.
I guess my screen was too small to show the issue this patch fixes, but I've tried it and can't find anything that regresses.
https://bugs.freedesktop.org/show_bug.cgi?id=60236
Jerome Glisse glisse@freedesktop.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #35 from Jerome Glisse glisse@freedesktop.org --- Mesa fix pushed, kernel fix queued for Linus inclusion
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #36 from Alexandre Demers alexandre.f.demers@gmail.com --- It doesn't apply correctly on kernel 3.8.0
https://bugs.freedesktop.org/show_bug.cgi?id=60236
--- Comment #37 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #36)
It doesn't apply correctly on kernel 3.8.0
The kernel patch is already upstream in 3.8.0.
dri-devel@lists.freedesktop.org