2004-06-17 17:30:51

by Kalin KOZHUHAROV

[permalink] [raw]
Subject: [BUG?] "bad: scheduling while atomic!" after modprobe -r aic7xxx

0000:00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)
0000:00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
0000:00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
0000:00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
0000:00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
0000:00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
0000:00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
0000:00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev a1)
0000:00:05.0 Multimedia audio controller: nVidia Corporation nForce MultiMedia audio [Via VT82C686B] (rev a2)
0000:00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
0000:00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
0000:00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
0000:00:0c.0 PCI bridge: nVidia Corporation nForce2 PCI Bridge (rev a3)
0000:00:0d.0 FireWire (IEEE 1394): nVidia Corporation nForce2 FireWire (IEEE 1394) Controller (rev a3)
0000:00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
0000:01:07.0 SCSI storage controller: Adaptec AHA-2940/2940W / AIC-7871
0000:01:0b.0 RAID bus controller: Silicon Image, Inc. (formerly CMD Technology Inc) Silicon Image Serial ATARaid Controller [ CMD/Sil 3112/3112A ] (rev 02)
0000:02:01.0 Ethernet controller: 3Com Corporation 3C920B-EMB Integrated Fast Ethernet Controller [Tornado] (rev 40)
0000:03:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev b2)
sata aic-debug # lspci -vv -s 07
0000:01:07.0 SCSI storage controller: Adaptec AHA-2940/2940W / AIC-7871
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, 2000ns max), cache line size 08
Interrupt: pin A routed to IRQ 19
Region 0: I/O ports at a000 [disabled]
Region 1: Memory at e1000000 (32-bit, non-prefetchable) [size=4K]


Attachments:
boot.log (12.71 kB)
dmesg_after.log (780.00 B)
lsmod_after.log (184.00 B)
interrupts_with_aic7xxx_loaded (359.00 B)
dmesg_after_modprobe-r.log (14.93 kB)
lsmod_after_modprobe-r.log (143.00 B)
lspci.output (2.44 kB)
Download all attachments

2004-06-17 19:19:32

by Kalin KOZHUHAROV

[permalink] [raw]
Subject: Re: [BUG?] "bad: scheduling while atomic!" after modprobe -r aic7xxx

Kalin KOZHUHAROV wrote:
> I was testing 2.6.7, now with LOCAL_APIC and it seems to be working
> (though my SATA disk is not connected).
>
> However when trying to remove aic7xxx a lot of badness is outputed.
> Trying to isolate the problem I tested without the APIC (in BIOS and
> kernel) but the results were the same.
>
> I am running on ASUS A7N8X-Deluxe (v2.0) MB with Nforce2 chipset.
> Apart from the badness, no crash or freeze is happening.
> I can reproduce it as many times as I try (=everytime).
>
[snip the long debug output, see original MSG]

I forgot to mention that with 2.6.6 this same hardware and mostly the same .config was working steadily for quite a long time.
If .config is relevant will post it or send it on request.

I looked at `diff -Nru linux-2.6.{6,7}/drivers/scsi/aic7xxx/`, but is really big :-(

Looking closely at the log MSG, it is basicly:

bad: scheduling while atomic!
[<c03222fc>] schedule+0x47c/0x490
[<c0119858>] __wake_up_common+0x38/0x60
[<c03223d8>] wait_for_completion+0x78/0xd0
[<c0119800>] default_wake_function+0x0/0x20
[<c0119800>] default_wake_function+0x0/0x20
[<c012b233>] call_usermodehelper+0xb3/0xc0
[<c012b110>] __call_usermodehelper+0x0/0x70
[<c02261f7>] vsprintf+0x27/0x30
[<c022621f>] sprintf+0x1f/0x30
[<c0223426>] kset_hotplug+0x226/0x290
[<c016bfc2>] iput+0x62/0x80
[<c02234ea>] kobject_hotplug+0x5a/0x60
[<c022382b>] kobject_del+0x1b/0x40
[<e1f0c222>] sr_remove+0x22/0x4f [sr_mod]
[<c0271e94>] device_release_driver+0x64/0x70
[<c0271fc5>] bus_remove_device+0x55/0xa0
[<c0270f2d>] device_del+0x5d/0xa0
[<e1f23026>] scsi_remove_device+0x56/0xc0 [scsi_mod]
[<e1f22334>] scsi_forget_host+0x44/0x90 [scsi_mod]
[<e1f1c0bb>] scsi_remove_host+0x2b/0x60 [scsi_mod]
[<e1f785f1>] ahc_platform_free+0x141/0x160 [aic7xxx]
[<e1f6b4bf>] ahc_free+0xbf/0x130 [aic7xxx]
[<e1f7dde9>] ahc_linux_pci_dev_remove+0x69/0xa0 [aic7xxx]
[<c023187b>] pci_device_remove+0x3b/0x40
[<c0271e94>] device_release_driver+0x64/0x70
[<c0271ec0>] driver_detach+0x20/0x30
[<c02720fd>] bus_remove_driver+0x3d/0x80
[<c0272583>] driver_unregister+0x13/0x28
[<c0231ae6>] pci_unregister_driver+0x16/0x30
[<e1f7e00f>] ahc_linux_pci_exit+0xf/0x20 [aic7xxx]
[<e1f7d2bd>] ahc_linux_exit+0x4d/0x59 [aic7xxx]
[<c0130b8c>] sys_delete_module+0x12c/0x180
[<c01465e8>] do_munmap+0x148/0x190
[<c0106087>] syscall_call+0x7/0xb

repeated a lot of times...

Kalin.

P.S. CCing Justin T. Gibbs, as `modinfo aic7xxx |grep author`

--
||///_ o *****************************
||//'_/> WWW: http://ThinRope.net/