Subject: Re: nForce4 SATA trouble
To: Jonathan A. Kollasch <jakllsch@kollasch.net>
From: Jonathan A. Kollasch <jakllsch@kollasch.net>
List: port-amd64
Date: 12/30/2005 15:28:11
--X+8siUETKMkW99st
Content-Type: multipart/mixed; boundary="1giRMj6yz/+FOIRq"
Content-Disposition: inline


--1giRMj6yz/+FOIRq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Dec 30, 2005 at 12:57:40AM -0600, Jonathan A. Kollasch wrote:
> On Thu, Dec 29, 2005 at 07:39:04PM -0600, Jonathan A. Kollasch wrote:
> > Hi,
> > 	On an Epox EP-9NPA+ (nForce4) w/ Opteron 170
> > (dual core 2.0GHz) I'm having trouble installing NetBSD/amd64
> > 3.0 because the viaide(4) SATA controller isn't working right
> > ("lost interrupt" or some such). 2.1_RC5 i386 INSTALL,
> > GENERIC.MPACPI and GENERIC kernels work fine. I fully expected
> > the ethernet not to work but this took me by surprise.
> > Is there anything I can try?
>=20
> Damn, I should Google first, post later.  Back in September
> someone had this same problem.  -current apparently has the
> fix.  Guess I'll break out build.sh.

Does anyone have working SATA on an nForce4 board?  -current from
approx. yesterday has the same problem as amd64 3.0.  The BIOS
won't let me disable the APIC.  Does anyone have ideas?

One thing I noticed in the dmesg of amd64 -current was that
interrupt 10 was on pin 11 and interrupt 11 was on pin 10,
is this a problem?  The problematic disk controller is at
one of these IRQs.  On i386 the IRQ and pin number match.

	Jonathan Kollasch

Attached is the dmesg from i386 2.1_RC5 GENERIC.MPACPI.

--1giRMj6yz/+FOIRq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=amd64dmesg

NetBSD 2.1_RC5 (GENERIC.MPACPI) #0: Wed Oct 12 17:14:36 CDT 2005
	jakllsch@santraginus.kollasch.net:/home/jakllsch/build/src/sys/arch/i386/compile/obj/GENERIC.MPACPI
total memory = 3455 MB
avail memory = 3373 MB
BIOS32 rev. 0 found at 0xfad10
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Unknown K7 (Athlon) (686-class), 2009.36 MHz, id 0x20f32
cpu0: features 178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 178bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
cpu0: features 178bfbff<FXSR,SSE,SSE2,B28>
cpu0: calibrating local timer
cpu0: apic clock running at 200 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: AMD Unknown K7 (Athlon) (686-class), 2009.26 MHz, id 0x20f32
cpu1: features 178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 178bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
cpu1: features 178bfbff<FXSR,SSE,SSE2,B28>
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0
ioapic0: remapped to apic 2
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20040211
acpi0: X/RSDT: OemId <Nvidia,AWRDACPI,42302e31>, AslId <AWRD,00000000>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0A08 at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
PNP0100 [AT Timer] at acpi0 not configured
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
PNP0800 [AT-style speaker sound] at acpi0 not configured
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: using exception 16
fdc0 at acpi0 (PNP0700)
fdc0: io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
com0 at acpi0 (PNP0501-1)
com0: io 0x3f8-0x3ff irq 4
com0: ns16550a, working fifo
com1 at acpi0 (PNP0501-2)
com1: io 0x2f8-0x2ff irq 3
com1: ns16550a, working fifo
lpt0 at acpi0 (PNP0400)
lpt0: io 0x378-0x37f,0x778-0x77b irq 7
pckbc0 at acpi0 (PNP0303): kbd port
pckbc0: io 0x60,0x64 irq 1
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
PNP0C0B [ACPI Fan] at acpi0 not configured
acpitz0 at acpi0: ACPI Thermal Zone
acpitz0: unable to get polling interval; using default of 30.0s
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
Nvidia Corporation product 0x005e (miscellaneous memory, revision 0xa3) at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0
pcib0: Nvidia Corporation product 0x0050 (rev. 0xa3)
Nvidia Corporation product 0x0052 (SMBus serial bus, revision 0xa2) at pci0 dev 1 function 1 not configured
ohci0 at pci0 dev 2 function 0: Nvidia Corporation product 0x005a (rev. 0xa2)
ohci0: interrupting at ioapic0 pin 5 (irq 5)
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Nvidia Corporat OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
ehci0 at pci0 dev 2 function 1: Nvidia Corporation product 0x005b (rev. 0xa3)
ehci0: interrupting at ioapic0 pin 12 (irq 12)
ehci0: EHCI version 1.0
ehci0: companion controller, 4 ports each: ohci0
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: Nvidia Corporat EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
Nvidia Corporation product 0x0059 (audio multimedia, revision 0xa2) at pci0 dev 4 function 0 not configured
pciide0 at pci0 dev 6 function 0
pciide0: Nvidia Corporation product 0x0053 (rev. 0xa2)
pciide0: bus-master DMA support present, but unused (no driver support)
pciide0: primary channel configured to compatibility mode
pciide0: primary channel ignored (not responding; disabled or no drives?)
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus0 at pciide0 channel 1
pciide1 at pci0 dev 7 function 0
pciide1: Nvidia Corporation product 0x0054 (rev. 0xa3)
pciide1: bus-master DMA support present, but unused (no driver support)
pciide1: primary channel wired to native-PCI mode
pciide1: using ioapic0 pin 10 (irq 10) for native-PCI interrupt
atabus1 at pciide1 channel 0
pciide1: secondary channel wired to native-PCI mode
atabus2 at pciide1 channel 1
pciide2 at pci0 dev 8 function 0
pciide2: Nvidia Corporation product 0x0055 (rev. 0xa3)
pciide2: bus-master DMA support present, but unused (no driver support)
pciide2: primary channel wired to native-PCI mode
pciide2: using ioapic0 pin 11 (irq 11) for native-PCI interrupt
atabus3 at pciide2 channel 0
pciide2: secondary channel wired to native-PCI mode
atabus4 at pciide2 channel 1
ppb0 at pci0 dev 9 function 0: Nvidia Corporation product 0x005c (rev. 0xa2)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
rtk0 at pci1 dev 6 function 0: D-Link Systems DFE 530TX+
rtk0: interrupting at ioapic0 pin 12 (irq 12)
rtk0: Ethernet address 00:05:5d:45:b8:ee
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
VIA Technologies VT3606 OHCI IEEE 1394 Controller (Firewire serial bus, interface 0x10, revision 0x80) at pci1 dev 9 function 0 not configured
Nvidia Corporation product 0x0057 (miscellaneous bridge, revision 0xa3) at pci0 dev 10 function 0 not configured
ppb1 at pci0 dev 11 function 0: Nvidia Corporation product 0x005d (rev. 0xa3)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 12 function 0: Nvidia Corporation product 0x005d (rev. 0xa3)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci0 dev 13 function 0: Nvidia Corporation product 0x005d (rev. 0xa3)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ppb4 at pci0 dev 14 function 0: Nvidia Corporation product 0x005d (rev. 0xa3)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
vga0 at pci5 dev 0 function 0: Nvidia Corporation product 0x0140 (rev. 0xa2)
vga0: WARNING: ignoring 64-bit BAR @ 0x14
vga0: WARNING: ignoring 64-bit BAR @ 0x1c
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pchb0 at pci0 dev 24 function 0
pchb0: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb1 at pci0 dev 24 function 1
pchb1: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb2 at pci0 dev 24 function 2
pchb2: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb3 at pci0 dev 24 function 3
pchb3: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <LITE-ON DVDRW SHW-160P6S, , PS01> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0 at atabus3 drive 0: <ST3250823AS>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu1: CPU 1 running
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

--1giRMj6yz/+FOIRq--

--X+8siUETKMkW99st
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iD8DBQFDtaZrOjx1ye3hmokRAq7mAJ9Jg2I8NmsoidMkGlt4GSz/ITcXhgCgmAVU
ZKOm3enijyIBFYXB2lGJKUc=
=9LNm
-----END PGP SIGNATURE-----

--X+8siUETKMkW99st--