lkml.org 
[lkml]   [2009]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: use x86_platform for iommu_shutdown

* FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:

> This patch cleans up pci_iommu_shutdown() a bit to use x86_platform
> (similar to how IA64 initializes an IOMMU driver).
>
> This adds iommu_shutdown() to x86_platform to avoid calling every
> IOMMUs' shutdown functions in pci_iommu_shutdown() in order. The IOMMU
> shutdown functions are platform specific (we don't have multiple
> different IOMMU hardware) so the current way is pointless.
>
> An IOMMU driver sets x86_platform.iommu_shutdown to the shutdown
> function if necessary.
>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> ---
> arch/x86/include/asm/amd_iommu.h | 2 --
> arch/x86/include/asm/gart.h | 4 ----
> arch/x86/include/asm/iommu.h | 2 +-
> arch/x86/include/asm/x86_init.h | 1 +
> arch/x86/kernel/amd_iommu_init.c | 6 +-----
> arch/x86/kernel/crash.c | 5 ++---
> arch/x86/kernel/pci-dma.c | 7 -------
> arch/x86/kernel/pci-gart_64.c | 6 ++++--
> arch/x86/kernel/reboot.c | 4 ++--
> arch/x86/kernel/x86_init.c | 2 ++
> 10 files changed, 13 insertions(+), 26 deletions(-)

Applied, thanks - this is a really nice cleanup!

Ingo


\
 
 \ /
  Last update: 2009-11-08 13:15    [W:1.052 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site