I have a new ibook with an ATI Mobility Radeon 9550 card and  
want to help the r300 project testing the driver. I have compiled  
the patched x server and the mesa drivers from cvs. I also have  
compiled radeon.ko from the drm cvs of the dri project.

With the help of Vladimir Dergachev (aka volodya), the r300 driver, I made the 
radeon.ko driver see mi card by adding my it to drm_pciids.txt. I attach the 
patch.

It seems that there is a problem with agp when x starts. Vladimir thinks that 
it is related to powerpc and told me to post here. This are the 
important parts of the logs:

/var/log/Xorg.0.log
===========
WW) RADEON(0): Direct rendering support is highly experimental for Radeon 
9500/9700 and newer cards
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:10.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:00:10.0
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:00:10.0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xe2111000
(II) RADEON(0): [drm] mapped SAREA 0xe2111000 to 0x320cc000
(II) RADEON(0): [drm] framebuffer handle = 0x98000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [agp] Mode 0x07000201 [AGP 0x106b/0x0034; Card 0x1002/0x4e56]
(II) RADEON(0): [agp] 8192 kB allocated with handle 0x00000001
(EE) RADEON(0): [agp] Could not add ring mapping
(EE) RADEON(0): [agp] AGP failed to initialize. Disabling the DRI.
(II) RADEON(0): [agp] You may want to make sure the agpgart kernel module
is loaded before the radeon kernel module.
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xe2111000 at 0x320cc000
(II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)
(II) RADEON(0): Reserved area from (0,768) to (1024,770)
(II) RADEON(0): Largest offscreen area available: 1024 x 7421
(II) RADEON(0): Render acceleration unsupported on Radeon 9500/9700 and newer.
(II) RADEON(0): Render acceleration disabled

dmesg:
=====

when the agpgart, drm and radeon are loaded:

Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected Apple UniNorth 2 chipset
agpgart: configuring for size idx: 4
agpgart: AGP aperture is 16M @ 0x0
[drm] Initialized drm 1.0.0 20040925
[drm] Initialized radeon 1.17.0 20050720 on minor 0: ATI Technologies Inc M11 
NV [FireGL Mobility T2e]
[drm] Used old pci detect: framebuffer loaded

when x starts:

agpgart: Putting AGP V2 device at 0000:00:0b.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:00:10.0 into 1x mode
[drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held, held  0 
owner 00000000 df990260
[drm:drm_unlock] *ERROR* Process 6134 using kernel context 0


I have this in /etc/modules to make sure that the modules load in the correct 
order:

agpgart
uninorth-agp
radeon

And so they are listed in lsmod, where modules are listed in inverse order:

radeon                121508  0
drm                    88924  1 radeon
uninorth_agp           10920  1
agpgart                38844  2 drm,uninorth_agp

I have also tested loading drm with debugging enabled, but it throws a lot of 
logs and i think that the important error is that in radeon_cp_init. If you 
think that debugging log will be useful, don't hesitate in saying so.

This is all the information I can gather, I hope that it will be enough.

PS: drm drivers are compiled from drm project cvs and the kernel is 2.6.12
--- drm_pciids.txt	2005-09-07 16:36:55.000000000 +0200
+++ drm_pciids.txt	2005-09-07 16:38:52.000000000 +0200
@@ -42,6 +42,7 @@
 0x1002 0x4E50 CHIP_RV350|CHIP_IS_MOBILITY "ATI Radeon RV300 Mobility 9600 M10"
 0x1002 0x4E51 CHIP_RV350|CHIP_IS_MOBILITY "ATI Radeon RV350 Mobility 9600 M10 NQ"
 0x1002 0x4E54 CHIP_RV350|CHIP_IS_MOBILITY "ATI Radeon FireGL T2 128"
+0x1002 0x4E56 CHIP_RV350|CHIP_IS_MOBILITY "ATI Radeon FireGL Mobility T2e"
 0x1002 0x5144 CHIP_R100|CHIP_SINGLE_CRTC "ATI Radeon QD R100"
 0x1002 0x5145 CHIP_R100|CHIP_SINGLE_CRTC "ATI Radeon QE R100"
 0x1002 0x5146 CHIP_R100|CHIP_SINGLE_CRTC "ATI Radeon QF R100"

Attachment: pgpTgaZJQnDPc.pgp
Description: PGP signature

Reply via email to