Hi,

after commit a39533b4ddad388b64a20bcabd17ac125fd4ba65
(drm/radeon/r600: CS parser updates) landed in mainline
(happens still in v2.6.32-rc7-29-ga9366e6) trying to start a 3D app
(glxgears or xmoto for example) started to produce the error message
"drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command
stream. See dmesg for more info." in the console and "
Nov 15 13:39:14 koni kernel: [   64.492404] 
[drm:r600_cs_packet_next_reloc_nomm] *ERROR* No packet3 for relocation for 
packet at 47.
Nov 15 13:39:14 koni kernel: [   64.492416] [drm:r600_packet3_check] *ERROR* 
bad SET_CONTEXT_REG 0x28014
Nov 15 13:39:14 koni kernel: [   64.492422] [drm:r600_cs_legacy] *ERROR* 
Invalid command stream !
"
in the dmesg. This is on a RV620 : Radeon HD 3450. The problem
is more than just the message - the app fails to start.

Commenting out the following line added by commit a39533b gives
3d back on this board. But is this a correct fix, or should I just try
with newer userspace? I have something new enough to have working
direct rendering but not new enough to support KMS on this radeon
(Arch Linux's stable versions).

Somebody asked about a similar-looking problem today on Arch Linux
forums (http://bbs.archlinux.org/viewtopic.php?pid=656417, message #192).


Thanks,

Mikko


--- a/drivers/gpu/drm/radeon/r600_cs.c
+++ b/drivers/gpu/drm/radeon/r600_cs.c
@@ -504,7 +504,7 @@ static int r600_packet3_check(struct radeon_cs_parser *p,
                        reg = start_reg + (4 * i);
                        switch (reg) {
                        case DB_DEPTH_BASE:
-                       case DB_HTILE_DATA_BASE:
+               //      case DB_HTILE_DATA_BASE: //bad SET_CONTEXT_REG 0x28014
                        case CB_COLOR0_BASE:
                        case CB_COLOR1_BASE:
                        case CB_COLOR2_BASE:


      

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to