linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Hancock <hancockrwd@gmail.com>
To: Stan Hoeppner <stan@hardwarefreak.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: ata2.00: failed to set xfermode (err_mask=0x100),ata2.00: disabled, CD-ROM drive dead
Date: Sun, 28 Mar 2010 14:01:16 -0600	[thread overview]
Message-ID: <4BAFB58C.5050702@gmail.com> (raw)
In-Reply-To: <4BAF9670.6010706@hardwarefreak.com>

On 03/28/2010 11:48 AM, Stan Hoeppner wrote:
> David Milburn put forth on 3/25/2010 4:52 PM:
>> On Thu, Mar 25, 2010 at 04:19:16AM -0500, Stan Hoeppner wrote:
>>> Tejun Heo put forth on 3/24/2010 7:38 PM:
>>>> Hello,
>>>>
>>>> On 03/16/2010 09:26 AM, Stan Hoeppner wrote:
>>>>> ata2.00: ATAPI: Pioneer CD-ROM ATAPI Model DR-A24X  0102, E1.02, max MWDMA2
>>>>> ata2.00: failed to set xfermode (err_mask=0x100)
>>>>> TCP cubic registered
>>>>> NET: Registered protocol family 17
>>>>> Using IPI Shortcut mode
>>>>> rtc_cmos rtc_cmos: setting system clock to 2010-03-10 20:53:54 UTC (1268254434)
>>>>> ata2.00: failed to set xfermode (err_mask=0x100)
>>>>> ata2.00: limiting speed to MWDMA2:PIO3
>>>>> ata2.00: failed to set xfermode (err_mask=0x100)
>>>>
>>>> AC_ERR_OTHER on SETXFER, that's rare.  Maybe the drive needs
>>>> ATA_HORKAGE_NOSETXFER?  Can you please post boot log with ide driver?
>>>
>>> Hello Tejun,
>>>
>>> Here is the relevant dmesg output for my kernel with the PIIX IDE driver:
>>>
>>> Linux version 2.6.32.9 (root@greer) (gcc version 4.3.2 (Debian 4.3.2-1.1) )
>>> #1 SMP Wed Mar 17 20:21:58 CDT 2010
>>> ...
>>> Uniform Multi-Platform E-IDE driver
>>> piix 0000:00:07.1: IDE controller (0x8086:0x7111 rev 0x01)
>>> piix 0000:00:07.1: IDE port disabled
>>> piix 0000:00:07.1: not 100% native mode: will probe irqs later
>>>      ide0: BM-DMA at 0xf008-0xf00f
>>> Probing IDE interface ide0...
>>> hda: Pioneer CD-ROM ATAPI Model DR-A24X 0102, ATAPI CD/DVD-ROM drive
>>> hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
>>> hda: MWDMA2 mode selected
>>> ide0 at 0x170-0x177,0x376 on irq 15
>>> ide-cd driver 5.00
>>> ide-cd: hda: ATAPI 20X CD-ROM drive, 128kB Cache
>>> Uniform CD-ROM driver Revision: 3.20
>>>
>>> I must admit the CD-ROM drive is rather old, a late 90's model slot loading
>>> Pioneer drive, but it works fine with the PIIX IDE driver.  If it is needed
>>> for success under libata, where would I set ATA_HORKAGE_NOSETXFER?
>>
>> Hello,
>>
>> If you are going to try to skip SETXFER, I think you will need an entry in
>> ata_device_blacklist, something like this.
>>
>>   drivers/ata/libata-core.c |    1 +
>>   1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
>> index 4a28420..8dfcf85 100644
>> --- a/drivers/ata/libata-core.c
>> +++ b/drivers/ata/libata-core.c
>> @@ -4388,6 +4388,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
>>   	 * device and controller are SATA.
>>   	 */
>>   	{ "PIONEER DVD-RW  DVRTD08",	"1.00",	ATA_HORKAGE_NOSETXFER },
>> +	{ "Pioneer CD-ROM ATAPI Model DR-A24X  0102", "E1.02", ATA_HORKAGE_NOSETXFER },
>>
>>   	/* End Marker */
>>   	{ }
>
> I tried this but it doesn't work:
>
> ata_piix 0000:00:07.1: version 2.13
> scsi0 : ata_piix
> scsi1 : ata_piix
> ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xf000 irq 14
> ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xf008 irq 15
> ata1: port disabled. ignoring.
> ...
> ata2.00: ATAPI: Pioneer CD-ROM ATAPI Model DR-A24X  0102, E1.02, max MWDMA2
> ata2.00: NOSETXFER but PATA detected - can't skip SETXFER, might malfunction

Yeah, NOSETXFER doesn't take effect on PATA drives. It could, but it 
would assume that the BIOS has set the right mode which seems rather 
dangerous.

Shouldn't we be getting some error handling output from the command failing?

> ata2.00: failed to set xfermode (err_mask=0x100)
> ...
> ata2.00: NOSETXFER but PATA detected - can't skip SETXFER, might malfunction
> ata2.00: failed to set xfermode (err_mask=0x100)
> ata2.00: limiting speed to MWDMA2:PIO3
> ata2.00: NOSETXFER but PATA detected - can't skip SETXFER, might malfunction
> ata2.00: failed to set xfermode (err_mask=0x100)
> ata2.00: disabled
>
> The old IDE subsystem and piix.c combo set the xfer mode on this CD-ROM
> drive just fine, and the drive works fine.  Both this IDE chip and the
> CD-ROM drive are well over 10 years old, from around 1998/99 time frame.  I
> would think their behavior would be well understood by now.  The libata and
> ata_piix combo seem to have a problem here.  I guess that's why they are
> labeled 'experimental' in menuconfig.  Let me know what else I can do to

They're not anymore, actually.

> help this along.  IIRC, the goal is to completely eliminate the old IDE
> subsystem in favor of libata.  I'm guessing that can't happen until issues
> such as this case are resolved.
>


  reply	other threads:[~2010-03-28 20:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-15 21:01 ata2.00: failed to set xfermode (err_mask=0x100),ata2.00: disabled, CD-ROM drive dead Stan Hoeppner
2010-03-15 23:44 ` Robert Hancock
2010-03-16  0:26   ` Stan Hoeppner
2010-03-25  0:38     ` Tejun Heo
2010-03-25  9:19       ` Stan Hoeppner
2010-03-25 21:52         ` David Milburn
2010-03-28 17:48           ` Stan Hoeppner
2010-03-28 20:01             ` Robert Hancock [this message]
2010-03-28 23:47               ` Tejun Heo
2010-03-29  0:09                 ` Stan Hoeppner
2010-03-29  0:25                   ` Tejun Heo
2010-03-29 23:20                     ` Stan Hoeppner
2010-03-29  0:26                   ` Stan Hoeppner
2010-03-29  0:31                     ` 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=4BAFB58C.5050702@gmail.com \
    --to=hancockrwd@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=stan@hardwarefreak.com \
    /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).