Bug 18048

Summary: radeonhd: drmOpen("radeon",..) fails in RHDDRIVersionCheck [GeCube Radeon HD 3650 1GB / RX365PA2-F3 S1H]
Product: DRI Reporter: Oswald Maenner <oswald.maenner>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium CC: oswald.maenner
Version: XOrg git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg.conf file used, resulting Xorg.0.log, gzipped tar file none

Description Oswald Maenner 2008-10-13 16:14:04 UTC
Created attachment 19638 [details]
xorg.conf file used, resulting Xorg.0.log, gzipped tar file

Linux: up-to date Debian/lenny with Kernel 2.6.26-1-686

CPU: AMD Sempron(tm) Processor 2800+ stepping 02
Graphics card GeCube Radeon HD 3650 (AGP)
SiS chipset

X Server 1.5.99.1 (from  git://anongit.freedesktop.org/git),
DRM 1.1.0 20060810 (from  git://anongit.freedesktop.org/git)

configured/compiled with 
  export PREFIX=/usr/local/X11
  LIB=lib
  export ACLOCAL="aclocal -I $PREFIX/share/aclocal"
  export PKG_CONFIG_PATH=$PREFIX/$LIB/pkgconfig
  export LD_LIBRARY_PATH=$PREFIX/$LIB
  export PATH=$PREFIX/bin:$PATH

drm.ko and radeon.ko loaded manually before xserver start

Output of modprobe -v radeon
insmod /lib/modules/2.6.26-1-686/extra/drm.ko
[315424.736168] Symbol init_mm is marked as UNUSED, however this module is using it.
[315425.397818] This symbol will go away in the future.
[315425.841652] Please evalute if this is the right api to use and if it really is, submit a report the linux kernel mailinglist together with submitting your code for inclusion.
insmod /lib/modules/2.6.26-1-686/extra/radeon.ko

dmesg: 

[314976.344100] [drm] Initialized drm 1.1.0 20060810
[315424.736168] Symbol init_mm is marked as UNUSED, however this module is using it.
[315425.397818] This symbol will go away in the future.
[315425.841652] Please evalute if this is the right api to use and if it really is, submit a report the linux kernel mailinglist together with submitting your code for inclusion.
[315427.236005] [drm] Initialized drm 1.1.0 20060810

X started with 

startx -- /usr/local/X11/bin/Xorg -logverbose 

(layout radeonhd, see attached Xorg.conf)

drmOpenDevice fails with:

(II) RADEONHD(0): Found libdri 5.4.0.
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
........
drmOpenDevice: Open failed
(EE) RADEONHD(0): RHDDRIVersionCheck: drmOpen("radeon", "pci:0000:01:00.0") failed.
(WW) RADEONHD(0): RHDDRIPreInit: Version check failed. Disabling DRI.

(see attached Xorg.0.log)

What I noticed is that there are no devices /dev/dri/card?? generated.
(the directory /dev/dri does exist however)

As a sidenote, I have also tried the latest ATI fglrx driver, but it freezes when trying to start the X server with the fglrx.ko kernel module (unfortunately no support from ATI on this).
Comment 1 Dan Nicholson 2008-10-13 16:34:09 UTC
Usually, udev creates the device nodes and loads the module for you. You can see if just retriggering it helps:

# udevadm trigger --verbose --subsystem-match=drm
Comment 2 Corbin Simpson 2008-10-13 18:19:08 UTC
There is no DRI with radeon or radeonhd for this chipset yet; you'll have to use fglrx for now if you need 3D acceleration.
Comment 3 Oswald Maenner 2008-10-14 11:01:57 UTC
The
  udevadm trigger --verbose --subsystem-match=drm
did not help.

I also tried to add 
  alias char-major-226 radeon
to a file in /etc/modprobe.d, and also created a device manually by
  mknod /dev/dri/card0 c 226 0

However the device vanished as soon as I started X, and drmOpen still fails.

In the Xorg.0.log there is also the message

(II) RADEONHD(0): Unknown card detected: 0x9596:0x18BC:0x0028.
        If - and only if - your card does not work or does not work optimally
        please contact radeonhd@opensuse.org to help rectify this.
        Use the subject: 0x9596:0x18BC:0x0028: <name of board>
        and *please* describe the problems you are seeing
        in your message.
(--) RADEONHD(0): Detected an RV635 on an unidentified card
(II) RADEONHD(0): Mapped IO @ 0xd0020000 to 0xb7937000 (size 0x00010000)
(II) RADEONHD(0): AGP Card Detected
(II) RADEONHD(0): Getting BIOS copy from legacy VBIOS location
(II) RADEONHD(0): ATOM BIOS Rom:
        SubsystemVendorID: 0x18bc SubsystemID: 0x0028
        IOBaseAddress: 0xc000
        Filename: SV27625.bin
        BIOS Bootup Message:
RX365PA2-F3 S1H

Would it be possible to get 3D accel at least partially working by defining a similar supported RV635 card type in the xorg.conf, and if yes, where can I find a list of suitable similar cards and the definition to put into xorg.conf?

Thanks,

Oswald
Comment 4 Adam K Kirchhoff 2008-10-14 11:18:33 UTC
There is no 2D/3D acceleration for *any* r600 or r700 family cards at the moment.

Comment 5 Corbin Simpson 2008-10-14 11:21:09 UTC
No R600 chipset, including your RV635 (or my RV635!) has 3D or 2D acceleration. We can't include any such acceleration until AMD releases the acceleration documents pertaining to these chipsets.

Since you filed this bug against DRI, and not against RHD, I'm gonna go ahead and mark this invalid. Trust me, you'll hear about it when we get the acceleration going. :3

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.