From patchwork Wed Apr 8 22:57:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1268410 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) 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=RmXbamfs; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 48yKZ50smRz9sRN for ; Thu, 9 Apr 2020 09:03:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A0C8C81944; Thu, 9 Apr 2020 01:00:05 +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="RmXbamfs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A67C481864; Thu, 9 Apr 2020 00:58:44 +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 E813E81902 for ; Thu, 9 Apr 2020 00:58:22 +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 a6so8484385ilr.4 for ; Wed, 08 Apr 2020 15:58:22 -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=8XhuhfePpJIfr5Y+qo7iVOWFpM/tAcyGSVGSLjSHbXE=; b=RmXbamfsdxkGdxMnHv2XFU45IlD00EeXdx1mbZmBknU1p4qApVmVzKMw2+Uh5Ks/Ru NHZFNqUaJizRU2+y9g1Wtc5iB4WJ1CTjghFPyltXSblogzlS3gjmYjhc7LpwpiXYXkP0 c8KnspiJw3l1prVzyUR5w0FMkVWb9kqLHI5T0= 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=8XhuhfePpJIfr5Y+qo7iVOWFpM/tAcyGSVGSLjSHbXE=; b=A2yexGDJdEWzeLITK9jLvyPF76Uq3Ism/UP3BjCcQo4AlFNEFaxZM5aLZ75qjCXhdH yDba4E0QmOs2q+tRJ6r1crctvrBIgdOC2WJj8PtFlB0ZOMC3PfUVpgiv3pLrhNOxddtm JsRA4rnCElupG2c+1fDMm4x5sTjdG8rX+mp97HcJEaEJrgG3B2MPO7ZebAb1v97a3C44 2OvY4Q/Vq+qRljedCat81HYsMRhxolIN85Qbd4s4lYoHSylALYLKTKgb5N2TD7drEkoI l6JaWHEp7CFVUPvPRbL2oTHG1tDMIrhG4w14Q0n2UUH11YpXUgIOYLPrlz+yFwHA9p6k x+QA== X-Gm-Message-State: AGi0PuYqCOTVlrevVuVy3Toe1dC/W1t2HiybSHRN7mtq7Qjq7rpx9JwN AlodfEbEaAo+x2wyg2qKS2gaD47GiMdRhw== X-Google-Smtp-Source: APiQypLbss/p8A6h52XJYg+OFG02P1w54q+fW+zdiTGSku/LK0qhg+vQjLpHEfZtnRVdfpCp55xkJQ== X-Received: by 2002:a92:cf52:: with SMTP id c18mr2206486ilr.246.1586386701722; Wed, 08 Apr 2020 15:58:21 -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 k18sm7356451ios.18.2020.04.08.15.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 15:58:21 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Leif Lindholm , Andy Shevchenko , Bin Meng , Wolfgang Wallner , Simon Glass Subject: [PATCH v5 24/29] x86: Allow devices to write ACPI tables Date: Wed, 8 Apr 2020 16:57:43 -0600 Message-Id: <20200408165737.v5.24.I6f54ae1deb9a3f954441d072e5d591d7cdb4ed5d@changeid> X-Mailer: git-send-email 2.26.0.292.g33ef6b2f38-goog In-Reply-To: <20200408225749.171380-1-sjg@chromium.org> References: <20200408225749.171380-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Call the new core function to permit devices to write their own ACPI tables. These tables will appear after all other tables. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/x86/lib/acpi_table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index 484cf66bf4e..99523473a17 100644 --- a/arch/x86/lib/acpi_table.c +++ b/arch/x86/lib/acpi_table.c @@ -581,6 +581,8 @@ ulong write_acpi_tables(ulong start_addr) acpi_inc_align(ctx, spcr->header.length); acpi_add_table(rsdp, spcr); + acpi_write_dev_tables(ctx); + addr = map_to_sysmem(ctx->current); debug("current = %lx\n", addr);