From owner-freebsd-stable@FreeBSD.ORG Mon Nov 1 15:20:13 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1892D10656B3 for ; Mon, 1 Nov 2010 15:20:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id B47BA8FC12 for ; Mon, 1 Nov 2010 15:20:05 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 34B8246B81; Mon, 1 Nov 2010 11:20:05 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id CBB618A027; Mon, 1 Nov 2010 11:20:03 -0400 (EDT) From: John Baldwin To: freebsd-stable@freebsd.org, sclark46@earthlink.net Date: Mon, 1 Nov 2010 09:54:42 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <4CCAE59E.5020006@earthlink.net> <201010291720.11771.jhb@freebsd.org> <4CCEB4B7.6030006@earthlink.net> In-Reply-To: <4CCEB4B7.6030006@earthlink.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011010954.42574.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 01 Nov 2010 11:20:03 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: Jeremy Chadwick Subject: Re: safe mode X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2010 15:20:13 -0000 On Monday, November 01, 2010 8:38:15 am Stephen Clark wrote: > On 10/29/2010 05:20 PM, John Baldwin wrote: > > On Friday, October 29, 2010 4:20:24 pm Stephen Clark wrote: > > > >>> rr232x: RocketRAID 232x controller driver v1.02 (Jan 16 2008 04:16:21) > >>> hptrr: HPT RocketRAID controller driver v1.1 (Jan 16 2008 04:16:19) > >>> > >>> > >> big snip > >> > >>> lo0: bpf attached > >>> rr232x: no controller detected. > >>> hptrr: no controller detected. > >>> m > >>> > >>> > >> Why does FreeBSD think I have a rocket raid controller? This the generic > >> kernel. > >> Is there some way disable this from loading? > >> > > The hptrr driver is in GENERIC in 6.x and it always prints out the first > > message. You can ignore it. > > > > > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x0 > atapci0: Reserved 0x10 bytes for rid 0x20 type 4 at 0xffa0 > ata0: on atapci0 > atapci0: Reserved 0x8 bytes for rid 0x10 type 4 at 0x1f0 > atapci0: Reserved 0x1 bytes for rid 0x14 type 4 at 0x3f6 > ata0: reset tp1 mask=03 ostat0=40 ostat1=40 > ata0: stat0=0x0c err=0x0c lsb=0x0c msb=0x0c > ata0: stat0=0x0f err=0x0f lsb=0x0f msb=0x0f > ata0: stat0=0x0f err=0x0f lsb=0x0f msb=0x0f > ata0: stat0=0x07 err=0x07 lsb=0x07 msb=0x07 > ata0: stat0=0x07 err=0x07 lsb=0x07 msb=0x07 > ata0: stat0=0x07 err=0x07 lsb=0x07 msb=0x07 > ata0: stat0=0x07 err=0x07 lsb=0x07 msb=0x07 > ata0: stat0=0x0f err=0x0f lsb=0x0f msb=0x0f > ata0: stat0=0x07 err=0x07 lsb=0x07 msb=0x07 > ata0: stat0=0x07 err=0x07 lsb=0x07 msb=0x07 > ata0: stat0=0x0f err=0x0f lsb=0x0f msb=0x0f > ata0: stat0=0x07 err=0x07 lsb=0x07 msb=0x07 > ata0: stat1=0x07 err=0x07 lsb=0x07 msb=0x07 > ata0: reset tp2 stat0=87 stat1=87 devices=0x0 > ioapic0: routing intpin 14 (ISA IRQ 14) to vector 55 > ata0: [MPSAFE] > ata0: [ITHREAD] > atapci1: port > 0xc000-0xc007,0xbc00-0xbc03,0xb80 > atapci1: Reserved 0x10 bytes for rid 0x20 type 4 at 0xb480 > atapci1: [MPSAFE] > atapci1: [ITHREAD] > atapci1: Reserved 0x10 bytes for rid 0x24 type 4 at 0xb400 > ata2: on atapci1 > atapci1: Reserved 0x8 bytes for rid 0x10 type 4 at 0xc000 > atapci1: Reserved 0x4 bytes for rid 0x14 type 4 at 0xbc00 > ata2: reset tp1 mask=03 ostat0=50 ostat1=00 > ata2: stat0=0x50 err=0x01 lsb=0x00 msb=0x00 > ata2: stat1=0x00 err=0x01 lsb=0x00 msb=0x00 > ata2: reset tp2 stat0=50 stat1=00 devices=0x1 > ata2: [MPSAFE] > ata2: [ITHREAD] > ata3: on atapci1 > atapci1: Reserved 0x8 bytes for rid 0x18 type 4 at 0xb880 > atapci1: Reserved 0x4 bytes for rid 0x1c type 4 at 0xb800 > ata3: reset tp1 mask=03 ostat0=7f ostat1=7f > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat0=0x7f err=0xff lsb=0xff msb=0xff > ata3: stat1=0x7f err=0xff lsb=0xff msb=0xff > ata3: reset tp2 stat0=ff stat1=ff devices=0x0 > ata3: [MPSAFE] > ata3: [ITHREAD] > .... > ioapic0: Assigning ISA IRQ 1 to local APIC 0 > ioapic0: Assigning ISA IRQ 4 to local APIC 2 > ioapic0: Assigning ISA IRQ 9 to local APIC 0 > ioapic0: Assigning ISA IRQ 14 to local APIC 2 > ioapic0: Assigning PCI IRQ 16 to local APIC 0 > ioapic0: Assigning PCI IRQ 18 to local APIC 2 > ioapic0: Assigning PCI IRQ 19 to local APIC 0 > ioapic0: Assigning PCI IRQ 21 to local APIC 2 > ioapic0: Assigning PCI IRQ 23 to local APIC 0 > msi: Assigning MSI IRQ 256 to local APIC 2 Hmm, 7.2 does not register a handler for IRQ 15 at all, and it doesn't find a second channel (ata1) on atapci0 either. I think that is probably the difference. Try this patch: Index: ata-chipset.c =================================================================== --- ata-chipset.c (revision 214624) +++ ata-chipset.c (working copy) @@ -1762,58 +1762,58 @@ { struct ata_pci_controller *ctlr = device_get_softc(dev); static struct ata_chip_id ids[] = - {{ ATA_I82371FB, 0, 0, 0x00, ATA_WDMA2, "PIIX" }, - { ATA_I82371SB, 0, 0, 0x00, ATA_WDMA2, "PIIX3" }, - { ATA_I82371AB, 0, 0, 0x00, ATA_UDMA2, "PIIX4" }, - { ATA_I82443MX, 0, 0, 0x00, ATA_UDMA2, "PIIX4" }, - { ATA_I82451NX, 0, 0, 0x00, ATA_UDMA2, "PIIX4" }, - { ATA_I82801AB, 0, 0, 0x00, ATA_UDMA2, "ICH0" }, - { ATA_I82801AA, 0, 0, 0x00, ATA_UDMA4, "ICH" }, - { ATA_I82372FB, 0, 0, 0x00, ATA_UDMA4, "ICH" }, - { ATA_I82801BA, 0, 0, 0x00, ATA_UDMA5, "ICH2" }, - { ATA_I82801BA_1, 0, 0, 0x00, ATA_UDMA5, "ICH2" }, - { ATA_I82801CA, 0, 0, 0x00, ATA_UDMA5, "ICH3" }, - { ATA_I82801CA_1, 0, 0, 0x00, ATA_UDMA5, "ICH3" }, - { ATA_I82801DB, 0, 0, 0x00, ATA_UDMA5, "ICH4" }, - { ATA_I82801DB_1, 0, 0, 0x00, ATA_UDMA5, "ICH4" }, - { ATA_I82801EB, 0, 0, 0x00, ATA_UDMA5, "ICH5" }, - { ATA_I82801EB_S1, 0, 0, 0x00, ATA_SA150, "ICH5" }, - { ATA_I82801EB_R1, 0, 0, 0x00, ATA_SA150, "ICH5" }, - { ATA_I6300ESB, 0, 0, 0x00, ATA_UDMA5, "6300ESB" }, - { ATA_I6300ESB_S1, 0, 0, 0x00, ATA_SA150, "6300ESB" }, - { ATA_I6300ESB_R1, 0, 0, 0x00, ATA_SA150, "6300ESB" }, - { ATA_I82801FB, 0, 0, 0x00, ATA_UDMA5, "ICH6" }, - { ATA_I82801FB_S1, 0, AHCI, 0x00, ATA_SA150, "ICH6" }, - { ATA_I82801FB_R1, 0, AHCI, 0x00, ATA_SA150, "ICH6" }, - { ATA_I82801FBM, 0, AHCI, 0x00, ATA_SA150, "ICH6M" }, - { ATA_I82801GB, 0, 0, 0x00, ATA_UDMA5, "ICH7" }, - { ATA_I82801GB_S1, 0, AHCI, 0x00, ATA_SA300, "ICH7" }, - { ATA_I82801GB_R1, 0, AHCI, 0x00, ATA_SA300, "ICH7" }, - { ATA_I82801GB_AH, 0, AHCI, 0x00, ATA_SA300, "ICH7" }, - { ATA_I82801GBM_S1, 0, AHCI, 0x00, ATA_SA300, "ICH7M" }, - { ATA_I82801GBM_R1, 0, AHCI, 0x00, ATA_SA300, "ICH7M" }, - { ATA_I82801GBM_AH, 0, AHCI, 0x00, ATA_SA300, "ICH7M" }, - { ATA_I63XXESB2, 0, 0, 0x00, ATA_UDMA5, "63XXESB2" }, - { ATA_I63XXESB2_S1, 0, AHCI, 0x00, ATA_SA300, "63XXESB2" }, - { ATA_I63XXESB2_S2, 0, AHCI, 0x00, ATA_SA300, "63XXESB2" }, - { ATA_I63XXESB2_R1, 0, AHCI, 0x00, ATA_SA300, "63XXESB2" }, - { ATA_I63XXESB2_R2, 0, AHCI, 0x00, ATA_SA300, "63XXESB2" }, - { ATA_I82801HB_S1, 0, AHCI, 0x00, ATA_SA300, "ICH8" }, - { ATA_I82801HB_S2, 0, AHCI, 0x00, ATA_SA300, "ICH8" }, - { ATA_I82801HB_R1, 0, AHCI, 0x00, ATA_SA300, "ICH8" }, - { ATA_I82801HB_AH4, 0, AHCI, 0x00, ATA_SA300, "ICH8" }, - { ATA_I82801HB_AH6, 0, AHCI, 0x00, ATA_SA300, "ICH8" }, - { ATA_I82801HBM, 0, 0, 0x00, ATA_UDMA5, "ICH8M" }, - { ATA_I82801HBM_S1, 0, 0, 0x00, ATA_SA150, "ICH8M" }, - { ATA_I82801HBM_S2, 0, AHCI, 0x00, ATA_SA300, "ICH8M" }, - { ATA_I82801HBM_S3, 0, AHCI, 0x00, ATA_SA300, "ICH8M" }, - { ATA_I82801IB_S1, 0, AHCI, 0x00, ATA_SA300, "ICH9" }, - { ATA_I82801IB_S2, 0, AHCI, 0x00, ATA_SA300, "ICH9" }, - { ATA_I82801IB_AH2, 0, AHCI, 0x00, ATA_SA300, "ICH9" }, - { ATA_I82801IB_AH4, 0, AHCI, 0x00, ATA_SA300, "ICH9" }, - { ATA_I82801IB_AH6, 0, AHCI, 0x00, ATA_SA300, "ICH9" }, - { ATA_I82801IB_R1, 0, AHCI, 0x00, ATA_SA300, "ICH9" }, - { ATA_I31244, 0, 0, 0x00, ATA_SA150, "31244" }, + {{ ATA_I82371FB, 0, 0, 2, ATA_WDMA2, "PIIX" }, + { ATA_I82371SB, 0, 0, 2, ATA_WDMA2, "PIIX3" }, + { ATA_I82371AB, 0, 0, 2, ATA_UDMA2, "PIIX4" }, + { ATA_I82443MX, 0, 0, 2, ATA_UDMA2, "PIIX4" }, + { ATA_I82451NX, 0, 0, 2, ATA_UDMA2, "PIIX4" }, + { ATA_I82801AB, 0, 0, 2, ATA_UDMA2, "ICH0" }, + { ATA_I82801AA, 0, 0, 2, ATA_UDMA4, "ICH" }, + { ATA_I82372FB, 0, 0, 2, ATA_UDMA4, "ICH" }, + { ATA_I82801BA, 0, 0, 2, ATA_UDMA5, "ICH2" }, + { ATA_I82801BA_1, 0, 0, 2, ATA_UDMA5, "ICH2" }, + { ATA_I82801CA, 0, 0, 2, ATA_UDMA5, "ICH3" }, + { ATA_I82801CA_1, 0, 0, 2, ATA_UDMA5, "ICH3" }, + { ATA_I82801DB, 0, 0, 2, ATA_UDMA5, "ICH4" }, + { ATA_I82801DB_1, 0, 0, 2, ATA_UDMA5, "ICH4" }, + { ATA_I82801EB, 0, 0, 2, ATA_UDMA5, "ICH5" }, + { ATA_I82801EB_S1, 0, 0, 2, ATA_SA150, "ICH5" }, + { ATA_I82801EB_R1, 0, 0, 2, ATA_SA150, "ICH5" }, + { ATA_I6300ESB, 0, 0, 2, ATA_UDMA5, "6300ESB" }, + { ATA_I6300ESB_S1, 0, 0, 2, ATA_SA150, "6300ESB" }, + { ATA_I6300ESB_R1, 0, 0, 2, ATA_SA150, "6300ESB" }, + { ATA_I82801FB, 0, 0, 2, ATA_UDMA5, "ICH6" }, + { ATA_I82801FB_S1, 0, AHCI, 0, ATA_SA150, "ICH6" }, + { ATA_I82801FB_R1, 0, AHCI, 0, ATA_SA150, "ICH6" }, + { ATA_I82801FBM, 0, AHCI, 0, ATA_SA150, "ICH6M" }, + { ATA_I82801GB, 0, 0, 1, ATA_UDMA5, "ICH7" }, + { ATA_I82801GB_S1, 0, AHCI, 0, ATA_SA300, "ICH7" }, + { ATA_I82801GB_R1, 0, AHCI, 0, ATA_SA300, "ICH7" }, + { ATA_I82801GB_AH, 0, AHCI, 0, ATA_SA300, "ICH7" }, + { ATA_I82801GBM_S1, 0, AHCI, 0, ATA_SA300, "ICH7M" }, + { ATA_I82801GBM_R1, 0, AHCI, 0, ATA_SA300, "ICH7M" }, + { ATA_I82801GBM_AH, 0, AHCI, 0, ATA_SA300, "ICH7M" }, + { ATA_I63XXESB2, 0, 0, 1, ATA_UDMA5, "63XXESB2" }, + { ATA_I63XXESB2_S1, 0, AHCI, 0, ATA_SA300, "63XXESB2" }, + { ATA_I63XXESB2_S2, 0, AHCI, 0, ATA_SA300, "63XXESB2" }, + { ATA_I63XXESB2_R1, 0, AHCI, 0, ATA_SA300, "63XXESB2" }, + { ATA_I63XXESB2_R2, 0, AHCI, 0, ATA_SA300, "63XXESB2" }, + { ATA_I82801HB_S1, 0, AHCI, 0, ATA_SA300, "ICH8" }, + { ATA_I82801HB_S2, 0, AHCI, 0, ATA_SA300, "ICH8" }, + { ATA_I82801HB_R1, 0, AHCI, 0, ATA_SA300, "ICH8" }, + { ATA_I82801HB_AH4, 0, AHCI, 0, ATA_SA300, "ICH8" }, + { ATA_I82801HB_AH6, 0, AHCI, 0, ATA_SA300, "ICH8" }, + { ATA_I82801HBM, 0, 0, 1, ATA_UDMA5, "ICH8M" }, + { ATA_I82801HBM_S1, 0, 0, 0, ATA_SA150, "ICH8M" }, + { ATA_I82801HBM_S2, 0, AHCI, 0, ATA_SA300, "ICH8M" }, + { ATA_I82801HBM_S3, 0, AHCI, 0, ATA_SA300, "ICH8M" }, + { ATA_I82801IB_S1, 0, AHCI, 0, ATA_SA300, "ICH9" }, + { ATA_I82801IB_S2, 0, AHCI, 0, ATA_SA300, "ICH9" }, + { ATA_I82801IB_AH2, 0, AHCI, 0, ATA_SA300, "ICH9" }, + { ATA_I82801IB_AH4, 0, AHCI, 0, ATA_SA300, "ICH9" }, + { ATA_I82801IB_AH6, 0, AHCI, 0, ATA_SA300, "ICH9" }, + { ATA_I82801IB_R1, 0, AHCI, 0, ATA_SA300, "ICH9" }, + { ATA_I31244, 0, 0, 2, ATA_SA150, "31244" }, { 0, 0, 0, 0, 0, 0}}; if (!(ctlr->chip = ata_match_chip(dev, ids))) @@ -1855,6 +1855,7 @@ /* non SATA intel chips goes here */ else if (ctlr->chip->max_dma < ATA_SA150) { + ctlr->channels = ctlr->chip->cfg2; ctlr->allocate = ata_intel_allocate; ctlr->setmode = ata_intel_new_setmode; } -- John Baldwin