From patchwork Mon Oct 7 09:42:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgRm9yaXNzaWVy?= X-Patchwork-Id: 833338 Delivered-To: patch@linaro.org Received: by 2002:adf:8b52:0:b0:367:895a:4699 with SMTP id v18csp1876019wra; Mon, 7 Oct 2024 02:42:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUGNy1UZOq2a4QWOpL2pw+RaMBXphxYTycLku15rdMCTmN4vcAhnGMY1oO73ExHyU4kq3/lfw==@linaro.org X-Google-Smtp-Source: AGHT+IFlQ5A9GCqjVyU5+9WnfP0Ol6Ms5o4P6y9srztq3Fj5zsJgIdH3sjvY1pH5kBvcUtfI05TM X-Received: by 2002:a05:6e02:1d90:b0:3a0:4250:165f with SMTP id e9e14a558f8ab-3a3757d6d99mr99365185ab.0.1728294160066; Mon, 07 Oct 2024 02:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728294160; cv=none; d=google.com; s=arc-20240605; b=aE1mVfyHhd1JWyD9ViPphb7TDQWLSvNLWKGHuX0JRlNGa/Ysw+BK16xSjNO8kfCKap 8FpH6nBqY2rBczB76/MQVFAEqhZJ5DnGEVXoXNYvenAj6cjBzXtlmE2FOYX53KoduZPF QeHrhv6tPQnT8NM4gZj6CnDm8BLXADvNvmdB8buWY6ex1lXsUT6litM69CXPqJJpM+ai FeKTB1waD7IXVak+nPcbpzIhNP5EIXWIppky3Qt/iOgRUZr2iu1PFUl7Mxvh4Vt0ZO2n TN3l8CBj2pHVfH66q/Y9kMbmWKhyLNyS5XK8Hk3glx1h8jo/lvGvRmbZH0Wo5Pvc3Ned l8BA== 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=thaYmYO0xbXl1CGK8cciXePNLK3whxHXeRIVQ2I8dTU=; fh=L2TO3nl4fkFR/wIXx8jijfyFzOUxIcNaLG9fuWirX3U=; b=I/Wlp2k/HvYGjud18cs5J8x155MvdwqVxLIRr8v1Bzz01U6tpFyqbX41sNrmmQXuCz 99jBiZlwBxcKir/PYdnHjkdU8cQy8YCN6aWEW+ZXict58kTAk1zd3sM7yq5bMQiEg8mf z3pr3mEHlDJ4KfwReYj6pGjOldnQCTFx+Sce2o6/IVos8zggXRvcCFbUn6z5rinBViBv ywnBZOUcWrLAbROLvR6XnJy2bS4owM7WtILNER8L8Rk01JnegciB0WBiwmV2LSDgJ5vJ ir6uykEhcYQfDg2PO2oGYW8sI1O5sumZ+bwr2DffkF8sjB5N8DvNx5tg626stztzH7Zf YpwQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GR3EV/vb"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id e9e14a558f8ab-3a37a88574dsi24077115ab.183.2024.10.07.02.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 02:42:40 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GR3EV/vb"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 39DBB889FC; Mon, 7 Oct 2024 11:42:38 +0200 (CEST) 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="GR3EV/vb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD7F6884DB; Mon, 7 Oct 2024 11:42:36 +0200 (CEST) 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-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 EB852888EB for ; Mon, 7 Oct 2024 11:42:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-37d1eda8c7cso651032f8f.3 for ; Mon, 07 Oct 2024 02:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728294154; x=1728898954; 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=thaYmYO0xbXl1CGK8cciXePNLK3whxHXeRIVQ2I8dTU=; b=GR3EV/vbuJHDjgRybs3Q9HQvUk4zgcOw9C5waUjJuI23igcQEF4AWo5J1e4BZwfYGa hZArLtft6wmk4JaQaoU3OBb5jZ5XPCF/sFyTtUVVt6lKN59CkyYyrvaq5Kx2ykHnq+9D WYJUBPvrG2qryY4LHoAmobwbYVz6jAgsdUD2fzHtUOhrLlIlV4IbCh9pA1JUG+AfQ872 ay6jVEk9oBvFksNTWPu4K3pts4O+CVL4keYg1/Xs7Q5be6jgmUGzb6kC5slD2uEvxc2u rrDhEsYbjVfpqXrCCOgYUZdV6maKe1PH4P060QWdmXyr9UiB4YSs1KezaSufebBfq5sY P04Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728294154; x=1728898954; 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=thaYmYO0xbXl1CGK8cciXePNLK3whxHXeRIVQ2I8dTU=; b=HMOVZFF7wmyiWTSmdGtP0+smvKZQB6/95Jl10SGSSOSuaAM0Woy+CEVu1aFjOzx5UW ZUw1+NoouzagERYDS1cggWLFGKzL4iyV6LZ+fQ58+ofabvjvXogylU3E/l7tYaF6u8xH TA0ZYC6FhcRTLuNZNkrl2ou1ItpgQGYlhI+hdGJzCsey/fhrtUBHd/Pi+r+3CzAhS/jd wScfU1t5ftFRBAU64UlT2OiMfZZP1VU65njzqARrA6rnT9eqvFHjIBc1VPHl6Bnka0QK KzTSy9enOkpB1NKv9VxM9Py96GCssst7s1xY1z6LHLUKWX0NucqD9A76dNMXltqekdh8 Abcw== X-Gm-Message-State: AOJu0YwDStNO5BnP24W5wJwVAas81+G4VpnNLBCObYQ+Y/kRijB5nzCx Y6rpz0zzLvQss1MeaKR5wrJinezUcBHvaE15qcOUaB9T7G+/ERicEAY6KfpRBNFV//UUfygvqKP NVgM+6Q== X-Received: by 2002:a5d:51c7:0:b0:374:c05f:231d with SMTP id ffacd0b85a97d-37d0e4e447bmr5968063f8f.0.1728294154039; Mon, 07 Oct 2024 02:42:34 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:287a:3d8d:7a32:9534]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d1698fcacsm5273659f8f.116.2024.10.07.02.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 02:42:33 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Jerome Forissier , Tom Rini , Simon Glass , Alexander Gendin , Dan Carpenter , Heinrich Schuchardt , Jiaxun Yang Subject: [PATCH] linker_lists: set LINKER_LIST_ALIGN to 8 if 64BIT Date: Mon, 7 Oct 2024 11:42:06 +0200 Message-Id: <20241007094206.2928071-1-jerome.forissier@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 CPU_MIPS64 needs 8-byte alignment on the linker lists, otherwise an exception may occur. In fact all 64BIT architectures should default to 8; that's what this patch does. Fixes an issue found on malta64 with QEMU: Breakpoint 1, lists_driver_lookup_name (name=0xffffffffbe043578 "root_driver") at /home/uboot/u-boot/drivers/core/lists.c:31 31 if (!strcmp(name, entry->name)) [...] ld a1,0(s0) (gdb) p/x &entry->name 0xffffffffbe04b0d4 (gdb) p/x $s0 0xffffffffbe04b0d4 $ grep __u_boot_list /tmp/malta64/u-boot.objdump 4 __u_boot_list 000018e0 ffffffffbe04a4d4 ffffffffbe04a4d4 0004a584 2**2 Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas --- arch/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/Kconfig b/arch/Kconfig index 8f1f4667012..72bf4029251 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -45,7 +45,7 @@ config SYS_CACHELINE_SIZE config LINKER_LIST_ALIGN int default 32 if SANDBOX - default 8 if ARM64 || X86 + default 8 if 64BIT default 4 help Force the each linker list to be aligned to this boundary. This