All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stan Hoeppner <stan@hardwarefreak.com>
To: 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 19:26:31 -0500	[thread overview]
Message-ID: <4BAFF3B7.4060604@hardwarefreak.com> (raw)
In-Reply-To: <4BAFEFA3.3090502@hardwarefreak.com>

Stan Hoeppner put forth on 3/28/2010 7:09 PM:
> Tejun Heo put forth on 3/28/2010 6:47 PM:
>> Hello,
>>
>> On 03/29/2010 05:01 AM, Robert Hancock wrote:
>>>> 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.
>>
>> Well, we can issue the command, ignore the error and then check the
>> correct mode is configured during revalidation.  For now, the
>> following should show us whether something like that would work.
>>
>> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
>> index 4a28420..ca4a50a 100644
>> --- a/drivers/ata/libata-core.c
>> +++ b/drivers/ata/libata-core.c
>> @@ -3446,6 +3446,10 @@ static int ata_dev_set_mode(struct ata_device *dev)
>>  				       "NOSETXFER but PATA detected - can't "
>>  				       "skip SETXFER, might malfunction\n");
>>  		err_mask = ata_dev_set_xfermode(dev);
>> +		if (err_mask)
>> +			ata_dev_printk(dev, KERN_WARNING, "SETXFER failed w/ %x\n",
>> +				       err_mask);
>> +		err_mask = 0;
>>  	}
>>
>>  	if (err_mask & ~AC_ERR_DEV)
> 
> 
> I'm still using 2.6.32.9.  Is it ok to apply this against 2.6.32.9?

Oh, and do I need to keep the black list entry or get rid of it?

-- 
Stan




  parent reply	other threads:[~2010-03-29  0:26 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
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 [this message]
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=4BAFF3B7.4060604@hardwarefreak.com \
    --to=stan@hardwarefreak.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.