New: Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
https://bugzilla.kernel.org/show_bug.cgi?id=16414
Summary: Panic during IO from both hard disk and CD-ROM on VIA
IDE chipset using pata_via
Product: IO/Storage
Version: 2.5
Kernel Version: 2.6.35-rc5
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: IDE
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: No
Created an attachment (id=27141)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27141)
netconsole output for three kernel panics.
On an Averatec 3220 (Athlon XP-M, 512 MB RAM) with a VIA VT82Cx IDE controller I can trigger a kernel panic by performing IO on both the hard disk (80 GB Samsung MP080AH) and CD/DVD drive (QSI CD-RW/DVD-ROM SBW-242) at the same time.
The simplest way to trigger the panic is just to dump a CD image to the hard disk:
dd if=/dev/cdrom of=cd-image
Reading from both the CD drive and from the hard disk at the same time also causes a panic.
I can reproduce the problem on 2.6.33.4, 2.6.34, and the latest 2.6.35-rc5+ branch from git. This problem does not occur with the depreciated IDE/ATA driver (BLK_DEV_VIA82CXXX) on any of the kernels I have tried.
I have another system with a similar VIA IDE controller and I can't reproduce the panic on that system, so I am guessing the problem is with the Averatec hardware/firmware. I've tried booting with pci=noacpi and acpi=off, but that didn't help either. I've also tried compiling the kernel with and without preemption and dynamic ticks but still had the same problem.
All the kernel panics begin with "divide error: 0000 [#1]" and rarely occur in the same function. Of the functions I looked at none had a DIV instruction at the crash address. I used netconsole to dump all the kernel messages to another machine, which I think accounts for the "eth0: Too much work at interrupt, status=0x00000002." messages I see mixed in with the backtraces and other messages.
In my attempt to debug the problem I compiled and loaded a kexec crash-dump kernel and it began booting after the panic but it hangs during tsc calibration. I tested the crash dump kernel by manually kexec'ing it and it booted fine. When I added a printk to display the value of the PIT's counter 0 during the calibration loop, it always prints 0x0000.
For one of the crashdumps I enabled some printk output in libata-sff.c to show when an interrupt occurs (__ata_sff_interrupt) and when a command is issued to the IDE controller (ata_sff_exec_command). The output (averatec-broken-ata.txt) shows several hundred interleaved commands to ata1 and ata2 before the panic, and I can't discern any pattern that might show why the panic occurred. Sometimes ata1 (the hard disk) was the last device to receive a command, sometimes it was ata2 (the cd-rom).
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
https://bugzilla.kernel.org/show_bug.cgi?id=16414
--- Comment #1 from Ben Livengood <[email protected]> 2010-07-19 07:58:10 --- Created an attachment (id=27142)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27142)
lspci -vvxx output
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
--- Comment #2 from Ben Livengood <[email protected]> 2010-07-19 07:59:27 --- Created an attachment (id=27143)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27143)
dmesg from kernel 2.6.35-rc5+ boot
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
--- Comment #3 from Ben Livengood <[email protected]> 2010-07-19 08:00:13 --- Created an attachment (id=27144)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27144)
Kernel 2.6.35-rc5+ config file
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
--- Comment #4 from Ben Livengood <[email protected]> 2010-07-19 08:03:38 --- Created an attachment (id=27145)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27145)
Panic without additional debugging output
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
--- Comment #5 from Ben Livengood <[email protected]> 2010-07-19 08:05:44 --- Created an attachment (id=27146)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27146)
Panic after booting with pci=noacpi and acpi=off
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
--- Comment #6 from [email protected] 2012-07-13 14:14:10 --- Created an attachment (id=75311)
--> (https://bugzilla.kernel.org/attachment.cgi?id=75311)
Kernel Panic after Reading from CD-Audio
Hardware:
TargaVisionaryXP
AMD AthlonXP-m
VIA KT333 w. VT8235
IDE DVD-Rom/CDRW Samsung SN324B with Firmware U103
no access to CD possible without kernel panic after a short time. When inserting at boot time there are a lot of io errors on device. Works normally on MS Windows without read error.
Was working before at least with kernel 2.6.18.
Tried kernels:
2.6.32 debian
3.2. -"-
3.4
3.2. Partition magic (slackware) <<here device is not mounting when cd is
inserted
Everything was up to date. Last try: 11.07. 2012
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
--- Comment #7 from [email protected] 2012-07-13 14:16:10 --- Created an attachment (id=75321)
--> (https://bugzilla.kernel.org/attachment.cgi?id=75321)
Kernel Panic after Reading from CD-Audio (second picture)
Hardware:
TargaVisionaryXP
AMD AthlonXP-m
VIA KT333 w. VT8235
IDE DVD-Rom/CDRW Samsung SN324B with Firmware U103
no access to CD possible without kernel panic after a short time. When inserting at boot time there are a lot of io errors on device. Works normally on MS Windows without read error.
Was working before at least with kernel 2.6.18.
Tried kernels:
2.6.32 debian
3.2. -"-
3.4
3.2. Partition magic (slackware) <<here device is not mounting when cd is
inserted
Everything was up to date. Last try: 11.07. 2012
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
Alan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #8 from Alan <[email protected]> 2012-07-20 12:25:43 --- *** Bug 44871 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
Alan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] Kernel Version|2.6.35-rc5 |3.2
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 16414] Panic during IO from both hard disk and CD-ROM on VIA IDE chipset using pata_via
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=16414
Alan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |OBSOLETESignature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.