aboutsummaryrefslogtreecommitdiff
path: root/net/nonet.c
diff options
context:
space:
mode:
authorTakao Indoh <indou.takao@jp.fujitsu.com>2013-04-23 17:35:03 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-28 07:06:46 -0700
commit21870a3ce73bc351e2e3adffdea863e681556f2d (patch)
tree3d4527b65cf5029c7295c16c27a111436e67045b /net/nonet.c
parent5dc1c8851364ffb79cb9403f72c712ee83cce755 (diff)
iommu/vt-d: Disable translation if already enabled
commit 3a93c841c2b3b14824f7728dd74bd00a1cedb806 upstream. This patch disables translation(dma-remapping) before its initialization if it is already enabled. This is needed for kexec/kdump boot. If dma-remapping is enabled in the first kernel, it need to be disabled before initializing its page table during second kernel boot. Wei Hu also reported that this is needed when second kernel boots with intel_iommu=off. Basically iommu->gcmd is used to know whether translation is enabled or disabled, but it is always zero at boot time even when translation is enabled since iommu->gcmd is initialized without considering such a case. Therefor this patch synchronizes iommu->gcmd value with global command register when iommu structure is allocated. Signed-off-by: Takao Indoh <indou.takao@jp.fujitsu.com> Signed-off-by: Joerg Roedel <joro@8bytes.org> [wyj: Backported to 3.4: adjust context] Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/nonet.c')
0 files changed, 0 insertions, 0 deletions