From patchwork Thu Dec 7 09:18:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 751057 Delivered-To: patch@linaro.org Received: by 2002:adf:a499:0:b0:333:3a04:f257 with SMTP id g25csp320171wrb; Thu, 7 Dec 2023 01:19:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6D1suH2UKWqA+49RN5x61IzeQaU9zHND5DA48ltAU9bKdhWR5w11KgqfgKOoFQMPlo5HC X-Received: by 2002:a2e:7a08:0:b0:2c9:fbb9:2431 with SMTP id v8-20020a2e7a08000000b002c9fbb92431mr1340799ljc.35.1701940745562; Thu, 07 Dec 2023 01:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701940745; cv=none; d=google.com; s=arc-20160816; b=j6795NfLmm6USHDK2V4kgl1130qVUhab8fcnp482bDgnuN7pU0Ql0cqVqDRb6TXpP0 2Fn0GHvisPSk9nuCSJsAE0bRuljaAOOz3/sqjfXmulRiPvGHgu4b+GxLQYTPp5vhEaK+ C4OnKLTv8gTySH8H4hYdX5wzhW6SwqAC7BZ7J+8CkKD7BPSH0cPrA6wdKyAA3Zex/mJp NC2ETRSApMq49gA6qtAcn1xG3zXxJWVxBxkmbUiS8VvEV4F3F88/bD6LG4G7arbUXeMI D05fAk7pRo51xVTrp3Sb+a3ziluVI2/8KVM19SVf1f+W+6bPjWjVyKUpdzKGmmZFBcBb a3ng== 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=+bcIVKkY5stwZBcSeRYwiMKOqKU1JfXmy5ROkQS3Wz4=; fh=PdaqUM55XJPXoz/DnzCypPvNRifk1if6lcD7ArCD4GY=; b=O/3l5zbpbgGREVG5d31TW+34JkRTyDWvguv9QOlBumYNvUvLIIXmsCgJ/81ZztLmB9 qETyQsp6QEI+xT7NF+f34oI4R3WJuzOGHlnj2dGfmf2seTZYCQCSQie4R34D2BfnCHw0 joYjI2IHBKQ3KiVRtT1oj9SHO+HRkInnCWTx9+Jl/0BUe36zrMAKWR7T72e8g+1cy+Y4 GF7/aLtB7j34Ar8ARCwETq4RboYwkc8ELrQx9hFtIsNc1mzlBHng8HshNKCRx03X9Tie /Tj2CBi1ngqB1gE3SGDtQlYwctaHmqkr8tou1Euj3KlTjuTuWIT3z4UaX2yY1YlPS523 lEdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D440oJZc; 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 y5-20020a2e95c5000000b002c874b8278bsi353376ljh.87.2023.12.07.01.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:19:05 -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=D440oJZc; 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 2142086F64; Thu, 7 Dec 2023 10:19:04 +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="D440oJZc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B2E4E8721C; Thu, 7 Dec 2023 10:19:03 +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-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 6D11686F40 for ; Thu, 7 Dec 2023 10:19:01 +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=ilias.apalodimas@linaro.org Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40c19467a63so8184285e9.3 for ; Thu, 07 Dec 2023 01:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701940740; x=1702545540; 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=+bcIVKkY5stwZBcSeRYwiMKOqKU1JfXmy5ROkQS3Wz4=; b=D440oJZc5UfUY4fxtrUgeK4DSPBzNt+ESrojNRmkPQwMrLwOWF6P10+ldhc1evCcJB UI3gd8T7+42I8ufWpOwUTjDy/+wxZHV4wqsYN78wsFbDwikRhecKg5VRcWEIplI9sofJ 019o/9vKJcmt/hupjOc1md1xX4gidlLElYJrN783OwNSMsQzNYurAqs5j/rWOiRoUfkd XMeZKlrCFQBgiWIJU78V/ePQtP5v8iJtEnOyCUPBYGuGrp0JUv+kyErU9eGlYxd9ZARo hIORPrLvHWzJgAK/9G/f6lPnaTVmilcP7BY1CsvqNNfUZTphgmr0Efu/8WVCl6Q/sBA7 j2mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701940740; x=1702545540; 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=+bcIVKkY5stwZBcSeRYwiMKOqKU1JfXmy5ROkQS3Wz4=; b=A/nLGbDjujaJ2UQsc0Il2Cn5OfvIyFWVENc1KT1lT3A9pNz8nZCDl1UxryRaHNapex K//2sPMlSr5rt2oPUbc2FcYYjWy3p88FuittoHAjVwhvKgqD5baD/OTAn+jbMyk8gBqv MUIZNe8FuwjtnAAe8DqBc7dWQGTIN/cn5dQgS2XKLabJlABdTnayBrLDO5Pni6KhgZhb 71hg/CB7u8ClNNG7Oyw+w3f9SNDmi1GvXkgfkpB8rT7VszB442il+tt9j3Z+h9AknmJA 5Wj6YkQ/4GSwlvJHjuvSeAoRLaeBbWiubXTWIMwhJ3W3TnFGHdevaWmgOIqedw412f3X XsFw== X-Gm-Message-State: AOJu0YwBlh8OSHo2EZwsJXTRwVZFqg6mFWO6CERJEEasPDB4bXvaxqjR FiJY2BAra/8JEvomggYMQ1T7dw== X-Received: by 2002:a05:600c:3103:b0:40b:5e21:ec15 with SMTP id g3-20020a05600c310300b0040b5e21ec15mr1354383wmo.71.1701940740246; Thu, 07 Dec 2023 01:19:00 -0800 (PST) Received: from localhost.localdomain (ppp046103111243.access.hol.gr. [46.103.111.243]) by smtp.gmail.com with ESMTPSA id u21-20020a05600c139500b00405d9a950a2sm1299003wmf.28.2023.12.07.01.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:18:59 -0800 (PST) From: Ilias Apalodimas To: trini@konsulko.com, sjg@chromium.org Cc: sean.anderson@seco.com, neil.armstrong@linaro.org, heinrich.schuchardt@canonical.com, mark.kettenis@xs4all.nl, Ilias Apalodimas , u-boot@lists.denx.de Subject: [PATCH 0/2 v3] Provide a fallback to smbios tables Date: Thu, 7 Dec 2023 11:18:48 +0200 Message-Id: <20231207091850.17776-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.40.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 Hi, This is v3 of the smbios series [0]. v3 has a bigger cleanup in the existing smbios code, folding in smbios_add_string() that were sprinkled around to smbios_add_prop(). The latter is now the only caller of smbios_add_string(). Simon asked for a selftest which makes sense, but we plan to refactor some of the smbios creation code anyway. I am happy to add tests once we do that I've also removed the r-b tags from Peter and Tom, since some of the code they reviewed changed. [0] https://lore.kernel.org/u-boot/20231127171058.165777-1-ilias.apalodimas@linaro.org/ Ilias Apalodimas (2): smbios: Simplify reporting of unknown values smbios: Fallback to the default DT if sysinfo nodes are missing lib/smbios.c | 163 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 122 insertions(+), 41 deletions(-) --- 2.40.1