From patchwork Thu Dec 21 09:52:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 756981 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp799055wrw; Thu, 21 Dec 2023 01:54:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFV+UfxTsgLOtX86xYSVCEHnqyfqQ0BlbPyGbHSwt5UJ09sX1OAoKfBHJot6Z0tgKTzouHA X-Received: by 2002:a05:600c:4193:b0:40c:29a1:5559 with SMTP id p19-20020a05600c419300b0040c29a15559mr290784wmh.67.1703152490828; Thu, 21 Dec 2023 01:54:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703152490; cv=none; d=google.com; s=arc-20160816; b=HK6xGlbprM82hKp84vwAzkW/1RailbqawDT1ScmSiAwCYyfkWqgCadVY3vPwAhl8AW ylIeFiloayofJ0GR8ahMi/VWxZGhf+9FlCZ6dt9pomL4fgQadM+CAngCh06MwuXtl1bu O9xSSSvtNox1xN6Wjhx8IvTubcXs1YK7k5UQqmr6phBnrbIf4OODJa7HguZOBfu9NccZ GX4av0Dlqm2JNNWr77eeTw50Jl9KV1KMGWVmFUgo5nSgWkCA2l/0J/ofrpBrMa5C5k3C Txs3AepCHDIp8Am3qyyvZzPXUVuz720salU0x8aH8RfiDqTa7aaZoRb/aqCij6f6dG4e ly+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=d4bvRIP5WUsdsl41BDM+Ut37kWRxyvyvfNFHKjaLh8A=; fh=vrqNCSWbrItDl40TMygDgSHof0/XikFdntN3a1zOV74=; b=A7eqs0E/hVS0zEjgRosFAxvjyGo+WK5sMPO6pPB/K3dqqN+ogcDMwFlEj0QAhDJqmF haNhPgrNfAVvdsvRYf7snUG+I09qdYzIwFao66OeHJp2At1SuBx3dgUjzDzhAc0HF7uN raD8STvS2cGI8AYmebPKPBIdBMorOFvtCAxOQ4fn3L8d3QIBlUwBg/iVo584gZup9ulx 0M6uWAFLmtSfoq7sFhEbR4mgOj1xmagSRgy7UWaQMR6BjYQ2eLQxtbIOxQJAQOinmPSo dTNiSnIp8BUEHgy1OnlhfA+C+/+mnQqSWxZx63Zf59RhaNhtn/UUqSU6FOIEVrHL6Veq r5mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b4n7gcy7; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id c15-20020a5d4f0f000000b003367c2a1993si771581wru.926.2023.12.21.01.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:54:50 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b4n7gcy7; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E83E877C8; Thu, 21 Dec 2023 10:54:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="b4n7gcy7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 700A58784A; Thu, 21 Dec 2023 10:54:48 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (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 4B769877A1 for ; Thu, 21 Dec 2023 10:54:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-28beb1d946fso512107a91.0 for ; Thu, 21 Dec 2023 01:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703152484; x=1703757284; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d4bvRIP5WUsdsl41BDM+Ut37kWRxyvyvfNFHKjaLh8A=; b=b4n7gcy7wc3uij2LkzrPH+cPVKKmamBEwZJywhdu8uD+w/hz4l4gIsHJyEPNxPNTAc lsBhVOuBTAZL0vuq4gsO9ORq1SRoVib13plCux3ocQBBpgqqCnABusiZoRTBeS4GEhW0 X1t9JhOKbcgUEm2kAOHaI8koFJY20YVmU//g9e7E93wOqqEu8k2JB5Ka35qH84kBa5P6 NGzXQxTd6TSb6OKTxmFBdSXX/JfcjXyva80Mw8LkDw1m8xI3I1hI+s2DyEci1cfkIiLB mInVrOkTRWcPG5HYpLmk1TOMsUFAIWbiCUTwI1s2M5INBcu//87YktJ9md2N7CEAjWsd r7xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703152484; x=1703757284; 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=d4bvRIP5WUsdsl41BDM+Ut37kWRxyvyvfNFHKjaLh8A=; b=wNOLD2cvaYefA8Yx3mP5vYA6WRzJWWZkrP6fHs9O0T+hH1htCLQURSdxID2OgXJA3K 9YQsMVJYLWNy23QGbCw3sM3r585hKEJfbLUIdGhiZ3YbQ/MDhy7hglaLmWcn5YOnbTXL ho8/qK2uQCEmBvCPCHS7ocuOHfXDOJUsJAy+g65LCLRQfxd36V6BevdBWSnwDfkC+nd5 AwzymJ46wOVkko4yUIUtzTyKR0n7qEDK825SUQtv8aXVBGViAyUxK9m33RFgZDzr83R7 vTOykpsXJjxPDLMB0sL709Kk4ml5benzHwAYhXZngpUDWka9qBKLqMgaR+jH0OMh5VgK +3Kg== X-Gm-Message-State: AOJu0YzkUVJutWaX9m84/ayFJgelbZYNWdZBsa/gYTfWwtQuIFTzfJWc yqeInhA3XfANLdqDakLHDVCmihaFPvILL/OZW9s= X-Received: by 2002:a17:90a:ba0a:b0:28b:ecdf:3267 with SMTP id s10-20020a17090aba0a00b0028becdf3267mr530146pjr.85.1703152483719; Thu, 21 Dec 2023 01:54:43 -0800 (PST) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id l10-20020a17090ac58a00b0028bf196fdb7sm921986pjt.57.2023.12.21.01.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:54:43 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Sughosh Ganu , Masahisa Kojima Subject: [PATCH v2 0/2] fix FMP versioning for FWU multi bank update Date: Thu, 21 Dec 2023 18:52:56 +0900 Message-Id: <20231221095258.592275-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 The current FMP versioning does not work when CONFIG_FWU_MULTI_BANK_UPDATE is enabled. This series aims to support FMP versioning for FWU multi bank update. [Changelog] v1 -> v2 - update fwu_get_image_index() function to return the dfu_alt_num - store firmware version into the array of fmp_state structure Masahisa Kojima (2): fwu: fix fwu_get_image_index interface efi_loader: support fmp versioning for multi bank update include/fwu.h | 13 +++--- lib/efi_loader/efi_firmware.c | 80 +++++++++++++++++++++++++++-------- lib/fwu_updates/fwu.c | 32 ++++++-------- 3 files changed, 80 insertions(+), 45 deletions(-)