libata-dev-2.6 ATAPI interrupt lost problem with pdc2027x under UDMA mode
Hi,
I am testing ATAPI device with libata-dev.2.6 code and the pdc2027x driver.
Environment:
- pdc20275 on the MSI P4HS-4 mainboard
- Maxtor 6Y080L0 as primary dev0
- Seagate ST380011A as primary dev1
- Asus CRW-5232AS as secondard dev0
The following are the results:
1. All the harddisk drives works fine with either PIO or DMA
2. For the ATAPI device, READ and other commands works fine with ATAPI UDMA protocol. However, when REQUEST_SENSE / MODE_SENSE is issued to the CD-RW drive with ATAPI DMA protocol, the interrupt is lost.
3. All commands, including REQUEST_SENSE/MODE_SENSE, work fine with ATAPI PIO protocol.
4. PIIX and the same Asus drive work fine, both UDMA and PIO.
For the problem of lost interrupt, I've checked the pdc2027x global control register (which shows the status of INTRQ and DMARQ directly), the Asus drive already report INTRQ and said UDMA completed. However, pdc20275 does not report interrupt and said DMA on going.
Any clue or idea for this problem? Thanks.
Albert
=============================================================
(dmesg log attached)ata_scsi_dump_cdb: CDB (2:0,0,0) 12 00 00 00 60 00 20 00 00atapi_xlat: nodata[0]ata_sg_setup_one: mapped buffer of 96 bytes for readata_exec_command_pio: ata2: cmd 0xA0atapi_packet_task: busy waitatapi_packet_task: send cdbata_host_intr: ata2: protocol 7 (dev_stat 0x50) => "inquiry" is successfulata_sg_clean: unmapping 1 sg elements
Vendor: ASUS Model: CRW-5232AS Rev: 1.02
Type: CD-ROM ANSI SCSI revision: 05ata_scsi_dump_cdb: CDB (2:0,0,0) 00 00 00 00 00 00 00 00 00ata_exec_command_pio: ata2: cmd 0xA0atapi_packet_task: busy waitatapi_packet_task: send cdbata_host_intr: ata2: protocol 6 (dev_stat 0x50) => "test unit ready" is successfulata_scsi_dump_cdb: CDB (2:0,0,0) 5a 00 2a 00 00 00 00 00 80 => "mode sense" failsatapi_xlat: nodata[0]ata_sg_setup_one: mapped buffer of 128 bytes for readata_exec_command_pio: ata2: cmd 0xA0atapi_packet_task: busy waitatapi_packet_task: send cdbata_scsi_error: ENTER => Promise pdc2027x timeout here. Interrupt lost. (PIIX works.)ata_eng_timeout: ENTERata_qc_timeout: ENTER
ata2: command 0xa0 timeout, stat 0x50 host_stat 0x1 => Device: OK, host: DMA on going.ata_sg_clean: unmapping 1 sg elementsata_qc_timeout: EXITata_eng_timeout: EXITata_scsi_error: EXIT
sr0: scsi3-mmc drive: 0x/0x caddy
=> should be sr0: scsi3-mmc drive: 52x/52x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20