linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: linux-ide@vger.kernel.org
Subject: Re: ata_piix on Thinkpad T30 - qc timeout on boot
Date: Wed, 15 Nov 2006 00:43:10 -0500	[thread overview]
Message-ID: <1163569390.4410.8.camel@dv> (raw)
In-Reply-To: <1163563453.3100.24.camel@dv>

Hello again and sorry for post scriptum.

On Tue, 2006-11-14 at 23:04 -0500, Pavel Roskin wrote:

> ata2.01: qc timeout (cmd 0xa1)
> ata2.01: failed to IDENTIFY (I/O error, err_mask=0x4)
... 
> Note that with CONFIG_IDE, the hard drive is /dev/hda and DVD
> is /dev/hdc, so it's not the secondary interface - it's something else.

Closer examination of the code shows that the problem is with the slave
on the secondary interface, i.e. /dev/hdd in the IDE driver.

Here's one thing I didn't mention.  The combo DVD-ROM/CD-RW drive I'm
using wasn't native to the laptop.  I took it from another Thinkpad -
from an older T23 model (and I'm dealing with T30) to replace a native
DVD-ROM.

That's how the drive is identified:

scsi 1:0:0:0: CD-ROM            MATSHITA UJDA720 DVD/CDRW 1.03 PQ: 0 ANSI: 5

I swapped the drives back and there is no delay anymore!

scsi0 : ata_piix                                                                                
ata1.00: ATA-5, max UDMA/100, 78140160 sectors: LBA                                             
ata1.00: ata1: dev 0 multi count 16                                                             
ata1.00: configured for UDMA/100                                                                
scsi1 : ata_piix                                                                                
ata2.00: ATAPI, max UDMA/33                                                                     
ata2.00: configured for UDMA/33                                                                 
scsi 0:0:0:0: Direct-Access     ATA      IC25N040ATCS05-0 CS4O PQ: 0 ANSI: 5                    
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)                                      
sda: Write Protect is off                                                                       
SCSI device sda: drive cache: write back                                                        
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)                                      
sda: Write Protect is off                                                                       
SCSI device sda: drive cache: write back                                                        
 sda: sda1 sda2 sda3 sda4                                                                       
sd 0:0:0:0: Attached scsi disk sda                                                              
sd 0:0:0:0: Attached scsi generic sg0 type 0                                                    
scsi 1:0:0:0: CD-ROM            MATSHITA DVD-ROM SR-8177  NB21 PQ: 0 ANSI: 5                    

Likewise, there is no delay if I remove the drive:

scsi0 : ata_piix                                                                                
ata1.00: ATA-5, max UDMA/100, 78140160 sectors: LBA                                             
ata1.00: ata1: dev 0 multi count 16                                                             
ata1.00: configured for UDMA/100                                                                
scsi1 : ata_piix                                                                                
scsi 0:0:0:0: Direct-Access     ATA      IC25N040ATCS05-0 CS4O PQ: 0 ANSI: 5                    
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)                                      

There are no jumpers on either drive.  I assume they are configured as
either master or "cable select".

I also tried booting the same kernel on the Thinkpad T23 with the combo
drive.  I got the same "qc timeout" errors.  Thinkpad T23 has the same
IDE controller 8086:248a, it's also at 00:1f.1.

So the problem has been reduced to Matsushita (Matshita Panasonic)
UJDA720 in an IBM Thinkpad blocking detection of empty slave on the same
port.  It's clearly a regression in libata compared to the IDE driver,
and it would be nice to have it fixed.

-- 
Regards,
Pavel Roskin



  reply	other threads:[~2006-11-15  8:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15  4:04 ata_piix on Thinkpad T30 - qc timeout on boot Pavel Roskin
2006-11-15  5:43 ` Pavel Roskin [this message]
2006-11-15 11:12   ` Tejun Heo
2006-11-15 20:00     ` Pavel Roskin
2006-11-15 20:43       ` Jeff Garzik
2006-11-15 11:47   ` Alan
2006-11-15 12:06     ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1163569390.4410.8.camel@dv \
    --to=proski@gnu.org \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).