Bug 10930

Summary: Oops on reboot with two Radeons
Product: Drivers Reporter: Ondrej Zary (linux)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: CLOSED OBSOLETE    
Severity: normal CC: airlied, alan, diegocg
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.25 Subsystem:
Regression: No Bisected commit-id:

Description Ondrej Zary 2008-06-17 01:03:01 UTC
Distribution: Debian unstable

Hardware Environment: x86_64, Radeon X1650Pro PCI-E, Radeon 7000 PCI

Software Environment: Debian unstable

Problem Description:
When I run X on both Radeons (X1650Pro with radeonhd driver, R7000 with radeon driver), the following Oops appears when I issue a reboot command (it reboots successfully after that). When I run X on either of the cards separately, the Oops does not appear.

[  576.915955] BUG: unable to handle kernel paging request at ffffc20001e90ffc
[  576.915961] IP: [<ffffffff8849a7ba>] :radeon:radeon_do_cp_idle+0x9a/0x16f
[  576.915976] PGD 3f92f067 PUD 3f930067 PMD 38180067 PTE 0
[  576.915980] Oops: 0002 [1] SMP
[  576.915983] CPU 0
[  576.915984] Modules linked in: radeon drm ppdev parport_pc lp parport ipv6 sbs video output container ac battery sbshc wmi acpi_cpufreq cpufreq_stats cpufreq_conservative cpufreq_userspace cpufreq_ondemand freq_table cpufreq_powersave rfkill_input coretemp w83627ehf hwmon_vid loop firewire_sbp2 arc4 ecb crypto_blkcipher b43 snd_usb_audio rfkill snd_usb_lib joydev mac80211 snd_seq_dummy snd_hda_intel snd_seq_oss snd_pcm_oss snd_mixer_oss cfg80211 snd_seq_midi snd_seq_midi_event i2c_i801 snd_pcm snd_seq rng_core pcspkr i2c_core input_polldev snd_rawmidi led_class iTCO_wdt snd_timer snd_seq_device microdia snd_hwdep compat_ioctl32 snd soundcore videodev v4l1_compat snd_page_alloc usbtouchscreen button intel_agp evdev ext3 jbd mbcache raid1 md_mod ide_disk ide_cd_mod cdrom sd_mod ide_pci_generic jmicron ide_core ata_piix floppy firewire_ohci ssb firewire_core pcmcia crc_itu_t pcmcia_core firmware_class ata_generic ahci atl1 mii libata scsi_mod dock ehci_hcd uhci_hcd thermal processor fan
[  576.916052] Pid: 3893, comm: Xorg Not tainted 2.6.25-2-amd64 #1
[  576.916054] RIP: 0010:[<ffffffff8849a7ba>]  [<ffffffff8849a7ba>] :radeon:radeon_do_cp_idle+0x9a/0x16f
[  576.916061] RSP: 0018:ffff810036f07c28  EFLAGS: 00013246
[  576.916063] RAX: 0000000000000000 RBX: ffff81003d02f400 RCX: 000000000003ffff
[  576.916066] RDX: ffffffffffffffff RSI: ffffc20001e91000 RDI: ffff81003d02f400
[  576.916068] RBP: 0000000000000000 R08: ffff81003d02f5f8 R09: 0000000000000000
[  576.916070] R10: 0000000000000000 R11: ffffffff802d2bf5 R12: ffff81003e07e2c0
[  576.916072] R13: ffff81003e07e2c0 R14: ffff81003f9b6580 R15: 0000000000000000
[  576.916075] FS:  00007f0b8265a6e0(0000) GS:ffffffff80520000(0000) knlGS:0000000000000000
[  576.916077] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  576.916079] CR2: ffffc20001e90ffc CR3: 0000000033ca7000 CR4: 00000000000006e0
[  576.916081] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  576.916083] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  576.916086] Process Xorg (pid: 3893, threadinfo ffff810036f06000, task ffff81003dba43c0)
[  576.916088] Stack:  ffff81003d02f400 ffffffff8849ba3d ffff81003ce01630 ffff81003d02f400
[  576.916093]  0000000000000000 ffffffff8849bb49 0000000000000000 ffffffff8849f395
[  576.916097]  0000000000000008 ffff81003e4c7800 ffff81003e49b118 ffffffff884830ed
[  576.916100] Call Trace:
[  576.916111]  [<ffffffff8849ba3d>] :radeon:radeon_apply_surface_regs+0x1d/0x83
[  576.916119]  [<ffffffff8849bb49>] :radeon:free_surface+0xa6/0xc2
[  576.916126]  [<ffffffff8849f395>] :radeon:radeon_driver_preclose+0x59/0x6b
[  576.916142]  [<ffffffff884830ed>] :drm:drm_release+0x62/0x418
[  576.916153]  [<ffffffff8029b403>] __fput+0xa1/0x16c
[  576.916158]  [<ffffffff80298c73>] filp_close+0x5d/0x65
[  576.916165]  [<ffffffff80236dd6>] put_files_struct+0x66/0xc4
[  576.916172]  [<ffffffff8023802c>] do_exit+0x274/0x6b4
[  576.916181]  [<ffffffff802384e2>] do_group_exit+0x76/0x91
[  576.916187]  [<ffffffff80240089>] get_signal_to_deliver+0x2d9/0x309
[  576.916193]  [<ffffffff8020b1c9>] do_notify_resume+0xb2/0x804
[  576.916199]  [<ffffffff8021263b>] read_tsc+0x5/0x7
[  576.916202]  [<ffffffff8024af9b>] getnstimeofday+0x2f/0x83
[  576.916207]  [<ffffffff802495ab>] ktime_get_ts+0x17/0x48
[  576.916211]  [<ffffffff802495e8>] ktime_get+0xc/0x41
[  576.916218]  [<ffffffff8020a81f>] __switch_to+0xca/0x2ed
[  576.916222]  [<ffffffff80230217>] hrtick_set+0x88/0xf7
[  576.916229]  [<ffffffff8041debb>] thread_return+0x6b/0xac
[  576.916232]  [<ffffffff8020bc17>] sys_rt_sigreturn+0x2e8/0x321
[  576.916241]  [<ffffffff8020c494>] retint_signal+0x50/0x9c
[  576.916255]
[  576.916256]
[  576.916257] Code: 00 48 8b 83 20 01 00 00 48 8b 40 18 8b 80 10 07 00 00 e8 8f ed ff ff 8b 43 28 8b 4b 2c 48 8b 33 83 6b 30 18 48 63 d0 ff c0 21 c8 <c7> 04 96 97 0c 00 00 48 63 d0 ff c0 21 c8 c7 04 96 0f 00 00 00
[  576.916281] RIP  [<ffffffff8849a7ba>] :radeon:radeon_do_cp_idle+0x9a/0x16f
[  576.916287]  RSP <ffff810036f07c28>
[  576.916289] CR2: ffffc20001e90ffc
[  576.916294] ---[ end trace ec876f4ecf78b807 ]---
[  576.916296] Fixing recursive fault but reboot is needed!


Steps to reproduce:
Comment 1 Ondrej Zary 2008-06-23 07:22:29 UTC
The bug is still present in 2.6.26-rc7:

[ 1516.201991] BUG: unable to handle kernel paging request at ffffc200105f0ffc
[ 1516.201996] IP: [<ffffffffa046772a>] :radeon:radeon_do_cp_idle+0xa0/0x1a4
[ 1516.202007] PGD 3f930067 PUD 3f931067 PMD 3f359067 PTE 0
[ 1516.202011] Oops: 0002 [1] SMP
[ 1516.202013] CPU 0
[ 1516.202015] Modules linked in: microdia compat_ioctl32 videodev v4l1_compat radeon drm ppdev parport_pc lp parport video output ac battery acpi_cpufreq rfkill_input ipv6 cpufreq_stats cpufreq_conservative cpufreq_userspace cpufreq_ondemand freq_table cpufreq_powersave xt_tcpudp xt_DSCP ipt_MASQUERADE nf_nat_ftp xt_TCPMSS ipt_LOG ipt_REJECT iptable_nat nf_nat iptable_mangle iptable_filter xt_multiport xt_state xt_limit xt_conntrack nf_conntrack_ftp nf_conntrack_ipv4 nf_conntrack ip_tables x_tables coretemp w83627ehf hwmon_vid loop firewire_sbp2 arc4 ecb crypto_blkcipher b43 joydev rfkill rng_core mac80211 snd_usb_audio cfg80211 snd_usb_lib led_class snd_seq_dummy pcspkr input_polldev snd_seq_oss snd_hda_intel iTCO_wdt snd_seq_midi snd_seq_midi_event snd_pcm_oss snd_mixer_oss snd_pcm snd_seq i2c_i801 i2c_core snd_timer snd_rawmidi snd_seq_device usblp snd_hwdep snd soundcore snd_page_alloc usbtouchscreen button intel_agp evdev ext3 jbd mbcache raid1 md_mod ide_cd_mod sd_mod cdrom ide_disk ide_pci_generic jmicron ide_core ata_piix floppy ssb pcmcia pcmcia_core firmware_class firewire_ohci firewire_core crc_itu_t atl1 mii ata_generic ehci_hcd ahci libata scsi_mod dock uhci_hcd thermal processor fan
[ 1516.202645] Pid: 4346, comm: Xorg Not tainted 2.6.26-rc7-custom #1
[ 1516.202647] RIP: 0010:[<ffffffffa046772a>]  [<ffffffffa046772a>] :radeon:radeon_do_cp_idle+0xa0/0x1a4
[ 1516.202653] RSP: 0018:ffff8100364e9bf8  EFLAGS: 00013297
[ 1516.202656] RAX: 00000000ffffffff RBX: ffff81003dc4c000 RCX: ffffc200105f1000
[ 1516.202658] RDX: ffffffffffffffff RSI: 000000000003ffff RDI: ffff81003dc4c000
[ 1516.202660] RBP: 0000000000000000 R08: 0000000000000000 R09: 8000000000000000
[ 1516.202662] R10: ffff81003c9ec5c0 R11: ffffffff802d830d R12: ffff81003ec934c0
[ 1516.202664] R13: ffff81003dc4c180 R14: ffff81003f9b6480 R15: ffff810037823690
[ 1516.202667] FS:  00007ff020e436e0(0000) GS:ffffffff8053b000(0000) knlGS:0000000000000000
[ 1516.202669] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 1516.202671] CR2: ffffc200105f0ffc CR3: 0000000000201000 CR4: 00000000000006e0
[ 1516.202673] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1516.202676] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 1516.202678] Process Xorg (pid: 4346, threadinfo ffff8100364e8000, task ffff81003f12f880)
[ 1516.202680] Stack:  ffff81003dc4c000 ffffffffa0469011 ffff81003b8400a8 ffff81003dc4c000
[ 1516.202685]  ffff81003dc4c000 ffffffffa046914f ffff81003dc4c000 ffffffffa0471af3
[ 1516.202689]  ffff81003b94bd88 0000000000000008 ffff81003d153000 ffff81003ec934c0
[ 1516.202692] Call Trace:
[ 1516.202702]  [<ffffffffa0469011>] :radeon:radeon_apply_surface_regs+0x1d/0x7c
[ 1516.202710]  [<ffffffffa046914f>] :radeon:free_surface+0xdf/0xfb
[ 1516.202717]  [<ffffffffa0471af3>] :radeon:radeon_driver_preclose+0x65/0x76
[ 1516.202735]  [<ffffffffa04521e5>] :drm:drm_release+0x63/0x3ea
[ 1516.202746]  [<ffffffff8029e4a5>] __fput+0xa1/0x165
[ 1516.202755]  [<ffffffff8029baba>] filp_close+0x5a/0x61
[ 1516.202762]  [<ffffffff802364b0>] put_files_struct+0x65/0xc3
[ 1516.202770]  [<ffffffff80237be2>] do_exit+0x277/0x6bb
[ 1516.202776]  [<ffffffff802494e5>] ktime_get_ts+0x21/0x4a
[ 1516.202785]  [<ffffffff80238093>] do_group_exit+0x6d/0x9a
[ 1516.202792]  [<ffffffff80240790>] get_signal_to_deliver+0x302/0x32a
[ 1516.202802]  [<ffffffff8020b28b>] do_notify_resume+0xb5/0x858
[ 1516.202806]  [<ffffffff802494e5>] ktime_get_ts+0x21/0x4a
[ 1516.202812]  [<ffffffff8024951a>] ktime_get+0xc/0x41
[ 1516.202816]  [<ffffffff8020a6e3>] __switch_to+0xe9/0x37a
[ 1516.202821]  [<ffffffff80228bbf>] hrtick_start_fair+0x12c/0x176
[ 1516.202835]  [<ffffffff80429774>] thread_return+0x6d/0xc5
[ 1516.202852]  [<ffffffff8020c5f4>] retint_signal+0x50/0x9c
[ 1516.202869]
[ 1516.202870]
[ 1516.202871] Code: 00 00 48 8b 40 18 8b 80 10 07 00 00 e8 32 ef ff ff 83 6b 30 18 66 83 bb fc 03 00 00 08 8b 43 28 48 8b 0b 8b 73 2c 48 63 d0 77 09 <c7> 04 91 97 0c 00 00 eb 07 c7 04 91 93 13 00 00 ff c0 21 f0 48
[ 1516.202899] RIP  [<ffffffffa046772a>] :radeon:radeon_do_cp_idle+0xa0/0x1a4
[ 1516.202905]  RSP <ffff8100364e9bf8>
[ 1516.202907] CR2: ffffc200105f0ffc
[ 1516.202913] ---[ end trace 19a192c93a64aabc ]---
[ 1516.202916] Fixing recursive fault but reboot is needed!
Comment 2 Alan 2012-05-22 12:35:00 UTC
Marking obsolete, if this is incorrect please try a modern kernel, re-open and update the kernel version