Cannot get radeon hd4290 working with KMS

A. Bischof a.bischof at gmx.net
Mon Mar 28 23:53:51 PDT 2011


Hi,

first of all, I hope it's correct to post my problem here, if it 
belong's elsewhere, please let me know.

As written in the subject, I have problems getting my integrated hd4290 
to run with KMS - I'd like to have better 3D hardware acceleration and 
support for compositing, which I don't get with or without KMS (in KDE).

# lspci |grep -i radeon
01:05.0 VGA compatible controller: ATI Technologies Inc RS880 [Radeon HD 
4290]

I tried the following with different kernels - Debians .32, .37 and .38, 
the output below is from .38.

# uname -r
2.6.38-1-686-bigmem

xorg.conf is almost empty, only
Option      "AllowEmptyInput" "false"
to get my mouse and keyboard working.

Mainly the problem is poor performance with KMS:

# glxinfo |egrep -i "render|vendor|direct"
direct rendering: Yes
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
                         -------------------!!!

Software Rasterizer is only with KMS, if I set modeset=0 I don't get this.
# cat /etc/modprobe.d/radeon-kms.conf
options radeon modeset=1
options radeon agpmode=-1
options radeon dynclks=1
(without the last two lines X freezes)

# dmesg | grep modesetting
[   58.938155] [drm] radeon kernel modesetting enabled.
[   58.939307] [drm] initializing kernel modesetting (RS880 0x1002:0x9714).


I think the right modules are loaded:
# lsmod |egrep -i "radeon|drm|kms"
radeon                675484  1
ttm                    38552  1 radeon
drm_kms_helper         19765  1 radeon
drm                   122248  3 radeon,ttm,drm_kms_helper
i2c_algo_bit            3438  1 radeon
power_supply            5535  1 radeon
i2c_core               12965  8 
radeon,drm_kms_helper,drm,i2c_algo_bit,v4l2_common,eeprom,videodev,i2c_piix4
root at linux:/home/frisco# lsmod |egrep -i "fglrx"



Some maybe useful output to get along with the problem:

egrep "EE|WW|ccel|omp|dri" /var/log/Xorg.0.log
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
         X.Org XInput driver : 7.0
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
         compiled for 1.7.7, module version = 1.0.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XVideo-MotionCompensation
         compiled for 1.7.7, module version = 1.0.0
         compiled for 1.7.7, module version = 1.0.0
         compiled for 1.7.7, module version = 1.13.0
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
         compiled for 1.7.7, module version = 1.0.0
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
         compiled for 1.7.7, module version = 1.1.0
(==) Matched ati as autoconfigured driver 0
(==) Matched vesa as autoconfigured driver 1
(==) Matched fbdev as autoconfigured driver 2
(==) Assigned the driver to the xf86ConfigLayout
(II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
         compiled for 1.7.7, module version = 6.13.1
(II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
         compiled for 1.7.7, module version = 6.13.1
(WW) Warning, couldn't open module vesa
(EE) Failed to load module "vesa" (module does not exist, 0)
(WW) Warning, couldn't open module fbdev
(EE) Failed to load module "fbdev" (module does not exist, 0)
         compiled for 1.7.7, module version = 1.5.0
         ABI class: X.Org XInput driver, version 7.0
         compiled for 1.7.7, module version = 1.4.0
         ABI class: X.Org XInput driver, version 7.0
         compiled for 1.7.7, module version = 0.1.0
         compiled for 1.7.7, module version = 1.0.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed because of a version 
mismatch.

!!!--- I don't get this without KMS (modeset=0) ----

[dri] This chipset requires a kernel module version of 1.17.0,
[dri] but the kernel reports a version of 2.8.0.[dri] If using legacy 
modesetting, upgrade your kernel.
[dri] If using kernel modesetting, make sure your module is
[dri] loaded prior to starting X, and that this driver was built
[dri] with support for KMS.
[dri] Disabling DRI.
         compiled for 1.7.7, module version = 1.1.0
(II) RADEON(0): Sync:  Separate  Composite
(II) RADEON(0): Sync:  Separate  Composite
(II) RADEON(0): Sync:  Separate  Composite
(II) RADEON(0): Sync:  Separate  Composite
         compiled for 1.7.7, module version = 1.0.0
(WW) RADEON(0): Direct rendering disabled
(EE) RADEON(0): Acceleration initialization failed
(II) RADEON(0): Acceleration disabled

!!!--- so dri get's disabled and with this no direct rendering nor 
acceleration ----

(II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
(WW) <default pointer>: No Device specified, looking for one...
(**) <default pointer>: (accel) keeping acceleration scheme 1
(**) <default pointer>: (accel) acceleration profile 0
(**) <default pointer>: (accel) acceleration factor: 2.000
(**) <default pointer>: (accel) acceleration threshold: 4
(II) RADEON(0): Sync:  Separate  Composite
(II) RADEON(0): Sync:  Separate  Composite



root at linux:/home/frisco# dmesg | grep drm
[   58.546562] [drm] Initialized drm 1.1.0 20060810
[   58.938155] [drm] radeon kernel modesetting enabled.
[   58.939307] [drm] initializing kernel modesetting (RS880 0x1002:0x9714).
[   58.939328] [drm] register mmio base: 0xFE7F0000
[   58.939329] [drm] register mmio size: 65536
[   58.947844] [drm] Detected VRAM RAM=624M, BAR=256M
[   58.947847] [drm] RAM width 32bits DDR
[   58.947929] [drm] radeon: 624M of VRAM memory ready
[   58.947931] [drm] radeon: 512M of GTT memory ready.
[   58.947949] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[   58.947953] [drm] Driver supports precise vblank timestamp query.
[   58.947971] [drm] radeon: irq initialized.
[   58.947975] [drm] GART: num cpu pages 131072, num gpu pages 131072
[   58.948595] [drm] Loading RS780 Microcode

!!!--- as one can see above in lspci's output I'm running an RS880 - 
could that be a firmware problem running the wrong code or simply that 
my gfxboard isn't supported yet? ---

[   59.636292] [drm] ring test succeeded in 0 usecs
[   59.636563] [drm] radeon: ib pool ready.
[   59.636677] [drm] ib test succeeded in 0 usecs
[   59.636683] [drm] Enabling audio support
[   59.637366] [drm] Radeon Display Connectors
[   59.637372] [drm] Connector 0:
[   59.637377] [drm]   VGA
[   59.637383] [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 
0x7e4c 0x7e4c
[   59.637388] [drm]   Encoders:
[   59.637392] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[   59.637397] [drm] Connector 1:
[   59.637400] [drm]   HDMI-A
[   59.637404] [drm]   HPD3
[   59.637409] [drm]   DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 
0x7e5c 0x7e5c
[   59.637414] [drm]   Encoders:
[   59.637418] [drm]     DFP3: INTERNAL_KLDSCP_LVTMA
[   59.692415] [drm] radeon: power management initialized
[   59.767709] [drm] fb mappable at 0xD0141000
[   59.767711] [drm] vram apper at 0xD0000000
[   59.767712] [drm] size 5242880
[   59.767713] [drm] fb depth is 24
[   59.767714] [drm]    pitch is 5120
[   59.767826] fb0: radeondrmfb frame buffer device
[   59.767827] drm: registered panic notifier
[   59.767831] [drm] Initialized radeon 2.8.0 20080528 for 0000:01:05.0 
on minor 0


So if you have any clues, need more infos or want me to test s.th., pls 
let me know.

Cheers
Andre


More information about the xorg-driver-ati mailing list