From owner-freebsd-current@FreeBSD.ORG Tue Nov 25 13:28:08 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DD871065670 for ; Tue, 25 Nov 2008 13:28:08 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id C96888FC14 for ; Tue, 25 Nov 2008 13:28:07 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (l207029.dynamic.ppp.asahi-net.or.jp [218.219.207.29]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 403A869915; Tue, 25 Nov 2008 22:07:19 +0900 (JST) Date: Tue, 25 Nov 2008 22:07:18 +0900 From: WATANABE Kazuhiro To: freebsd-current In-Reply-To: <20081124.015707.02304508.t.ichinoseki@nifty.com> References: <20081124.015707.02304508.t.ichinoseki@nifty.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20081125130719.403A869915@mail.asahi-net.or.jp> Cc: Toshikazu ICHINOSEKI Subject: Unable to boot with SiS ATA chipsets (Re: Unable to boot on ECS K7S5A) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 13:28:08 -0000 Hello. I've also encountered the same problem on my PCs: * NEC PC-VC3004D (SiS 651) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1000-0x100f at device 2.5 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] * Compaq Presario 2262 (SiS 5597) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcb0-0xfcbf at device 1.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] Without your patch, the ata driver wants to attach all devices that has SiS vendor ID (0x1039) as an ATA controller. With your patch, only these ATA controllers are attached correctly. Thanks! Here is the Presario's dmesg: * Without the patch GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #14: Tue Nov 25 10:58:08 JST 2008 nabe@capricorn:/FreeBSD/obj/i386/HEAD/FreeBSD/HEAD/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Cyrix 6x86MX (233.87-MHz 686-class CPU) Origin = "CyrixInstead" Id = 0x600 Stepping = 0 DIR=0x0854 Features=0x80a135 Features2=0x64616574,x2APIC,,XSAVE,,> real memory = 264241152 (252 MB) avail memory = 239845376 (228 MB) kbd1 at kbdmux0 ath_hal: 0.10.5.10 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417) apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 atapci0: at device 1.0 on pci0 ata0: on atapci0 device_attach: ata0 attach returned 6 ata1: on atapci0 device_attach: ata1 attach returned 6 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcb0-0xfcbf at device 1.1 on pci0 atapci2: mem 0xfedff000-0xfedfffff irq 9 at device 1.2 on pci0 atapci2: [ITHREAD] ata2: on atapci2 device_attach: ata2 attach returned 6 dc0: port 0xfc00-0xfc7f mem 0xfedfec00-0xfedfefff irq 11 at device 5.0 on pci0 miibus0: on dc0 dcphy0: PHY 31 on miibus0 dcphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc0: Ethernet address: 00:10:e3:xx:xx:xx dc0: [ITHREAD] pci0: at device 13.0 (no driver attached) fxp0: port 0xfcc0-0xfcdf mem 0xfedfd000-0xfedfdfff,0xfec00000-0xfecfffff irq 9 at device 18.0 on pci0 miibus1: on fxp0 inphy0: PHY 1 on miibus1 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:90:27:xx:xx:xx fxp0: [ITHREAD] atapci3: port 0xf880-0xf8ff mem 0xfe800000-0xfebfffff,0xfede0000-0xfedeffff at device 20.0 on pci0 atapci3: unable to map interrupt device_attach: atapci3 attach returned 6 cpu0 on motherboard isa0: on motherboard pmtimer0 on isa0 unknown: can't assign resources (memory) unknown: can't assign resources (memory) atrtc0: at port 0x70-0x71 irq 8 pnpid PNP0b00 on isa0 atkbdc0: at port 0x60,0x64 irq 1 pnpid PNP0303 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sbc0: at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 pnpid CPQb0ab on isa0 sbc0: [GIANT-LOCKED] sbc0: [ITHREAD] pcm0: on sbc0 pcm0: [GIANT-LOCKED] pcm0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 pnpid PNP0501 on isa0 uart0: [FILTER] uart0: console (9600,n,8,1) fdc1: at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 pnpid PNP0700 on isa0 fdc1: [FILTER] ppc0: at port 0x378-0x37f,0x778-0x77f irq 7 drq 3 pnpid PNP0401 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] ppbus0: on ppc0 plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xc0000-0xcbfff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fdc0: No FDOUT register! unknown: can't assign resources (memory) unknown: can't assign resources (memory) Timecounters tick every 1.000 msec WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/ad2s1a Manual root filesystem specification: : Mount using filesystem eg. ufs:da0s1a ? List valid disk boot devices Abort manual input mountroot> panic: Root mount failed, startup aborted. cpuid = 0 KDB: enter: panic [thread pid 1 tid 100002 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db> where Tracing pid 1 tid 100002 td 0xc2554d80 kdb_enter(c0bccda8,c0bccda8,c0bd9c6a,c2268c68,0,...) at kdb_enter+0x3a panic(c0bd9c6a,c0bc6069,c0bbdf67,1,c0881950,...) at panic+0x136 vfs_mountroot(c0d1cf90,4,c0bc73fa,265,0,...) at vfs_mountroot+0x46e start_init(0,c2268d38,c0bc8f59,327,c2552d0c,...) at start_init+0x65 fork_exit(c07c7e50,0,c2268d38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc2268d70, ebp = 0 --- db> reboot * With the patch GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #13: Mon Nov 24 17:45:14 JST 2008 nabe@capricorn:/FreeBSD/obj/i386/HEAD/FreeBSD/HEAD/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Cyrix 6x86MX (233.87-MHz 686-class CPU) Origin = "CyrixInstead" Id = 0x600 Stepping = 0 DIR=0x0854 Features=0x80a135 Features2=0x64616574,x2APIC,,XSAVE,,> real memory = 264241152 (252 MB) avail memory = 239845376 (228 MB) kbd1 at kbdmux0 ath_hal: 0.10.5.10 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417) apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcb0-0xfcbf at device 1.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] ohci0: mem 0xfedff000-0xfedfffff irq 9 at device 1.2 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered dc0: port 0xfc00-0xfc7f mem 0xfedfec00-0xfedfefff irq 11 at device 5.0 on pci0 miibus0: on dc0 dcphy0: PHY 31 on miibus0 dcphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc0: Ethernet address: 00:10:e3:xx:xx:xx dc0: [ITHREAD] pci0: at device 13.0 (no driver attached) fxp0: port 0xfcc0-0xfcdf mem 0xfedfd000-0xfedfdfff,0xfec00000-0xfecfffff irq 9 at device 18.0 on pci0 miibus1: on fxp0 inphy0: PHY 1 on miibus1 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:90:27:xx:xx:xx fxp0: [ITHREAD] vgapci0: port 0xf880-0xf8ff mem 0xfe800000-0xfebfffff,0xfede0000-0xfedeffff at device 20.0 on pci0 cpu0 on motherboard pmtimer0 on isa0 unknown: can't assign resources (memory) unknown: can't assign resources (memory) atrtc0: at port 0x70-0x71 irq 8 pnpid PNP0b00 on isa0 atkbdc0: at port 0x60,0x64 irq 1 pnpid PNP0303 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sbc0: at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 pnpid CPQb0ab on isa0 sbc0: [GIANT-LOCKED] sbc0: [ITHREAD] pcm0: on sbc0 pcm0: [GIANT-LOCKED] pcm0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 pnpid PNP0501 on isa0 uart0: [FILTER] uart0: console (9600,n,8,1) fdc1: at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 pnpid PNP0700 on isa0 fdc1: [FILTER] ppc0: at port 0x378-0x37f,0x778-0x77f irq 7 drq 3 pnpid PNP0401 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] ppbus0: on ppc0 plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xc0000-0xcbfff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fdc0: No FDOUT register! unknown: can't assign resources (memory) unknown: can't assign resources (memory) Timecounters tick every 1.000 msec ad0: 2014MB at ata0-master UDMA33 acd0: CDROM at ata0-slave PIO4 ad2: 19092MB at ata1-master UDMA33 WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/ad2s1a At Mon, 24 Nov 2008 01:57:07 +0900 (JST), Toshikazu ICHINOSEKI wrote: > Michael Moll wrote: > > Hello, > > > > after upgrading to new -CURRENT sources, my box (ECS K7S5A board) is not > > able to boot. I attached verbose boot-messages (dmesg.new) and for > > reference the boot-messages of the older, working kernel (dmesg.old). > > > > As one of messages is "atapci0: unable to map interrupt" I suspect some > > trouble in ATA oder ACPI code... Any hints? > > > > Hi Michael, > > my ECS K7S5A box (ACPI disabled) has similar problem in recent -CURRENT. > It crashes after probing ata disks in booting. > Following patch makes my box to boot again. > > --- sys/dev/ata/chipsets/ata-sis.c.orig 2008-10-09 21:56:57.000000000 +0900 > +++ sys/dev/ata/chipsets/ata-sis.c 2008-11-18 21:48:12.000000000 +0900 > @@ -108,6 +108,9 @@ > if (pci_get_vendor(dev) != ATA_SIS_ID) > return ENXIO; > > + if (pci_get_class(dev) != PCIC_STORAGE) > + return ENXIO; > + > if (!(idx = ata_find_chip(dev, ids, -pci_get_slot(dev)))) > return ENXIO; > > -- > > Cheers, > > Toshikazu --- WATANABE Kazuhiro (CQG00620@nifty.ne.jp)