Cannot get radeon hd4290 working with KMS

A. Bischof a.bischof at gmx.net
Tue Mar 29 02:07:05 PDT 2011


Am 29.03.2011 10:46, schrieb A. Bischof:
> Hi Michel,
>
> Am 29.03.2011 10:40, schrieb Michel Dänzer:
> ...
>>>>> [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, [...]
>>>>
>>>> I think this is the crucial piece of advice. It looks like the radeon
>>>> kernel module is getting loaded too late for the X driver to notice
>>>> that
>>>> KMS is enabled.
>>>
>>> thanks for your quick answer. I thought so too, but loading the module
>>> via /etc/modprobe.d/radeon-kms.conf should be early enough - but even if
>>> I load it via grub, which I tried, this message remains.
>>>
>>>
>>> # cat /etc/default/grub
>>> ...
>>> #GRUB_CMDLINE_LINUX="radeon.modeset=1"
>>>
>>> I did update-grub2 afterwards.
>>
>> Neither of these has any influence on when the module is loaded. Adding
>> radeon to /etc/modules may help, otherwise for testing you could boot to
>> single user mode first, modprobe radeon manually and then switch to
>> runlevel 2.
...

Well, good guess, that did the trick (almost). I added radeon to 
/etc/modules, now the module seems to be loaded early enough:

# 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: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RS880 9714) 20090101 
x86/MMX+/3DNow!+/SSE2 TCL DRI2

!!!--- full render string, not software rasterizer!

root at linux:/home/frisco# cat /etc/modprobe.d/radeon-kms.conf
options radeon modeset=1
options radeon agpmode=-1
options radeon dynclks=1

Should I try to leave the last two lines away to get better performance?


# 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
(WW) RADEON(0): Color tiling is not yet supported on R600/R700
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
(II) RADEON(0): Sync:  Separate  Composite
         compiled for 1.7.7, module version = 1.0.0
         compiled for 1.7.7, module version = 2.5.0
(II) RADEON(0): [DRI2] Setup complete
(II)         Composite (RENDER acceleration)
(II) RADEON(0): Acceleration enabled

!!!--- Yes! :-)

(II) AIGLX: Loaded and initialized /usr/lib/dri/r600_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


But performance is still slow - I know glxgears is no benchmark, but I 
get 850FPS without KMS - maybe because of agpmode=-1?

$ glxgears
2396 frames in 5.0 seconds = 479.110 FPS
2841 frames in 5.0 seconds = 568.051 FPS
2828 frames in 5.0 seconds = 565.438 FPS

And btw, System Settings in KDE tells me "Compositing is not supported 
on your system".

So s.th. still missing, right?

Thanks for your great help so far,
Cheers!



More information about the xorg-driver-ati mailing list