Current-Users archive

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

Re: viaide SATA DVD support



Well, I can't really help here, but I had similar issues with device recognition when trying to use ahcisata on my motherboard's Marvell
88SE614X.

The device would fail to respond to an IDENTIFY command, and thus it "defaults" to an ST506 hard drive with rather limited geometry. :)

Siknce I had many other SATA ports available, I just gave up on the Marvell controller.


On Thu, 17 Sep 2009, David Huang wrote:

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++


-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index