Radeon M7 DRI does not work in Xorg7.1

Paulo J. Matos pocmatos at gmail.com
Wed Jun 7 10:18:15 PDT 2006


On 06/06/06, Dave Airlie <airlied at gmail.com> wrote:
> Have you tried turning pageflip off? and separately tried switching to
> XAA just see??
>

Yes, turning off EXA and pageflip works the first time (this time
without the screen distortion) but if I restart X, it won't start
anymore.

> There is some wierd stuff down further about permission denied on DRM,
> this looks like a wierd situation? where is the ati driver source
> from?

Yes, I'm using radeon driver from 2.6.16 sources, gentoo patched.

Maybe I should try vanilla 2.6.17-rc?

I've diffed the log of xorg the first time I login and the second
time. In the first I have DRI and in the second I don't.

Here they are
$ diff -u Xorg.0.log-gentoo-noexa-noflip-nofast
Xorg.0.log-gentoo-noexa-noflip-nofast-nodri
--- Xorg.0.log-gentoo-noexa-noflip-nofast       2006-06-07
16:57:29.000000000 +0100
+++ Xorg.0.log-gentoo-noexa-noflip-nofast-nodri 2006-06-07
18:10:38.000000000 +0100
@@ -11,7 +11,7 @@
 Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
-(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun  7 16:55:39 2006
+(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun  7 18:08:43 2006
 (==) Using config file: "/etc/X11/xorg.conf"
 (==) ServerLayout "X.org Configured"
 (**) |-->Screen "Screen0" (0)
@@ -540,9 +540,7 @@
 (--) RADEON(0): Linear framebuffer at 0xf0000000
 (II) RADEON(0): AGP card detected
 drmOpenDevice: node name is /dev/dri/card0
-drmOpenDevice: open result is -1, (No such device or address)
-drmOpenDevice: open result is -1, (No such device or address)
-drmOpenDevice: Open failed
+drmOpenDevice: open result is 8, (OK)
 drmOpenByBusid: Searching for BusID pci:0000:01:00.0
 drmOpenDevice: node name is /dev/dri/card0
 drmOpenDevice: open result is 8, (OK)
@@ -721,24 +719,9 @@
 drmOpenDevice: open result is 8, (OK)
 drmOpenByBusid: drmOpenMinor returns 8
 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] added 8192 byte SAREA at 0xe1be0000
-(II) RADEON(0): [drm] mapped SAREA 0xe1be0000 to 0xb7ab7000
-(II) RADEON(0): [drm] framebuffer handle = 0xf0000000
-(II) RADEON(0): [drm] added 1 reserved context for kernel
-(II) RADEON(0): [agp] Mode 0x1f000207 [AGP 0x8086/0x1a30; Card 0x1002/0x4c57]
-(II) RADEON(0): [agp] 8192 kB allocated with handle 0x00000001
-(II) RADEON(0): [agp] ring handle = 0xec000000
-(II) RADEON(0): [agp] Ring mapped at 0xb5873000
-(II) RADEON(0): [agp] ring read ptr handle = 0xec101000
-(II) RADEON(0): [agp] Ring read ptr mapped at 0xb7ab6000
-(II) RADEON(0): [agp] vertex/indirect buffers handle = 0xec102000
-(II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0xb5673000
-(II) RADEON(0): [agp] GART texture map handle = 0xec302000
-(II) RADEON(0): [agp] GART Texture map mapped at 0xb5193000
-(II) RADEON(0): [drm] register handle = 0xe8100000
-(II) RADEON(0): [dri] Visual configs initialized
+(II) RADEON(0): [drm] DRM interface version 1.0
+(II) RADEON(0): [drm] drmSetBusid failed (8, pci:0000:01:00.0),
Permission denied
+(EE) RADEON(0): [dri] DRIScreenInit failed.  Disabling DRI.
 (**) RADEON(0): RADEONInitMemoryMap() :
 (**) RADEON(0):   mem_size         : 0x02000000
 (**) RADEON(0):   agp_size         : 0x0820ff60
@@ -761,44 +744,18 @@
 (**) RADEON(0): Updating display base addresses...
 (**) RADEON(0): Memory map updated.
 (**) RADEON(0): Programming CRTC1, offset: 0x00000000
-(**) RADEON(0): GRPH_BUFFER_CNTL from 20205c5c to 20105c5c
+(**) RADEON(0): GRPH_BUFFER_CNTL from 20205c5c to 200f5c5c
 (**) RADEON(0): RADEONSaveScreen(0)
 (II) RADEON(0): Depth moves disabled by default
 (**) RADEON(0): Setting up initial surfaces
 (**) RADEON(0): Initializing fb layer
 (**) RADEON(0): Setting up accel memmap
-(II) RADEON(0): CP in BM mode
-(II) RADEON(0): Using 8 MB GART aperture
-(II) RADEON(0): Using 1 MB for the ring buffer
-(II) RADEON(0): Using 2 MB for vertex/indirect buffers
-(II) RADEON(0): Using 5 MB for GART textures
 (II) RADEON(0): Memory manager initialized to (0,0) (1408,5957)
 (II) RADEON(0): Reserved area from (0,1050) to (1408,1058)
 (II) RADEON(0): Largest offscreen area available: 1408 x 4899
-(II) RADEON(0): Will use back buffer at offset 0xb58000
-(II) RADEON(0): Will use depth buffer at offset 0x1104000
-(II) RADEON(0): Will use 9472 kb for textures at offset 0x16b0000
 (**) RADEON(0): Initializing backing store
 (==) RADEON(0): Backing store disabled
-(**) RADEON(0): DRI Finishing init !
-(II) RADEON(0): X context handle = 0x1
-(II) RADEON(0): [drm] installed DRM signal handler
-(II) RADEON(0): [DRI] installation complete
-(**) RADEON(0): EngineRestore (32/32)
-(II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
-(II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
-(II) RADEON(0): [drm] dma control initialized, using IRQ 11
-(II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
-(WW) RADEON(0): DRI init changed memory map, adjusting ...
-(WW) RADEON(0):   MC_FB_LOCATION  was: 0xf1fff000 is: 0xf3fff000
-(WW) RADEON(0):   MC_AGP_LOCATION was: 0xffffffc0 is: 0xf47ff400
-(**) RADEON(0): RADEONRestoreMemMapRegisters() :
-(**) RADEON(0):   MC_FB_LOCATION   : 0xf3fff000
-(**) RADEON(0):   MC_AGP_LOCATION  : 0xf47ff400
-(**) RADEON(0): Updating display base addresses...
-(**) RADEON(0): Memory map updated.
-(**) RADEON(0): GRPH_BUFFER_CNTL from 20205c5c to 20105c5c
-(II) RADEON(0): Direct rendering enabled
+(WW) RADEON(0): Direct rendering disabled
 (**) RADEON(0): Setting up final surfaces
 (**) RADEON(0): Initializing Acceleration
 (II) RADEON(0): Render acceleration enabled
@@ -852,15 +809,14 @@
 (II) Initializing built-in extension COMPOSITE
 (II) Initializing built-in extension DAMAGE
 (II) Initializing built-in extension XEVIE
-drmOpenDevice: node name is /dev/dri/card0
-drmOpenDevice: open result is 9, (OK)
-drmOpenByBusid: Searching for BusID pci:0000:01:00.0
-drmOpenDevice: node name is /dev/dri/card0
-drmOpenDevice: open result is 9, (OK)
-drmOpenByBusid: drmOpenMinor returns 9
-drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
-(II) AIGLX: Loaded and initialized /usr/lib/dri/radeon_dri.so
-(II) GLX: Initialized DRI GL provider for screen 0
+(EE) AIGLX: Screen 0 is not DRI capable
+(II) Loading local sub module "GLcore"
+(II) LoadModule: "GLcore"
+(II) Loading /usr/lib/xorg/modules/extensions/libGLcore.so
+(II) Module GLcore: vendor="X.Org Foundation"
+       compiled for 7.1.0, module version = 1.0.0
+       ABI class: X.Org Server Extension, version 0.3
+(II) GLX: Initialized MESA-PROXY GL provider for screen 0
 (II) Synaptics touchpad driver version 0.14.4 (1404)
 Touchpad no synaptics event device found (checked 12 nodes)
 (**) Option "Device" "/dev/input/event2"
@@ -903,4 +859,38 @@
 (II) Mouse0: ps2EnableDataReporting: succeeded
 (**) RADEON(0): RADEONSaveScreen(2)
 (**) RADEON(0): RADEONSaveScreen(2)
-(II) 3rd Button detected: disabling emulate3Button
+(**) RADEON(0): RADEONLeaveVT
+(**) RADEON(0): RADEONRestore
+(**) RADEON(0): RADEONRestoreMode()
+(**) RADEON(0): RADEONRestoreMode(0x8210088)
+(**) RADEON(0): RADEONRestoreMemMapRegisters() :
+(**) RADEON(0):   MC_FB_LOCATION   : 0x1fff0000
+(**) RADEON(0):   MC_AGP_LOCATION  : 0x27ff2000
+(**) RADEON(0):   Map Changed ! Applying ...
+(**) RADEON(0):   Map applied, resetting engine ...
+(**) RADEON(0): Updating display base addresses...
+(**) RADEON(0): Memory map updated.
+(**) RADEON(0): Programming CRTC1, offset: 0x00000000
+(**) RADEON(0): Ok, leaving now...
+(II) Open ACPI successful (/var/run/acpid.socket)
+(**) RADEON(0): RADEONEnterVT
+(**) RADEON(0): RADEONModeInit()
+1400x1050     108.00  1400 34208 34320 1688  1050 1050 1053 1066 (24,32)
+1400x1050     108.00  1400 34208 34320 1688  1050 1050 1053 1066 (24,32)
+(**) RADEON(0): Pitch = 11534512 bytes (virtualX = 1400, displayWidth = 1408)
+(II) RADEON(0): BIOS HotKeys Disabled
+(**) RADEON(0): RADEONInit returns 0x8210a38
+(**) RADEON(0): RADEONRestoreMode()
+(**) RADEON(0): RADEONRestoreMode(0x8210a38)
+(**) RADEON(0): RADEONRestoreMemMapRegisters() :
+(**) RADEON(0):   MC_FB_LOCATION   : 0xf1fff000
+(**) RADEON(0):   MC_AGP_LOCATION  : 0xffffffc0
+(**) RADEON(0):   Map Changed ! Applying ...
+(**) RADEON(0):   Map applied, resetting engine ...
+(**) RADEON(0): Updating display base addresses...
+(**) RADEON(0): Memory map updated.
+(**) RADEON(0): Programming CRTC1, offset: 0x00000000
+(**) RADEON(0): GRPH_BUFFER_CNTL from 20205c5c to 200f5c5c
+(**) RADEON(0): EngineRestore (32/32)
+(**) RADEON(0): RADEONSaveScreen(2)
+(II) Mouse0: ps2EnableDataReporting: succeeded

It seems the second time it could not open drm. Any ideas on why?


>
> Dave.
>


-- 
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group



More information about the xorg mailing list