From nobody Sun Feb 8 19:37:49 2026 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+39868+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+39868+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1556652674; cv=none; d=zoho.com; s=zohoarc; b=d3HdhA8m8Yhg69JEDPtTkWIh1D8VGFVL6LHn3uJ2PcOfSC51X1WqekZ3V39SKYubjVMG/uc1SZF6zuoygrcR/X0XM6cf27VPTaQZNE0wfWpSElYzMv7Yr7u88rD3OjibgfdnEHTj4MN+IFgaieA2r4AORE8BSu+b7aPa5bptib4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556652674; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=EikQFFBFj6p1+trnd5ENNSRNr3KpK8USWEMpblZikTM=; b=OmPiGwyhfbF91yR3w/gX72eMHbD4e0Ly+QZQVGZIcX4ioJgAoZ6Pf2L+ipK/I9UvZxYLUvhfaR1+/R/SGSAxWb3snXerIPbau+TFfWa9l6EaxYjs/B0Y225Vdi46/YGYmtCLZUpSFcC6/4ABLBKOSavm7R+H3mkUkLx2PvhejnU= 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+39868+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 1556652674322239.9900431825746; Tue, 30 Apr 2019 12:31:14 -0700 (PDT) Return-Path: X-Received: from mga14.intel.com (mga14.intel.com []) by groups.io with SMTP; Tue, 30 Apr 2019 12:31:13 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Apr 2019 12:31:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,414,1549958400"; d="scan'208";a="320349804" X-Received: from unknown (HELO mdkinney-MOBL2.amr.corp.intel.com) ([10.241.111.157]) by orsmga005.jf.intel.com with ESMTP; 30 Apr 2019 12:31:12 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Kelly Steele , Liming Gao Subject: [edk2-devel] [Patch V3 3/8] QuarkPlatformPkg: Set PcdSpeculationBarrierType to CPUID Date: Tue, 30 Apr 2019 12:31:03 -0700 Message-Id: <20190430193108.8544-4-michael.d.kinney@intel.com> In-Reply-To: <20190430193108.8544-1-michael.d.kinney@intel.com> References: <20190430193108.8544-1-michael.d.kinney@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,michael.d.kinney@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=1556652673; bh=LdXmGd3GgvZMwOaKyVWT5p5ivDMfL9G/CvlntjsXonY=; h=Cc:Date:From:Reply-To:Subject:To; b=RVsWibBFpgOlAG783SBU87qRZMCF4x3lhi1YUOXoSfHb5cyZUIezmxfJbcerpkWGve4 RPJ4Bq0AaIl7yyG7NmS73wMOmhFkfXl5yGFUyqdyuPoUT6P/eltvtPttUCIzs4jrVBa33 SCGMDQVo3D46TWIoZ5NZWFjPkQu3nzQ807Y= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Set PcdSpeculationBarrierType to use CPUID instead of the default LFENCE in the BaseLib function SpeculationBarrier(). LFENCE requires SSE2, and Quark platforms do not support SSE2. Cc: Kelly Steele Cc: Liming Gao Signed-off-by: Michael D Kinney Reviewed-by: Michael Kubacki --- QuarkPlatformPkg/Quark.dsc | 7 ++++++- QuarkPlatformPkg/QuarkMin.dsc | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/QuarkPlatformPkg/Quark.dsc b/QuarkPlatformPkg/Quark.dsc index 422fd9cf8d..96ddc1565a 100644 --- a/QuarkPlatformPkg/Quark.dsc +++ b/QuarkPlatformPkg/Quark.dsc @@ -2,7 +2,7 @@ # Clanton Peak CRB platform with 32-bit DXE for 4MB/8MB flash devices. # # This package provides Clanton Peak CRB platform specific modules. -# Copyright (c) 2013 - 2018 Intel Corporation. +# Copyright (c) 2013 - 2019 Intel Corporation. # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -448,6 +448,11 @@ [PcdsFixedAtBuild] gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName|L"QUARKREC.Cap" !endif =20 + # + # Quark does not support LFENCE. Use CPUID as speculation barrier + # + gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x02 + [PcdsPatchableInModule] gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x803000C7 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0 diff --git a/QuarkPlatformPkg/QuarkMin.dsc b/QuarkPlatformPkg/QuarkMin.dsc index 00e2febb54..8ca75bc474 100644 --- a/QuarkPlatformPkg/QuarkMin.dsc +++ b/QuarkPlatformPkg/QuarkMin.dsc @@ -406,6 +406,11 @@ [PcdsFixedAtBuild] =20 gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|FALSE =20 + # + # Quark does not support LFENCE. Use CPUID as speculation barrier + # + gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x02 + [PcdsPatchableInModule] gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x803000C7 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0 --=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 (#39868): https://edk2.groups.io/g/devel/message/39868 Mute This Topic: https://groups.io/mt/31424370/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-