Subject: No DRM on Radeon X850
To: None <tech-x11@netbsd.org>
From: Arto Huusko <arto.huusko@pp2.inet.fi>
List: tech-x11
Date: 03/31/2007 16:37:00
This is a multi-part message in MIME format.
--------------020306050405000502010007
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello,

I tried to test DRM on Radeon X850 Pro, but unfortunately it did not
work. I got the impression that it is supported by r300 driver
(from http://megahurts.dk/rune/r300_status.html).

Here's the hardware info:

agp0 at pchb0 (v3): aperture at 0xf8000000, size 0xf000000
radeondrm0 at vga0
info: [drm] ATI Radeon R481 X850 Pro (unit 0)
info: [drm] AGP at 0xf8000000 64MB
info: [drm] Initialized radeon 1.25.0 20060524

kernel sources from 20070331.

When I start X with "Load "dri"" in the modules section, the system
just hangs (with no signal on monitor). Even though I had
(sleep 60; shutdown -r) running in the background and ddb.onpanic=0,
the machine wouldn't reboot, so apparently it locked up. And of course
there's no Xorg.log.

DRM_DEBUG output I have in dmesg before reset is attached.

X11 device config is simply:

Section "Device"
        Identifier      "Card0"
        Driver          "radeon"
        Option          "MergedFB" "false"
EndSection


By the way, how can I get glxinfo, glxgears, etc. built? After I
installed mesa-dri from pkgsrc, I couldn't compile MesaDemos
because mesa-dri does not install libOSMesa.

--------------020306050405000502010007
Content-Type: text/plain;
 name="drmdebug.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="drmdebug.txt"

88:drm_close] open_count = 1
[drm:pid688:drm_close] setting priv->refs 1 to 1
[drm:pid688:drm_close] setting open_count 1 to 1
[drm:pid688:drm_close_pid] pid = 688, device = 0xc1727800, open_count = 1
[drm:pid688:drm_lastclose] 
[drm:pid688:radeon_do_cleanup_cp] 
[drm:pid688:drm_lastclose] 
[drm:pid688:drm_open] open_count = 0
[drm:pid688:drm_open_helper] pid = 688, minor = 0
[drm:pid688:radeon_driver_open] 
[drm:pid688:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid688:drm_addmap] 8192 13 0xc15e8000
[drm:pid688:drm_addmap] Added map 2 0xc15e8000/0x2000
[drm:pid688:drm_addmap] offset = 0xdf000000, size = 0x00010000, type = 1
[drm:pid688:drm_ioremap] ioremap mem found: 0xcce90000
[drm:pid688:drm_addmap] Added map 1 0xdf000000/0x10000
[drm:pid688:drm_addmap] offset = 0xf0000000, size = 0x08000000, type = 0
[drm:pid688:drm_mtrr_add] offset=f0000000 size=134217728
[drm:pid688:drm_addmap] Added map 0 0xf0000000/0x8000000
[drm:pid688:drm_firstopen] 
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0106407, nr=0x07, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0086401, nr=0x01, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0086401, nr=0x01, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0106407, nr=0x07, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0186415, nr=0x15, dev 0xc1727800, auth=1
[drm:pid688:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid688:drm_addmap] Found kernel map 2
[drm:pid688:drm_addmap] Added map 2 0xc15e8000/0x2000
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0186415, nr=0x15, dev 0xc1727800, auth=1
[drm:pid688:drm_addmap] offset = 0xf0000000, size = 0x08000000, type = 0
[drm:pid688:drm_addmap] Found kernel map 0
[drm:pid688:drm_addmap] Added map 0 0xf0000000/0x8000000
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0086426, nr=0x26, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0086426, nr=0x26, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x20006430, nr=0x30, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x40206433, nr=0x33, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x40206433, nr=0x33, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x40206433, nr=0x33, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x80046432, nr=0x32, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0106434, nr=0x34, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x80086436, nr=0x36, dev 0xc1727800, auth=1
[drm:pid688:drm_agp_bind] agp_bind, page_size=1000
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0186415, nr=0x15, dev 0xc1727800, auth=1
[drm:pid688:drm_addmap] offset = 0x00000000, size = 0x00101000, type = 3
[drm:pid688:drm_addmap] Added map 3 0xf8000000/0x101000
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0186415, nr=0x15, dev 0xc1727800, auth=1
[drm:pid688:drm_addmap] offset = 0x00101000, size = 0x00001000, type = 3
[drm:pid688:drm_addmap] Added map 3 0xf8101000/0x1000
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0186415, nr=0x15, dev 0xc1727800, auth=1
[drm:pid688:drm_addmap] offset = 0x00102000, size = 0x00200000, type = 3
[drm:pid688:drm_addmap] Added map 3 0xf8102000/0x200000
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0186415, nr=0x15, dev 0xc1727800, auth=1
[drm:pid688:drm_addmap] offset = 0x00302000, size = 0x004e0000, type = 3
[drm:pid688:drm_addmap] Added map 3 0xf8302000/0x4e0000
[drm:pid688:drm_ioctl] pid=688, cmd=0x40206433, nr=0x33, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0186415, nr=0x15, dev 0xc1727800, auth=1
[drm:pid688:drm_addmap] offset = 0xdf000000, size = 0x00010000, type = 1
[drm:pid688:drm_addmap] Found kernel map 1
[drm:pid688:drm_addmap] Added map 1 0xdf000000/0x10000
[drm:pid688:drm_ioctl] pid=688, cmd=0x800c6459, nr=0x59, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0086420, nr=0x20, dev 0xc1727800, auth=1
[drm:pid688:drm_ctxbitmap_next] drm_ctxbitmap_next bit : 1
[drm:pid688:drm_addctx] 1
[drm:pid688:drm_ioctl] pid=688, cmd=0x80086422, nr=0x22, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x8008642a, nr=0x2a, dev 0xc1727800, auth=1
[drm:pid688:drm_lock] 1 (pid 688) requests lock (0x00000000), flags = 0x00000000
[drm:pid688:drm_lock] 1 has lock
[drm:pid688:drm_ioctl] pid=688, cmd=0x8004667d, nr=0x7d, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x8004667c, nr=0x7c, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x80546440, nr=0x40, dev 0xc1727800, auth=1
[drm:pid688:radeon_do_init_cp] 
[drm:pid688:drm_ioremap] ioremap agp mem found: 0xcd6a0000
[drm:pid688:drm_ioremap] ioremap agp mem found: 0xcccc9000
[drm:pid688:drm_ioremap] ioremap agp mem found: 0xcd7a1000
info: [drm] Setting GART location based on new memory map
[drm:pid688:radeon_do_init_cp] dev_priv->gart_size 8388608
[drm:pid688:radeon_do_init_cp] dev_priv->gart_vm_start 0xf8000000
[drm:pid688:radeon_do_init_cp] dev_priv->gart_buffers_offset 0xf8102000
[drm:pid688:radeon_cp_load_microcode] 
info: [drm] Loading R300 Microcode
[drm:pid688:radeon_do_engine_reset] 
[drm:pid688:radeon_do_cp_reset] 
info: [drm] writeback test failed
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0186416, nr=0x16, dev 0xc1727800, auth=1
[drm:pid688:drm_do_addbufs_agp] count:      32
[drm:pid688:drm_do_addbufs_agp] order:      16
[drm:pid688:drm_do_addbufs_agp] size:       65536
[drm:pid688:drm_do_addbufs_agp] agp_offset: 0xf8102000
[drm:pid688:drm_do_addbufs_agp] alignment:  65536
[drm:pid688:drm_do_addbufs_agp] page_order: 4
[drm:pid688:drm_do_addbufs_agp] total:      65536
[drm:pid688:drm_do_addbufs_agp] byte_count: 2097152
[drm:pid688:drm_do_addbufs_agp] dma->buf_count : 32
[drm:pid688:drm_do_addbufs_agp] entry->buf_count : 32
[drm:pid688:drm_ioctl] pid=688, cmd=0xc00c6419, nr=0x19, dev 0xc1727800, auth=1
[drm:pid688:drm_mapbufs] 32 buffers, retcode = 0
[drm:pid688:drm_ioctl] pid=688, cmd=0xc00c6419, nr=0x19, dev 0xc1727800, auth=1
[drm:pid688:drm_mapbufs] mmap bba00000/2097152
[drm:pid688:drm_mapbufs] 32 buffers, retcode = 0
[drm:pid688:drm_ioctl] pid=688, cmd=0xc0106403, nr=0x03, dev 0xc1727800, auth=1
[drm:pid688:drm_irq_by_busid] 1:0:0 => IRQ 11
[drm:pid688:drm_ioctl] pid=688, cmd=0x80086414, nr=0x14, dev 0xc1727800, auth=1
[drm:pid688:drm_irq_install] drm_irq_install: irq=11
radeondrm0: interrupting at ioapic0 pin 16 (irq 11)
[drm:pid688:drm_ioctl] pid=688, cmd=0x800c6455, nr=0x55, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl] pid=688, cmd=0x20006441, nr=0x41, dev 0xc1727800, auth=1
[drm:pid688:radeon_cp_start] 
[drm:pid688:radeon_do_cp_start] 
[drm:pid688:drm_ioctl] pid=688, cmd=0x800c6459, nr=0x59, dev 0xc1727800, auth=1
[drm:pid688:radeon_cp_setparam] color tiling enabled
[drm:pid688:drm_ioctl] pid=688, cmd=0x8004645b, nr=0x5b, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl]     returning 22
[drm:pid688:drm_ioctl] pid=688, cmd=0x8004645b, nr=0x5b, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl]     returning 22
[drm:pid688:drm_ioctl] pid=688, cmd=0x8004645b, nr=0x5b, dev 0xc1727800, auth=1
[drm:pid688:drm_ioctl]     returning 22
[drm:pid688:drm_ioctl] pid=688, cmd=0x800c645a, nr=0x5a, dev 0xc1727800, auth=1
[drm:pid688:radeon_do_cp_idle] 

--------------020306050405000502010007--