Unable to boot with SiS ATA chipsets (Re: Unable to boot on ECS K7S5A)

From: WATANABE Kazuhiro <CQG00620_at_nifty.ne.jp>
Date: Tue, 25 Nov 2008 22:07:18 +0900
Hello.

I've also encountered the same problem on my PCs:

 * NEC PC-VC3004D (SiS 651)

atapci0: <SiS 962/963 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1000-0x100f at device 2.5 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]

 * Compaq Presario 2262 (SiS 5597)

atapci0: <SiS 5513 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcb0-0xfcbf at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> 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_at_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<FPU,DE,TSC,MSR,CX8,PGE,CMOV,MMX>
  Features2=0x64616574<DTES64,DS_CPL,VMX,SMX,TM2,CNXT-ID,CX16,xTPR,<b16>,x2APIC,<b22>,XSAVE,<b29>,<b30>>
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: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 6 Entries> on motherboard
pci0: <PCI bus> on pcib0
atapci0: <SiS 5513 UDMA33 controller> at device 1.0 on pci0
ata0: <ATA channel 0> on atapci0
device_attach: ata0 attach returned 6
ata1: <ATA channel 1> on atapci0
device_attach: ata1 attach returned 6
atapci1: <SiS 5513 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcb0-0xfcbf at device 1.1 on pci0
atapci2: <SiS 5513 UDMA33 controller> mem 0xfedff000-0xfedfffff irq 9 at device 1.2 on pci0
atapci2: [ITHREAD]
ata2: <ATA channel 0> on atapci2
device_attach: ata2 attach returned 6
dc0: <Intel 21143 10/100BaseTX> port 0xfc00-0xfc7f mem 0xfedfec00-0xfedfefff irq 11 at device 5.0 on pci0
miibus0: <MII bus> on dc0
dcphy0: <Intel 21143 NWAY media interface> PHY 31 on miibus0
dcphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:10:e3:xx:xx:xx
dc0: [ITHREAD]
pci0: <simple comms> at device 13.0 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0xfcc0-0xfcdf mem 0xfedfd000-0xfedfdfff,0xfec00000-0xfecfffff irq 9 at device 18.0 on pci0
miibus1: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> PHY 1 on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:90:27:xx:xx:xx
fxp0: [ITHREAD]
atapci3: <SiS 5513 UDMA33 controller> 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: <ISA bus> on motherboard
pmtimer0 on isa0
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0c01> can't assign resources (memory)
atrtc0: <AT realtime clock> at port 0x70-0x71 irq 8 pnpid PNP0b00 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 irq 1 pnpid PNP0303 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
sbc0: <ESS ES1869 (Compaq OEM)> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 pnpid CPQb0ab on isa0
sbc0: [GIANT-LOCKED]
sbc0: [ITHREAD]
pcm0: <ESS 18xx DSP> on sbc0
pcm0: [GIANT-LOCKED]
pcm0: [ITHREAD]
psm0: <PS/2 Mouse> 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: <Enhanced floppy controller> at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 pnpid PNP0700 on isa0
fdc1: [FILTER]
ppc0: <ECP parallel printer port> 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: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fdc0: No FDOUT register!
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0c01> 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:
  <fstype>:<device>  Mount <device> using filesystem <fstype>
                       eg. ufs:da0s1a
  ?                  List valid disk boot devices
  <empty line>       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_at_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<FPU,DE,TSC,MSR,CX8,PGE,CMOV,MMX>
  Features2=0x64616574<DTES64,DS_CPL,VMX,SMX,TM2,CNXT-ID,CX16,xTPR,<b16>,x2APIC,<b22>,XSAVE,<b29>,<b30>>
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: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 6 Entries> on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <SiS 5513 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcb0-0xfcbf at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
ohci0: <SiS 5571 USB controller> mem 0xfedff000-0xfedfffff irq 9 at device 1.2 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
dc0: <Intel 21143 10/100BaseTX> port 0xfc00-0xfc7f mem 0xfedfec00-0xfedfefff irq 11 at device 5.0 on pci0
miibus0: <MII bus> on dc0
dcphy0: <Intel 21143 NWAY media interface> PHY 31 on miibus0
dcphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:10:e3:xx:xx:xx
dc0: [ITHREAD]
pci0: <simple comms> at device 13.0 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0xfcc0-0xfcdf mem 0xfedfd000-0xfedfdfff,0xfec00000-0xfecfffff irq 9 at device 18.0 on pci0
miibus1: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> PHY 1 on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:90:27:xx:xx:xx
fxp0: [ITHREAD]
vgapci0: <VGA-compatible display> port 0xf880-0xf8ff mem 0xfe800000-0xfebfffff,0xfede0000-0xfedeffff at device 20.0 on pci0
cpu0 on motherboard
pmtimer0 on isa0
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0c01> can't assign resources (memory)
atrtc0: <AT realtime clock> at port 0x70-0x71 irq 8 pnpid PNP0b00 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 irq 1 pnpid PNP0303 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
sbc0: <ESS ES1869 (Compaq OEM)> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 pnpid CPQb0ab on isa0
sbc0: [GIANT-LOCKED]
sbc0: [ITHREAD]
pcm0: <ESS 18xx DSP> on sbc0
pcm0: [GIANT-LOCKED]
pcm0: [ITHREAD]
psm0: <PS/2 Mouse> 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: <Enhanced floppy controller> at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 pnpid PNP0700 on isa0
fdc1: [FILTER]
ppc0: <ECP parallel printer port> 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: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fdc0: No FDOUT register!
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0c01> can't assign resources (memory)
Timecounters tick every 1.000 msec
ad0: 2014MB <Seagate ST32111A 3.02> at ata0-master UDMA33
acd0: CDROM <CD-ROM CDU701/1.0q> at ata0-slave PIO4
ad2: 19092MB <Seagate ST320413A 3.05> 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 <kvedulv_at_kvedulv.de> 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
> _at__at_ -108,6 +108,9 _at__at_
>      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_at_nifty.ne.jp)
Received on Tue Nov 25 2008 - 12:28:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:38 UTC