From patchwork Thu Jun 1 09:43:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 100864 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp718724qge; Thu, 1 Jun 2017 02:44:39 -0700 (PDT) X-Received: by 10.55.69.72 with SMTP id s69mr513529qka.175.1496310279634; Thu, 01 Jun 2017 02:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496310279; cv=none; d=google.com; s=arc-20160816; b=BKy1v7iraCUUBckh9UA6n1H3AVyxz8ozjebVdRXBPzX6YZ7el9yB5jw5IpIhUWFcrY DrjRwe6b2YHE1AYggE/6jIktUmFNjPeWyDmlMTheMBeJ3lql+Fs62VI20/S7VRYgAPs0 hO2WQEiZCl3SryhjHqvpkAB8fHahbxJm1+Eu/pfVmvdkBsrGOaKc1+QIQ/VNqP6zSMtH OMebhZFstHRpF48yJ7/VHgV4sZJybQJNE8E+qIhEZrOOmJVW9rQEiZitD1tUoZp4WBr/ +FKsxDh+boIwIRWbrCX7ns8Vv85ekgMYrYtkntTKwfIWVMQdtDN1GHXj4hAM31FgPMdn w0pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=McuLjM4PE1dIThRhcg0bBDEDdbiJq8G1jglfq2b1r4c=; b=q+Ddbld09nUUdlvaZfS9MmuEiLVzeqIe4cOWnv+Vf9FBkj9T6RHpNn9d84Ed6gcIAb P2ZxU8RS9TH8SwqTgdaq0KeWQRrJEHiTqnzn+cuxJJxrMzcrxIQeQjglv8lofoeIpwOs gjrbgzNxmYbFtPY2ueFgGRRxZsJ73tWpeEzgAIlq+qenzvqDKvXryBio3JxU0aGs/8rc YP5E9q4jTR1FznLdtcXhVhFRQAgmf/lh+KqPUeCmQmFmcEHwT2EXY+6XN+w7OTfuMRDH Dv54J/ytC8wrivTVWj2ypvovw8QVxQoUYmWOouMMMcQ5n3gXQqIGj0Z6qUX8golEMj4I 5YjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b139si19367875qka.326.2017.06.01.02.44.39; Thu, 01 Jun 2017 02:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 38D8C609AA; Thu, 1 Jun 2017 09:44:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 1C33E60A3D; Thu, 1 Jun 2017 09:44:25 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A477A60A3D; Thu, 1 Jun 2017 09:44:19 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by lists.linaro.org (Postfix) with ESMTPS id 003AE609B3 for ; Thu, 1 Jun 2017 09:44:05 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id 123so2634252wmg.1 for ; Thu, 01 Jun 2017 02:44:04 -0700 (PDT) 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; bh=2/VH6lWn75gmjlphUSIeVklzYb/knmKRBVGB5gyClgM=; b=odDhD860xlTBkWJ6WOAz2cT9iUol0aTCog9WuSywwTgSpWnUrfqgln+U3xMi0GqiLF +zouK7/Y3wQdauG7dTIeFLEsdJte1wtomxGVv38lB6vfp/C7Y50M08NHVIVKwup9o4J0 N2UsazHZaBA4rR3Tn9B3Kmj94vp+L1M5yh1uiERbBIDpgrsFg79SIAd9U/zrVQm/J1r8 GBQ2JFDCfZHgWctSc8AalqLfH0kj8RlPiakffWDJP3ldl62U/LDkgNxr3g26+5MCy0bZ hyrreGtlL9mXEsIt5w8aQdDJlBL6MnsrfiysgsLXXxz44PfKk/l160iZCFc8KiAYoEv+ Ha6Q== X-Gm-Message-State: AODbwcBpRi87fi7Qbk5Wc1KqxeDywSeDvzdAcYz9BqXZevCO0IvHTj5i crBOLilXMjsnPg4Q0JDnAUkT X-Received: by 10.223.139.25 with SMTP id n25mr535959wra.17.1496310243905; Thu, 01 Jun 2017 02:44:03 -0700 (PDT) Received: from localhost.localdomain ([196.71.200.86]) by smtp.gmail.com with ESMTPSA id 64sm23257679wmn.20.2017.06.01.02.44.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 02:44:03 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Thu, 1 Jun 2017 09:43:49 +0000 Message-Id: <20170601094353.16235-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170601094353.16235-1-ard.biesheuvel@linaro.org> References: <20170601094353.16235-1-ard.biesheuvel@linaro.org> Subject: [Linaro-uefi] [PATCH 2/6] Platforms/AMD/Overdrive: add dynamic PCD to control SMMU availibility X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "For discussions about Linaro-related UEFI development. Not a substitute for edk2-devel." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" Introduce a PCD that can be linked to a EFI variable 'StyxEnableSmmus', controlling whether the SMMU descriptions will be exposed to the OS via the DT or ACPI tables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- Platforms/AMD/Styx/AmdStyx.dec | 7 +++++++ Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Platforms/AMD/Styx/AmdStyx.dec b/Platforms/AMD/Styx/AmdStyx.dec index 8d4b4927c6b1..ddd5bf4c3609 100644 --- a/Platforms/AMD/Styx/AmdStyx.dec +++ b/Platforms/AMD/Styx/AmdStyx.dec @@ -35,6 +35,10 @@ gAmdStyxTokenSpaceGuid = { 0x220d9653, 0x4a0e, 0x40bc, { 0xb3, 0x65, 0x2f, 0xbb, 0xa2, 0xd9, 0x03, 0x45 } } gAmdStyxMpCoreInfoGuid = { 0x68efeabd, 0xcb77, 0x4aa5, { 0xbf, 0x0c, 0xa3, 0x31, 0xfc, 0xcf, 0x76, 0x66 } } + # 2a5e4deb-4445-4fb6-8b14-366b8e779b69 + # EFI variable scope for Styx + gAmdStyxVariableGuid = { 0x2a5e4deb, 0x4445, 0x4fb6, { 0x8b, 0x14, 0x36, 0x6b, 0x8e, 0x77, 0x9b, 0x69 } } + [PcdsDynamic] gAmdStyxTokenSpaceGuid.PcdSocCoreCount|1|UINT32|0x00000100 gAmdStyxTokenSpaceGuid.PcdSocCpuId|1|UINT32|0x00000101 @@ -108,3 +112,6 @@ gAmdStyxTokenSpaceGuid.PcdFlashNvStorageOriginalBase|0|UINT64|0x000c0000 # block size to use when invoking the ISCP FV methods gAmdStyxTokenSpaceGuid.PcdFlashNvStorageBlockSize|0x1000|UINT32|0x000c0001 + +[PcdsFixedAtBuild,PcdsDynamic] + gAmdStyxTokenSpaceGuid.PcdEnableSmmus|FALSE|BOOLEAN|0xe0000000 diff --git a/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc b/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc index 65d229884aa7..b4893ca34587 100644 --- a/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc +++ b/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc @@ -515,9 +515,11 @@ DEFINE DO_KCS = 1 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0x0 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0x0 -[PcdsDynamicExHii.common.DEFAULT] +[PcdsDynamicHii] gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5 + gAmdStyxTokenSpaceGuid.PcdEnableSmmus|L"StyxEnableSmmus"|gAmdStyxVariableGuid|0x0|FALSE + ################################################################################ # # Components Section - list of all EDK II Modules needed by this Platform