pata_via(?): cdrom is recognized as hard drive
And one more issue with my attempt to switch
from via82cxxx to pata_via.
I noticied that on all machines I tried to convert, CD-Rom devices are recognized as hard disks.
With via82cxxx and ide-cd, it was like
hdc: IDE cdrom model=FX4830T s/n=4JV6F7Q4 fw=8.01 udma5
But with pata_via and 2.6.23, it's handled by sd_mod:
# ls /sys/block sda/ sdb/ sdc/ sdd/ # cat /sys/block/sdc/removable 0 # cat /sys/block/sdc/device/type 0 # echo "'$(cat /sys/block/sdc/device/model)'" ' ' # echo "'$(cat /sys/block/sdc/device/vendor)'" ' '
# hdparm -i /dev/sdc
/dev/sdc:
Model=FX4830T , FwRev=R02E , SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic } RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0 BuffType=unknown, BuffSize=128kB, MaxMultSect=0 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
* signifies the current active mode
Is it how the things supposed to be, or is something wrong with the detection? Note that this happens on several machines, however all of them so far has via82cxxx controller:
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (VT8633 chipset)
(I use pata_via driver on a home machine for a long time, with another controller (CN700/VN800/P4M800CE/Pro chipset)), and everything there works as expected, since early pata days).
2.6.20, 2.6.22, 2.6.23 behaves the same.
Thanks.
/mjt
Quoted 5 lines · On Wed, 17 Oct 2007 19:35:52 +0400 Michael Tokarev <[email protected]> wrote:
And one more issue with my attempt to switch
from via82cxxx topata_via.I noticied that on all machines I tried to convert, CD-Rom devices are recognized as hard disks.
Thats deeply weird.
Quoted 1 line
But with
pata_viaand 2.6.23, it's handled bysd_mod:
CD's are handled by sr_mod. I suspect this is actually arising out of the fact both devices seem to be falling over each other after the SRST.
Can you stick all this in a bugzilla and assign it to me so it doesn't get lost.
Alan