Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp989069ybh; Wed, 18 Mar 2020 12:50:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtAufuJr2coOBn7SAOS0B/zF6gFGpIvgk/f+jwP0hcyJOwWirwHAlxoJWaD4yVvs/melsU9 X-Received: by 2002:a05:6808:103:: with SMTP id b3mr4659191oie.46.1584561017118; Wed, 18 Mar 2020 12:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584561017; cv=none; d=google.com; s=arc-20160816; b=GgZY+EI7VtXpa/BNAv9mIBF5/DLDRHW8aI3w/5C1IjDWxUtJ6Js47ACzrbDNJRl9l3 uRsUiildcOqKW6NR/9Co0YfFqcmq/rfW9VB76juVVrY+mcjpsfN+cDDrd41RsAofbE47 FHi12hS5rXDT3Ic6ATqA3/0rRRjyNmiLz8ePeybzRkSZyknzXaOrQJNTlwlJ/jOsJtlW bL11iJ4pDvmCOVbw5FZmWtpBqGRgxgvVE2CZZoG7+hjhJGX6ybM/YI/PESoCQghHDKFq W5AvbienKhQtAaXUQ2kQ0FNaJ2c/iW1pM5x9ooEA77XzOjxI8fZHE6Ouw7zWf+QTDe4k Z/Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:organization:subject:cc:to:from:date :content-transfer-encoding:mime-version; bh=kFtnd1gQLQ79lxvXs3NM99+M9q4mBBgKXOs0AlCux5s=; b=IVKStROtWEoxjMhateOKdJtwDUQFND/gNIDaAYq9OXIXvR1WN80Tkre4XUQGwMHp6v 5WlB0TryBHuFsdV3zCGg/ARJgO4WsVLzo/I08TcRCwQfTo73e5OttpDNkwBYpfXTmkeq +XU+1CyGhW5O48OeX1RNhVVlK3yGmgbPnoUMvZB7GofaGTIPDa8goakPHIna56M6qft4 72/Yd1re0timei8biCKHic1ZMVGTHDVxU17pshgqqqVgpNqrQw5I3Tdw50XwrvQsdmGa Mqf39j+LLmXuc07jv0u4dnmGrW1MXlbI3SpScZunr1Cqr3l9hQVYf+egzdfNpYDPjqbO fb4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184si3497736oif.56.2020.03.18.12.49.58; Wed, 18 Mar 2020 12:50:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727064AbgCRTsx (ORCPT + 99 others); Wed, 18 Mar 2020 15:48:53 -0400 Received: from poy.remlab.net ([94.23.215.26]:40956 "EHLO ns207790.ip-94-23-215.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbgCRTsw (ORCPT ); Wed, 18 Mar 2020 15:48:52 -0400 Received: from roundcube.remlab.net (ip6-localhost [IPv6:::1]) by ns207790.ip-94-23-215.eu (Postfix) with ESMTP id 36FB45FB07; Wed, 18 Mar 2020 20:48:50 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 18 Mar 2020 21:48:50 +0200 From: Remi Denis-Courmont To: Catalin Marinas Cc: mark.rutland@arm.com, will@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/3] arm64: clean up trampoline vector loads Organization: Remlab Tmi In-Reply-To: <8127163.Epc2VWTDuo@basile.remlab.net> References: <20200316124046.103844-1-remi@remlab.net> <20200318175709.GD94111@arrakis.emea.arm.com> <20200318180630.GE94111@arrakis.emea.arm.com> <8127163.Epc2VWTDuo@basile.remlab.net> Message-ID: X-Sender: remi@remlab.net User-Agent: Roundcube Webmail/1.2.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 2020-03-18 20:29, Rémi Denis-Courmont a écrit : > Le keskiviikkona 18. maaliskuuta 2020, 20.06.30 EET Catalin Marinas a > écrit : >> On Wed, Mar 18, 2020 at 05:57:09PM +0000, Catalin Marinas wrote: >> > On Mon, Mar 16, 2020 at 02:40:44PM +0200, Rémi Denis-Courmont wrote: >> > > From: Rémi Denis-Courmont >> > > >> > > This switches from custom instruction patterns to the regular large >> > > memory model sequence with ADRP and LDR. In doing so, the ADD >> > > instruction can be eliminated in the SDEI handler, and the code no >> > > longer assumes that the trampoline vectors and the vectors address both >> > > start on a page boundary. >> > > >> > > Signed-off-by: Rémi Denis-Courmont >> > >> > I queued the 3 trampoline patches for 5.7. Thanks. >> >> ... and removed. I applied them on top of arm64 >> for-next/asm-annotations >> and with defconfig I get: >> >> LD .tmp_vmlinux1 >> arch/arm64/kernel/entry.o: in function `tramp_vectors': >> arch/arm64/kernel/entry.S:838:(.entry.tramp.text+0x43c): relocation >> truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol >> `__entry_tramp_data_start' defined in .rodata section in >> >> I haven't bisected to see which patch caused this issue. It's the third patch. > Uho, right :-( It only builds with SDEI enabled :-$ > > I'll check further. It seems that the SYM_DATA_START macro does not align the data on its natural boundary. I guess that is all fine on x86 where data needs not be aligned, but it leads to this kind of mischief on arm64. Though even then, the address is of course actually aligned correctly on an 8-bytes boundary, so I suppose binutils is just being pointlessly pedantic here? -- Rémi Denis-Courmont