From patchwork Tue Jun 27 13:21:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 106420 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1197239qge; Tue, 27 Jun 2017 06:22:09 -0700 (PDT) X-Received: by 10.55.99.85 with SMTP id x82mr6688186qkb.62.1498569729648; Tue, 27 Jun 2017 06:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498569729; cv=none; d=google.com; s=arc-20160816; b=DhPKCl1OlG7T6+Xq6p+jMurIso3sJlR14BahqNQlbCzprIqYs/5FK0xk9fOgFMkJDn Fsd6PXflkC6111LosO46srTb9GI/X4JXc7a6cSkmqHlHg6XmjWMfhEKAjqmpTuVqP5H2 nEatFC6bFXuDAsC2/ojR86KIvcQPIezzzHpovudTZaEYOsZ1By+u3nviStM4zSN6KN8z AfHzuRF4UhNGHKwy0BTcixcfX2hk3JZfkY690pBAFEKgSAM0/LrpowKa9VBMCfH2s8Pi efbj9rij/1SpcgdgBBZb9x3AwIyOHQrXLgHFS7gVKsAEQD1JMkpIHdNM4tel/D0AEysq NWvg== 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:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Z0dVko+656s8XQ28x1qYjGspfeesqCkjysv/X9Nzlpc=; b=UULbHRniy7tFUfccy8xGq82zaeRdVaX/rrnE4m+b/JTnTfZ6omTKH+iVkFXDigSB7j t39KQqaI9iWV+t/3IOUj9a9Q8WCxFZEDlb3XGLrrh8OQJLfBqaGN1s3LpUQBZC8gSEw7 ZTOIt29d2uQoCw5WEHgGY6eXV6UK3zlKBS5HJFgJTSW7ssbMz+RbuOXmSs0pym7NM2iK qU9UPKHXOXAudEuPZhYKKzY5MOlbzYp7LuupYCA4ikY6gyy01jBAAv8bvLaySx0p9y9P A3mMgAdoeCjhSW3aLU7mbY1NJD36gHyP3PsjFleo1ZMmeW/OMsOnAj0C4tgTLEofmbKX G0Vw== 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 e38si2742726qtf.375.2017.06.27.06.22.09; Tue, 27 Jun 2017 06:22:09 -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 03B8060D43; Tue, 27 Jun 2017 13:22:08 +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 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 D09C060BF7; Tue, 27 Jun 2017 13:21:59 +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 9CBE260BF8; Tue, 27 Jun 2017 13:21:57 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by lists.linaro.org (Postfix) with ESMTPS id 867B660BF4 for ; Tue, 27 Jun 2017 13:21:56 +0000 (UTC) Received: by mail-wm0-f45.google.com with SMTP id i127so26584315wma.0 for ; Tue, 27 Jun 2017 06:21:56 -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; bh=1gvRCAjD1pFpaG+TcDqGqMe8z1Sn+3E+ZUVyAfh2wos=; b=mrShsyeVZnV9aueeFJMsyzNuZU5sriPbVf0JZWs4TbyR3IKwHXjyKO7u+ZATyB3GaM SFYAc2u7vdu4kYdgJVzceKjg+j6RXXx6gQ4XYGxyYpOItJLJ6P/L0PMbCpCad8gnO/tm m+GiQ/y3bPsa29athEKoGkgahXXsI71TarvFxKZ8upVwfAvk57xU4FkI2OaAtDlU7V9i W/B9Ih5dnbcpQqoYi54edSgpHk9czA9enR8VDTsB6iIxbFj8Aeu/NVdyPbN0hUje7H6x Kf3VFMYToNWJWyZZ93haay2e4jlz2d7lwLGFB1cLH+1nBsld0BzyUe5gmUGn8a8yzrHQ DZuw== X-Gm-Message-State: AKS2vOxeXv/guRQqJk4OmJd60kqF5qNTjKcv3Z7I+p7sbz0ULhPkMIZb 2k22phs73FbbTZJfxAJkTxkb X-Received: by 10.28.27.72 with SMTP id b69mr3252752wmb.85.1498569715052; Tue, 27 Jun 2017 06:21:55 -0700 (PDT) Received: from localhost.localdomain ([105.133.250.69]) by smtp.gmail.com with ESMTPSA id p99sm18801062wrb.6.2017.06.27.06.21.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 06:21:54 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Tue, 27 Jun 2017 13:21:35 +0000 Message-Id: <20170627132145.28159-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 Cc: rfranz@cavium.com, alan@softiron.co.uk Subject: [Linaro-uefi] [PATCH v2 00/10]Platforms/AMD/Styx: various Cello related fixes 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" A couple of fixes I applied to get Cello in a slightly better shape (although the observed SATA timeout issue requires a change in the core code) v2: - added patch to disable second SATA controller on Overdrive - use correct port mode mask for overdrive (#3) - update binary AmdModulePkg modules to latest version - add UEFI shell app to reflash to EFI code partition in the NOR - add SMMU enable switch to Cello and Overdrive 1000 Ard Biesheuvel (10): Platforms/AMD/Styx: remove incorrect timer frequency Platforms/AMD/Overdrive: disable second SATA port Platforms/AMD/Styx: set SATA port mode to Gen3 on all ports Platforms/AMD/StyxDtbLoaderLib: disable SMMUs for absent hardware Platform/AMD/Styx: add SMMU override to Cello and Overdrive1000 Platforms/AMD/Cello: add device tree support Platforms/AMD/Cello: reduce core count to 4 Platforms/AMD/Cello: set firmware vendor field to 'LeMaker Cello' Platforms/AMD/Styx/Binary: update binary modules to latest version Platforms/AMD/Styx: add command line flash tool Platforms/AMD/Styx/Applications/StyxFlashUefi/Scripts/GccBase.lds | 86 ++++++++++++++++++ Platforms/AMD/Styx/Applications/StyxFlashUefi/StyxFlashImage.S | 25 +++++ Platforms/AMD/Styx/Applications/StyxFlashUefi/StyxFlashUefi.c | 96 ++++++++++++++++++++ Platforms/AMD/Styx/Applications/StyxFlashUefi/StyxFlashUefi.inf | 53 +++++++++++ Platforms/AMD/Styx/Binary/AmdModulePkg/Gionb/Gionb.efi | Bin 43296 -> 36768 bytes Platforms/AMD/Styx/Binary/AmdModulePkg/Gionb/Gionb.inf | 14 ++- Platforms/AMD/Styx/Binary/AmdModulePkg/Iscp/IscpDxe.efi | Bin 262144 -> 262144 bytes Platforms/AMD/Styx/Binary/AmdModulePkg/Iscp/IscpPei.efi | Bin 10336 -> 6976 bytes Platforms/AMD/Styx/Binary/AmdModulePkg/SnpDxe/SnpDxePort0.efi | Bin 30272 -> 24992 bytes Platforms/AMD/Styx/Binary/AmdModulePkg/SnpDxe/SnpDxePort1.efi | Bin 30272 -> 24992 bytes Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc | 39 ++++++-- Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf | 9 ++ Platforms/AMD/Styx/Library/StyxDtbLoaderLib/StyxDtbLoaderLib.c | 9 +- Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc | 19 ++-- Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc | 20 ++-- 15 files changed, 338 insertions(+), 32 deletions(-) create mode 100644 Platforms/AMD/Styx/Applications/StyxFlashUefi/Scripts/GccBase.lds create mode 100644 Platforms/AMD/Styx/Applications/StyxFlashUefi/StyxFlashImage.S create mode 100644 Platforms/AMD/Styx/Applications/StyxFlashUefi/StyxFlashUefi.c create mode 100644 Platforms/AMD/Styx/Applications/StyxFlashUefi/StyxFlashUefi.inf Reviewed-by: Leif Lindholm