[RFC] speeding up pci_unmap_sg() for SAC mappings

From: Jes Sorensen <jes_at_trained-monkey.org>
Date: 2004-02-10 02:27:39

I was looking at the sn2 PCI mapping code and realized how it is costing
to do a basic pci_unmap because the code has to search a table to figure
out which struct dmamap entry matches a given dma address. Clearly the
sn code could be improved in terms of how it is currently implemented,
however there is still the fundamental problem of mapping from a
dma_addr_t to a dma-map entry which I believe all IOMMU code
implmentations suffer from. The pretty way to clean this up would
probably require changing the whole mapping API, however one of the most
interesting cases is pci_unmap_sg.

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.


To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Feb 9 10:29:15 2004

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