From patchwork Thu Oct 3 15:22:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 832402 Delivered-To: patch@linaro.org Received: by 2002:adf:8b52:0:b0:367:895a:4699 with SMTP id v18csp343129wra; Thu, 3 Oct 2024 08:24:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWYp50zAXNXSu6z6zD8QjbSqnqVPa+yGv+8mEw7JNpnEqAbwrW1ww/XEBySFGoFU+WYgwpw8w==@linaro.org X-Google-Smtp-Source: AGHT+IHgb5odTXmyOQQHOlFNX+t6a0kLsbxzeQ05I3llHmR7enB6ERfu+j+pu6YD2MOs5C7V6FhN X-Received: by 2002:a05:6602:2cce:b0:82c:db6a:366 with SMTP id ca18e2360f4ac-834d829d0dfmr688792639f.0.1727969056000; Thu, 03 Oct 2024 08:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727969055; cv=none; d=google.com; s=arc-20240605; b=U+fsPYRvz3teoPVrJCDe1ClHVIirLBJAz4l1ej6xsrtvcfNQf/T0V3WiVbh4LiEvjM KAYAoL6WxFdmmVrRI3NMbUNXQAjXYVE5zsodfUf8CK4FtWXeay25DoE3w5LU/NcdmizY DpQQKTDGkdRtdQI6Se18KcwPB6NH7vV+gj3Gm3wt26tVuOSjmMu0aEqpPmjHcsdjDUyk UpLyCROhIC8SEOlVrjT1BNBlHlFw0Hsk+Orgit4sSoOPgx+daDo7vDry3xjeDoaiDCtu UzZnFnaqh/fJIutiJcjrw+f8PYQrjUYLPo7dG41L745PXmN74AzuRCyIZXGDcgk4heh5 UGlw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cqiyAoroPIcERV5UdiZ9NbI4bh3DuJ6aBo7wOO8WXf4=; fh=sSpIskISIohG8bsYLL8XhVgyCtIjzEE9bI5TcJmdmT8=; b=K7FS3RNFUmocUuqKb1AjC+R/Y74aGCMX89sKMbEhQjqQAvm6HC5MQqiAFpcOm5ozbF dbubvSIHv3h6DXzTAfFMj3A5r+CCDnMNaKuTsypXcRT/qUz5h0A6YtGB69dUGZrvDmoX 1Pp92xWvn0tTWwrBfo9PcPEi5yzE5Y+JWzZfxEfIG4vlv3ZnnthswDzF8l+HoLwOZtf1 +U1jj4TF9wsiHT/MEhkxfE0zUtAXWXEcZWUE6A5wczqyBTB98hQCpen1wH+4U3vKJi00 wt93UHVETKf1wb9CHIIg6B93SbQ5NMSrYm+ogWXxDww1XxqvECmtjNmKFC5cMnCOt8l2 u+ew==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iPr6Pqzu; 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 8926c6da1cb9f-4db55a639f3si878710173.126.2024.10.03.08.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 08:24:15 -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=iPr6Pqzu; 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 8CD3488E6C; Thu, 3 Oct 2024 17:23:45 +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="iPr6Pqzu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D629B88E19; Thu, 3 Oct 2024 17:23:43 +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-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 73B2888E3A for ; Thu, 3 Oct 2024 17:23:41 +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-x433.google.com with SMTP id ffacd0b85a97d-37cc60c9838so682839f8f.1 for ; Thu, 03 Oct 2024 08:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727969021; x=1728573821; 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=cqiyAoroPIcERV5UdiZ9NbI4bh3DuJ6aBo7wOO8WXf4=; b=iPr6PqzuS91pThZrZNVmymkjff8ENeEmZlWdvU4lQKdc+GUX8aZXXaTMJGmrjQd8x/ PMxNT8z4OWV7PbLIByNt7NGTyx4Ghu2jazLzPupazMIJ3HaxFk1XbMEgnObISjuLY7bc EXA5ZqIk1zIyqKGynZmmPyJWtYCVQqHiSanbfPctjix7NQVh0v4XNX8XDA3M+dGHm8k2 7XKQXdAWTT+DMZ/OK+CaiQK3X2LLEt3KR9Wo/PtwUMW92akg5tu/5QM2XrkcsGDqmS5i xTeTb7e68oDOG0X9GygavRKVLG6G8ldjRRbWd7U6ZTDFcPGoYb4r3154SFLw6VPToUx1 QwDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727969021; x=1728573821; 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=cqiyAoroPIcERV5UdiZ9NbI4bh3DuJ6aBo7wOO8WXf4=; b=QTVbb9f8ku1AovjQX2Ja3jEMql7jGJyqqAMN3STRQ7H6Cr70HqgUycl87hzsNN4MZA lDMnGCcz8AtSSEF2vfMv9/ik2+DxFJ/PyQraxMhR0QsV7mPxscwkcs05SSeLCfajM6e4 GEk0V1SfJRL7IqiQIay5HN3W3KsxIV6vriCcT73AZMnaSytMlGiH+6m+mGQ4soAlBrp+ QbYhbLUD2kKNet/B5wyG44iTXkSTr/zxJb0ojldqQ+lnqm+R9/ozod3i2E4bOtyhDSyp HmUPlfnhE79EUGmJ28b8hKdtJvRWDqlismv7SrFC780whYNiQARd7gwkzrYNZzY496/f o3eA== X-Gm-Message-State: AOJu0YwwjurnZqdKAgGD+f/1Byhon8bdfLQqkAGghO49tPXLZhYxJL9F 9OofcNpeDONPE06ydAmEhSSRhzDQl9flo6Mya6IbPIAxRsHAagjqWkOQ2NJulpQ2xIppSpWSEOh D4swGTA== X-Received: by 2002:adf:f2cf:0:b0:374:bd00:d1e with SMTP id ffacd0b85a97d-37d049b7650mr2155164f8f.3.1727969020741; Thu, 03 Oct 2024 08:23:40 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:d888:7a58:deed:47d6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d081f7482sm1506220f8f.8.2024.10.03.08.23.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 08:23:40 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Javier Tia , Raymond Mao , Maxim Uvarov , Tim Harvey , Anton Antonov , Jerome Forissier , Tom Rini , Simon Glass , Jiaxun Yang , Heinrich Schuchardt , Dan Carpenter , Alexander Gendin Subject: [PATCH v11 03/29] linker_lists: set LINKER_LIST_ALIGN to 8 for CPU_MIPS64 Date: Thu, 3 Oct 2024 17:22:49 +0200 Message-Id: <1699de5384a71c0d0ad535cdc48cc2b95087719d.1727968902.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 Note: Patch posted separately [0]. [0] https://patchwork.ozlabs.org/project/uboot/patch/20241003142030.1610222-1-jerome.forissier@linaro.org/ CPU_MIPS64 needs 8-byte alignment on the linker lists, otherwise an exception may occur. 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..8f4df849801 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 ARM64 || X86 || CPU_MIPS64 default 4 help Force the each linker list to be aligned to this boundary. This