linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6.0-test9-mm2] Error trying to read a cdrom disc
@ 2003-11-11 18:22 Ramón Rey Vicente
  2003-11-11 18:24 ` Ramón Rey Vicente
  0 siblings, 1 reply; 2+ messages in thread
From: Ramón Rey Vicente @ 2003-11-11 18:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton


[-- Attachment #1.1: Type: text/plain, Size: 2244 bytes --]

Hi.

This problem appears in 2.6.0-test9-mm2 and 2.6.0-test9-bk16.

The issue is: my cdrom drive is on the secondary ide controller as
slave. I try to read the cdrom disc with two different ATAPI cdrom
drives (a Sansung drive and other ATAPI compatible drive) and in both
cases as slave of the secondary ide controller.

The problem appears trying to copy de contents of the cdrom disc to an
iso image in the hard disk.

With this command:

cat /dev/hdd > knoppix-es.iso

..and with this:

cp /dev/hdd knoppix-es.iso

and this other command:

dd if=/dev/hdd of=knoppix-es.iso

... generate the same error than this, a problem with DMA, because the
drive is trying to access to a wrong part of the cdrom, because the
information the driver is reporting to the programs is not the correct
info about the media sizes of the cdroms discs in the drives connected
as slave of the secondary ide controller:

readcd dev=/dev/hdd f=knoppix-es.iso
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD capabilities page.
Read  speed:  2112 kB/s (CD  12x, DVD  1x).
Write speed:     0 kB/s (CD   0x, DVD  0x).
Capacity: 345646 Blocks = 691292 kBytes = 675 MBytes = 707 prMB
Sectorsize: 2048 Bytes
Copy from SCSI (0,0,0) disk to file 'knoppix-es.iso'
end:    345646
readcd: Success. read_g1: scsi sendcmd: no error
CDB:  28 00 00 05 46 12 00 00 1C 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 64 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x64 Qual 0x00 (illegal mode for this track) Fru 0x0
Sense flags: Blk 0 (not valid) 
resid: 57344
cmd finished after 11.709s timeout 40s
readcd: Success. Cannot read source disk
readcd: Retrying from sector 345618

With my LG cdwriter (as master of the secondary ide controller) there is
no problem.
-- 
Ramón Rey Vicente       <ramon dot rey at hispalinux dot es>
        jabber ID       <rreylinux at jabber dot org>
GPG public key ID 	0xBEBD71D5 -> http://pgp.escomposlinux.org/

[-- Attachment #1.2: via_controller --]
[-- Type: text/plain, Size: 0 bytes --]



[-- Attachment #1.3: ide_drivers --]
[-- Type: text/plain, Size: 51 bytes --]

ide-cdrom version 4.59-ac1
ide-disk version 1.18

[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6.0-test9-mm2] Error trying to read a cdrom disc
  2003-11-11 18:22 [2.6.0-test9-mm2] Error trying to read a cdrom disc Ramón Rey Vicente
@ 2003-11-11 18:24 ` Ramón Rey Vicente
  0 siblings, 0 replies; 2+ messages in thread
From: Ramón Rey Vicente @ 2003-11-11 18:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton


[-- Attachment #1.1: Type: text/plain, Size: 227 bytes --]

Sorry, the info about my ide controller
-- 
Ramón Rey Vicente       <ramon dot rey at hispalinux dot es>
        jabber ID       <rreylinux at jabber dot org>
GPG public key ID 	0xBEBD71D5 -> http://pgp.escomposlinux.org/

[-- Attachment #1.2: via_controller_info --]
[-- Type: text/plain, Size: 1476 bytes --]

----------VIA BusMastering IDE Configuration----------------
Driver Version:                     3.38
South Bridge:                       VIA vt82c586b
Revision:                           ISA 0x47 IDE 0x6
Highest DMA rate:                   UDMA33
BM-DMA base:                        0xe000
PCI clock:                          33.3MHz
Master Read  Cycle IRDY:            1ws
Master Write Cycle IRDY:            1ws
BM IDE Status Register Read Retry:  yes
Max DRDY Pulse Width:               No limit
-----------------------Primary IDE-------Secondary IDE------
Read DMA FIFO flush:          yes                 yes
End Sector FIFO flush:         no                  no
Prefetch Buffer:              yes                 yes
Post Write Buffer:            yes                  no
Enabled:                      yes                 yes
Simplex only:                  no                  no
Cable Type:                   40w                 40w
-------------------drive0----drive1----drive2----drive3-----
Transfer Mode:       UDMA      UDMA       PIO       DMA
Address Setup:       30ns      30ns      30ns      30ns
Cmd Active:          90ns      90ns      90ns      90ns
Cmd Recovery:        30ns      30ns      30ns      30ns
Data Active:         90ns      90ns      90ns      90ns
Data Recovery:       30ns      30ns      30ns      30ns
Cycle Time:          60ns      60ns     120ns     120ns
Transfer Rate:   33.3MB/s  33.3MB/s  16.6MB/s  16.6MB/s

[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-11 18:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 18:22 [2.6.0-test9-mm2] Error trying to read a cdrom disc Ramón Rey Vicente
2003-11-11 18:24 ` Ramón Rey Vicente

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).