From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by mx.groups.io with SMTP id smtpd.web11.7355.1574952536407502686 for ; Thu, 28 Nov 2019 06:48:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=Bz+6rthg; spf=pass (domain: linaro.org, ip: 209.85.221.66, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wr1-f66.google.com with SMTP id y11so28330300wrt.6 for ; Thu, 28 Nov 2019 06:48:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MvZaJIHHDt6LUnzGQcYmAllgu5n5CCVZGSRHSDoQjGI=; b=Bz+6rthgWO0ipyAmTNmrij2UG8iark3C59eBVK3X7OantfcfisONR34uasszg0Ru6i kiaoXMm7vDa/idg3rNd4T3m8vmDiInFzxesjQx2vwf3ApbJOPqWREjGI/85/5bGyP6IA Bgz4XieSKQQUqxukjnoB6T1UgXWq2lK4Cxl37Yiiv6Wi6Cxq+zBCLqMXB56NJBj7YPXF AVkRWUKbJW5gQlXeGc+1luIMBKEGiETt7mwUcWSLTRQA2AfGHgcraXVBdgNdiDH9qAeF yh8jZC7ITOHjlCRq63K90xFSD95Zda0OqUtFfovQw6WhLwEljKGR1W+MFGRewJ9WmykR l7xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MvZaJIHHDt6LUnzGQcYmAllgu5n5CCVZGSRHSDoQjGI=; b=D4mCRfFImKbKR1JKBYxD4XllGvOdaLfmDk30JNryCOuhERLFdtlhHH5OqaeZkFTqoc s3iksk3VKmovd05K8Aa/19Dpo04N0LV5couMimwpS83GTVW6F26GNSJOQMbpoRVBMgpD SlN6x+A7fB42lrUlWQCCaIK0CNEQVJJzBvObuPOQOAEcyG7oyHVwEbbjhm1dsGHjFAh6 JiYfBK1S1Bwrj7FhTsgU8WUjROIduFMncAu+A4KZlrUQ8kFaTY1wUNd+e757QH0sfoMU yy9eGcPMimEx8kjnmZS4Szg8j9PIWCGj8nroTgVRJhw0CkofQWbhZESMe9O2hXBPQhid ByRw== X-Gm-Message-State: APjAAAX1tscm68VhQKj/1kpVMH9nfZka6i1G4ak16u0IfWN0DhtqRplz TnJLLu9mWSdJ6oLPbDsw3KLz+gha4LM= X-Google-Smtp-Source: APXvYqzEpi0gOec35Mp8/SZbVM+QUMHG014wWdeiLEEpbt4C2hO8nCZCcF1BUanW4qBR7nxTttXveg== X-Received: by 2002:adf:d852:: with SMTP id k18mr14805424wrl.171.1574952534670; Thu, 28 Nov 2019 06:48:54 -0800 (PST) Return-Path: Received: from localhost.localdomain (91-167-84-221.subs.proxad.net. [91.167.84.221]) by smtp.gmail.com with ESMTPSA id b63sm9919268wmb.40.2019.11.28.06.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 06:48:53 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, Ard Biesheuvel Subject: [PATCH edk2-platforms 2/2] Platform/DeveloperBox: disable variable runtime cache Date: Thu, 28 Nov 2019 15:48:40 +0100 Message-Id: <20191128144840.25654-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191128144840.25654-1-ard.biesheuvel@linaro.org> References: <20191128144840.25654-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The variable runtime cache for SMM enabled implementations of the variable runtime DXE driver was introduced after the standalone MM based implementation was merged for the DeveloperBox platform. This means the combined binary image of ARM Trusted Firmware and the standalone MM runtime we carry in edk2-non-osi predates this feature, so we need to disable it when building the non-secure side when incorporating the prebuilt binary. Whether it makes sense to enable the runtime cache for this platform is a different question, so let's keep it enabled entirely until someone identifies a need for it. Signed-off-by: Ard Biesheuvel --- Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc index a10e48ca07ea..084b4c994b97 100644 --- a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc +++ b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc @@ -130,6 +130,8 @@ [PcdsFeatureFlag] # needed for NFIT tables installed by RamDiskDxe gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE + gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE + [PcdsFixedAtBuild.common] !ifdef $(FIRMWARE_VENDOR) gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"$(FIRMWARE_VENDOR)" -- 2.20.1