Subject: drm radeon page fault
To: None <tech-x11@netbsd.org>
From: Jean-Yves Moulin <jym@ldh.org>
List: tech-x11
Date: 04/04/2007 13:22:23
Hello,

I have a kernel page fault when I start X with the use of DRM. kernel
log is:


[drm:pid14460:drm_open] open_count = 0
[drm:pid14460:drm_open_helper] pid = 14460, minor = 0
[drm:pid14460:radeon_driver_open]
[drm:pid14460:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid14460:drm_addmap] 8192 13 0xc0d8b000
[drm:pid14460:drm_addmap] Added map 2 0xc0d8b000/0x2000
[drm:pid14460:drm_addmap] offset = 0xff9f0000, size = 0x00010000, type = 1
[drm:pid14460:drm_ioremap] ioremap mem found: 0xd0900000
[drm:pid14460:drm_addmap] Added map 1 0xff9f0000/0x10000
[drm:pid14460:drm_addmap] offset = 0xf0000000, size = 0x08000000, type = 0
[drm:pid14460:drm_mtrr_add] offset=f0000000 size=134217728
uvm_fault(0xcbc2ce04, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c01c32c8 cs 8 eflags 13246 cr2 c ilevel 0
panic: trap
syncing disks... 3 2 1 1 done



I have a radeon M6 (RV100) PCI detected at boot time:

radeondrm0 at vga0
info: [drm] ATI Radeon LY RV100 Mobility M6 (unit 0)
[drm:pid0:drm_load]
[drm:pid0:radeon_driver_load] PCI card detected
[drm:pid0:drm_ctxbitmap_next] drm_ctxbitmap_next bit : 0
[drm:pid0:drm_ctxbitmap_init] drm_ctxbitmap_init : 0
info: [drm] Initialized radeon 1.25.0 20060524


My cpu is a transmeta crusoe TM5800 who is lacking MTRR. Do you think
this is where the problem come from ? Can we disable the use of MTRR on
the radeon drm driver ?

(I use netbsd-current upated yesterday, modular X.org 7.2 from
x11/xf86-video-ati and the wip/mesa-dri package)

Thank you for your help!

Best regards,
jym