From nobody Sun May 19 10:01:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+39756+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39756+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1556528076; cv=none; d=zoho.com; s=zohoarc; b=QY8fDhgrRdGZ+cZSfv4QphGcnz5VKluDOiKskhgJmeZCjzMsBwk4I2a4IaW7ng+zg2F8s157fR13XXRrajpMhPXRh3rwfKUtbzKmBBxaDVfefTYkGAE1cf8bBx23JOgXYhqpmItSKkg4UI8CPTccucaxJIkgClQP2S8LGxoQQ7Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556528076; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=R90o3Yfp7JEhyi4F0NCVJs0EbI7oMXsj2vZTL8EKIE0=; b=RQRDGnb2HwCIfsHqUR73WqxwEYjC+1VINgoRO2uHLZxQxD/PfRxldhE9ZdZdf5MIg5w/G3QLKiGQeKJfrvttPWuGb6XkJHXRWzsUsjD0YSHZMQKh9oM3C5lYWzYGWTcENrJIKe5Sdp17wUhU39xxsHUKgL2ie13nkmzZszEhcmg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39756+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1556528075874862.5223649548032; Mon, 29 Apr 2019 01:54:35 -0700 (PDT) Return-Path: X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by groups.io with SMTP; Mon, 29 Apr 2019 01:54:34 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Apr 2019 01:54:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,409,1549958400"; d="scan'208";a="227664057" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by orsmga001.jf.intel.com with ESMTP; 29 Apr 2019 01:54:32 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jiewen Yao , Ray Ni , Rangasai V Chaganty , Liming Gao Subject: [edk2-devel] [PATCH] IntelSiliconPkg/IntelVTdDxe: Always do global invalidation Date: Mon, 29 Apr 2019 16:52:47 +0800 Message-Id: <20190429085247.23720-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhichao.gao@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1556528075; bh=4LvR1eY6Rvp9LNRAQLpwoy3lboOGdxgmuClx4S4poXw=; h=Cc:Date:From:Reply-To:Subject:To; b=cadFxRTIZiTIcFyinfW2UEDvpc5ysszlGWBIzuMLhhppsq4Ao9iQMwKmGPE33cRRwux 5Bj6PNa87uSv6kf/hckZETp5FPyJbnRePZbOIC1JVPMozfefcwc9oNvzk5iGyKmrCxyLg x48tkXQpNQNTV1BwtrF7u1tUoq5QEu4+s0s= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1547 Only doing IOTLB invalidation would cause a BSOD 'DRIVER_VERIFIER_DMA_VIOLATION' while changing the second level page entry's attributes. So always do the global invalidation of context-cache and IOTLB. Cc: Jiewen Yao Cc: Ray Ni Cc: Rangasai V Chaganty Cc: Liming Gao Signed-off-by: Zhichao Gao --- IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c b/IntelSilico= nPkg/Feature/VTd/IntelVTdDxe/VtdReg.c index 22bf821d2b..d939d9d27e 100644 --- a/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c +++ b/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c @@ -139,16 +139,12 @@ InvalidateVtdIOTLBGlobal ( // // Invalidate the context cache // - if (mVtdUnitInformation[VtdIndex].HasDirtyContext) { - InvalidateContextCache (VtdIndex); - } + InvalidateContextCache (VtdIndex); =20 // // Invalidate the IOTLB cache // - if (mVtdUnitInformation[VtdIndex].HasDirtyContext || mVtdUnitInformation= [VtdIndex].HasDirtyPages) { - InvalidateIOTLB (VtdIndex); - } + InvalidateIOTLB (VtdIndex); =20 return EFI_SUCCESS; } --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#39756): https://edk2.groups.io/g/devel/message/39756 Mute This Topic: https://groups.io/mt/31381240/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-