All of lore.kernel.org
 help / color / mirror / Atom feed
* [00/15] swiotlb cleanup
@ 2009-07-10  1:04 ` FUJITA Tomonori
  0 siblings, 0 replies; 99+ messages in thread
From: FUJITA Tomonori @ 2009-07-10  1:04 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-ia64, linuxppc-dev, benh, tony.luck, x86, fujita.tomonori, beckyb

- removes unused (and unnecessary) hooks in swiotlb.

- adds dma_capable() and converts swiotlb to use it. It can be used to
know if a memory area is dma capable or not. I added
is_buffer_dma_capable() for the same purpose long ago but it turned
out that the function doesn't work on POWERPC.

This can be applied cleanly to linux-next, -mm, and mainline. This
patchset touches multiple architectures (ia64, powerpc, x86) so I
guess that -mm is appropriate for this patchset (I don't care much
what tree would merge this though).

This is tested on x86 but only compile tested on POWERPC and IA64.

Thanks,

=
 arch/ia64/include/asm/dma-mapping.h    |   18 ++++++
 arch/powerpc/include/asm/dma-mapping.h |   23 +++++++
 arch/powerpc/kernel/dma-swiotlb.c      |   48 +---------------
 arch/x86/include/asm/dma-mapping.h     |   18 ++++++
 arch/x86/kernel/pci-dma.c              |    2 +-
 arch/x86/kernel/pci-gart_64.c          |    5 +-
 arch/x86/kernel/pci-nommu.c            |    2 +-
 arch/x86/kernel/pci-swiotlb.c          |   25 --------
 include/linux/dma-mapping.h            |    5 --
 include/linux/swiotlb.h                |   11 ----
 lib/swiotlb.c                          |  102 +++++++++-----------------------
 11 files changed, 92 insertions(+), 167 deletions(-)




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

end of thread, other threads:[~2009-07-18 10:42 UTC | newest]

Thread overview: 99+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-10  1:04 [00/15] swiotlb cleanup FUJITA Tomonori
2009-07-10  1:04 ` FUJITA Tomonori
2009-07-10  1:04 ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 01/15] swiotlb: remove unused swiotlb_alloc_boot() FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 02/15] swiotlb: remove unused swiotlb_alloc() FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 03/15] swiotlb: remove swiotlb_arch_range_needs_mapping FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 04/15] swiotlb: remove unnecessary swiotlb_bus_to_virt FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-14  2:17   ` Becky Bruce
2009-07-14  2:17     ` Becky Bruce
2009-07-14  2:17     ` Becky Bruce
2009-07-14  5:08     ` FUJITA Tomonori
2009-07-14  5:08       ` FUJITA Tomonori
2009-07-14  5:08       ` FUJITA Tomonori
2009-07-16  3:40     ` Benjamin Herrenschmidt
2009-07-16  3:40       ` Benjamin Herrenschmidt
2009-07-16  3:40       ` Benjamin Herrenschmidt
2009-07-10  1:04 ` [PATCH 05/15] x86: add dma_capable() to replace is_buffer_dma_capable() FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 06/15] x86: replace is_buffer_dma_capable() with dma_capable FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 07/15] ia64: add dma_capable() to replace is_buffer_dma_capable() FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 08/15] powerpc: " FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 09/15] swiotlb: use dma_capable() FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04 ` [PATCH 10/15] powerpc: remove unncesary swiotlb_arch_address_needs_mapping FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:04   ` FUJITA Tomonori
2009-07-10  1:05 ` [PATCH 11/15] remove is_buffer_dma_capable() FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05 ` [PATCH 12/15] x86, IA64, powerpc: add phys_to_dma() and dma_to_phys() FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05 ` [PATCH 13/15] swiotlb: use phys_to_dma and dma_to_phys FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05 ` [PATCH 14/15] powerpc: remove unused swiotlb_phys_to_bus() and swiotlb_bus_to_phys() FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05 ` [PATCH 15/15] x86: " FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  1:05   ` FUJITA Tomonori
2009-07-10  5:12 ` [00/15] swiotlb cleanup Ingo Molnar
2009-07-10  5:12   ` Ingo Molnar
2009-07-10  5:12   ` Ingo Molnar
2009-07-10  5:35   ` FUJITA Tomonori
2009-07-10  5:35     ` FUJITA Tomonori
2009-07-10  5:35     ` FUJITA Tomonori
2009-07-10 14:02     ` Ian Campbell
2009-07-10 14:02       ` Ian Campbell
2009-07-10 14:02       ` Ian Campbell
2009-07-13  4:20       ` FUJITA Tomonori
2009-07-13  4:20         ` FUJITA Tomonori
2009-07-13  4:20         ` FUJITA Tomonori
2009-07-13  9:40         ` Ian Campbell
2009-07-13  9:40           ` Ian Campbell
2009-07-13  9:40           ` Ian Campbell
2009-07-13  9:53           ` FUJITA Tomonori
2009-07-13  9:53             ` FUJITA Tomonori
2009-07-13  9:53             ` FUJITA Tomonori
2009-07-13 10:05             ` Ian Campbell
2009-07-13 10:05               ` Ian Campbell
2009-07-13 10:05               ` Ian Campbell
2009-07-10 14:01   ` Ian Campbell
2009-07-10 14:01     ` Ian Campbell
2009-07-10 14:01     ` Ian Campbell
2009-07-10 14:12     ` Ingo Molnar
2009-07-10 14:12       ` Ingo Molnar
2009-07-10 14:12       ` Ingo Molnar
2009-07-13  4:20       ` FUJITA Tomonori
2009-07-13  4:20         ` FUJITA Tomonori
2009-07-13  4:20         ` FUJITA Tomonori
2009-07-13  9:16         ` FUJITA Tomonori
2009-07-13  9:16           ` FUJITA Tomonori
2009-07-13  9:16           ` FUJITA Tomonori
2009-07-18 10:41           ` Ingo Molnar
2009-07-18 10:41             ` Ingo Molnar
2009-07-18 10:41             ` Ingo Molnar
2009-07-14  3:13   ` Becky Bruce
2009-07-14  3:13     ` Becky Bruce
2009-07-14  3:13     ` Becky Bruce
2009-07-15 20:24     ` Becky Bruce
2009-07-15 20:24       ` Becky Bruce
2009-07-15 20:24       ` Becky Bruce

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.