From patchwork Mon Dec 18 18:18:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Mao X-Patchwork-Id: 1877540 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Qci6w/9w; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sv7RX3Kplz23yx for ; Tue, 19 Dec 2023 05:20:40 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C983D8750C; Mon, 18 Dec 2023 19:20:08 +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="Qci6w/9w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E8A848745E; Mon, 18 Dec 2023 19:20:06 +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-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 4399887509 for ; Mon, 18 Dec 2023 19:20:03 +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=raymond.mao@linaro.org Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-67aa9a99915so30343856d6.3 for ; Mon, 18 Dec 2023 10:20:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702923601; x=1703528401; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2WZKJiUZpT3hVKZ6Ft6JJtw1JDFeG+xXrcJjolkRR/s=; b=Qci6w/9wEx1ZdD3jwC6E7Cc9xQbfiG3XRZrOjBLvcanuo76c9RY7nc2uPBcY1OAWAw nifNQ2MNvPucVFDc1wgtfN/xK0cIDqfKK2pH0DLN4wFCcae4y2/HdIFayIYOs7DjxRoQ jWw+OIv5mp8T6LedWw4sqR22QrndFqPATHgNx+KByaCgvLEe/hd6dYFz4BfXxo83ttMT jPcGW6Ay6gDrglGsYvWLMnFfgF3UNHJNDe3ysqtnFHUJOENMnHKBa+G7fUQQqx+G7KuJ D1MKfoqIIrofqE2T72ZoFjlg/rbtiPA7L4xRW1ogN3dqthGiNMZ/JnHkmtwHhKOgvR/5 rSVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702923601; x=1703528401; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2WZKJiUZpT3hVKZ6Ft6JJtw1JDFeG+xXrcJjolkRR/s=; b=vp2/NAe5p8+NhWJIHm8ZaIDXSkDBkacdHqPgfzaLlzsTl55lBMalfsd4f6N+K0Pc4l 1PvgjGqO2foJl1Cm8pJ8L1wBVreRqC0EtQFRqq457VAEQAn/Kp4UoZiCgUh1Tn+6bcSQ Dvuj38oPimdzZ9HuABl1r9Mqvi7BNXzsPNOVKlwAcK6WxuI0GtDqjymPAHZlm2c5sGEs cLSy9Xlp+tdiBq5J/33sgOXtk295EoA4WM7BsadPilD5ahDKxeNQl3ZyXCWHi0kUQeA5 yRoQs7CiZvwOEshcLJNi5SVeKulmx42pTu1UjkQYXdfjrBni8d/6V/CE3tojgLQSSU6h 8kqg== X-Gm-Message-State: AOJu0YwxiU5tg5w5cT+1VUJ53ZbE4/jgPHFSO4VBipvxaCl6e+kJOqu3 Rc33z2XnBYkg/uto48mCeykdTLPTKGzdoBrAOfs= X-Google-Smtp-Source: AGHT+IGN1ABVC5svvoK4hJCXSZJSRPYWCJPCm9II42XlHumHPOcBXReElSUCVEFlTW/ccwGCXvEDag== X-Received: by 2002:a05:6214:2a8b:b0:67f:49c:4b6c with SMTP id jr11-20020a0562142a8b00b0067f049c4b6cmr11331225qvb.118.1702923601401; Mon, 18 Dec 2023 10:20:01 -0800 (PST) Received: from ubuntu.localdomain (cpe688f2e182063-cm688f2e182060.sdns.net.rogers.com. [174.115.4.214]) by smtp.gmail.com with ESMTPSA id dy7-20020ad44e87000000b0067f213933bdsm3046136qvb.2.2023.12.18.10.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 10:20:01 -0800 (PST) From: Raymond Mao To: u-boot@lists.denx.de, ilias.apalodimas@linaro.org, sjg@chromium.org, jwerner@chromium.org Cc: Raymond Mao , Bin Meng , Nikhil M Jain Subject: [PATCH v3 06/14] bloblist: Drop spare value from bloblist record Date: Mon, 18 Dec 2023 10:18:51 -0800 Message-Id: <20231218181901.337515-7-raymond.mao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231218181901.337515-1-raymond.mao@linaro.org> References: <20231218181901.337515-1-raymond.mao@linaro.org> 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 From: Simon Glass Drop spare value from bloblist record header. For now it is still present in the header, with an underscore, so that tests continue to pass. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao --- Changes in v3 - Keep the spare value in the bloblist header to align to FW handoff spec up to commit 3592349. common/bloblist.c | 1 - include/bloblist.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/bloblist.c b/common/bloblist.c index 168993e0a7..88e2a0f5c0 100644 --- a/common/bloblist.c +++ b/common/bloblist.c @@ -165,7 +165,6 @@ static int bloblist_addrec(uint tag, int size, int align_log2, rec->tag = tag; rec->hdr_size = data_start - hdr->alloced; rec->size = size; - rec->spare = 0; /* Zero the record data */ memset((void *)rec + rec_hdr_size(rec), '\0', rec->size); diff --git a/include/bloblist.h b/include/bloblist.h index 7eff709ec8..68f97395b7 100644 --- a/include/bloblist.h +++ b/include/bloblist.h @@ -205,13 +205,12 @@ struct bloblist_hdr { * record's data starts at this offset from the start of the record * @size: Size of record in bytes, excluding the header size. This does not * need to be aligned (e.g. 3 is OK). - * @spare: Spare space for other things */ struct bloblist_rec { u32 tag; u32 hdr_size; u32 size; - u32 spare; + u32 _spare; }; /**