mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Borislav Petkov <petkovbb@googlemail.com>
To: Michael Roth <mroth@nessie.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Bug in 2.6.29 ide-cd: Kernel freeze: bisected + unacceptable  workaround
Date: Tue, 31 Mar 2009 16:06:11 +0200	[thread overview]
Message-ID: <9ea470500903310706i23e2225fo42ff17f14c277594@mail.gmail.com> (raw)
In-Reply-To: <49D20E1B.7010104@nessie.de>

Hi,

On Tue, Mar 31, 2009 at 2:35 PM, Michael Roth <mroth@nessie.de> wrote:
>>> take it ok. Also, if I remember correctly, the original ide-cd behavior
>>> was to issue the command and _then_ start DMA so we're back to that. I
>>> guess now we should be concerned whether the other ATAPI devices can
>>> handle the reverse situation where you first issue a command and _then_
>>> start DMA.. Hmm...
>>
>> Most devices don't care but you do need to follow the exact ATAPI spec.
>> If you search way back through the archives you'll find long discussions
>> on this during either 2.4 or 2.2 when HP hit problems caused by us
>> turning DMA on too early.
>
> AFAIK, the old bevavior was to start DMA _after_ issuing the command _only_
> for CD-drives and for the remaining ide devices the other way around,
> why not just restore the old behavior and do the DMA after command only
> for CD-drives?

because common atapi code should adhere to the spec, as Alan said, no matter
whether it is a cd or a floppy or [you name it]-drive.

@Alan: I guess you refer to
http://lkml.indiana.edu/hypermail/linux/kernel/0305.1/2241.html, for example.
I think I'll be on the safe side when I turn on DMA _after_
writing the ATAPI command packet into the data register - it is the correct
order of steps according to the ATA spec. So, if there are devices which still
choke on that, then they're simply buggy and those will hopefully be a small
number so that a blacklist with a flag as a workaround would be more or
less ok for them - we do that for other b0rked devices anyway.

-- 
Regards/Gruss,
Boris

  reply	other threads:[~2009-03-31 14:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-29 19:25 Michael Roth
2009-03-29 20:13 ` Borislav Petkov
2009-03-29 21:37   ` Michael Roth
2009-03-30  7:27     ` Borislav Petkov
2009-03-30 11:10       ` Michael Roth
2009-03-30 11:38       ` Michael Roth
2009-03-30 11:50         ` Michael Roth
2009-03-30 20:28       ` Bartlomiej Zolnierkiewicz
2009-03-31  7:45         ` Borislav Petkov
2009-03-31 11:28           ` Alan Cox
2009-03-31 12:35             ` Michael Roth
2009-03-31 14:06               ` Borislav Petkov [this message]
2009-03-31 18:01           ` Bartlomiej Zolnierkiewicz

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=9ea470500903310706i23e2225fo42ff17f14c277594@mail.gmail.com \
    --to=petkovbb@googlemail.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=bzolnier@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mroth@nessie.de \
    --cc=petkovbb@gmail.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

all inboxes | Powered by JetHome®