All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/3]: dma,x86,xen: reduce SWIOTLB usage in Xen guests
@ 2014-11-12 15:25 David Vrabel
  2014-11-12 15:25   ` David Vrabel
                   ` (5 more replies)
  0 siblings, 6 replies; 31+ messages in thread
From: David Vrabel @ 2014-11-12 15:25 UTC (permalink / raw)
  To: linux-kernel
  Cc: David Vrabel, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86,
	xen-devel, Konrad Rzeszutek Wilk, Boris Ostrovsky,
	Greg Kroah-Hartman

On systems where DMA addresses and physical addresses are not 1:1
(such as Xen PV guests), the generic dma_get_required_mask() will not
return the correct mask (since it uses max_pfn).

Some device drivers (such as mptsas, mpt2sas) use
dma_get_required_mask() to set the device's DMA mask to allow them to use
only 32-bit DMA addresses in hardware structures.  This results in
unnecessary use of the SWIOTLB if DMA addresses are more than 32-bits,
impacting performance significantly.

This series allows Xen PV guests to override the default
dma_get_required_mask() with one that calculated the DMA mask from the
maximum MFN (and not the PFN).

The first patch removes a duplicated function between ia64 and common
since we want a common implementation usage by ia64 and x86.

Changes in v2:
- split x86 and xen changes into separate patches

David


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

end of thread, other threads:[~2014-11-14 15:20 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12 15:25 [PATCHv2 0/3]: dma,x86,xen: reduce SWIOTLB usage in Xen guests David Vrabel
2014-11-12 15:25 ` [PATCH 1/3] dma,ia64: add dma_get_required_mask_from_max_pfn() David Vrabel
2014-11-12 15:25   ` David Vrabel
2014-11-14 15:11   ` [PATCH 1/3] dma, ia64: " Stefano Stabellini
2014-11-14 15:11   ` [Xen-devel] " Stefano Stabellini
2014-11-14 15:11     ` Stefano Stabellini
2014-11-12 15:25 ` David Vrabel
2014-11-12 15:25 ` [PATCH 2/3] x86: allow dma_get_required_mask() to be overridden David Vrabel
2014-11-13 10:25   ` [Xen-devel] " Jan Beulich
2014-11-13 10:30     ` David Vrabel
2014-11-13 10:30     ` [Xen-devel] " David Vrabel
2014-11-13 10:32     ` Jan Beulich
2014-11-13 10:32     ` [Xen-devel] " Jan Beulich
2014-11-13 10:25   ` Jan Beulich
2014-11-14 15:19   ` Stefano Stabellini
2014-11-14 15:19   ` Stefano Stabellini
2014-11-12 15:25 ` David Vrabel
2014-11-12 15:25 ` [PATCH 3/3] x86/xen: use the maximum MFN to calculate the required DMA mask David Vrabel
2014-11-12 15:55   ` Jan Beulich
2014-11-12 15:55   ` [Xen-devel] " Jan Beulich
2014-11-12 16:59     ` David Vrabel
2014-11-12 16:59     ` [Xen-devel] " David Vrabel
2014-11-12 17:18       ` Jan Beulich
2014-11-12 17:18       ` [Xen-devel] " Jan Beulich
2014-11-13  9:57     ` Jan Beulich
2014-11-13  9:57     ` Jan Beulich
2014-11-13 10:38     ` [Xen-devel] " Andrew Cooper
2014-11-13 10:53       ` Jan Beulich
2014-11-13 10:53       ` [Xen-devel] " Jan Beulich
2014-11-13 10:38     ` Andrew Cooper
2014-11-12 15:25 ` David Vrabel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.