From patchwork Mon May 2 06:53:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 66999 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp928565qge; Sun, 1 May 2016 23:54:02 -0700 (PDT) X-Received: by 10.55.100.135 with SMTP id y129mr33029574qkb.106.1462172042126; Sun, 01 May 2016 23:54:02 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k77si13741053qkl.204.2016.05.01.23.54.01; Sun, 01 May 2016 23:54:01 -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 dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 31FD561602; Mon, 2 May 2016 06:54:01 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 91BF1615F3; Mon, 2 May 2016 06:53:57 +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 5651B615F7; Mon, 2 May 2016 06:53:56 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by lists.linaro.org (Postfix) with ESMTPS id 5A4AF615F3 for ; Mon, 2 May 2016 06:53:55 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id a17so127042335wme.0 for ; Sun, 01 May 2016 23:53:55 -0700 (PDT) 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; bh=CcQ+GMctiAm0hnNRaarBlcqIGxLEjCyzcT92z7E2Zn4=; b=hdqO5ADqcEvkZZ1Cf9GN4uIMw5/mjtjN/tdd8YEuS6jkdhCnG6Fhv+66y/SGSMGUWh 2DiJIwomjgbGTzjd3yjDQMojrda+6t3eNu1vFYhX+T1mfipvK0TI4sUjDXC00ibmI2wW QwdAs/1ts3riyJZLHqzFe1f2WEp+3wEYrUpOU3lq6eZb9mI6QKafZyrRt64kbd+I5ylR viAb7Q1jiemtgI6BD78x+maNt7HlNuxhsTiidQxId+xnc4i65xD0nporp/90/BlPP8Fi cnYhWgz+NmNGCeuwXRmQfl3qwEr5nrx3dcMeGLoEoktTitTOYPaphjUvQwjTgU2suAEK dWyQ== X-Gm-Message-State: AOPr4FXFFajpEmc0wpxYlK13DjAXPuRHkq1UKILBMgXfqOjE4izR9WO/ax2BaeJfqXRa6Gd+3+8= X-Received: by 10.28.227.138 with SMTP id a132mr16546778wmh.35.1462172034351; Sun, 01 May 2016 23:53:54 -0700 (PDT) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id gr4sm28601005wjd.23.2016.05.01.23.53.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 May 2016 23:53:53 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Mon, 2 May 2016 08:53:49 +0200 Message-Id: <1462172029-3897-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [Linaro-uefi] [PATCH] Platforms/ARM/Juno: move to unicore PrePi X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" Move to the unicore PrePi implementation. This is possible, since we only support executing under ATF anyway, so only the boot CPU enters UEFI in EL2, and booting multiple cores using the ARM_MP_CORE protocol is only supported when using the LinuxLoader. The reason we need to make this change is because Juno implements this protocol using 32-bit wide mailbox registers, which is awkward on an otherwise 64-bit architecture, and this is holding back progress for other platforms that need to implement the ACPI parking protocol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Tested-by: Ryan Harkin --- Platforms/ARM/Juno/ArmJuno.dsc | 5 ++--- Platforms/ARM/Juno/ArmJuno.fdf | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Platforms/ARM/Juno/ArmJuno.dsc b/Platforms/ARM/Juno/ArmJuno.dsc index 09396c0f8b64..377faa4cac2f 100644 --- a/Platforms/ARM/Juno/ArmJuno.dsc +++ b/Platforms/ARM/Juno/ArmJuno.dsc @@ -109,8 +109,7 @@ gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000 # Juno Dual-Cluster profile - gArmPlatformTokenSpaceGuid.PcdCoreCount|6 - gArmPlatformTokenSpaceGuid.PcdClusterCount|2 + gArmPlatformTokenSpaceGuid.PcdCoreCount|1 gArmTokenSpaceGuid.PcdVFPEnabled|1 @@ -200,7 +199,7 @@ # # PEI Phase modules # - ArmPlatformPkg/PrePi/PeiMPCore.inf + ArmPlatformPkg/PrePi/PeiUniCore.inf # # DXE diff --git a/Platforms/ARM/Juno/ArmJuno.fdf b/Platforms/ARM/Juno/ArmJuno.fdf index 3983c20de8e0..9f50c6bb3cbb 100644 --- a/Platforms/ARM/Juno/ArmJuno.fdf +++ b/Platforms/ARM/Juno/ArmJuno.fdf @@ -229,7 +229,7 @@ READ_STATUS = TRUE READ_LOCK_CAP = TRUE READ_LOCK_STATUS = TRUE - INF ArmPlatformPkg/PrePi/PeiMPCore.inf + INF ArmPlatformPkg/PrePi/PeiUniCore.inf FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 { SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {