Subject: Radeon 9600 RV350 AP DRI/drm Problem and Information
To: None <tech-x11@netbsd.org>
From: Art Lemasters <develunix@gmail.com>
List: tech-x11
Date: 05/21/2007 19:06:12
   I don't see any problem in the logs (below), probably
for lack of experience. The problem is that some of the X
graphics are missing and others (menus, for example) stay
on the screen after they should have disappeared. The xdm
login screen only shows partially along with premature
parts of an enlightenment root window. Login works, but I
simply see an unusable mess before and after logging in.
...no other symptoms that I know of. Starting an eterm (which
I can't see and blindly typing
sudo shutdown -r now
does reboot the system).

* xdm with Enlightenment.

* current kernel, src and xsrc from 4.99.20, May 20 (system
locks up--except for ability to switch between consoles--
while trying to build tools. ...built tools, kernel and system
with the 4.0 kernel).

* Radeon 9600 RV350 AP

* ABIT NF7-S2G (NForce Ultra 400 w/ Athlon XP 3000+)

* Used Blair's libX11 patch and modular-xorg Makefile.

Do you have any advice for getting further diagnostics
that I can get and send to you?

   Here are excerpts from messages and the xorg log. ...hope
that this will help with development, and let me know if I
can get more info for you. Please CC replies to me, as I'm
not subscribed to tech-x11 for now (watching tech-pkg for
development study purposes instead).


Art


$dmesg

May 21 17:43:10 hun /netbsd: agp at pchb0 not configured

[...]

May 21 17:43:10 hun /netbsd: vga0 at pci2 dev 0 function 0: ATI 
Technologies Radeon 9600 AP (rev. 0x00)
May 21 17:43:10 hun /netbsd: wsdisplay0 at vga0 kbdmux 1: console 
(80x25, vt100 emulation), using wskbd0
May 21 17:43:10 hun /netbsd: wsmux1: connecting to wsdisplay0
May 21 17:43:10 hun /netbsd: radeondrm0 at vga0
May 21 17:43:10 hun /netbsd: info: [drm] ATI Radeon AP 9600 (unit 0)
May 21 17:43:10 hun /netbsd: [drm:pid0:drm_load]
May 21 17:43:10 hun /netbsd: [drm:pid0:radeon_driver_load] AGP card detected
May 21 17:43:10 hun /netbsd: [drm:pid0:drm_agp_init] agp_available = 0
May 21 17:43:10 hun /netbsd: [drm:pid0:drm_ctxbitmap_next] 
drm_ctxbitmap_next bit : 0
May 21 17:43:10 hun /netbsd: [drm:pid0:drm_ctxbitmap_init] 
drm_ctxbitmap_init : 0
May 21 17:43:10 hun /netbsd: info: [drm] Initialized radeon 1.25.0 20060524
May 21 17:43:10 hun /netbsd: ATI Technologies product 0x4170 
(miscellaneous display) at pci2 dev 0 function 1 not configured

[I can also post DRM_DEBUG messages, if that would be helpful.]


$less Xorg.0.log.old

Excerpts:

[...]

(II) LoadModule: "dri"
(II) Loading /usr/pkg/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 7.2.0, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.3
(II) Loading extension XFree86-DRI
(II) LoadModule: "glx"
(II) Loading /usr/pkg/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
	compiled for 7.2.0, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.3
(**) AIGLX disabled
(II) Loading extension GLX

[...]

(--) PCI:*(1:0:0) ATI Technologies Inc RV350 AP [Radeon 9600] rev 0, Mem 
@ 0xc0000000/28, 0xe9030000/16, I/O @ 0xa000/8
(--) PCI: (1:0:1) ATI Technologies Inc RV350 AP [Radeon 9600] 
(Secondary) rev 0, Mem @ 0xd0000000/28, 0xe9020000/16

[...]

(II) Primary Device is: PCI 01:00:0
(II) ATI:  Candidate "Device" section "Card0".
(WW) RADEON: No matching Device section for instance (BusID PCI:1:0:1) found
(--) Chipset ATI Radeon 9600 AP (AGP) found

[...]

(II) RADEON(0): PCI bus 1 card 0 func 0
(==) RADEON(0): Depth 24, (==) framebuffer bpp 32
(II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) RADEON(0): Default visual is TrueColor
(**) RADEON(0): Option "BusType" "PCI"
(**) RADEON(0): Option "GARTSize" "64"
(**) RADEON(0): Option "MonitorLayout" "TMDS,NONE"

[...]

(--) RADEON(0): Chipset: "ATI Radeon 9600 AP (AGP)" (ChipID = 0x4150)
(--) RADEON(0): Linear framebuffer at 0xc0000000
(II) RADEON(0): AGP card detected
(**) RADEON(0): Forced into PCI mode
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (Device not configured)
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): [dri] Found DRI library version 1.3.0 and kernel module 
version 1.25.0

[...]

(==) RADEON(0): Using 24 bit depth buffer
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] added 8192 byte SAREA at 0xc1d34000
(II) RADEON(0): [drm] mapped SAREA 0xc1d34000 to 0xbb872000
(II) RADEON(0): [drm] framebuffer handle = 0xc0000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [pci] 65536 kB allocated with handle 0x00000000

[...]

(II) RADEON(0): Using 64 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 61 MB for GART textures

[...]

(**) 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 12
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 62914560
(II) RADEON(0): Direct rendering enabled

[...]

(II) Loading local sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/pkg/lib/xorg/modules/extensions//libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
	compiled for 7.2.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

[...and the end of the file follows.]

(**) RADEON(0): Disposing accel...
(**) RADEON(0): Disposing cusor info
(**) RADEON(0): Disposing DGA
(**) RADEON(0): Unmapping memory
(**) RADEON(0): RADEONDRICloseScreen
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xc1d34000 at 0xbb872000