Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301496 - x11-drivers/xf86-video-ati-6.12.4-r1: (EE) RADEON(0): [dri] RADEONDRIGetVersion failed because of a version mismatch. Disabling DRI.
Summary: x11-drivers/xf86-video-ati-6.12.4-r1: (EE) RADEON(0): [dri] RADEONDRIGetVersi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 2 votes (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-19 08:14 UTC by Denis I. Polukarov
Modified: 2010-06-20 00:20 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg with drm information (dmesg.txt,29.57 KB, text/plain)
2010-01-19 08:19 UTC, Denis I. Polukarov
Details
log of xserver (Xorg.0.log,52.39 KB, text/plain)
2010-01-19 08:19 UTC, Denis I. Polukarov
Details
log of xserver with EXA enabled (Xorg.0.log_with_EXA,58.62 KB, text/plain)
2010-01-19 08:26 UTC, Denis I. Polukarov
Details
xf86-video-ati-6.12.99_pre20100205.ebuild (xf86-video-ati-6.12.99_pre20100205.ebuild,716 bytes, text/plain)
2010-02-09 23:57 UTC, Chí-Thanh Christopher Nguyễn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis I. Polukarov 2010-01-19 08:14:53 UTC
RV410 [Radeon X700 Pro (PCIE)] In kernel is turned on radeon drm & KMS (not module). In /dev/dri is 2 devices: card0 & controlD64, but DRI not working.

Reproducible: Always

Steps to Reproduce:
1. sys-kernel/gentoo-sources-2.6.32 || -r1 || -r2
2. x11-libs/libdrm-2.4.17
3. media-libs/mesa-7.7-r1 VIDEO_CARDS="radeon"
4. x11-base/xorg-server-1.7.4
5. x11-drivers/xf86-video-ati-6.12.4-r1
Actual Results:  
DRI & 3D not working

Expected Results:  
DRI & 3D working.
Comment 1 Denis I. Polukarov 2010-01-19 08:19:00 UTC
Created attachment 216879 [details]
dmesg with drm information
Comment 2 Denis I. Polukarov 2010-01-19 08:19:31 UTC
Created attachment 216880 [details]
log of xserver
Comment 3 Denis I. Polukarov 2010-01-19 08:26:12 UTC
Created attachment 216882 [details]
log of xserver with EXA enabled
Comment 4 Denis I. Polukarov 2010-01-19 08:27:17 UTC
Comment on attachment 216882 [details]
log of xserver with EXA enabled

(EE) RADEON(0): [dri] RADEONDRIGetVersion failed because of a version mismatch.
[dri] radeon kernel module version is 2.0.0 but version 1.17.0 or newer is needed.
[dri] Disabling DRI.
Comment 5 Rafał Mużyło 2010-01-19 21:05:11 UTC
IIRC, x11-drivers/xf86-video-ati-6.12.4-r1 is not recent enough for KMS.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-02-09 15:54:25 UTC
Disable KMS.
xf86-video-ati-6.12.4 does indeed not support KMS.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-02-09 23:57:51 UTC
Created attachment 219041 [details]
xf86-video-ati-6.12.99_pre20100205.ebuild

Git snapshot ebuild which should work with KMS
Comment 8 Denis I. Polukarov 2010-02-10 08:52:23 UTC
(In reply to comment #7)
> Created an attachment (id=219041) [details]
> xf86-video-ati-6.12.99_pre20100205.ebuild
> 
> Git snapshot ebuild which should work with KMS
> 

This snapshot is fine: EXA && UXA work on 2.6.32-gentoo-r4 ... EXA work && UXA not work (Gnome or KDE is unuseable) on 2.6.32-gentoo-r3 ... (X Server 1.7.4.901)
Comment 9 Robert Bradbury 2010-03-06 17:58:40 UTC
This problem gets worse if one tries to run the current 2.6.33 gentoo sources.  It looks like they bumped the DRI version number from 1.17.0 to 2.0.0 and if one looks at the version number checks in radeon_dri.c (from xf86-video-ati) they are completely messed up.

The error starts as:
[dri] radeon kernel module version is 2.0.0 but version 1.17.0 or newer is needed.

Now of course, 2.0.0 *is* newer than 1.17.0 but there is a hardwired check for a major version # of 1 in the source (which is why it breaks).

If one hacks that version to work around that, one ends up with more problems:
(II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 2.0.0
(==) RADEON(0): Page Flipping disabled on r5xx and newer chips.
(II) RADEON(0): Will try to use DMA for Xv image transfers
(WW) RADEON(0): [dri] limiting video memory to one aperture of 262144K
(WW) RADEON(0): [dri] detected radeon kernel module version 1.0 but 1.23 or newer is required for full memory mapping.
(II) RADEON(0): Detected total video RAM=262144K, accessible=262144K (PCI BAR=262144K)
(II) RADEON(0): Video RAM override, using 262144 kB instead of 262144 kB
(**) RADEON(0): Mapped VideoRAM: 262144 kByte (64 bit DDR SDRAM)
(WW) RADEON(0): [dri] color tiling disabled because of version mismatch.
[dri] radeon.o kernel module version is 2.0.0 but 1.14.0 or later is required for color tiling.

So it would appear that the ATI (radeon) version checking/compatibility has significant problems with 2.6.33/KMS and perhaps DRI.

Could we at least get some feedback with respect to *what* versions of the ATI/DRI drivers are *supposed* to work with 2.6.33 (and perhaps where to get them) if they aren't likely to make it into the Gentoo tree anytime soon?

(This is a system with all Xorg, x11-drivers, mesa, etc. allowed in package.keywords (~x86) but no overlays.)
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2010-03-15 23:22:27 UTC
Newest snapshots of x86-video-ati drivers added and should work peachy with latest kernel and KMS, please reopen if you have issues with them too.