ICH9 panic/instability on recent kernel
Michael Sinatra
michael at rancid.berkeley.edu
Sun May 29 05:17:21 UTC 2011
On 05/28/11 21:56, Jeremy Chadwick wrote:
> On Sat, May 28, 2011 at 09:10:11PM -0700, Michael Sinatra wrote:
>> I have a core-2 system with a 3ware SATA RAID controller for the
>> main disks and the built-in Intel ICH9 4-port SATA controller that
>> is only used for the DVDR. An 8-STABLE kernel csup'd and compiled
>> on April 25 works fine on this system. Kernels from source csup'd
>> this week are extremely unstable and usually panic or hang just
>> minutes after booting. The following warning messages appear after
>> the kernel probes the SATA controller and/or ICH9 USB controller and
>> continue about once per 1-2 seconds until the system crashes:
>>
>> May 13 14:21:05 sonicyouth kernel: unknown: WARNING - ATAPI_IDENTIFY
>> requeued due to channel reset LBA=0
>>
>> Disabling the ICH9 SATA controller in the BIOS allows the system to
>> boot and run normally.
>>
>> Changes were made on April 28 to allow better support for 6-port
>> ICH9 controllers (SVN rev 221156) and I am wondering if my
>> controller is now being incorrectly recognized.
>>
>> Here's the relevant kernel messages:
>>
>> May 13 13:52:53 sonicyouth kernel: atapci1:<Intel ICH9 SATA300 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1c40-0x1c4f,0x1c30-0x1c3f at device 31.2 on pci0
>> May 13 13:52:53 sonicyouth kernel: ata0:<ATA channel 0> on atapci1
>> May 13 13:52:53 sonicyouth kernel: ata0: [ITHREAD]
>> May 13 13:52:53 sonicyouth kernel: ata1:<ATA channel 1> on atapci1
>> May 13 13:52:53 sonicyouth kernel: ata1: [ITHREAD]
>> May 13 13:52:53 sonicyouth kernel: atapci2:<Intel ICH9 SATA300> controller> port 0x1cb8-0x1cbf,0x1cac-0x1caf,0x1cb0-0x1cb7,0x1ca8-0x1cab,0x1c60-0x1c6f,0x1c50-0x1c5f irq 18 at device 31.5 on pci0
>> May 13 13:52:53 sonicyouth kernel: atapci2: [ITHREAD]
>> May 13 13:52:53 sonicyouth kernel: ata3:<ATA channel 0> on atapci2
>> May 13 13:52:53 sonicyouth kernel: ata3: [ITHREAD]
>> May 13 13:52:53 sonicyouth kernel: ata4:<ATA channel 1> on atapci2
>> May 13 13:52:53 sonicyouth kernel: ata4: [ITHREAD]
>>
>> If I csup the most recent kernel sources, I get the same problem.
>> However, if, after csuping the latest kernel sources, I then fetch
>> the version of sys/dev/ata/ata-all.c as of April 27, everything
>> works fine. Here's the output of pciconf -l:
>>
>> hostb0 at pci0:0:0:0: class=0x060000 card=0xd98015d9 chip=0x29e08086 rev=0x01 hdr=0x00
>> pcib1 at pci0:0:1:0: class=0x060400 card=0xd98015d9 chip=0x29e18086 rev=0x01 hdr=0x01
>> pcib2 at pci0:0:6:0: class=0x060400 card=0xd98015d9 chip=0x29e98086 rev=0x01 hdr=0x01
>> em0 at pci0:0:25:0: class=0x020000 card=0x10bd15d9 chip=0x10bd8086 rev=0x02 hdr=0x00
>> uhci0 at pci0:0:26:0: class=0x0c0300 card=0xd98015d9 chip=0x29378086 rev=0x02 hdr=0x00
>> uhci1 at pci0:0:26:1: class=0x0c0300 card=0xd98015d9 chip=0x29388086 rev=0x02 hdr=0x00
>> uhci2 at pci0:0:26:2: class=0x0c0300 card=0xd98015d9 chip=0x29398086 rev=0x02 hdr=0x00
>> ehci0 at pci0:0:26:7: class=0x0c0320 card=0xd98015d9 chip=0x293c8086 rev=0x02 hdr=0x00
>> none0 at pci0:0:27:0: class=0x040300 card=0xd98015d9 chip=0x293e8086 rev=0x02 hdr=0x00
>> pcib3 at pci0:0:28:0: class=0x060400 card=0xd98015d9 chip=0x29408086 rev=0x02 hdr=0x01
>> uhci3 at pci0:0:29:0: class=0x0c0300 card=0xd98015d9 chip=0x29348086 rev=0x02 hdr=0x00
>> uhci4 at pci0:0:29:1: class=0x0c0300 card=0xd98015d9 chip=0x29358086 rev=0x02 hdr=0x00
>> uhci5 at pci0:0:29:2: class=0x0c0300 card=0xd98015d9 chip=0x29368086 rev=0x02 hdr=0x00
>> ehci1 at pci0:0:29:7: class=0x0c0320 card=0xd98015d9 chip=0x293a8086 rev=0x02 hdr=0x00
>> pcib5 at pci0:0:30:0: class=0x060401 card=0xd98015d9 chip=0x244e8086 rev=0x92 hdr=0x01
>> isab0 at pci0:0:31:0: class=0x060100 card=0xd98015d9 chip=0x29168086 rev=0x02 hdr=0x00
>> atapci1 at pci0:0:31:2: class=0x01018a card=0xd98015d9 chip=0x29208086 rev=0x02 hdr=0x00
>> none1 at pci0:0:31:3: class=0x0c0500 card=0xd98015d9 chip=0x29308086 rev=0x02 hdr=0x00
>> atapci2 at pci0:0:31:5: class=0x010185 card=0xd98015d9 chip=0x29268086 rev=0x02 hdr=0x00
>> none2 at pci0:0:31:6: class=0x118000 card=0x000015d9 chip=0x29328086 rev=0x02 hdr=0x00
>> vgapci0 at pci0:1:0:0: class=0x030000 card=0x216619da chip=0x0e2210de rev=0xa1 hdr=0x00
>> none3 at pci0:1:0:1: class=0x040300 card=0x216619da chip=0x0beb10de rev=0xa1 hdr=0x00
>> twa0 at pci0:3:0:0: class=0x010400 card=0x100413c1 chip=0x100413c1 rev=0x01 hdr=0x00
>> pcib4 at pci0:5:0:0: class=0x060400 card=0x00000000 chip=0x032c8086 rev=0x09 hdr=0x01
>> ioapic0 at pci0:5:0:1: class=0x080020 card=0xd98015d9 chip=0x03268086 rev=0x09 hdr=0x00
>> fwohci0 at pci0:17:3:0: class=0x0c0010 card=0xba8015d9 chip=0x8023104c rev=0x00 hdr=0x00
>> atapci0 at pci0:17:4:0: class=0x010185 card=0x82131283 chip=0x82131283 rev=0x00 hdr=0x00
>
> This output doesn't help -- it's too terse. Please use "pciconf -lvbc"
> instead.
Sorry about that. Here's the output:
sonicyouth# pciconf -lvbc
hostb0 at pci0:0:0:0: class=0x060000 card=0xd98015d9 chip=0x29e08086
rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'X38/X48 (Bearlake) Processor to I/O Controller'
class = bridge
subclass = HOST-PCI
cap 09[e0] = vendor (length 12) Intel cap 0 version 1
pcib1 at pci0:0:1:0: class=0x060400 card=0xd98015d9 chip=0x29e18086
rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = 'X38/X48 (Bearlake) PCIe Root Port 1'
class = bridge
subclass = PCI-PCI
cap 0d[88] = PCI Bridge card=0xd98015d9
cap 01[80] = powerspec 3 supports D0 D3 current D0
cap 05[90] = MSI supports 1 message
cap 10[a0] = PCI-Express 2 root port max data 128(128) link x16(x16)
ecap 0002[100] = VC 1 max VC0
ecap 0005[140] = unknown 1
pcib2 at pci0:0:6:0: class=0x060400 card=0xd98015d9 chip=0x29e98086
rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = 'X38/X48 (Bearlake) PCIe Root Port 2'
class = bridge
subclass = PCI-PCI
cap 0d[88] = PCI Bridge card=0xd98015d9
cap 01[80] = powerspec 3 supports D0 D3 current D0
cap 05[90] = MSI supports 1 message
cap 10[a0] = PCI-Express 2 root port max data 128(128) link x1(x16)
ecap 0002[100] = VC 1 max VC0
ecap 0005[140] = unknown 1
em0 at pci0:0:25:0: class=0x020000 card=0x10bd15d9 chip=0x10bd8086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel 82566DM Gigabit Ethernet Adapter (82566DM)'
class = network
subclass = ethernet
bar [10] = type Memory, range 32, base 0xd8600000, size 131072,
enabled
bar [14] = type Memory, range 32, base 0xd8627000, size 4096, enabled
bar [18] = type I/O Port, range 32, base 0x1820, size 32, enabled
cap 01[c8] = powerspec 2 supports D0 D3 current D0
cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message
cap 13[e0] = PCI Advanced Features: FLR TP
uhci0 at pci0:0:26:0: class=0x0c0300 card=0xd98015d9 chip=0x29378086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x1840, size 32, enabled
cap 13[50] = PCI Advanced Features: FLR TP
uhci1 at pci0:0:26:1: class=0x0c0300 card=0xd98015d9 chip=0x29388086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x1860, size 32, enabled
cap 13[50] = PCI Advanced Features: FLR TP
uhci2 at pci0:0:26:2: class=0x0c0300 card=0xd98015d9 chip=0x29398086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x1880, size 32, enabled
cap 13[50] = PCI Advanced Features: FLR TP
ehci0 at pci0:0:26:7: class=0x0c0320 card=0xd98015d9 chip=0x293c8086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host
Controller'
class = serial bus
subclass = USB
bar [10] = type Memory, range 32, base 0xd8628000, size 1024, enabled
cap 01[50] = powerspec 2 supports D0 D3 current D0
cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14
cap 13[98] = PCI Advanced Features: FLR TP
none0 at pci0:0:27:0: class=0x040300 card=0xd98015d9 chip=0x293e8086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) HD Audio Controller'
class = multimedia
subclass = HDA
bar [10] = type Memory, range 64, base 0xd8620000, size 16384,
enabled
cap 01[50] = powerspec 2 supports D0 D3 current D0
cap 05[60] = MSI supports 1 message, 64 bit
cap 10[70] = PCI-Express 1 root endpoint max data 128(128) link x0(x0)
ecap 0002[100] = VC 1 max VC1
ecap 0005[130] = unknown 1
pcib3 at pci0:0:28:0: class=0x060400 card=0xd98015d9 chip=0x29408086
rev=0x02 hdr=0x01
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 1'
class = bridge
subclass = PCI-PCI
cap 10[40] = PCI-Express 1 root port max data 128(128) link x4(x4)
cap 05[80] = MSI supports 1 message
cap 0d[90] = PCI Bridge card=0xd98015d9
cap 01[a0] = powerspec 2 supports D0 D3 current D0
ecap 0002[100] = VC 1 max VC0
ecap 0005[180] = unknown 1
uhci3 at pci0:0:29:0: class=0x0c0300 card=0xd98015d9 chip=0x29348086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x18a0, size 32, enabled
cap 13[50] = PCI Advanced Features: FLR TP
uhci4 at pci0:0:29:1: class=0x0c0300 card=0xd98015d9 chip=0x29358086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x18c0, size 32, enabled
cap 13[50] = PCI Advanced Features: FLR TP
uhci5 at pci0:0:29:2: class=0x0c0300 card=0xd98015d9 chip=0x29368086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x18e0, size 32, enabled
cap 13[50] = PCI Advanced Features: FLR TP
ehci1 at pci0:0:29:7: class=0x0c0320 card=0xd98015d9 chip=0x293a8086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host
Controller'
class = serial bus
subclass = USB
bar [10] = type Memory, range 32, base 0xd8629000, size 1024, enabled
cap 01[50] = powerspec 2 supports D0 D3 current D0
cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14
cap 13[98] = PCI Advanced Features: FLR TP
pcib5 at pci0:0:30:0: class=0x060401 card=0xd98015d9 chip=0x244e8086
rev=0x92 hdr=0x01
vendor = 'Intel Corporation'
device = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub
Interface to PCI Bridge'
class = bridge
subclass = PCI-PCI
cap 0d[50] = PCI Bridge card=0xd98015d9
isab0 at pci0:0:31:0: class=0x060100 card=0xd98015d9 chip=0x29168086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IR (ICH9R) LPC Interface Controller'
class = bridge
subclass = PCI-ISA
cap 09[e0] = vendor (length 12) Intel cap 1 version 0
features: SATA RAID-5, 4 PCI-e x1 slots
atapci1 at pci0:0:31:2: class=0x01018a card=0xd98015d9 chip=0x29208086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) 4 port Serial ATA Storage
Controller 1'
class = mass storage
subclass = ATA
bar [10] = type I/O Port, range 32, base 0x1f0, size 8, enabled
bar [14] = type I/O Port, range 32, base 0x3f4, size 1, enabled
bar [18] = type I/O Port, range 32, base 0x170, size 8, enabled
bar [1c] = type I/O Port, range 32, base 0x374, size 1, enabled
bar [20] = type I/O Port, range 32, base 0x1c40, size 16, enabled
bar [24] = type I/O Port, range 32, base 0x1c30, size 16, enabled
cap 01[70] = powerspec 3 supports D0 D3 current D0
cap 13[b0] = PCI Advanced Features: FLR TP
none1 at pci0:0:31:3: class=0x0c0500 card=0xd98015d9 chip=0x29308086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel(R) ICH9 Family SMBus Controller working fine
with http://download.cnet.com/Chipset-Driver-Inte (8086)'
class = serial bus
subclass = SMBus
bar [10] = type Memory, range 64, base 0xd862a000, size 256, enabled
bar [20] = type I/O Port, range 32, base 0x1100, size 32, enabled
atapci2 at pci0:0:31:5: class=0x010185 card=0xd98015d9 chip=0x29268086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) 2 port Serial ATA Storage
Controller 2'
class = mass storage
subclass = ATA
bar [10] = type I/O Port, range 32, base 0x1cb8, size 8, enabled
bar [14] = type I/O Port, range 32, base 0x1cac, size 4, enabled
bar [18] = type I/O Port, range 32, base 0x1cb0, size 8, enabled
bar [1c] = type I/O Port, range 32, base 0x1ca8, size 4, enabled
bar [20] = type I/O Port, range 32, base 0x1c60, size 16, enabled
bar [24] = type I/O Port, range 32, base 0x1c50, size 16, enabled
cap 01[70] = powerspec 3 supports D0 D3 current D0
cap 13[b0] = PCI Advanced Features: FLR TP
none2 at pci0:0:31:6: class=0x118000 card=0x000015d9 chip=0x29328086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) Thermal Subsystem'
class = dasp
bar [10] = type Memory, range 64, base 0xd862b000, size 4096, enabled
cap 01[50] = powerspec 3 supports D0 D3 current D0
vgapci0 at pci0:1:0:0: class=0x030000 card=0x216619da chip=0x0e2210de
rev=0xa1 hdr=0x00
vendor = 'NVIDIA Corporation'
class = display
subclass = VGA
bar [10] = type Memory, range 32, base 0xd6000000, size 33554432,
enabled
bar [14] = type Prefetchable Memory, range 64, base 0xc8000000,
size 134217728, enabled
bar [1c] = type Prefetchable Memory, range 64, base 0xd0000000,
size 67108864, enabled
bar [24] = type I/O Port, range 32, base 0x2000, size 128, enabled
cap 01[60] = powerspec 3 supports D0 D3 current D0
cap 05[68] = MSI supports 1 message, 64 bit
cap 10[78] = PCI-Express 1 endpoint max data 128(128) link x16(x16)
cap 09[b4] = vendor (length 20)
ecap 0002[100] = VC 1 max VC0
ecap 0004[128] = unknown 1
ecap 000b[600] = unknown 1
none3 at pci0:1:0:1: class=0x040300 card=0x216619da chip=0x0beb10de
rev=0xa1 hdr=0x00
vendor = 'NVIDIA Corporation'
class = multimedia
subclass = HDA
bar [10] = type Memory, range 32, base 0xd8000000, size 16384,
enabled
cap 01[60] = powerspec 3 supports D0 D3 current D0
cap 05[68] = MSI supports 1 message, 64 bit
cap 10[78] = PCI-Express 1 endpoint max data 128(128) link x16(x16)
twa0 at pci0:3:0:0: class=0x010400 card=0x100413c1 chip=0x100413c1
rev=0x01 hdr=0x00
vendor = '3ware Inc'
device = 'PCI-Express SATA2 Raid Controller (9650SE Series)'
class = mass storage
subclass = RAID
bar [10] = type Prefetchable Memory, range 64, base 0xd4000000,
size 33554432, enabled
bar [18] = type Memory, range 64, base 0xd8100000, size 4096, enabled
bar [20] = type I/O Port, range 32, base 0x3000, size 256, enabled
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
cap 05[50] = MSI supports 32 messages, 64 bit
cap 10[70] = PCI-Express 1 legacy endpoint max data 128(512) link
x1(x8)
ecap 0001[100] = AER 1 0 fatal 1 non-fatal 1 corrected
pcib4 at pci0:5:0:0: class=0x060400 card=0x00000000 chip=0x032c8086
rev=0x09 hdr=0x01
vendor = 'Intel Corporation'
device = 'PCI Express-to-PCI Express Bridge (6702PXH)'
class = bridge
subclass = PCI-PCI
cap 10[44] = PCI-Express 1 PCI bridge max data 128(256) link x4(x8)
cap 05[5c] = MSI supports 1 message, 64 bit
cap 01[6c] = powerspec 2 supports D0 D3 current D0
cap 07[d8] = PCI-X bridge
ecap 0001[100] = AER 1 0 fatal 1 non-fatal 0 corrected
ecap 0004[300] = unknown 1
ioapic0 at pci0:5:0:1: class=0x080020 card=0xd98015d9 chip=0x03268086
rev=0x09 hdr=0x00
vendor = 'Intel Corporation'
device = '6700/6702PXH I/OxAPIC Interrupt Controller A'
class = base peripheral
subclass = interrupt controller
bar [10] = type Memory, range 32, base 0xd8300000, size 4096, enabled
cap 10[44] = PCI-Express 1 endpoint max data 256(256) link x4(x8)
cap 01[6c] = powerspec 2 supports D0 D3 current D0
fwohci0 at pci0:17:3:0: class=0x0c0010 card=0xba8015d9 chip=0x8023104c
rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'IEEE1394a-2000 OHCI PHY/Link-Layer Ctrlr (TSB43AB21/A)'
class = serial bus
subclass = FireWire
bar [10] = type Memory, range 32, base 0xd8204000, size 2048, enabled
bar [14] = type Memory, range 32, base 0xd8200000, size 16384,
enabled
cap 01[44] = powerspec 2 supports D0 D1 D2 D3 current D0
atapci0 at pci0:17:4:0: class=0x010185 card=0x82131283 chip=0x82131283
rev=0x00 hdr=0x00
vendor = 'Integrated Technology Express (ITE) Inc'
device = 'IDE Controller (IT8213F)'
class = mass storage
subclass = ATA
bar [10] = type I/O Port, range 32, base 0x4020, size 8, enabled
bar [14] = type I/O Port, range 32, base 0x4014, size 4, enabled
bar [18] = type I/O Port, range 32, base 0x4018, size 8, enabled
bar [1c] = type I/O Port, range 32, base 0x4010, size 4, enabled
bar [20] = type I/O Port, range 32, base 0x4000, size 16, enabled
cap 01[80] = powerspec 2 supports D0 D3 current D0
> Thank you for tracking the issue down to something between roughly
> April 25th and April 29th.
It looked from SVN as if the April 28th MFCs had caused the issue, but I
can't narrow it down further, other than to note that replacing
ata-all.c with an older version (as of April 27 it was "$FreeBSD:
src/sys/dev/ata/ata-all.c,v 1.308.2.20 2011/04/19 17:01:05 mav Exp $")
allowed me to boot with SATA enabled.
> Different revisions/models of the ICH9 offer AHCI capability. Does your
> system BIOS let you toggle this? If so, I would recommend enabling it
> then trying to use ahci.ko ("load ahci.ko" from the loader "ok" prompt,
> or ahci_load="yes" in /boot/loader.conf) to see if things improve. Your
> CD drive will then appear as a SCSI-esque CD drive (e.g. cd(4) driver
> instead of atapicd), so be aware. This would be a workaround for your
> issue, assuming it works.
Right now, I am not at my workstation (I left the office a while ago),
and probably won't be back until Tuesday. I'll try it then, if I don't
get to it sooner.
> I've CC'd mav@ who has likely committed something that's causing this
> issue, but unknown at this time. Relevant cvsweb details which someone
> can sift through:
>
> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ata/
michael
More information about the freebsd-stable
mailing list