From patchwork Mon Dec 16 18:07:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Goodbody X-Patchwork-Id: 851235 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp3003155wry; Mon, 16 Dec 2024 10:07:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVsBaeKwMzrkBs3HNeIe0C1MfHudTyHlkTTxyBMEsgGdrfmM5etBvZLNCXOMD6/aUkG6L3BiQ==@linaro.org X-Google-Smtp-Source: AGHT+IEWK46pFzZs21HXhrJF+2bQHmVRvgCQYj3BK2ib/qB09HKR/JZORz1fMmJCLlTgmaiogDFS X-Received: by 2002:a17:907:d92:b0:aa6:af4b:7c89 with SMTP id a640c23a62f3a-aabdb921633mr72952966b.61.1734372478263; Mon, 16 Dec 2024 10:07:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734372478; cv=none; d=google.com; s=arc-20240605; b=Qy+bogOLsWHfOehNZk8ISCKszQ9tF6oMMEWbh/HplHInR67PjVwbf8PBQyPyGpXuwG 3pGdl1cE0ckfuxvCL2TzZtJDGhIyMn8j3HHs16WnsypG79b9BNQxZzpJhTvWx+b4QNlE NJMio55eRe/ymK8eEgPpPdTc2wjCettVNOSXqxTSBeFcxxdpE0NtmyJ6IBFW/uoWiR4p zE9+8g9QGmNknli4myxQaUKc2sN03jHeINOqJy+zcY3kZ9YrGZPaOq5ecqABtbsh80kT xu/i/MpK1nTqbyBrGGqK7R4c75z/4TOwMCqcN1Au5bAfIXEyVwgiyNGN9ZRPNmDEWvAt x2lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=Ove7bZW/WZrAXCVjkM+eSwvXos23SRXJ8Rhchqsz7UA=; fh=iCxzqe7Z01Y2w16xBGHFsPyB3rZ8Kh2CI3/w+q7ZpHE=; b=RwvqSUXtAmFE/zvy041FXxibkcPYwai1W4hVE9Gjgsfovwj0cka2LK7E263l6emgfN Wqh8b8VnBLUkBc3GS3VDCBHixxLESt+PYj/2rukv6+0qE86oby4Tu+ITqdq08tVXJJCO VV2dQFq5H90OZ35Rrj5jvm9IXOWwyZNJSjmrZuTOP1c8tVe8hGM/jXvoHwiAN6jV9HMR btwEYV1KkFCE3VitcSxPMLUImXrLHfGsNGTrAyhl8ThPDyWZFxmQrmr396mbyLwUQDrU kBX+9OSk1XJm1jSmUsvWK4J1MFRVrRqNTy6ec2k66ikrp4bnc7EoyMrGDNtYPnM9hx1l uvZw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hDOru2gt; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-aab9635ee4csi369309766b.662.2024.12.16.10.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 10:07:58 -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=hDOru2gt; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E1BCF801BF; Mon, 16 Dec 2024 19:07:56 +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="hDOru2gt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E13EF80104; Mon, 16 Dec 2024 19:07:54 +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,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 C9E47800D2 for ; Mon, 16 Dec 2024 19:07:52 +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=andrew.goodbody@linaro.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-435f8f29f8aso31908785e9.2 for ; Mon, 16 Dec 2024 10:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734372472; x=1734977272; 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=Ove7bZW/WZrAXCVjkM+eSwvXos23SRXJ8Rhchqsz7UA=; b=hDOru2gtedZhBgFUqGVtVDVIRuV1Wv46L9qtV27DCeNpBSLJNaGUzkX+6adK/PJqeC mtkgUfFqLc9Ju3PcUCU/yCQp5k2/V5nCjR5/+mqhGCI1BXqEa6RfIPZD5vmdOstafhxd Gn9ZhLMGxVQOYuHh6FmVTuF0AyZBZG5jDS2BuXCWLAOeJyCFwnKjXQ12kdG7Apffdk60 sG1ubMMn8dbMmMfJmyErhs5ZI/+pwr6gF2LO4Tdk8WLKoYXPd73FmEoT9aHpw8WH/hEB 2T0lzoW9mvqAWMYwpgmazzxXujKpQFM2o4izUzVG5+v2ejVl2ufx5IsSMrzFONUpbDdY 9cRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734372472; x=1734977272; 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=Ove7bZW/WZrAXCVjkM+eSwvXos23SRXJ8Rhchqsz7UA=; b=o7L83I3AfN8Q6PJTwx2LMWGeG6a70NDx0U4eQr8ZZkFOkYhQLoGhBqr1tyTwLRqahm JqxJx/LdZY3L6ycdlFski6wbuLRWsjOi3jA6DnWrGyOG0ZZvokyoRYl0NqkvH0nXqrCe tDdMnLLUR8MwgKMT62bwb1XPq30PtgmLAvApmrsMxjn9dlQTjypxf5Z4GvUvFwXp2Bjh ukQ6GVyh0xB+t36sRznu51mGYXW/ckVqKcfc2B80CnzuxDD3A77rlOBDv8V08rykzdGU eJYbqfne1EY5exNHc7URXiVtvrbtd97f8SAeSUdUJrTF6vzB3qkD61d/oy/Li5YqWr+r XWuQ== X-Gm-Message-State: AOJu0YwQdqhcGXFIDsuTX5dyE9uyRuxGVVUEYZbtHsR12x4FzIeWVaei KAex7cLroEpGkCZKnssWla2oLkiic55RkYaNi0wyO8kNXWVCA/z8WEWjOYqDHjxOzxk89z0y21e XAQo= X-Gm-Gg: ASbGncs6zgokg2VkNg8DJwnN8JAihTQbJkC6keoZWst4ypqPQNn74vDIG180bOgI1/u MtI39+jYcJqMsk5vx4TjLTdOstE+bjuwQ0wRSMKVmkGEIGNH1EBSijFQZs4XXaL2wM/L45UUhjB pncJYA3x3ulRSiHrCAQ7HxKb2ufje5sGhk4p54QyvYqzo0NvkRcYH3w1D4pXMWIdqeiohKFEjWw lRi5TmFBLtcn7XEKqyEmsbj+8O5lGPSkGfZrxSxzCrXD37X5ig6G9wKlenM8u3HiyD8mwcl6k7l X-Received: by 2002:a05:6000:1a88:b0:385:e0ea:d4e7 with SMTP id ffacd0b85a97d-388da5b5d92mr445387f8f.55.1734372472124; Mon, 16 Dec 2024 10:07:52 -0800 (PST) Received: from artemis2.broadband ([2a0a:ef40:ee3:c001:477a:6a2a:86f6:a454]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436360154absm91501605e9.2.2024.12.16.10.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 10:07:51 -0800 (PST) From: Andrew Goodbody To: u-boot@lists.denx.de Cc: Andrew Goodbody , Ben Dooks , Bin Meng , Caleb Connolly , Chia-Wei Wang , Dan Carpenter , Daniel Schwierzeck , Heinrich Schuchardt , Ilias Apalodimas , Jiaxun Yang , Kongyang Liu , Leo , Marek Vasut , Michal Simek , Patrick Rudolph , Peter Robinson , Rayagonda Kokatanur , Raymond Mao , Rick Chen , Simon Glass , Sumit Garg , Tom Rini , Venkatesh Yadav Abbarapu Subject: [PATCH v5 0/4] Select CONFIG_64BIT for sandbox64 and x86_64 Date: Mon, 16 Dec 2024 18:07:32 +0000 Message-Id: <20241216180736.1933807-1-andrew.goodbody@linaro.org> X-Mailer: git-send-email 2.39.5 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 Picking up a series from Dan Carpenter and applying requested changes for v2. I had previously set CONFIG_64BIT for arm64. This patchset does the same thing for sandbox and x86_64. (Mips and riscv were already doing it). This CONFIG option is used in the Makefile to determine if it's a 32 or 64 bit system for the CHECKER. Makefile 1052 # the checker needs the correct machine size 1053 CHECKFLAGS += $(if $(CONFIG_64BIT),-m64,-m32) Changes in v5: - Previous version mistakenly simplified the change to bloblist.c, so reinstate the full change in order to fix those platforms that broke. Changes in v4: - Add help text to describe new symbol CONFIG_SPL_64BIT - Split the statement in bloblist.c to be more readable Changes in v3: Added a new patch 1/4 to make fixes to the source needed by the sandbox patch 2/4. Updated 3/4 to account for x86 being built with a 64 bit U-Boot proper but a 32 bit SPL. Added another patch 4/4 to fix an incorrect use of CONFIG_PHYS_64BIT which should be CONFIG_64BIT at the request of Tom Rini. Changes in v2: Resubmitted by Andrew Goodbody with changes requested by reviewer Andrew Goodbody (4): sandbox: Correct guard around readq/writeq sandbox: select CONFIG_64BIT for sandbox x86: select CONFIG_64BIT for X86_64 test: lib: Use CONFIG_64BIT to detect 64 bit compile arch/Kconfig | 8 ++++++++ arch/arm/Kconfig | 1 + arch/mips/Kconfig | 4 ++++ arch/riscv/Kconfig | 1 + arch/sandbox/Kconfig | 2 ++ arch/sandbox/include/asm/io.h | 4 ++-- arch/x86/Kconfig | 1 + common/bloblist.c | 13 ++++++++----- include/limits.h | 3 ++- test/lib/str.c | 8 ++++---- 10 files changed, 33 insertions(+), 12 deletions(-)