From: Ingo Molnar <mingo@elte.hu>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, joerg.roedel@amd.com
Subject: Re: [PATCH] x86: use x86_platform for iommu_shutdown
Date: Sun, 8 Nov 2009 13:12:32 +0100 [thread overview]
Message-ID: <20091108121232.GZ11372@elte.hu> (raw)
In-Reply-To: <20091027163358F.fujita.tomonori@lab.ntt.co.jp>
* 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
next prev parent reply other threads:[~2009-11-08 12:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-27 7:34 FUJITA Tomonori
2009-11-08 12:12 ` Ingo Molnar [this message]
2009-11-08 13:06 ` [tip:core/iommu] x86: Use " tip-bot for FUJITA Tomonori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091108121232.GZ11372@elte.hu \
--to=mingo@elte.hu \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=joerg.roedel@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®