From patchwork Tue Apr 18 15:30:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1770574 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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: legolas.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=fw3E4PiA; 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q1X8z29cmz23tD for ; Wed, 19 Apr 2023 17:14:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 45AE1861C5; Wed, 19 Apr 2023 09:14:19 +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="fw3E4PiA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 23FF2860AF; Tue, 18 Apr 2023 17:31:13 +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.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (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 6F7B8860B0 for ; Tue, 18 Apr 2023 17:31:08 +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-io1-xd34.google.com with SMTP id ca18e2360f4ac-7606d6bb669so82404939f.2 for ; Tue, 18 Apr 2023 08:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1681831867; x=1684423867; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5tK5sLAALQ1kula3XVHbKgJ/1ydlx5+NMKHZD2eSWCY=; b=fw3E4PiAYzpAPJZ4xYgDmNtlZQAaZRUwljnr/isn0b9eCIgCBb4e8w3txnmcES3UQd ZJaxLdqQmejxM8W5wANpqjI30efuw/8XzsatH2JM4cV69bwnyAkY9ipiIgIkdDBg7svc LubJvnJCZz9WTv2BgV25RLDEs45iQQ5BmgEoo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681831867; x=1684423867; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5tK5sLAALQ1kula3XVHbKgJ/1ydlx5+NMKHZD2eSWCY=; b=DAeor517SwOHun9YmsydwqB8zlBvMhAa53T6vVt0lUSn3Fc6VnWtXqFaDa/EgMhc0I P+iti3gftndDDUfctqr3RwZMaelGek+jEzoCZmJTgWCqiXedtwile9r4ef09sVRwyP91 scQJfcw9hLd7NQ+DY2SruYM343xPXUmDTb5MoH/LZY/ATJUb8qCrAPfXEPVk0qye3pdJ SRIf3mQdB3zlDWYUp29Kazb3e+vIY1Fj8uSk+A+e0K6irDwe1AfsWxBN3CEQi2lQTupP H6HWxjDd+pljRt59yizG8zB+OYKuGxNFWV8VxH66ycIik2S2zCVbVMW6w68Ip7eAFuB4 GRHQ== X-Gm-Message-State: AAQBX9eDFR+D9IJSW8OoLPA8qdAoSjlq8huW1FGXniOfACnArFQg2pmK mD7fjHQuUlOfdvBwdlsWbi3k4t7I2k4Zll4YgGk= X-Google-Smtp-Source: AKy350YqIRcsVDCjRg0NoMEvqQ08NJkCs/0UN82bO1c26SaJAASR/XYBmkSaFQq6tE3VT/1kWenvmQ== X-Received: by 2002:a05:6602:24c4:b0:763:5f38:6e3e with SMTP id h4-20020a05660224c400b007635f386e3emr2060971ioe.3.1681831866837; Tue, 18 Apr 2023 08:31:06 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id x8-20020a5d9448000000b0075845625e38sm4005945ior.28.2023.04.18.08.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 08:31:06 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass , Alper Nebi Yasak , Andrejs Cainikovs , Andrew Scull , Daniel Schwierzeck , Fabio Estevam , Francesco Dolcini , Gaurav Jain , Jacky Bai , Jagan Teki , Jian Li , Leo , Marek Vasut , Michal Simek , Michal Suchanek , Mike Frysinger , "NXP i.MX U-Boot Team" , Neha Malcom Francis , Nikita Shubin , Ovidiu Panait , Padmarao Begari , =?utf-8?q?Pali_Roh=C3=A1r?= , Pavel Herrmann , Peng Fan , Philippe Reynes , Rasmus Villemoes , Rick Chen , Stefan Herbrechtsmeier , Stefano Babic , Thomas Chou , Vignesh R , Ye Li , Yu Chien Peter Lin Subject: [PATCH v2 00/18] x86: Various fixes for chromebooks Date: Wed, 19 Apr 2023 03:30:43 +1200 Message-ID: <20230418153101.115816-1-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 19 Apr 2023 09:14:18 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean This adds some fixes for x86-based Chromebook builds which have picked up a few problems recently. With this, chromebook_link/64, chromebook_samus and chromebook_coral work correctly. Changes in v2: - Add new patch to set up LPC only after relocation - Add new patch to tidy up address for loading U-Boot from SPL - Drop patch "x86: Add on to existing MTRRs in SPL" - Add various patches to resolve problems with chromebook_link64 Simon Glass (18): dm: Emit the arch_cpu_init_dm() even only before relocation binman: Support writing symbols for ucode etypes sf: Guard against zero erasesize sf: Rename spi-nor-tiny functions x86: ivybridge: Ensure LPC is available for GPIO base x86: samus: Drop EFI_LOADER x86: Support debug UART in 64-bit mode x86: Tidy up availability of string functions x86: mrc: Correct SPL debug message x86: spl: Show debugging for BSS x86: Set up LPC only after relocation x86: Tidy up address for loading U-Boot from SPL x86: Return mtrr_add_request() to its old purpose x86: spl: Avoid using init_cache_f_r() from SPL spl: Commit MTRRs only in board_init_f_r() x86: Simplify cpu_jump_to_64bit_uboot() x86: samus: Don't include audio and SATA in TPL x86: samus: Adjust TPL start and pre-reloc memory size arch/arm/mach-imx/imx8/cpu.c | 2 +- arch/arm/mach-imx/imx8m/soc.c | 2 +- arch/arm/mach-imx/imx8ulp/soc.c | 2 +- arch/arm/mach-imx/imx9/soc.c | 2 +- arch/arm/mach-omap2/am33xx/board.c | 2 +- arch/arm/mach-omap2/hwinit-common.c | 2 +- arch/mips/mach-pic32/cpu.c | 2 +- arch/nios2/cpu/cpu.c | 2 +- arch/riscv/cpu/cpu.c | 2 +- arch/x86/cpu/baytrail/cpu.c | 2 +- arch/x86/cpu/broadwell/Makefile | 4 +-- arch/x86/cpu/broadwell/cpu.c | 2 +- arch/x86/cpu/i386/cpu.c | 32 +++---------------- arch/x86/cpu/ivybridge/bd82x6x.c | 17 +++++----- arch/x86/cpu/ivybridge/cpu.c | 2 +- arch/x86/cpu/mtrr.c | 6 +++- arch/x86/cpu/quark/quark.c | 2 +- arch/x86/cpu/x86_64/cpu.c | 7 ++++ arch/x86/include/asm/string.h | 6 +++- arch/x86/lib/Makefile | 4 ++- arch/x86/lib/fsp2/fsp_init.c | 2 +- arch/x86/lib/mrccache.c | 2 +- arch/x86/lib/spl.c | 21 +++++------- configs/chromebook_samus_defconfig | 1 + configs/chromebook_samus_tpl_defconfig | 4 +-- doc/develop/event.rst | 6 ++-- drivers/core/root.c | 4 +-- drivers/cpu/microblaze_cpu.c | 2 +- drivers/mtd/spi/sf_probe.c | 3 +- drivers/mtd/spi/spi-nor-tiny.c | 16 +++++----- drivers/sysreset/sysreset_x86.c | 9 ++++-- include/event.h | 2 +- .../binman/etype/u_boot_spl_with_ucode_ptr.py | 2 +- .../binman/etype/u_boot_tpl_with_ucode_ptr.py | 2 +- tools/binman/etype/u_boot_with_ucode_ptr.py | 4 +-- 35 files changed, 90 insertions(+), 92 deletions(-)