|
|
Subscribe / Log in / New account

x86 dma_*_coherent rework patchset v2

From:  Joerg Roedel <joerg.roedel@amd.com>
To:  mingo@redhat.com, tglx@linutronix.de, hpa@zytor.com
Subject:  [PATCH 0/8] x86 dma_*_coherent rework patchset v2
Date:  Tue, 19 Aug 2008 16:32:38 +0200
Message-ID:  <1219156366-32498-1-git-send-email-joerg.roedel@amd.com>
Cc:  linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, muli@il.ibm.com
Archive‑link:  Article

Hi,

this patchset reworks the dma_*_coherent functions in the DMA layer for the x86
architecture. The patch series extends the existing DMA backends with missing
*coherent callbacks and simplifies the generic function to basically only call
the registered backend. This allows future optimizations in hardware specific
IOMMU implementations.
The code ist tested on AMD64 with AMD IOMMU, GART, SWIOTLB and NOMMU as well as
on my old 486 box. Muli tested the Calgary specific patch.

Joerg

Changes since v1:

- fixed wrong logic in the pci-nommu alloc_coherent code
- moved dma_*_coherent to include/asm-x86/dma-mapping.h

git diff --stat tip/master.. :

 arch/x86/kernel/amd_iommu.c      |    2 -
 arch/x86/kernel/pci-calgary_64.c |   14 ++++
 arch/x86/kernel/pci-dma.c        |  146 +-------------------------------------
 arch/x86/kernel/pci-gart_64.c    |   35 +++++++++-
 arch/x86/kernel/pci-nommu.c      |   62 ++++++++++++++++
 include/asm-x86/dma-mapping.h    |   47 ++++++++++---
 6 files changed, 149 insertions(+), 157 deletions(-)





Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds