Message ID | 20200426092529.v8.27.Ib6a3a2f7b429bfd6a43f7bea0543862a1a2eced0@changeid |
---|---|
State | Superseded |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=e/YBDQE0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 499BjB356pz9sSG for <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2020 01:31:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7B7F781DAA; Sun, 26 Apr 2020 17:29:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="e/YBDQE0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E086281D72; Sun, 26 Apr 2020 17:27:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8335681D60 for <u-boot@lists.denx.de>; Sun, 26 Apr 2020 17:26:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x141.google.com with SMTP id r2so14313975ilo.6 for <u-boot@lists.denx.de>; Sun, 26 Apr 2020 08:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=alwZ1UqSS8raQKBXJvRqPCSMv/oiB91guXQC2WsWwg8=; b=e/YBDQE0K0hOjhID8UtgNzzGOINbbbCAJ4+qRgOKhfAbCdt8fOhKtUygfAN4feNugz LngXbkxN1ZxpyVsumPlSW3oyFJlhVPIEGiyy5yqJ6r47kgb6ffvN1y+XF7mBjzOL2+OE xMM2qqq+roetRC9J8RqEPThuTQaavao8ovUGo= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=alwZ1UqSS8raQKBXJvRqPCSMv/oiB91guXQC2WsWwg8=; b=qluLPqwyiycEXbFW7BPSAQ7QG7qGkakFBPtPVbKDYHRz9w0/34va0K0IMZcW8p45C4 xfY9qiR7PRe2X7masVCF4YP/4KWY2n+y4yiNyd5ves4qKm6X7w+jdv+fF4IDyP9+3ACs RWL0xKnifnC+3DnJo4hU8KOHX6LMKPiYMG5Q0oyGmidigZGuAu1U3+Yw7XPHwMuAP9la coyxYrQubVec2uUqwrW9275cmZRGGrXz/Lzp/9GQOu6PNGlZEi6tAlbBzy1EwSqM+vdV 9A+NZm9H4vl/JqXcdJu+hu1k+8EvADc269TIIxjgoHt/MShb/0NJQiv+WL7jTD78IcY2 jpOA== X-Gm-Message-State: AGi0PuaUtAmn3G9F0HoI60MshKnUEdBrZM7WWC0noNhqP4E5NXfUQXBF zfQMcI//vRbUc27CKGCFyzYa7TgqrYJpVA== X-Google-Smtp-Source: APiQypKI+Sh8hUBkncb+yQPj18OpfNqAZ8QIsjcX5eZ+DiZ4BUIzAMnstmY0OWWsb0y9RFYhdtVncg== X-Received: by 2002:a92:ba99:: with SMTP id t25mr17715046ill.84.1587914809181; Sun, 26 Apr 2020 08:26:49 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id r16sm4437069ilb.32.2020.04.26.08.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2020 08:26:48 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Wolfgang Wallner <wolfgang.wallner@br-automation.com>, Bin Meng <bmeng.cn@gmail.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v8 27/35] x86: acpi: Move MADT down a bit Date: Sun, 26 Apr 2020 09:26:10 -0600 Message-Id: <20200426092529.v8.27.Ib6a3a2f7b429bfd6a43f7bea0543862a1a2eced0@changeid> X-Mailer: git-send-email 2.26.2.303.gf8c07b1a785-goog In-Reply-To: <20200426152618.125646-1-sjg@chromium.org> References: <20200426152618.125646-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Add programmatic generation of ACPI tables (part B)
|
expand
|
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index 13f1409de8..676370107f 100644 --- a/arch/x86/lib/acpi_table.c +++ b/arch/x86/lib/acpi_table.c @@ -417,18 +417,18 @@ ulong write_acpi_tables(ulong start_addr) acpi_create_fadt(fadt, facs, dsdt); acpi_add_table(ctx, fadt); - debug("ACPI: * MADT\n"); - madt = ctx->current; - acpi_create_madt(madt); - acpi_inc_align(ctx, madt->header.length); - acpi_add_table(ctx, madt); - debug("ACPI: * MCFG\n"); mcfg = ctx->current; acpi_create_mcfg(mcfg); acpi_inc_align(ctx, mcfg->header.length); acpi_add_table(ctx, mcfg); + debug("ACPI: * MADT\n"); + madt = ctx->current; + acpi_create_madt(madt); + acpi_inc_align(ctx, madt->header.length); + acpi_add_table(ctx, madt); + debug("ACPI: * CSRT\n"); csrt = ctx->current; acpi_create_csrt(csrt);
Put this table before MCFG so that it matches the order that coreboot uses when passing tables to Linux. This is a cosmetic change since the order of the tables does not otherwise matter. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v8: None Changes in v3: - Correct the commit subject Changes in v2: None arch/x86/lib/acpi_table.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)