Current-Users archive

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

viaide SATA DVD support



I recently installed a SATA DVD burner in my -current (5.99.17 from 2009/09/15) amd64 system, and NetBSD probes it as a wd0 ST506:

[...]
viaide1 at pci0 dev 7 function 0: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
viaide1: bus-master DMA support present
viaide1: primary channel wired to native-PCI mode
LTID: Picked IRQ 22 with weight 0
viaide1: using ioapic0 pin 22 for native-PCI interrupt
atabus2 at viaide1 channel 0
viaide1: secondary channel wired to native-PCI mode
atabus3 at viaide1 channel 1
[...]
viaide1 port 0: device present, speed: 1.5Gb/s
viaide1: port 0: scnt=0x3 sn=0x1 cl=0x0 ch=0x8
viaide2 port 0: device present, speed: 1.5Gb/s
viaide2: port 0: scnt=0x1 sn=0x1 cl=0x0 ch=0x0
viaide2 port 1: device present, speed: 1.5Gb/s
viaide2: port 1: scnt=0x1 sn=0x1 cl=0x0 ch=0x0
viaide1:0:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
viaide1:0:1: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
viaide1:0: wdcwait_reset() end, st0=0x0 st1=0x0
atabusattach: ch_drive_flags 0x1 0x0
wd0 at atabus2 drive 0viaide2:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
viaide2:0:1: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
viaide2:0: wdcwait_reset() end, st0=0x50 st1=0x0
atabusattach: ch_drive_flags 0x1 0x0
viaide2:1:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
viaide2:1:1: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
viaide2:1: wdcwait_reset() end, st0=0x50 st1=0x0
atabusattach: ch_drive_flags 0x1 0x0
atabusattach: ch_drive_flags 0x0 0x0
ata_get_parms: ata_c.flags=0x129
: <ST506>
wd0: drive supports 1-sector PIO transfers, chs addressing
wd0: 69632 KB, 1024 cyl, 8 head, 17 sec, 512 bytes/sect x 139264 sectors
ata_get_parms: ata_c.flags=0x129
wd0(viaide1:0:0): using PIO mode 0

I saw PR port-i386/36648 about viaide having problems with a SATA DVD drive, but at least in the PR, it was attaching as cd0, not wd0. Anything I can do to help debug/fix this? I notice it initially says "viaide1: port 0: scnt=0x3 sn=0x1 cl=0x0 ch=0x8", but later says "viaide1:0:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb", which looks better (it has the 0xeb14 ATAPI signature, at least). However, it still didn't attach to atapibus...

--
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym%azeotrope.org@localhost |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 33 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA + PL++



Home | Main Index | Thread Index | Old Index