From patchwork Tue Feb 23 17:35:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 62751 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1956551lbl; Tue, 23 Feb 2016 09:37:19 -0800 (PST) X-Received: by 10.98.14.146 with SMTP id 18mr48080048pfo.35.1456249035679; Tue, 23 Feb 2016 09:37:15 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id kr9si48433610pab.190.2016.02.23.09.37.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2016 09:37:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D18401A1F51; Tue, 23 Feb 2016 09:37:17 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3EBD11A1E4C for ; Tue, 23 Feb 2016 09:37:17 -0800 (PST) Received: by mail-wm0-x236.google.com with SMTP id g62so211367029wme.0 for ; Tue, 23 Feb 2016 09:37:14 -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; bh=E+V5MvtFfYWKv/IFBIH+u1wwiMhtQWhiSsBLnR7i7Zs=; b=FQQL2OzbUe0sq0YMdfT6KsOCNaYNjUw1GxTwBo8POY6T1dU6WVbiIuoZi4snlYmDNh ULx2/jGmN11vwkVUq1B5yn62/3chYWzPcCCQPv52NoPn/rpWvNGAV74jl5ZZxjpKURjI QBOCNFun8psKR6jTa2mufjMmKK9VtAsDdwuyU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=E+V5MvtFfYWKv/IFBIH+u1wwiMhtQWhiSsBLnR7i7Zs=; b=kpZgvs402sCX61kCU7qzuk4d3W0OY2H26V2eC9+tuetwbC076NyO4gGK4gu7mrYp7O w95vEep4fQEe4UPjSzlwu93gAGtwyvXux0MnWgAwFRsbzyohUm3g3d/X65j1k37ItCpg eepJCGqpLTYAy+L7nCRiACVZzHgi3gsnCXZ5dtRaLy9a67gwZ48M781G1mu7GmxYbv5L cpMSQkeCuJU7/vjZw0sVrovZnGLRmhgg9qlQJa+Z6Ebehuv6elOAGXCYQdvE3Sd3gH7p 3whvZyXj0SM5nc4jGRZabDMAb43kiF+rtUuYZoOq4VShglZ8UH0F0JNyia9vLpvT556e 8BQg== X-Gm-Message-State: AG10YORfsNOYkaaN32v24ByQduyGDqJcnbEKKWm8EXp1odzMr9b9RB4Kh2zpzUiL4Q38lFXd X-Received: by 10.28.226.212 with SMTP id z203mr19900539wmg.78.1456249033035; Tue, 23 Feb 2016 09:37:13 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id z65sm25054082wmg.1.2016.02.23.09.37.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Feb 2016 09:37:12 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, feng.tian@intel.com, star.zeng@intel.com, jeff.fan@intel.com, jiewen.yao@intel.com, lersek@redhat.com, liming.gao@intel.com Date: Tue, 23 Feb 2016 18:35:32 +0100 Message-Id: <1456248932-28109-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456248932-28109-1-git-send-email-ard.biesheuvel@linaro.org> References: <1456248932-28109-1-git-send-email-ard.biesheuvel@linaro.org> Cc: leif.lindholm@linaro.org, Ard Biesheuvel Subject: [edk2] [PATCH v4 2/2] ArmVirtPkg/ArmVirtQemu: limit ACPI support to v5.0 and higher X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The ACPI spec predates the AARCH64 architecture by 5 versions, so there is no point in supporting anything below v5.0. So set the PCD that controls the ACPI table generation to the appropriate value. Note that the current consumers of this PCD only check whether bit 1 is set or not (i.e., ACPI v1.0b), but this may change in the future, so let's choose a meaningful value right away. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- ArmVirtPkg/ArmVirtQemu.dsc | 4 ++++ 1 file changed, 4 insertions(+) -- 2.5.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc index 113ac3d880d4..f873883c4a39 100644 --- a/ArmVirtPkg/ArmVirtQemu.dsc +++ b/ArmVirtPkg/ArmVirtQemu.dsc @@ -177,6 +177,10 @@ [PcdsFixedAtBuild.AARCH64] # point only, for entry point versions >= 3.0. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2 + # ACPI predates the AARCH64 architecture by 5 versions, so + # we only target OSes that support ACPI v5.0 or later + gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20 + [PcdsDynamicDefault.common] ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI # enumeration to complete before installing ACPI tables.