From patchwork Thu Dec 6 12:12:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 153008 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp10447506ljp; Thu, 6 Dec 2018 04:12:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/ULd2K0LZ6+pqTM40CN2CgIPBW/g1NmhsP3eJh5SMFaY7TKMKrVLJIplCvCtgvGLhc7bcfT X-Received: by 2002:a62:ea09:: with SMTP id t9mr24527790pfh.228.1544098334349; Thu, 06 Dec 2018 04:12:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544098334; cv=none; d=google.com; s=arc-20160816; b=hv2Yjoja8Ni6VYO1SwWwx+hnlPasTZvI+kK3rsLzkgPI7KGO6gFEtPMjFlzrqA8NDW 2YLgH/BuKdSXv/Mc3D8+XXIKxNG9iH6dBgJp5v3d1pjx80aTq4y/xEFVzrOrZIOiG8zB i+977hkB2EYQqkbirBsw5iUNCvgCnNX7KX9kw81y2ljoHzxRzVbliRoMk7vV9UZ8D+do d+T05yRU2lhkZKReKif1jnVonO+SlVkmbn+7gP7c3GKIc1ZoFDrtfx4MbD+QAScFlEhR TAj+uAOQ40Y6cCYIgjw3FdJ7p5zF9akZ7Exe5yPsTDf2lLsY5eXGGx0odJbkVUjjhkq4 YPUA== 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=up3nc8fir84Jo14ju+S+4YwOLmZJ1a1g0cT0eHRkAfc=; b=QBZh1wHngCIp/3eqIbSn5Ei1HeRP7GxPw7Nr6ubosOIlHZls5JO9SGTkBVr/cOlOyh 9rzUIo4T13mdTTycuRZzE621bJ9TPScPiPUvQCHTh5cwgL+YX6LKSdt7DO5CCaTHfyXd OzafmLAPMLmgjLQXV5H5/LTxub334QUiTFti/7xAuiL4gJnyxMPAg2Ca9ELd5FdX5Ijb 3HkBWRvfpTL/TyRq4+XTNrxwFIEjagjCbJ0AUfu2isKAKIHUI8G5BoPWnjVIiei7R0Ua +AnwKi5Tl2rkWQgLs5pHOSBAiPIAupxH8WE5H9f1K0kfc1AAj7s1AkQ8tih4nDGFHSTt yhXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NHnn+AJx; 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 j70si162142pgd.138.2018.12.06.04.12.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 04:12:14 -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=NHnn+AJx; 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 D63F321198CDD; Thu, 6 Dec 2018 04:12:12 -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::341; helo=mail-wm1-x341.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (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 C4831211963F9 for ; Thu, 6 Dec 2018 04:12:11 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id r11-v6so751115wmb.2 for ; Thu, 06 Dec 2018 04:12:11 -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=M5hq6RxNvOE82f00vtFSy1K6jVp/v4yx5eVPXt/2y+U=; b=NHnn+AJx6LgvUdwSpu/El5n9UDpKWAWs0m6qct7Q1Et4k4qqNIljP/yMigVPaL9T4S 2yh0DpI/aCQZ2UaGWy0S2W9200W3pwHXTWMoGhpkFfTBUXK4elsitdSIIk9Iv8XSDZF+ t46j9idwVBCS3PQkJw4NXwZq8a770nwAIvjkc= 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=M5hq6RxNvOE82f00vtFSy1K6jVp/v4yx5eVPXt/2y+U=; b=ivAtQeN8G5v7TJLouJloasaTuSeGa2408h4nhwCtjdypsv6o/DI/q6+PHJ6jQ4sTIK Ci50KZXdrIpVY5xt22cL7m1hxHMyAU13bFo8lwhisltxmIXxffqWz1V6Et6lxPg/x8sY 6j0ssdgeMRRl7qpl+dI6SFqR+c8HtjsvM1EKNHotU940dCi9/a7uAuOquRY7ZivxQ22l GtVK84BEABO/n0F7jTX6YfWlp4y6gX+IrUuquKbTl7hin9nnNRMzazdT9YNxjWvoDiab D+zGBxqWPV3uFDHN8pgxVsM2WlEwWG99o3zsDwngbstxl43qwno5GK8lWcXhjDt7WuK3 uhwg== X-Gm-Message-State: AA+aEWajpo5t7A7+3I8aj68DBPdtNG7pCR368k6wFGNGuD/mkh7YLzqe x3MmL96QntKtK0IzFlq/7DQAmL4vtO5ETA== X-Received: by 2002:a1c:4046:: with SMTP id n67mr18508785wma.123.1544098329736; Thu, 06 Dec 2018 04:12:09 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:992c:f260:a375:8d9e]) by smtp.gmail.com with ESMTPSA id d5sm405558wrx.22.2018.12.06.04.12.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 04:12:08 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 6 Dec 2018 13:12:02 +0100 Message-Id: <20181206121204.4057-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [edk2] [PATCH edk2-platforms 0/2] Silicon/Styx: merge and simplify ACPI platform driver 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" After fixing the iasl issue yesterday, I got a bit carried away and ended up rewriting most of the ACPI table generation logic for Styx. So this applies on top of the patches I sent out yesterday. Patch #1 merges the DXE driver and the library, that are split in two for no good reason. Patch #2 simplifies the MADT generation code. Ard Biesheuvel (2): Silicon/AMD/Styx: merge ACPI table drivers Silicon/Styx/AcpiPlatformDxe: simplify MADT generation logic .../AMD/OverdriveBoard/OverdriveBoard.dsc | 1 - Platform/LeMaker/CelloBoard/CelloBoard.dsc | 1 - .../Overdrive1000Board/Overdrive1000Board.dsc | 1 - .../AMD/OverdriveBoard/OverdriveBoard.fdf | 1 + Platform/LeMaker/CelloBoard/CelloBoard.fdf | 1 + .../Overdrive1000Board/Overdrive1000Board.fdf | 1 + Silicon/AMD/Styx/AcpiTables/AcpiTables.inf | 85 ----- .../AcpiPlatformDxe/AcpiPlatformDxe.inf | 34 +- .../AcpiPlatformDxe/AcpiPlatform.h} | 11 +- Silicon/AMD/Styx/AcpiTables/Madt.c | 318 ------------------ .../Drivers/AcpiPlatformDxe/AcpiPlatform.c | 155 +++++---- .../AcpiPlatformDxe/Csrt.aslc} | 13 +- .../AcpiPlatformDxe/Dbg2.aslc} | 12 +- .../AcpiPlatformDxe/Fadt.aslc} | 11 +- .../AcpiPlatformDxe/Gtdt.aslc} | 20 +- .../AcpiPlatformDxe/Iort.aslc} | 19 +- .../Styx/Drivers/AcpiPlatformDxe/Madt.aslc | 117 +++++++ .../AcpiPlatformDxe/Mcfg.aslc} | 13 +- .../AcpiPlatformDxe/Pptt.aslc} | 10 +- .../AcpiPlatformDxe/Spcr.aslc} | 12 +- 20 files changed, 264 insertions(+), 572 deletions(-) delete mode 100644 Silicon/AMD/Styx/AcpiTables/AcpiTables.inf rename Silicon/AMD/Styx/{Common/AmdStyxAcpiLib.h => Drivers/AcpiPlatformDxe/AcpiPlatform.h} (81%) delete mode 100644 Silicon/AMD/Styx/AcpiTables/Madt.c rename Silicon/AMD/Styx/{AcpiTables/Csrt.c => Drivers/AcpiPlatformDxe/Csrt.aslc} (93%) rename Silicon/AMD/Styx/{AcpiTables/Dbg2.c => Drivers/AcpiPlatformDxe/Dbg2.aslc} (95%) rename Silicon/AMD/Styx/{AcpiTables/Fadt.c => Drivers/AcpiPlatformDxe/Fadt.aslc} (96%) rename Silicon/AMD/Styx/{AcpiTables/Gtdt.c => Drivers/AcpiPlatformDxe/Gtdt.aslc} (92%) rename Silicon/AMD/Styx/{AcpiTables/Iort.c => Drivers/AcpiPlatformDxe/Iort.aslc} (95%) create mode 100644 Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/Madt.aslc rename Silicon/AMD/Styx/{AcpiTables/Mcfg.c => Drivers/AcpiPlatformDxe/Mcfg.aslc} (86%) rename Silicon/AMD/Styx/{AcpiTables/Pptt.c => Drivers/AcpiPlatformDxe/Pptt.aslc} (97%) rename Silicon/AMD/Styx/{AcpiTables/Spcr.c => Drivers/AcpiPlatformDxe/Spcr.aslc} (90%) -- 2.19.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm