All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] x86: kill global bad_dma_address variable
@ 2009-11-15 12:19 FUJITA Tomonori
  2009-11-15 12:19 ` [PATCH 1/3] gart: add own dma_mapping_error function FUJITA Tomonori
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: FUJITA Tomonori @ 2009-11-15 12:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo, fujita.tomonori, muli, joerg.roedel

This is against -tip.

This patchset kills bad_dma_address variable, the old mechanism to
enable IOMMU drivers to make dma_mapping_error() work in IOMMU's
specific way.

bad_dma_address variable was introduced to enable IOMMU drivers to
make dma_mapping_error() work in IOMMU's specific way. However, it
can't handle systems that use both swiotlb and HW IOMMU. SO we
introduced dma_map_ops->mapping_error to solve that case.

Keeping those two mechanisms is pointless. Let's remove the old one.

=
 arch/x86/include/asm/dma-mapping.h |    5 +++--
 arch/x86/kernel/amd_iommu.c        |   21 ++++++++++-----------
 arch/x86/kernel/pci-calgary_64.c   |   31 +++++++++++++------------------
 arch/x86/kernel/pci-dma.c          |    3 ---
 arch/x86/kernel/pci-gart_64.c      |   18 +++++++++++++-----
 arch/x86/kernel/pci-nommu.c        |    2 +-
 6 files changed, 40 insertions(+), 40 deletions(-)




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

end of thread, other threads:[~2009-11-17  8:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-15 12:19 [PATCH 0/3] x86: kill global bad_dma_address variable FUJITA Tomonori
2009-11-15 12:19 ` [PATCH 1/3] gart: add own dma_mapping_error function FUJITA Tomonori
2009-11-17  8:24   ` [tip:core/iommu] x86: gart: Add " tip-bot for FUJITA Tomonori
2009-11-17  8:25   ` [tip:core/iommu] x86: gart: Clean up the code a bit tip-bot for Ingo Molnar
2009-11-15 12:19 ` [PATCH 2/3] x86: kill bad_dma_address variable FUJITA Tomonori
2009-11-17  8:25   ` [tip:core/iommu] x86: Kill " tip-bot for FUJITA Tomonori
2009-11-15 12:19 ` [PATCH 3/3] Calgary: remove unnecessary DMA_ERROR_CODE usage FUJITA Tomonori
2009-11-17  8:25   ` [tip:core/iommu] x86: Calgary: Remove " tip-bot for FUJITA Tomonori

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.