Bug 28327

Summary: Latest d-r-t breaks rendering on RV670
Product: Mesa Reporter: Andy Furniss <adf.lists>
Component: Drivers/DRI/R600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: zajec5
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: fix

Description Andy Furniss 2010-05-31 03:15:40 UTC
Just updated drt to get the last few commits on AGP rv670 and exa rendering is is trashed. 

xterm contents OK, but window decoration/menus trashed, glxgears no output, seamonkey display corrupt.

dmesg has lots of errors like -

[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 635
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (1920 21 4 0 -> 344064 have 163840)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (1024 320 4 0 -> 2621440 have 1310720)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 635
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (214 60 4 0 -> 67680 have 61440)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (1024 320 4 0 -> -1610612736 have 1310720)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (1024 320 4 0 -> -1610612736 have 1310720)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (1024 320 4 0 -> 2621440 have 1310720)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (1024 320 4 0 -> 5242880 have 1310720)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (507 4 4 0 -> 8384 have 8192)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (1024 320 4 0 -> 5242880 have 1310720)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (507 4 4 0 -> 8384 have 8192)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 635
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:02:00.0: texture bo too small (1920 21 4 0 -> 344064 have 163840)
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Comment 1 Aidan Marks 2010-06-01 05:38:10 UTC
+1 seeing similar output on rv770 with latest d-r-t, but not noticing any visual corruptions so far.

[  227.930043] radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
[  227.930047] radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 620
[  227.930050] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[  229.335831] radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
[  229.335833] radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 620
[  229.335835] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2093.553944] radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
[ 2093.553948] radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 639
[ 2093.553951] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2094.198198] radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
[ 2094.198205] radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 639
[ 2094.198210] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2094.250724] radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
[ 2094.250727] radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 639
[ 2094.250729] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2167.956390] [drm:radeon_set_pm_method] *ERROR* invalid power method!
[ 2216.544910] radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
[ 2216.544912] radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 639
[ 2216.544914] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2322.607742] radeon 0000:02:00.0: r600_cs_track_validate_cb offset[0] 0 to big
[ 2322.607746] radeon 0000:02:00.0: r600_packet3_check:1256 invalid cmd stream 639
[ 2322.607750] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Comment 2 Magnus Jensen 2010-06-01 15:16:24 UTC
I have also seen this with d-r-t, but it went away when i updated mesa and ddx
Comment 3 Magnus Jensen 2010-06-01 21:53:30 UTC
+1 i have encountered this again... (rv635 agp) trashed text and small gfx glitches


[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:01:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:01:00.0: r600_packet3_check:1256 invalid cmd stream 654
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:01:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:01:00.0: r600_packet3_check:1256 invalid cmd stream 635
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:01:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:01:00.0: r600_packet3_check:1256 invalid cmd stream 635
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:01:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:01:00.0: r600_packet3_check:1256 invalid cmd stream 635
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:01:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:01:00.0: r600_packet3_check:1256 invalid cmd stream 635
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:01:00.0: r600_cs_track_validate_cb offset[0] 0 to big
radeon 0000:01:00.0: r600_packet3_check:1256 invalid cmd stream 1580
Comment 4 Magnus Jensen 2010-06-01 22:18:30 UTC
And now it's gone again... i added:
 Option "ColorTiling" "on" 

to the "Device" section in xorg.conf that seems to fix it.
Comment 5 Alex Deucher 2010-06-02 10:52:19 UTC
Created attachment 36012 [details] [review]
fix

This patch fixes the issues here.
Comment 6 Andy Furniss 2010-06-02 12:08:34 UTC
(In reply to comment #5)
> Created an attachment (id=36012) [details]
> fix
> 
> This patch fixes the issues here.

Fixes for me as well.
Comment 7 Alex Deucher 2010-06-07 09:12:38 UTC
*** Bug 28419 has been marked as a duplicate of this bug. ***
Comment 8 Rafał Miłecki 2010-06-07 09:39:32 UTC
Confirmed here as well.
Comment 9 Jon Sturm 2010-06-21 17:09:04 UTC
This bug has resurfaced for me with the latest d-r-t which I think now includes this patch. I also have the newest libdrm, Mesa, and ddx all gotten from git. I get major video corruption in UT2004 and when I exit all my fonts and colors look similar but worse than the ones described in this bug.
Comment 10 Jon Sturm 2010-06-21 17:12:40 UTC
P.S. I am not getting the errors in my dmesg, though but that may be due to drm being quieter than it was due to recent patches.
Comment 11 Alex Deucher 2010-06-21 20:35:57 UTC
If you upgraded your ddx as well, make sure you grab the latest commits.
Comment 12 Fabio Pedretti 2010-11-05 07:05:27 UTC
This should be fixed.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.