From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Albert Lee <albertcc@tw.ibm.com>
Cc: Jeff Garzik <jgarzik@pobox.com>,
IDE Linux <linux-ide@vger.kernel.org>,
Doug Maxey <dwm@maxeymade.com>
Subject: Re: [PATCH 3/3] libata - Query the driver for ATAPI DMA support
Date: Fri, 17 Dec 2004 21:01:17 +0100 [thread overview]
Message-ID: <58cb370e041217120141c524f9@mail.gmail.com> (raw)
In-Reply-To: <002201c4e330$562a61d0$e4574109@tw.ibm.com>
On Thu, 16 Dec 2004 13:28:28 +0800, Albert Lee <albertcc@tw.ibm.com> wrote:
> Hi, Jeff:
>
> >
> > > After some testing, it seems that some PATA host adapter (ex. pdc20275) cannot
> > > work reliably with specific request buffer sizes under ATAPI DMA mode.
> > >
> > > Detailed test result:
> > > 4096, 2048, 1024, 512, 256: OK
> > > 384, 257, 255, 128, 96, 64, 32: failed (irq lost)
> > >
> > > It seems multiple of 256 bytes are the safe ATAPI DMA buffer sizes to use.
> > >
> >
> > Attached please find the patch to fix the pdc2027x ATAPI DMA problem.
> > (The patch is against libata-dev-2.6 tree.)
> >
> > Changes:
> > 1. Add a callback function "check_atapi_dma()" to ata_port_operations such that libata core
> > can ask the driver: "Can this command be processed in ATAPI DMA mode safely? "
> > when the the command is received.
> > 2. ATAPI DMA is off by default if the callback function is not provided by the driver
>
> Sorry, there is a mistake in the previous patch. Revised the patch here:
> If the callback function is not provided by the driver, the ATAPI DMA should be as is.
> We should not turn off ATAPI DMA silently as in the previous patch. The ATAPI DMA is
> already controlled by dev->flags.
>
> BTW, the patch isolates the ATAPI DMA workaround to the pdc20275 driver itself, not impacting libata core .
> Attached please find the revised patch for your review.
Looks fine, only one minor nitpick - it seems some newlines are missed...
> @@ -1947,7 +1947,24 @@
> if (idx)
> ap->prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT);
> }
> +/**
etc.
All three patches look OK.
Jeff, could you merge them if they are fine with you?
[ 1 and 2 should probably go to libata-2.6 but of course it's up to you ]
Bartlomiej
next prev parent reply other threads:[~2004-12-17 20:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-16 5:28 [PATCH 3/3] libata - Query the driver for ATAPI DMA support Albert Lee
2004-12-17 20:01 ` Bartlomiej Zolnierkiewicz [this message]
2004-12-27 20:29 ` Jeff Garzik
-- strict thread matches above, loose matches on Subject: below --
2004-12-15 10:05 Albert Lee
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=58cb370e041217120141c524f9@mail.gmail.com \
--to=bzolnier@gmail.com \
--cc=albertcc@tw.ibm.com \
--cc=dwm@maxeymade.com \
--cc=jgarzik@pobox.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 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).