From patchwork Wed Nov 20 10:01:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Goodbody X-Patchwork-Id: 844521 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp1617834wrx; Wed, 20 Nov 2024 02:02:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVgbXqHMVfQkaZQLkKZ1tvx1z/MG25BPwgE5SZIG0aaOG3JDmwTxtZPyF23P/LNoDPPq/dCPg==@linaro.org X-Google-Smtp-Source: AGHT+IE9xMaryOGcqrknTwhYNe+IAxFSUp7opraCliEY48biB00CK99RSTBDTgi8MTTd08sRm/4Q X-Received: by 2002:a17:907:25cd:b0:aa4:9ab1:1b03 with SMTP id a640c23a62f3a-aa4dd550e9emr180890266b.15.1732096949685; Wed, 20 Nov 2024 02:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732096949; cv=none; d=google.com; s=arc-20240605; b=AqskxrHpPsIXr7FtbwVb3AjUqWCpbPFFF8LrXYhtOhTAZ7xvkzKcC+NTQjUXgz3qyW Sg4qzRqEBEI5SOoCJbvhPKgPD1jPHks8Jtqc0nP+w7M2CpFQ5QP5fzlMBVsWGkOvWrTX VhI2G81jVDzjnjx2BzrjQSD4yYuMU3+RhxtmpRqfxExqRbT92dbzfxT0wXHtsAOulDrU NuHlnj1dG3LBO0s888eDtxC+GDzPYnIgJhjVBlZQm/ebWKu5c1Kq78hJLxpEl4BhmK8y fDkmlg8n6NqaK4SRvHNdKAK7Qky6J9YMrEs2hNw4TgPB6kCQ1uuvTG7MP0l8RMcIHIha gTew== 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=jCg84BvrkY3a2v3KeHxijlV+1Y2r+avk2JXOwJB4ljU=; fh=w9L6r2PS4S1ZM0gFGpZHFSUV+Xsrg83oQia0U1Pk468=; b=MhPdPinnNuzpKGfh9mvUbjaqJY7dDPmD8J19paZ8yOpRZz4gb01ojcD7HAn6QTx2fY V9wkd6F5fDqmmWZ3xskYzBy+PEP17e/AygbdxkHFZ0Qq82FqvJh3I65N0hBZrl4QU8HE /TIRqa2zHFdBMcgVZNco6zzi8078LIq82x5BN1G/xurlWlh0tr/XZOZcwgyD3CNhNVym gktB9wKrokAKNR9k8ZyfXgLQXeWtSfRU/vnlgdLU7xMB+i+ul1xpNQyxANykI1UGn0AT N8kVveWXVbiQ4knLvIitJY3F4Bl48QkTsM73kzUQbKBuizPNtMYoTFOXnJZ6cV1dyMJv GyLQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RdIeEAWF; 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-aa20e04b2d7si851083866b.513.2024.11.20.02.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 02:02:29 -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=RdIeEAWF; 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 88177895E2; Wed, 20 Nov 2024 11:02:28 +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="RdIeEAWF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 33AA3895F2; Wed, 20 Nov 2024 11:02:27 +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-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (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 1CA26895D2 for ; Wed, 20 Nov 2024 11:02:25 +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-lf1-x134.google.com with SMTP id 2adb3069b0e04-53da24e9673so2285348e87.2 for ; Wed, 20 Nov 2024 02:02:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732096944; x=1732701744; 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=jCg84BvrkY3a2v3KeHxijlV+1Y2r+avk2JXOwJB4ljU=; b=RdIeEAWFDgo10O776PhWAtA3yuJ48bI23nLIoesL0JsL60+iyR3WXlygwi0EfxrR7z c3zobY8+63jPIFGo4rDdJYPKmBk/b+VMK4rF428UKqW8x06LFczuXPKkBzu9mDXzmod7 Pz2sP9+Dfd02FRQSLQxKY4F6NGlv2S3doGH2vPJUSWo4V4NrGlYrLdb5v8idYxQN9JnH PvXUL7+QCoT77cHyKDdYjkeJBka6rl450DUjeq5J/apY6AhgbAx35UsUAcO2xZ3KxoMN EBqGkka+xSfrululKDaQJC004B2f8mhutQXBroufDVr9OQ6cAwoG4gqEQ400Xo4czw0V vfWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732096944; x=1732701744; 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=jCg84BvrkY3a2v3KeHxijlV+1Y2r+avk2JXOwJB4ljU=; b=grCccX5uSEfhiAQhymF63H8jEn8cFksrQZL4BJlKjHG6fdXDrtgngjh+ZVHiYN+8XL TXx7NjB/Uda4gMrtX5caU9foUtPIf3f9UfRjbN4qhVzyzOtYp9A9wRrLQ+qgjqzmZ3Qy mMKJ8/v3VADyQlJ27pEYsfZhH4nsO6wdRFY6oEJ9zVNo94RpZDs9l9PuoK8cQawHR9OF RLzblJlKNCuflcXk/4myti0fCTCEL3lAZnoz4oyIiTuY8OkEV/JLqrs7uMsS96u7O10Y awodwZ6o8XrloTaoWd89IehiHJ87Fw5dv/pDzRQZdxcT2r4v5SskSBS7LUH1UO2rN5EY dLAw== X-Gm-Message-State: AOJu0Yz/bInFCJW0bv8YEkiu4Wt16yOBOABccoD9GGx3oHNN7a3MFO6U bjpRtupfbWoNel04jjFn643nYXdt0aZ8GdQd+AV2uark/U4aD5uce165a18/QxfT5+bNMI7CZ79 6yVVqyA== X-Received: by 2002:a05:6512:3d27:b0:53d:a93c:649e with SMTP id 2adb3069b0e04-53dc136a0demr904491e87.35.1732096944208; Wed, 20 Nov 2024 02:02:24 -0800 (PST) Received: from artemis2.broadband ([2a0a:ef40:edb:fc01:24e0:2f5f:4be2:4309]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433b45fa706sm13572655e9.16.2024.11.20.02.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 02:02:23 -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 , Igor Prusov , Ilias Apalodimas , Jiaxun Yang , Kongyang Liu , LekKit <50500857+LekKit@users.noreply.github.com>, Leo , Marek Vasut , Mayuresh Chitale , Michal Simek , Oliver Gaskell , Patrick Rudolph , Paul Barker , Peter Robinson , Rayagonda Kokatanur , Raymond Mao , Rick Chen , Simon Glass , Sumit Garg , Tom Rini , Venkatesh Yadav Abbarapu Subject: [PATCH v3 0/4] Select CONFIG_64BIT for sandbox64 and x86_64 Date: Wed, 20 Nov 2024 10:01:53 +0000 Message-Id: <20241120100157.485418-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 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 | 3 +++ 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 | 3 ++- include/limits.h | 3 ++- test/lib/str.c | 8 ++++---- 10 files changed, 22 insertions(+), 8 deletions(-)