Re: [RFC] speeding up pci_unmap_sg() for SAC mappings

From: Alex Williamson <>
Date: 2004-02-10 03:38:13
On Mon, 2004-02-09 at 08:27, Jes Sorensen wrote:
> 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 Williamson                             HP Linux & Open Source Lab

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Mon Feb 9 11:38:32 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:22 EST