From: Baoquan He Subject: [Patch v2 9/9] iommu/amd: Clear the iommu pre enabled setting Date: Fri, 6 Nov 2015 20:10:51 +0800 Message-ID: <1446811851-20623-10-git-send-email-bhe@redhat.com> References: <1446811851-20623-1-git-send-email-bhe@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1446811851-20623-1-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: iommu@lists.linux-foundation.org Now any change of domain can be updated to dev tables and io page table Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index d978f80..76bec94 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c @@ -2215,6 +2215,8 @@ static int __init state_next(void) break; case IOMMU_DMA_OPS: init_state = IOMMU_INITIALIZED; + if (translation_pre_enabled()) + clear_translation_pre_enabled(); break; case IOMMU_INITIALIZED: /* Nothing to do */ -- 2.4.0