From patchwork Sat Dec 21 16:13:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1214532 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="AiEgTAQB"; 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47g9fN3ZsVz9s29 for ; Sun, 22 Dec 2019 03:14:00 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3B9E780E8D; Sat, 21 Dec 2019 17:13:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="AiEgTAQB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EBDA180929; Sat, 21 Dec 2019 17:13:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=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 9E8E6807F8 for ; Sat, 21 Dec 2019 17:13:46 +0100 (CET) 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 p8so10619432iln.12 for ; Sat, 21 Dec 2019 08:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4yKymbnyLsZxTD5JylA+czqo4Zbd1fuHgqEGvSC2H7U=; b=AiEgTAQBbVr4AlLOCjYhdGOQWBvid8IpkxnUzmaVzXpOgG0QkHG3SBaOUM0UnXT/q3 VOs6SXwkiNVSh5VQh9WHkv47nnRnRS6XxMIOr7ZZh48BlBpdGSW+EzbsYU8KatpSz0Rw PfR+9tb82QY6JLnoqELd+O9rb31X8veiWr+tU= 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=4yKymbnyLsZxTD5JylA+czqo4Zbd1fuHgqEGvSC2H7U=; b=aSebYeFdW7YKSw8Wy7KBPeggtMXHnCSnFwUdpTb+/WSKi/PPNInsS7MIKl7D7xHiBY OpyVLftFYtBrA8I5TDF5fp0utYsqeJ3J2zSDQkWbxKhYYRi2w30u/sZ179/McqWPhu8t tsWhmlcMEL0h1VG9Xl3mNZo7oLfYTCm529ovXbDsMlcjiddl1RrexNT5RRSlYr9NxK9Z Z0laEqKFegEvf2GycOsNvzWQ5pKemk26iv6xsI9zPwoxgwBsWIP+UwcgX6oTDJXEcH8u ApsiHJzWP8nAhkwGU0lcK+VuZruFMJmEbdEgIkqb/8ZdDNRJuwDB5q//AkOfTUGbLuJb 8+pA== X-Gm-Message-State: APjAAAV4GNHIRo96xmxCh9/SuQdVDdd3rcJXGZ9G/aYjIvfCHeb+wMRF VutcAd2bUIu/q+W5FlzkIFiissmVR3Y= X-Google-Smtp-Source: APXvYqxdDayuYY+gxdR26eu094MJIj0rR7pWipkkbL1oaVWpxxQ4zAUpLFBUNptSIlG1ghmz7vpF4Q== X-Received: by 2002:a92:8f46:: with SMTP id j67mr10730678ild.125.1576944825151; Sat, 21 Dec 2019 08:13:45 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id g4sm7073700iln.81.2019.12.21.08.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2019 08:13:44 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH 0/5] x86: Improve support for chain-loading U-Boot Date: Sat, 21 Dec 2019 09:13:35 -0700 Message-Id: <20191221161340.27047-1-sjg@chromium.org> X-Mailer: git-send-email 2.24.1.735.g03f4e72817-goog MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thierry Reding , Stephen Warren , Vagrant Cascadian , Heinrich Schuchardt , Andy Shevchenko , Joe Hershberger , Alexander Graf , Stefan Roese , Pavel Herrmann Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean This little series adds a few checks into the code to allow better operation when booting a build from a previous-state loader such as coreboot. At present we have a 'coreboot' target, but sometimes it is useful to boot a bare-metal target, such as coral, from coreboot. That allows comparison of operation between the bare metal version doing all the init itself and relying on coreboot for some init. Simon Glass (5): x86: fsp: Allow skipping init code when chain loading x86: apl: Skip init code when chain loading x86: cpu: Skip init code when chain loading dm: Avoid initing built-in devices when chain loading pci: Avoid auto-config when chain loading arch/x86/cpu/apollolake/fsp_s.c | 2 ++ arch/x86/cpu/cpu.c | 4 +++- arch/x86/cpu/i386/interrupt.c | 3 +++ arch/x86/lib/fsp/fsp_dram.c | 8 ++++++++ arch/x86/lib/fsp/fsp_graphics.c | 3 +++ arch/x86/lib/fsp2/fsp_dram.c | 10 ++++++++++ arch/x86/lib/fsp2/fsp_init.c | 2 +- arch/x86/lib/init_helpers.c | 3 +++ common/board_r.c | 3 +++ drivers/pci/pci-uclass.c | 4 ++-- 10 files changed, 38 insertions(+), 4 deletions(-)