From patchwork Mon Jul 5 22:32:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1501211 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; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=SfYGgs8+; 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 4GK1BX0Rqtz9sVb for ; Tue, 6 Jul 2021 21:52:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 67EA282C54; Tue, 6 Jul 2021 13:52: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="SfYGgs8+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BDA082BE2; Tue, 6 Jul 2021 00:33:19 +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=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 A2BF182BE2 for ; Tue, 6 Jul 2021 00:33:10 +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-oi1-x22a.google.com with SMTP id b2so22348922oiy.6 for ; Mon, 05 Jul 2021 15:33:10 -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:mime-version :content-transfer-encoding; bh=AwiZfg5WsDUSwe++CFMVRQ21lrTAdQArnRJ4HkFkSCQ=; b=SfYGgs8+tzuNEQnZGflNqIOHiNmpiJG8cjylg/7QWbkUVmJ3QFDmMiN8mft4AKeL9D znUMtL/Lk2czt/gVNISq1PVsXzDS+NZfXy/+Guzf2C3WL41ijJmQYRSxjnjFWT5HRxDl N0c1fiOgqv2MFppFoXSTfNANtsluikhHBJios= 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=AwiZfg5WsDUSwe++CFMVRQ21lrTAdQArnRJ4HkFkSCQ=; b=nQ95i0LGHh3GV+h1gFj0Icz0uBRxwneJIodSwWJze1g9aWPMI5LdsnSjG+mvnfYtaY N/AXUQg13LkvoYN/exiWzYabV4S5YUU/32UYgQPCPEHb2qolFyVANeeh/oc/OIsCMtGO ighnwtf0xpkPDz2zeU103Cb6Cf0/JFdnpaA2hEb4Ak5tG1Dtsk52wPgkI194zHUVpD6Q 0+tJH0CxwssNsR0xHvGYk9gjLWZ2yPGWlXlLENV17DNBbqmjU4aYpeGwsd59jmNBmjgb u537sPFCVO47+oFofVF/g1q07F2SIT4QaXy1HJ7hv1GAT8s4tWPCalsFiHRDRU8wiWJe OmEg== X-Gm-Message-State: AOAM533VYrRTVAeFRo8BUx/yCApg0jTMgxI8+nHqc60U1WlnPDbkifff LPdPngbc03RjIsqGBQIVyF+T7E6qhwPhr9fa X-Google-Smtp-Source: ABdhPJzv3dGmJoR57OmR/14Q5LKl2geXLCaHir06hRL96M78dPhS0PHbg0/K5ZdryH92EQ7Fmi2lAQ== X-Received: by 2002:a05:6808:14c8:: with SMTP id f8mr11654097oiw.7.1625524388687; Mon, 05 Jul 2021 15:33:08 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id u22sm1434938oie.26.2021.07.05.15.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 15:33:08 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , AKASHI Takahiro , Adam Ford , Alexandru Gagniuc , Alper Nebi Yasak , Anastasiia Lukianenko , Andre Przywara , Andrii Anisov , Andy Shevchenko , Bin Meng , Claudiu Manoil , Dario Binacchi , Etienne Carriere , Faiz Abbas , Harald Seiler , Heinrich Schuchardt , Igor Opaniuk , Jaehoon Chung , Jean-Jacques Hiblot , Joe Hershberger , Joel Peshkin , Joel Stanley , Lokesh Vutla , =?utf-8?q?Marek_Beh=C3=BAn?= , Marek Vasut , Mark Kettenis , Masahiro Yamada , Masahiro Yamada , Michael Walle , Michal Simek , Oleksandr Andrushchenko , Otavio Salvador , Ovidiu Panait , Patrick Delaunay , Pavel Herrmann , Peng Fan , Philippe Reynes , Pratyush Yadav , Roger Pau Monne , Samuel Holland , Sean Anderson , Sebastian Reichel , Stefan Roese , Usama Arif , Walter Lozano , Wolfgang Wallner Subject: [PATCH 00/22] Various fixes and enhancements Date: Mon, 5 Jul 2021 16:32:38 -0600 Message-Id: <20210705223300.2139971-1-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 06 Jul 2021 13:52:00 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean This series includes a number of fixes and enhancements related to enabling verified boot on Chromium OS: - bloblist support for resizing and a few minor fixes - iteration through block devices - a few cros_ec improvements - sandbox SDL2 fixes and support for launching the VPL executable - minor test and dm fixes - show boot error when SPL fails to find next phase It is based on the VPL series: http://patchwork.ozlabs.org/project/uboot/list/?series=242761 Simon Glass (22): dm: core: Add logging for DM_SEQ_ALIAS dm: Support lzma in the flashmap test: Allow CONFIG_SPL_LOAD_FIT to be disabled test: Add DM_DMA to be disabled test: Avoid a build error with SPL Makefile: Avoid rebuilding .dtb files each time sandbox: Support executables for more phases sandbox: Add work-around for SDL2 display sandbox: Use hinting with the display sandbox: Adjust the bloblist default address cros_ec: Allow reading the battery-charge state cros_ec: Drop cros_ec_entering_mode() cros_ec: Support the full-size vboot context cros_ec: Use standard calls for recovery-request checking bloblist: Support resizing a blob bloblist: Tidy up a few API comments bloblist: Correct condition in bloblist_addrec() image: Allow @ in node names when not using signatures spl: Provide more information on boot failure sandbox: mmc: Support fixed MMC devices blk: Support iteration log: Allow padding of the function name arch/sandbox/cpu/os.c | 63 +++++----- arch/sandbox/cpu/sdl.c | 26 +++- arch/sandbox/cpu/spl.c | 18 ++- arch/sandbox/dts/test.dts | 1 + arch/sandbox/include/asm/spl.h | 13 ++ common/Kconfig | 10 +- common/bloblist.c | 73 ++++++++++- common/image-fit.c | 2 +- common/log_console.c | 2 +- common/spl/Kconfig | 10 ++ common/spl/spl.c | 48 +++++--- doc/arch/sandbox.rst | 2 +- drivers/block/blk-uclass.c | 49 ++++++++ drivers/core/device.c | 4 +- drivers/core/of_extra.c | 2 + drivers/misc/cros_ec.c | 28 +++-- drivers/misc/cros_ec_sandbox.c | 29 +++-- drivers/mmc/sandbox_mmc.c | 24 +++- include/blk.h | 56 +++++++++ include/bloblist.h | 23 +++- include/cros_ec.h | 17 ++- include/os.h | 5 +- include/spl.h | 33 +++++ scripts/Makefile.lib | 2 +- test/Makefile | 2 + test/bloblist.c | 215 +++++++++++++++++++++++++++++++++ test/dm/blk.c | 55 +++++++++ test/dm/core.c | 2 + test/image/spl_load.c | 6 +- test/log/log_test.c | 16 +-- test/test-main.c | 2 +- 31 files changed, 724 insertions(+), 114 deletions(-)