From: Alex Williamson <alex.williamson@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC] speeding up pci_unmap_sg() for SAC mappings
Date: Mon, 09 Feb 2004 16:38:13 +0000 [thread overview]
Message-ID: <1076344693.3752.26.camel@patsy.fc.hp.com> (raw)
In-Reply-To: <16423.42731.766788.360790@gargle.gargle.HOWL>
On Mon, 2004-02-09 at 08:27, Jes Sorensen wrote:
[snip]
>
> Christoph suggested that we add an arch dependent pointer to struct
> scatterlist that we can use to short circuit the unmap process.
>
> Anyone have any strong objections to this? While it can be considered a
> bit hackerish it really should help on performance without making any
> visible changes to the end user.
I don't necessarily have a strong objections, but I also don't see
this as a problem that all iommus have. The sba_iommu, for instance,
has a direct translation between dma_addr_t and pdir entries. There's
no lookup necessary, just a mask and shift. The swiotlb uses the same
type of approach. Even with a change to scatterlist, won't you still
have the issue w/ pci_unmap_single? Perhaps a lookup table within the
iommu code would provide the speedup you're looking for.
Alex
--
Alex Williamson HP Linux & Open Source Lab
next prev parent reply other threads:[~2004-02-09 16:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-09 15:27 [RFC] speeding up pci_unmap_sg() for SAC mappings Jes Sorensen
2004-02-09 16:38 ` Alex Williamson [this message]
2004-02-09 16:52 ` Grant Grundler
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=1076344693.3752.26.camel@patsy.fc.hp.com \
--to=alex.williamson@hp.com \
--cc=linux-ia64@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