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

Previous thread: Call for testers: Atheros AR8121(L1E)/AR8113/AR8114(L2E) ethernet / addition by albri on Sunday, November 16, 2008 - 8:15 am. (1 message)

Next thread: Fwd: CSUP failure by jT on Sunday, November 16, 2008 - 1:49 pm. (7 messages)
From: Michael Moll
Date: Sunday, November 16, 2008 - 10:00 am

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?

Best Regards
-- 
Michael Moll
e-mail : kvedulv@kvedulv.de
  WWW  : http://www.kvedulv.de/
  GSM  : +49 175 606 7861
From: Toshikazu ICHINOSEKI
Date: Sunday, November 23, 2008 - 9:57 am

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
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
From: Michael Moll
Date: Sunday, November 23, 2008 - 4:12 pm

Hi Toshikazu,


Works here also, Thanks a lot :)
-- 
Michael Moll
e-mail : kvedulv@kvedulv.de
  WWW  : http://www.kvedulv.de/
  GSM  : +49 175 606 7861
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
From: WATANABE Kazuhiro
Date: Tuesday, November 25, 2008 - 6:07 am

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@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 ...
Previous thread: Call for testers: Atheros AR8121(L1E)/AR8113/AR8114(L2E) ethernet / addition by albri on Sunday, November 16, 2008 - 8:15 am. (1 message)

Next thread: Fwd: CSUP failure by jT on Sunday, November 16, 2008 - 1:49 pm. (7 messages)