Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 448320

Summary: app-emulation/emul-linux-x86-opengl-20121028 mesa not new enough to support default radeon feature ColorTiling2D
Product: Gentoo Linux Reporter: duby229
Component: [OLD] LibraryAssignee: AMD64 Project <amd64>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://phoronix.com/forums/showthread.php?76197-how-to-disable-2d-color-tiling&p=302978#post302978
Whiteboard:
Package list:
Runtime testing required: ---

Description duby229 2012-12-23 19:56:25 UTC
When running 32bit 3d application using the current stable radeon drivers and current stable emul-linux-x86-opengl there is curruption on screen, with errors in dmesg stating invalid command stream. After troubleshooting with an x driver developer we come to relize that the 32bit mesa driver isnt new enough to support ColorTiling2D option, which is enabled by default with the current stable radeon drivers.

Reproducible: Always

Steps to Reproduce:
1. Install x11-libs/libdrm-2.4.40, x11-base/xorg-server-1.13.0-r1, media-libs/mesa-9.0, x11-drivers/xf86-video-ati-7.0.0, app-emulation/emul-linux-x86-opengl-20121028
2.install any 32bit 3d application or game, (via steam or desura or whatever)
Actual Results:  
corruption of 3d with console error message..... 

radeon: The kernel rejected CS, see dmesg for more information.

checking dmesg results with....

[43006.708381] radeon 0000:01:00.0: evergreen_surface_value_conv_check:330 cb invalid array mode 6
[43006.708384] radeon 0000:01:00.0: evergreen_packet3_check:2136 invalid cmd stream 552
[43006.708386] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[43006.721341] radeon 0000:01:00.0: evergreen_surface_value_conv_check:330 cb invalid array mode 6
[43006.721344] radeon 0000:01:00.0: evergreen_packet3_check:2136 invalid cmd stream 552
[43006.721346] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[43006.738022] radeon 0000:01:00.0: evergreen_surface_value_conv_check:330 cb invalid array mode 6
[4300638025] radeon 0000:01:00.0: evergreen_packet3_check:2136 invalid cmd stream 552
[43006.738027] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[43006.755002] radeon 0000:01:00.0: evergreen_surface_value_conv_check:330 cb invalid array mode 6
[43006.755006] radeon 0000:01:00.0: evergreen_packet3_check:2136 invalid cmd stream 552
[43006.755007] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[43006.771554] radeon 0000:01:00.0: evergreen_surface_value_conv_check:330 cb invalid array mode 6
[43006.771558] radeon 0000:01:00.0: evergreen_packet3_check:2136 invalid cmd stream 552
[43006.771559] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[43006.838297] radeon 0000:01:00.0: evergreen_surface_value_conv_check:330 cb invalid array mode 6
[43006.838301] radeon 0000:01:00.0: evergreen_packet3_check:2136 invalid cmd stream 552
[43006.838302] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[43007.909628] radeon 0000:01:00.0: evergreen_surface_value_conv_check:330 cb invalid array mode 6
[43007.909631] radeon 0000:01:00.0: evergreen_packet3_check:2136 invalid cmd stream 1148
[43007.909633] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[43010.946440] radeon 0000:01:00.0: evergreen_surface_value_conv_check:330 cb invalid array mode 6
[43010.946444] radeon 0000:01:00.0: evergreen_packet3_check:2136 invalid cmd stream 552

Expected Results:  
32bit 3d applications should run without error message or corruption.

The temporary solution is to disable ColorTiling2D option in xorg.conf with....

Section "Device"
        Identifier "Radeon 6850"
        Driver "radeon"
                Option "ColorTiling2D" "off"
EndSection
Comment 1 duby229 2012-12-23 19:57:02 UTC
Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.8.0-rc1 x86_64)
=================================================================
System uname: Linux-3.8.0-rc1-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.1
Timestamp of tree: Sat, 22 Dec 2012 21:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.6
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gamerlay roslin x11
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=amdfam10"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 100 --keep-going --complete-graph --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gamerlay /var/lib/layman/roslin /var/lib/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aacs acl alsa amd64 berkdb bluray branding bzip2 cairo cdda cddb cdio cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr flac fortran fuse g3dvl gdbm gpm gtk gtkstyle hddtemp iconv jpeg lm_sensors matroska mmx modules mp3 mudflap multilib ncurses nls nptl nsplugin opengl openmp pam pcre png policykit pppd python r600-llvm-compiler readline s3tc sensord session sse sse2 ssl subversion svg tcpd threads udev unicode vdpau vorbis wifi x264 xcb xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Pacho Ramos gentoo-dev 2012-12-25 18:57:42 UTC
Try with 20121202 version please
Comment 3 duby229 2012-12-25 20:56:49 UTC
Yes that did solve the problem. I suppose this issue will resolve itself when a new enough package gets marked stable. Until then it still exists in the stable packages.

The problem here is that the default configuration does not work 32bit apps, and everyone running this setup will run into this problem. Either mesa needs to get downgraded to something that works with the current emul packages, or the emul packages need to get upgraded to something that works with the current mesa.