From patchwork Wed Dec 5 18:50:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152924 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9640803ljp; Wed, 5 Dec 2018 10:50:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/U1W8AKDrU5mttieHcNZq4wVAZamGUeY6qz4EuSHCXDySr5zJU7Oz/MbGdBlQZ2PygL81yP X-Received: by 2002:a62:1212:: with SMTP id a18mr26303759pfj.217.1544035828632; Wed, 05 Dec 2018 10:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544035828; cv=none; d=google.com; s=arc-20160816; b=m68gT8SUdgboqI+JMVZKlPc7hKV6ioVwJrwZcMSwiM7pdWMMoHGyfvVVecXx4ZDMEC v7XG4LFXEg+dcx6T+sXiOE0GaqCGmdQOkp7xV+29GoSeYKFNJxk/rPcuT7oAoXxXHKkp EcObpL9777Mr5UXENaRe0yuitxWlMFDLiIGs2wOhV8X/+1B2iAzFMakB/ECsUtSdn4dK +rPgQ0afNj1NzovEW4mt25/68jxNqwbDfp5JrZ5vTVgp8Tx0jwi2lgAUSUhY7EM7+FOX BOSRPhO6Up1K8Ok7FYg3K7zrYPPioNTZHEhGSKuzwZ9j2dTZL6EImVAXh3W66MaCZBAK R5tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=gGEm8pBWPxbNXcB/+v2X1lFTtk6xpUCjntDcPBLKS/8=; b=mNJlbvPd23ydaVElHY4AVyuJootp8HNMIDABJJbCZMN6r19b1R5HegpLkaxRsOFVLS jkAu1EB8VWDCszoS4kxQI3HjVQNYDdKUrOsP6yHU6C87KE+cOprDnicj8yk5jlHd0xP7 /kNRHF0vQB87EvdYiA/xApVzOP1pjFUqT8WqMVvi+K5SMWP1+fH+lgxnJ8iJiR6IdZOj A46mFInTVjiRiaR7UbZsCqMBwwBWvz/ps1eQ+21BTcOrDKid6cI2oa0AjbiNjORGm0Qn F6gPDP4FVmV/s9KQoCe/0aJ/FkdhkuCy+ENrWLj1mTytS6OtoPuvScpNzWmil2CastRR gxMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=K8h51G+U; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id s12si19325860pgh.488.2018.12.05.10.50.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 10:50:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=K8h51G+U; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D23F4211982FF; Wed, 5 Dec 2018 10:50:26 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::442; helo=mail-wr1-x442.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (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 5FA4D21197B2F for ; Wed, 5 Dec 2018 10:50:25 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id p4so20785193wrt.7 for ; Wed, 05 Dec 2018 10:50:25 -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:mime-version :content-transfer-encoding; bh=uJ5PUmwke6atELLYingw/RCd0lUxNe1OT8tuPyjsgls=; b=K8h51G+UYT3+NYVj9k+cxkw/EuBPZ590VrXfj+PSxgAhdnKHZ29nStqhSB+nOl7gwY f6AwACYy6W1SKG63oj0Nh9YiWH7ElyrI77qpbr/pUopvrHvBjsuWtURGt7ruxpUNRAVb H6jlpCDS1S8npvthO/wx92Sb9NRy36XimiNkw= 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:mime-version :content-transfer-encoding; bh=uJ5PUmwke6atELLYingw/RCd0lUxNe1OT8tuPyjsgls=; b=Fq4NUVJ+Ju6oVr0VCfSsmCjISLWOi4KvTrQSm4O0wzwOBWgyWJ+mvG2lDfovQSu7Kh kBEvlRLe3fpWMSL6MxjDu7YZ1LdzZ37If9M8UjipeYwJJatLUYsABrBmKVoWNn/OaBnK mGWT28+VZe3zq7FdV7mFYpxWS72flDIVAV+fUW4hJO5zswpuvQKhdUPkU+cDw9UUo0nO DYHg3RSS/BDwQ4ix90cSF1erdiXPvbdgCgR+8uU+K3phJLJGuPOyLHmkiKBy090ccckx MjB++JvOg6DfmWSpGXJE45ubct2QWlRyU0ZiNbrDXCW2G93YuUGHDg+wngmvmyd5WCmD +fGQ== X-Gm-Message-State: AA+aEWbBCKJ5LFBmDqBaTsa+g/P1GJKDLOrCqZ2scllp9JAlfhbueHN2 HT5AalpjxQ1syqiw2hboxIgxV+5XEMRAmg== X-Received: by 2002:a05:6000:104b:: with SMTP id c11mr23287267wrx.303.1544035823244; Wed, 05 Dec 2018 10:50:23 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:816d:4a95:a2ca:814d]) by smtp.gmail.com with ESMTPSA id c8sm14825186wrx.42.2018.12.05.10.50.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 10:50:22 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 5 Dec 2018 19:50:14 +0100 Message-Id: <20181205185020.21441-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [edk2] [PATCH edk2-platforms 0/6] Styx: fixes for IASL abuse and more X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alan@softiron.co.uk Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Primarily, this series gets rid of the hacked up way this platform patches the DSDT at build time, by #include'ing intermediate output of the iasl compiler [or some version of it, at least] While at it, apply some other cleanups/improvements. Ard Biesheuvel (6): Silicon/AMD/Styx: move SOC version macros to common header Silicon/AMD/Styx: move B1 revision peripherals to separate SSDT table Silicon/AMD/Styx: move XGBE declarations to separate SSDT table Silicon/AMD/Styx: emit DSDT as aml directly Platform: add acpiview to Seattle/Styx platforms Platform/AMD/OverdriveBoard: use default resolution for GOP .../AMD/OverdriveBoard/OverdriveBoard.dsc | 7 +- Platform/LeMaker/CelloBoard/CelloBoard.dsc | 5 +- .../Overdrive1000Board/Overdrive1000Board.dsc | 4 +- .../AMD/OverdriveBoard/OverdriveBoard.fdf | 2 +- Platform/LeMaker/CelloBoard/CelloBoard.fdf | 2 +- .../Overdrive1000Board/Overdrive1000Board.fdf | 2 +- Silicon/AMD/Styx/AcpiTables/AcpiAml.inf | 29 --- Silicon/AMD/Styx/AcpiTables/AcpiTables.inf | 3 - .../AcpiPlatformDxe/AcpiPlatformDxe.inf | 13 ++ Silicon/AMD/Styx/Common/AmdStyxAcpiLib.h | 1 - Silicon/AMD/Styx/Common/SocVersion.h | 19 ++ Silicon/AMD/Styx/AcpiTables/Dsdt.c | 192 ------------------ Silicon/AMD/Styx/AcpiTables/Iort.c | 6 +- .../Drivers/AcpiPlatformDxe/AcpiPlatform.c | 137 ++++++++++++- .../StyxSataPlatformDxe/InitController.c | 7 +- .../StyxDtbLoaderLib/StyxDtbLoaderLib.c | 7 +- .../AcpiPlatformDxe}/Dsdt.asl | 180 ---------------- .../Styx/Drivers/AcpiPlatformDxe/SsdtB1.asl | 86 ++++++++ .../Styx/Drivers/AcpiPlatformDxe/SsdtXgbe.asl | 135 ++++++++++++ 19 files changed, 395 insertions(+), 442 deletions(-) delete mode 100644 Silicon/AMD/Styx/AcpiTables/AcpiAml.inf create mode 100644 Silicon/AMD/Styx/Common/SocVersion.h delete mode 100644 Silicon/AMD/Styx/AcpiTables/Dsdt.c rename Silicon/AMD/Styx/{AcpiTables => Drivers/AcpiPlatformDxe}/Dsdt.asl (72%) create mode 100644 Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/SsdtB1.asl create mode 100644 Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/SsdtXgbe.asl -- 2.19.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm