iommu/amd: Add several helper functions
authorBaoquan He <bhe@redhat.com>
Wed, 9 Aug 2017 08:33:34 +0000 (16:33 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Aug 2017 16:14:38 +0000 (18:14 +0200)
commit78d313c611adcd354d35295e30f1495e02e005f9
tree6534c9129fd389485dd80ada121fc82d9909a0bd
parent4c232a708be1047fe26b7c75ceaa5d73deb6a798
iommu/amd: Add several helper functions

Move single iommu enabling codes into a wrapper function early_enable_iommu().
This can make later kdump change easier.

And also add iommu_disable_command_buffer and iommu_disable_event_buffer
for later usage.

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_init.c