MacbookPro4,1, atapci/ata stall during boot

From: Rick van der Zwet <info_at_rickvanderzwet.nl>
Date: Tue, 8 Mar 2011 17:57:48 +0100
After 8.1-RELEASE was running fine, upgrading to 8.2-RELEASE caused to
stalls completely without crash during boot. I now went for a fresh
-CURRENT which still stalls/freezes completely without crashing with
last messages (captured via firewire/dcons):
    atapci0: <Intel ICH8M UDMA100 controller> port
0x8108-0x810f,0x811c-0x811f,0x8100-0x8107,0x8118-0x811b,0x80e0-0x80ef
irq 21 at device 31.1 on pci0
    ata2: <ATA channel 0> on atapci0
    ata2: reset tp1 mask=03 ostat0=50 ostat1=00
    ata2: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb
    ata2: stat1=0x00 err=0x00 lsb=0x00 msb=0x00
    ata2: reset tp2 stat0=00 stat1=00 devices=0x10000
    atapci1: <Intel ICH8M SATA300 controller> port
0x80f8-0x80ff,0x8114-0x8117,0x80f0-0x80f7,0x8110-0x8113,0x8020-0x802f,0x4000-0x400f
irq 18 at device 31.2 on pci0
    ata3: <ATA channel 0> on atapci1


My MacbookPro4,1 is using (S)ATA controller chipset :
        atapci0_at_pci0:0:31:1:	class=0x01018f card=0x00a3106b
chip=0x28508086 rev=0x04 hdr=0x00
        vendor     = 'Intel Corporation'
        device     = '82801H (ICH8 Family) Ultra ATA Storage Controllers'
        class      = mass storage
        subclass   = ATA
    atapci1_at_pci0:0:31:2:	class=0x01018f card=0x00a3106b
chip=0x28288086 rev=0x04 hdr=0x00
        vendor     = 'Intel Corporation'
        device     = '82801 (ICH8M) 3 port SATA Controller'
        class      = mass storage
        subclass   = ATA

The issue seem to be introduced in r214016 which is a fairly large
commit about 'Set of legacy mode SATA enchancements'.

If  using the tree sys/dev/ata_at_214015 it boots fine:
   # svn up -r214015 /usr/src-head/sys/dev/ata
   # make -C /usr/src-head buildkernel installkernel
And the next commit  (which affects my chipset as well) it stops working:
   # svn up -r214016 /usr/src-head/sys/dev/ata
   # make -C /usr/src-head buildkernel installkernel

Does anybody has the same SATA controller chipset (ATA_I82801HBM_S1),
and is able to boot fine?

Any hints on how to debug this issue much appreciated as I having
quite some trouble understanding what the patch changed and how-to
debug this, as it completely freezes the machine, making it impossible
to get into the debugger.

Br. /Rick
-- 
http://rickvanderzwet.nl
Received on Tue Mar 08 2011 - 16:22:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:12 UTC