* pata_via(?): cdrom is recognized as hard drive
@ 2007-10-17 15:35 Michael Tokarev
2007-10-17 16:58 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2007-10-17 15:35 UTC (permalink / raw)
To: linux-ide
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: pata_via(?): cdrom is recognized as hard drive
2007-10-17 15:35 pata_via(?): cdrom is recognized as hard drive Michael Tokarev
@ 2007-10-17 16:58 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2007-10-17 16:58 UTC (permalink / raw)
To: Michael Tokarev; +Cc: linux-ide
On Wed, 17 Oct 2007 19:35:52 +0400
Michael Tokarev <mjt@tls.msk.ru> wrote:
> 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.
Thats deeply weird.
> But with pata_via and 2.6.23, it's handled by sd_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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-17 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 15:35 pata_via(?): cdrom is recognized as hard drive Michael Tokarev
2007-10-17 16:58 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).