public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] speeding up pci_unmap_sg() for SAC mappings
@ 2004-02-09 15:27 Jes Sorensen
  2004-02-09 16:38 ` Alex Williamson
  2004-02-09 16:52 ` Grant Grundler
  0 siblings, 2 replies; 3+ messages in thread
From: Jes Sorensen @ 2004-02-09 15:27 UTC (permalink / raw)
  To: linux-ia64

Hi,

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.

Comments?

Cheers,
Jes

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-09 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-09 15:27 [RFC] speeding up pci_unmap_sg() for SAC mappings Jes Sorensen
2004-02-09 16:38 ` Alex Williamson
2004-02-09 16:52 ` Grant Grundler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox