On Tue, Jul 21, 2009 at 2:56 AM, Steven Noonan<ste...@uplinklabs.net> wrote:
> On Mon, Jul 20, 2009 at 10:07 PM, Steven Noonan<ste...@uplinklabs.net> wrote:
>> Hi folks,
>>
>> I'm getting a kernel panic when trying to run the latest git version
>> of drm. I built it following the instructions from here:
>> http://dri.freedesktop.org/wiki/Building
>>
>> It's a very very predictable panic. Log in, 'startx', exit X11, and
>> then after a couple seconds, panic.
>>
>> I unfortunately can't get a text version of the panic log, but I do
>> have a photo: http://twitpic.com/b2yva
>>
>> Any ideas? More importantly, am I excluding any important information
>> to help debug the issue?
>
> It turns out that the problem is one of the RADEON_READs in
> radeon_get_vblank_counter(). For some reason, the function is being
> called after dev_priv->mmio is set to NULL, and when the pointer is
> dereferenced, hell breaks loose.
>
> So what's the proper fix for this? Another assertion with a DRM_ERROR
> like the other two in that function, and then a quest to find why
> radeon_get_vblank_counter() is called so late?
>

I added a DRM_ERROR in radeon_get_vblank_counter() to get past that
bomb, and now I'm getting this oops when I unload/reload radeon.ko:

[  345.849948] [drm:drm_init]
[  345.854212] [drm:drm_get_dev]
[  345.856104] pci 0000:01:00.0: setting latency timer to 64
[  345.858333] [drm:drm_get_minor]
[  345.860426] [drm:drm_get_minor] new minor assigned 0
[  345.860854] BUG: unable to handle kernel NULL pointer dereference at 0000034c
[  345.860862] IP: [<f8d5112d>] dri_library_name+0x1d/0x80 [radeon]
[  345.860877] *pde = 00000000
[  345.860882] Oops: 0000 [#1] SMP
[  345.860887] last sysfs file:
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0/dri_library_name
[  345.860892] Modules linked in: radeon(+) drm fuse snd_seq_dummy
snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss
snd_mixer_oss tun hid_apple snd_hda_codec_idt usbhid appletouch
snd_hda_intel ath9k mac80211 snd_hda_codec snd_hwdep snd_pcm uhci_hcd
ehci_hcd usbcore ohci1394 snd_timer cfg80211 snd ieee1394 applesmc
sky2 hwmon iTCO_wdt soundcore snd_page_alloc [last unloaded: radeon]
[  345.860943]
[  345.860949] Pid: 4713, comm: hald Not tainted (2.6.30.2 #1) MacBookPro2,2
[  345.860954] EIP: 0060:[<f8d5112d>] EFLAGS: 00010246 CPU: 1
[  345.860963] EIP is at dri_library_name+0x1d/0x80 [radeon]
[  345.860967] EAX: 00000000 EBX: f8d51110 ECX: 00000000 EDX: f492a000
[  345.860972] ESI: f8d700e0 EDI: fb570140 EBP: f58d3ee0 ESP: f58d3ecc
[  345.860976]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[  345.860982] Process hald (pid: 4713, ti=f58d2000 task=f5b3d820
task.ti=f58d2000)
[  345.860985] Stack:
[  345.860988]  00000001 f58d3edc 00000000 00000000 90dda7c3 f58d3f04
fb570174 00000000
[  345.861000]  c09b0d00 c0355730 f48be134 90dda7c3 fb57c7f4 fffffffb
f58d3f1c c05f6da5
[  345.861012]  90dda7c3 f48be100 f58d3f90 c099c240 f58d3f58 c035578f
f58d3f58 c02f3fc4
[  345.861024] Call Trace:
[  345.861028]  [<fb570174>] ? show_dri+0x34/0x80 [drm]
[  345.861049]  [<c0355730>] ? sysfs_read_file+0x40/0x150
[  345.861060]  [<c05f6da5>] ? dev_attr_show+0x35/0x70
[  345.861069]  [<c035578f>] ? sysfs_read_file+0x9f/0x150
[  345.861076]  [<c02f3fc4>] ? rw_verify_area+0x74/0x100
[  345.861085]  [<c02f4f23>] ? vfs_read+0xc3/0x1a0
[  345.861092]  [<c03556f0>] ? sysfs_read_file+0x0/0x150
[  345.861099]  [<c02f510d>] ? sys_read+0x5d/0xb0
[  345.861106]  [<c026f996>] ? trace_hardirqs_on_caller+0x26/0x1b0
[  345.861115]  [<c020345b>] ? sysenter_do_call+0x12/0x32
[  345.861123] Code: ec 4e c7 8d 74 26 00 8d bc 27 00 00 00 00 55 89
e5 83 ec 14 0f 1f 44 00 00 65 8b 0d 14 00 00 00 89 4d fc 31 c9 8b 80
e4 03 00 00 <0f> b7 88 4c 03 00 00 b8 08 a8 d6 f8 83 f9 04 7e 10 83 f9
09 b8
[  345.861183] EIP: [<f8d5112d>] dri_library_name+0x1d/0x80 [radeon]
SS:ESP 0068:f58d3ecc
[  345.861195] CR2: 000000000000034c
[  345.861201] ---[ end trace 1bc685056b5d9e7b ]---
[  346.020693] [drm:radeon_driver_load] PCIE card detected
[  346.022859] [drm] Initialized radeon 1.29.0 20080613 on minor 0
[  346.023370] [drm] Used old pci detect: framebuffer loaded


And then I tried to unload it, and rmmod hung itself:

[  409.678654] [drm:drm_exit]
[  409.680536] [drm:drm_cleanup]
[  409.682418] [drm:drm_lastclose]
[  409.682424] [drm:radeon_do_cleanup_cp]
[  409.682428] [drm:drm_lastclose] driver lastclose completed
[  409.682435] [drm:drm_lastclose] lastclose completed
[  409.682441] [drm:radeon_driver_unload]
[  409.682455] [drm:drm_put_minor] release secondary minor 0

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to