NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/37826 (Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip))



On Fri, Feb 27, 2009 at 07:49:07AM +0100, dholland%NetBSD.org@localhost wrote:
> Synopsis: Kernel sees only one SATA channel (out of four) on Abit AN52 
> motherboard (nvidia nf520__single chip)
> 
> State-Changed-From-To: feedback->open
> State-Changed-By: dholland%NetBSD.org@localhost
> State-Changed-When: Fri, 27 Feb 2009 06:49:06 +0000
> State-Changed-Why:
> It is still attaching as viaide, and therefore still not working.

Just another data point: I'm running with the patch^Whack below "for ages"
on my Sun Ultra 40's. That's nforce4 resp nforcePro2000, but the symptoms
had been the same...

kurt

>-1119: (cd /usr/src && cvs diff sys/dev/pci/viaide.c)
Index: sys/dev/pci/viaide.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/viaide.c,v
retrieving revision 1.58
diff -r1.58 viaide.c
855a856,870
>       /*
>        * enable memory-space access. sometimes memory space is
>        * _not_ enabled so "just do it" to get things going!
>        */
>       {
>       pcireg_t csr;
>       if (pa->pa_memt) {
>           pa->pa_flags |= PCI_FLAGS_MEM_ENABLED;
>           sc->sc_ba5_st = pa->pa_memt;
>       }
>       csr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
>       pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
>           csr | PCI_COMMAND_MEM_ENABLE);
>       }
> 
Relavant excerpts from dmesg:

...
viaide0 at pci0 dev 6 function 0
viaide0: NVIDIA nForce4 IDE Controller (rev. 0xf2)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at ioapic0 pin 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at ioapic0 pin 15
atabus1 at viaide0 channel 1
viaide1 at pci0 dev 7 function 0
viaide1: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
viaide1: bus-master DMA support present
viaide1: primary channel wired to native-PCI mode
LSI1: Picked IRQ 23 with weight 0
viaide1: using ioapic0 pin 23 for native-PCI interrupt
atabus2 at viaide1 channel 0
viaide1: secondary channel wired to native-PCI mode
atabus3 at viaide1 channel 1
viaide2 at pci0 dev 8 function 0
viaide2: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
viaide2: bus-master DMA support present
viaide2: primary channel wired to native-PCI mode
LTID: Picked IRQ 20 with weight 1
viaide2: using ioapic0 pin 20 for native-PCI interrupt
atabus4 at viaide2 channel 0
viaide2: secondary channel wired to native-PCI mode
atabus5 at viaide2 channel 1

...

pci4 at mainbus0 bus 128
pci4: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
NVIDIA nForce4 Memory Controller (miscellaneous memory, revision 0xa3) at pci4 
dev 0 function 0 not 
configured
NVIDIA product 0x00d3 (miscellaneous memory, revision 0xf3) at pci4 dev 1 
function 0 not configured
viaide3 at pci4 dev 7 function 0
viaide3: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
viaide3: bus-master DMA support present
viaide3: primary channel wired to native-PCI mode
LTID: Picked IRQ 44 with weight 0
viaide3: using ioapic1 pin 20 for native-PCI interrupt
atabus6 at viaide3 channel 0
viaide3: secondary channel wired to native-PCI mode
atabus7 at viaide3 channel 1
viaide4 at pci4 dev 8 function 0
viaide4: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
viaide4: bus-master DMA support present
viaide4: primary channel wired to native-PCI mode
LSI1: Picked IRQ 45 with weight 0
viaide4: using ioapic1 pin 21 for native-PCI interrupt
atabus8 at viaide4 channel 0
viaide4: secondary channel wired to native-PCI mode
atabus9 at viaide4 channel 1

...

viaide2 port 0: device present, speed: 3.0Gb/s
viaide1 port 0: device present, speed: 1.5Gb/s
viaide1 port 1: device present, speed: 3.0Gb/s
viaide2 port 1: device present, speed: 3.0Gb/s
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
wd0 at atabus2 drive 0: <ST3250823AS>
wd0: quirks 0x2<FORCE_LBA48>
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: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus3 drive 0: <HITACHI HDS7225SBSUN250G 0548N68BPE>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 232 GB, 484514 cyl, 16 head, 63 sec, 512 bytes/sect x 488390625 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(viaide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd2 at atabus4 drive 0: <SEAGATE ST32500NSSUN250G 0740B56A8Y>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 232 GB, 484514 cyl, 16 head, 63 sec, 512 bytes/sect x 488390625 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(viaide2:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd3 at atabus5 drive 0: <SEAGATE ST32500NSSUN250G 0740B56AAZ>
wd3: drive supports 16-sector PIO transfers, LBA48 addressing
wd3: 232 GB, 484514 cyl, 16 head, 63 sec, 512 bytes/sect x 488390625 sectors
wd3: 32-bit data port
wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd3(viaide2:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)






Home | Main Index | Thread Index | Old Index