From patchwork Tue Feb 28 15:11:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 94632 Delivered-To: patch@linaro.org Received: by 10.140.20.113 with SMTP id 104csp1363336qgi; Tue, 28 Feb 2017 07:11:41 -0800 (PST) X-Received: by 10.200.48.171 with SMTP id v40mr3307190qta.80.1488294701671; Tue, 28 Feb 2017 07:11:41 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u2si1652470qki.218.2017.02.28.07.11.41; Tue, 28 Feb 2017 07:11:41 -0800 (PST) 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 D2DAA636E9; Tue, 28 Feb 2017 15:11:40 +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_H2, 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 1AC45636DD; Tue, 28 Feb 2017 15:11:37 +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 B7F16636DC; Tue, 28 Feb 2017 15:11:33 +0000 (UTC) Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by lists.linaro.org (Postfix) with ESMTPS id 7DDB6636DC for ; Tue, 28 Feb 2017 15:11:32 +0000 (UTC) Received: by mail-wr0-f170.google.com with SMTP id u48so10908274wrc.0 for ; Tue, 28 Feb 2017 07:11:32 -0800 (PST) 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=4XX0q6Ps/ZTIelOUlveJ1EpJ4H34WmAQmlzsdA6iC+w=; b=a83zBLUVr1Lw10lcTFY21HLEO6ql9s3ujyT/3kGCoFaP9kHOoHHLOYUdxepkpdowTB ecHqoAvxFoVcvduND70FB3cO7AqkAEeT3bLLetprqRyfJpNHe7MU/yIuzpvItoGla3/A 82fhtKdAeXFL5B0jk5wJuANYrB8xjqIiZMMPe9Y6QJ+X7NS8NckFDNbAcIckzfUt4vtr vatYk4FtQAPWcGyIIPLRqN4fX/KrvLGN0uYG4svrWme91GB/urhfdghW2byLzetVCP/h x7j2AmEmA1rbApx+/UWkhZiOBaw5gCNoIJU4gSf1sTQXuen8yT4YjxThoP12eJFnV4rO DLCw== X-Gm-Message-State: AMke39khVoxFBZcKVc+8xyd8o8n3ezCLluEWfcNNXeG0p9+a2NN/fwchW7hKHYazFy0CpV2D974= X-Received: by 10.223.145.4 with SMTP id j4mr2859348wrj.101.1488294691416; Tue, 28 Feb 2017 07:11:31 -0800 (PST) Received: from localhost.localdomain ([105.149.201.216]) by smtp.gmail.com with ESMTPSA id q1sm3086698wmd.6.2017.02.28.07.11.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Feb 2017 07:11:30 -0800 (PST) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org, leif.lindholm@linaro.org, alan@softiron.co.uk Date: Tue, 28 Feb 2017 15:11:16 +0000 Message-Id: <1488294680-1884-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [Linaro-uefi] [PATCH v2 0/4] AMD/Styx: enable strict memory permissions 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" This cleans up some dodgy code in the SMBIOS driver, after which it is possible to enable the shiny new memory protection controls. Changes since v1: - enable on Cello as well as Overdrive, I will leave it up to Alan whether this gets enabled on the Overdrive 1000 as well - simplify patch #1 Note that the prerequisite EDK2 changes have now been merged. Ard Biesheuvel (4): Platforms/AMD/Styx/PlatformSmbiosDxe: don't write to string literals Platforms/AMD/Styx: constify/staticize all local functions and variables Platforms/AMD/Overdrive: enable strict memory permission policy Platforms/AMD/Cello: enable strict memory permission policy Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc | 16 ++++ Platforms/AMD/Styx/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c | 79 +++++++++++--------- Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc | 16 ++++ 3 files changed, 74 insertions(+), 37 deletions(-)