linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Alan Cox <alan@redhat.com>
Cc: Tejun Heo <htejun@gmail.com>,
	list linux-ide <linux-ide@vger.kernel.org>,
	Jeff Garzik <jgarzik@pobox.com>
Subject: Re: [RFC/Review] libata driver for Apple "macio" pata
Date: Sat, 02 Aug 2008 08:43:37 +1000	[thread overview]
Message-ID: <1217630617.11188.533.camel@pasglop> (raw)
In-Reply-To: <20080801165804.GA21906@devserv.devel.redhat.com>

On Fri, 2008-08-01 at 12:58 -0400, Alan Cox wrote:
> > I know and I believe it should still be ok ... As I said, the chipset
> > should use the PIO field in the register for PIO transfers. And if the
> > above unknown bit is set, I suspect it's just going to increase the
> > setup time a bit or something like that, which won't hurt other than
> > perfs.
> 
> What I do with some other drivers is set the PIO mode in the pio mode function
> but defer DMA timing setup to bmdma_start/stop methods. Some chips need this
> in the PC world and that works nicely.

That would work too I suppose. I already need to tweak the DMA mode in
dbmda_start because of a need on one of the variants of the cell to add
60ns to the setup time on UDMA reads. However, the search for timing is
a bit of overhead I would have been happy to avoid there :-)

Oh well, we'll see how things go, but in this area, I think my current
code will work just fine.

> > The reason is that I can only have 64K-4K per transfer (I don't think I
> > can do 64K per DBDMA entry). So the above routine can potentially
> > breakup, in the worst case scenario, the table into twice as many
> > entries if they are all 64K precisely.
> 
> See ata_sff_dumb_qc_prep - we have PC chips with the same bug!

Yes well, this is an added bug of alignment restrictions which I don't
have (ie, you can't cross 64K boundaries, I'm pretty sure I can :-)

Anyway, setting the max segment size in the new dma params is what I
need to do here.

Cheers,
Ben.

> --
>    "Engineers are 'small children' when it comes to product warning labels"
> 					-- John Duino
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ide" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


      reply	other threads:[~2008-08-01 22:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-01  9:08 [RFC/Review] libata driver for Apple "macio" pata Benjamin Herrenschmidt
2008-08-01  9:59 ` Tejun Heo
2008-08-01 10:56   ` Benjamin Herrenschmidt
2008-08-01 16:13     ` Tejun Heo
2008-08-01 22:40       ` Benjamin Herrenschmidt
2008-08-01 16:58     ` Alan Cox
2008-08-01 22:43       ` Benjamin Herrenschmidt [this message]

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=1217630617.11188.533.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=alan@redhat.com \
    --cc=htejun@gmail.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).