From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A87FCC001DE for ; Tue, 25 Jul 2023 21:36:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD3D68678C; Tue, 25 Jul 2023 23:36:47 +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="BP+4+DV0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B885C86771; Tue, 25 Jul 2023 23:36:45 +0200 (CEST) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 E3DD08636F for ; Tue, 25 Jul 2023 23:36:42 +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-xd35.google.com with SMTP id ca18e2360f4ac-7835ae70e46so231757739f.3 for ; Tue, 25 Jul 2023 14:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690321001; x=1690925801; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kDBrHv6dnKMa9Sdci85ZVEIePw9MPpBjAzARZsi4pUs=; b=BP+4+DV06PGgFAvgfWNcuImrtU50zpp4sKV1Cdb5pM5ovjGjg2NuFWr7H/cWPI38BE aRl4MpUvBhpCJ2NhpmToOyJTsCQS+N6eUkiKcw0SEB/4yuZ3RvUamsBFqCsXjTerlFkF aU63lmICgdbvD9MDewyRMsFyPcb6WBue/rLrE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690321001; x=1690925801; 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=kDBrHv6dnKMa9Sdci85ZVEIePw9MPpBjAzARZsi4pUs=; b=ER0XLfSbeb2nvvAVVzNA6j2oiVlb+VaDhWqV/Tl5K9mwlGtxcwjwpQmnPSNU5NK17d 2ENU5aKjW7Ce9FfZS4MUBOaHHSnnKjDBArcG3QTEzQ9ARn5hurNdxQTOsEAZ5iH6t5Wc zMBnB6QODthKLUDc/fp9Kdkw/GOK1xBFhsfFcMXu4tdbgatiRBsK5KviAjbStb49CTJW ZX3m92PXyFz1nmMergHJhWnrYysD2SZEONXjqkJSNZl59Kgx5h4wQ7mc7w+zGwuMOj69 flEYOMlFCDbyOV0ZHGesNT0kJVYG8/kmqExZHxfcBMNviZse5v17HCKIYhMqLf44g4pR Qc4g== X-Gm-Message-State: ABy/qLb6c2aITGoibL1Q4A+MF49o6C5YiV41NWhy8X/u2XqQbL11+YiF +ARZ+EvPxqz3bNy9mYjW8wJHOjlUf69aakRgh1w= X-Google-Smtp-Source: APBJJlG8NwqJ7ruYqDqEwe0dfkCBRCYUGCLH2SbLSDgClnEL2ISNbtostm/qjh7Z4a0r5MbqTG+zcA== X-Received: by 2002:a6b:6e09:0:b0:785:fbe8:1da0 with SMTP id d9-20020a6b6e09000000b00785fbe81da0mr141741ioh.15.1690321001495; Tue, 25 Jul 2023 14:36:41 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:ce78:3dad:1309:8d43]) by smtp.gmail.com with ESMTPSA id ep18-20020a0566384e1200b0042b2d43ee3fsm3891987jab.82.2023.07.25.14.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 14:36:41 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Tom Rini , Julius Werner , Dan Handley , Jose Marinho , Simon Glass , Bin Meng , Nikhil M Jain Subject: [PATCH 00/14] bloblist: Align to firmware handoff Date: Tue, 25 Jul 2023 15:36:12 -0600 Message-ID: <20230725213634.255345-1-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 In moving from v0.8 to v0.9 the Firmware Handoff specification made some changes, including: - Use a packed format for headers to reduce space - Add an explicit alignment field in the header - Renumber all the tags and reduce their size to 24 bits - Drop use of the blob header to specify alignment, in favour of a 'void' blob type This series attempts to align to that specification, including updating the API and tests. It is likely that refinements will be made as other projects implement the spec too. As before the code is dual-licensed, to permit use in projects with a permissive license. Simon Glass (14): bloblist: Update the tag numbering bloblist: Adjust API to align in powers of 2 bloblist: Change the magic value bloblist: Set version to 1 bloblist: Access record hdr_size and tag via a function bloblist: Drop the flags value bloblist: Drop the spare values bloblist: Change the checksum algorithm bloblist: Checksum the entire bloblist bloblist: Handle alignment with a void entry bloblist: Reduce blob-header size bloblist: Reduce bloblist header size bloblist: Add alignment to bloblist_new() bloblist: Update documentation and header comment arch/x86/lib/tables.c | 3 +- common/bloblist.c | 102 ++++++++++++++++++++------------- doc/develop/bloblist.rst | 4 +- include/bloblist.h | 121 +++++++++++++++++++-------------------- test/bloblist.c | 53 +++++++++-------- 5 files changed, 152 insertions(+), 131 deletions(-) -- 2.41.0.487.g6d72f3e995-goog