Bug 4116

Summary: DRM CVS: (II) RADEON(0): [drm] drmAddMap failed, Direct Rendering Disabled.
Product: DRI Reporter: Samuli Suominen <drac>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: high    
Version: XOrg git   
Hardware: x86 (IA32)   
OS: Linux (All)   
URL: http://hdr.unk.fi/~drac/drm.txt
Whiteboard:
i915 platform: i915 features:

Description Samuli Suominen 2005-08-16 14:58:16 UTC
r200 card, 9200 Pro. X.org 7.0rc0. GCC 3.4.4. Gentoo. No utterly crazy CFLAGS, 
only -O3 -pipe -march=athlon-xp. Got DRM CVS today, to use it with
Linux 2.6.13-rc6-git8, and I got this:

drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: drmOpenMinor returns 5
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:01:00.0"
(II) RADEON(0): [drm] drmAddMap failed
(EE) RADEON(0): [dri] DRIScreenInit failed.  Disabling DRI.

And yes, it is normally working. Switched back to modules from my kernel
version and got DRI back up.

Full Xorg.0.log in http://hdr.unk.fi/~drac/drm.txt

And don't get confused by errors by Multimedia -modules, I had to remove them
cause with them, X kills whole machine (hardlockup). This didn't happen with 6.
9RC0 tarball. But they shouldn't effect DRI in anyway, since it is working now 
with DRM from Kernel version ?
Comment 1 Dave Airlie 2005-08-16 16:14:58 UTC
Is that a 64-bit machine? what type of kernel / userspace are you running?

Can you try changing the drm_handle_t in shared-core/drm.h to unsigned int and
rebuilding the DRM and seeing if it works...

Comment 2 Samuli Suominen 2005-08-17 01:46:37 UTC
(In reply to comment #1)
> Is that a 64-bit machine? what type of kernel / userspace are you running?

No, it's same as my -march, Athlon-XP 2200+ 32bit. Vanilla kernel from
www.kernel.org, no patches, no additional modules.

http://hdr.unk.fi/~drac/config-2.6.13-rc6-git8 is my config.

> 
> Can you try changing the drm_handle_t in shared-core/drm.h to unsigned int and
> rebuilding the DRM and seeing if it works...
> 
> 

If you meaned change it from long, to int.. and try again, i've done and
nothing is changed. Still (II) RADEON(0): [drm] drmAddMap failed
Comment 3 Dave Airlie 2005-08-17 03:51:11 UTC
ah I found it, I reverted part of another patch when I merged the 32/64 bit patch

I was half asleep last night when I did it, please check latest CVS and close
this if it works.

Comment 4 Samuli Suominen 2005-08-17 10:17:10 UTC
(In reply to comment #3)
> ah I found it, I reverted part of another patch when I merged the 32/64 bit 
patch
> 
> I was half asleep last night when I did it, please check latest CVS and close
> this if it works.
> 
> 

Indeed, you got it. It's fixed. I'm closing this one.

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.