Oops when reading /proc/dri/0/vm with r128 on Inspiron 4000

From: Dagfinn Ilmari Mannsåker (ilmari@ilm.nlc.no)
Date: Tue Sep 04 2001 - 20:06:49 EST


Hi,

Let me first ask you to please copy me on replies, as I am not subscribed to
the list (but I do browse it via the fa.linux.kernel nntp gateway).

DRI won't work on my Dell Inspiron 4000 with an ATI Rage Mobility M3 graphics
chip. I've tried both 2.4.9 and -ac6. The kernel seems to find the card just
fine, according to dmesg, but /dev/dri/0/ is not created (I'm running devfs).

The dmesg output for the card is:

[drm] AGP 0.99 on Intel 440BX @ 0xf0000000 64MB
[drm] Initialized r128 2.1.6 20010405 on minor 0

X on the other hand, says:

(II) R128(0): Direct rendering disabled

When cat'ing /proc/dri/0/vm I get the following oops, after which all
reading from any file (except name) in /proc/dri/0/ hangs in uninterruptible
sleep until I reboot:

Unable to handle kernel NULL pointer dereference at virtual address 00000000
d09d75a4
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<d09d75a4>]
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010287
eax: 00000000 ebx: 00000032 ecx: ce44e000 edx: c5dce800
esi: cf00df98 edi: ce44e000 ebp: ce44e000 esp: cf00df0c
ds: 0018 es: 0018 ss: 0018
Process cat (pid: 2942, stackpage=cf00d000)
Stack: c5dce800 cf00df98 ce44e000 c5dce820 00000000 c5dce800 d09e0d34 d09e0d37
       d09e0d3b d09e0d3f d09d76f5 ce44e000 cf00df98 00000000 00000400 cf00df94
       c5dce800 c1d1a6e0 00000400 ce44e000 00000400 c014571a ce44e000 cf00df98
Call Trace: [<d09e0d34>] [<d09e0d37>] [<d09e0d3b>] [<d09e0d3f>] [<d09d76f5>]
   [<c014571a>] [<c012e1c6>] [<c0106aeb>]
Code: 8b 38 8b 07 0f 18 00 8b 44 24 14 8b 90 4c 01 00 00 39 d7 0f

>>EIP; d09d75a4 <[r128]r128__vm_info+98/1b4> <=====
Trace; d09e0d34 <[r128].rodata.start+2374/481e>
Trace; d09e0d36 <[r128].rodata.start+2376/481e>
Trace; d09e0d3a <[r128].rodata.start+237a/481e>
Trace; d09e0d3e <[r128].rodata.start+237e/481e>
Trace; d09d76f4 <[r128]r128_vm_info+34/48>
Trace; c014571a <proc_file_read+f2/194>
Trace; c012e1c6 <sys_read+96/cc>
Trace; c0106aea <system_call+32/38>
Code; d09d75a4 <[r128]r128__vm_info+98/1b4>
00000000 <_EIP>:
Code; d09d75a4 <[r128]r128__vm_info+98/1b4> <=====
   0: 8b 38 mov (%eax),%edi <=====
Code; d09d75a6 <[r128]r128__vm_info+9a/1b4>
   2: 8b 07 mov (%edi),%eax
Code; d09d75a8 <[r128]r128__vm_info+9c/1b4>
   4: 0f 18 00 prefetchnta (%eax)
Code; d09d75aa <[r128]r128__vm_info+9e/1b4>
   7: 8b 44 24 14 mov 0x14(%esp,1),%eax
Code; d09d75ae <[r128]r128__vm_info+a2/1b4>
   b: 8b 90 4c 01 00 00 mov 0x14c(%eax),%edx
Code; d09d75b4 <[r128]r128__vm_info+a8/1b4>
  11: 39 d7 cmp %edx,%edi
Code; d09d75b6 <[r128]r128__vm_info+aa/1b4>
  13: 0f 00 00 sldt (%eax)

lspci -vvv output:

01:00.0 VGA compatible controller: ATI Technologies Inc Mobility M3 AGP 2x (rev 02) (prog-if 00 [VGA])
        Subsystem: Dell Computer Corporation: Unknown device 00b0
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 32 (2000ns min), cache line size 08
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at f4000000 (32-bit, prefetchable) [size=64M]
        Region 1: I/O ports at ec00 [size=256]
        Region 2: Memory at fdffc000 (32-bit, non-prefetchable) [size=16K]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [50] AGP version 2.0
                Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
                Command: RQ=0 SBA+ AGP- 64bit- FW- Rate=<none>
        Capabilities: [5c] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

My kernel config is attached.

-- 
Dagfinn I. Mannsåker
GPG Public Key ID: 0x51ECFAC6
Fingerprint:  48BB A64D CE9B 9A06 65DF  395C D42E CDC4 51EC FAC6



- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:29 EST