From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E878F132120; Thu, 30 May 2024 12:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717072005; cv=none; b=twMxuLnvAxedO6OzIv7aUcI67107J8DGjE4/99AyOt8myhHcERJs9GR7Q6ejd340vNuP4pBojre17F2+7yg3cGrPfs5uHSebSfEdhmSxuz00MT6/Q1W2zk70AmOsmGUBMZOwQDOtSjZfE46aB7xOrJ8jylZdmwKO9UoHXs6Z3qo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717072005; c=relaxed/simple; bh=Ki0PXwDcgKCwKxNmPedJebPKiDnnFLgJd0CWDkQGwlk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Lxt5ViFLEO5UN6XD6AvWqQEAVnqd1WgodosqbmHOmgpGhGzFzNrUT5Gnrk8xFga5uyJx05XTdhnnUHiqfCdsnvuF6nc6xyWlqeRGD+teRsC7w0o0k2myDZVQon3ZCifkI7+otc3UXhmb2RBLqxaNOGIl3V/XqPKpSeDaWhbTaZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=HAi0ODxC; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="HAi0ODxC" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xesVBLyk2WRbDcXVWG0pEUYP3V61JmuSdVX8kyL/MGM=; b=HAi0ODxC1fc7rpfK3TIamNoDMg oEvRbbOfGupH4U/eg772GjYV89EKYxfiWHLPeEhV31kx4FNifX89nFjzAyNpSyh3PKxQd+IOp8YAa VZbU7PyIdszPWInRtS65Pi6XwXMz6VnEEkRmd/JHUy0+kb0S32WkJ3gTfUjwnnSqzRmfvNwmEAUY6 zOwdabiUEvbVTJI1jt4jEpGHNjoVfZOT7tWis+uLc+HMQhKg+91OIwfhBM7f0rERt7ovM/a7hnTpg YAyKIgt3CUbQs2z4fX9PerPd6ysN7aXjTb/693olm/+sbG/bJN7/HP02c1DME89H+xEOZji+7I/WY AtpbyyDA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47132) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sCerb-0007MG-0r; Thu, 30 May 2024 13:26:35 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sCerc-00058h-BI; Thu, 30 May 2024 13:26:36 +0100 Date: Thu, 30 May 2024 13:26:35 +0100 From: "Russell King (Oracle)" To: Naresh Kamboju Cc: open list , Linux ARM , lkft-triage@lists.linaro.org, Linux Regressions , rcu , Arnd Bergmann , Dan Carpenter , "Paul E. McKenney" , Joel Fernandes , eeraj.upadhyay@kernel.org, John Ogness Subject: Re: arm-linux-gnueabihf-ld: kernel/rcu/update.o:update.c:(.text+0x1cc4): more undefined references to `__bad_cmpxchg' follow Message-ID: References: Precedence: bulk X-Mailing-List: rcu@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Thu, May 30, 2024 at 05:50:52PM +0530, Naresh Kamboju wrote: > The arm builds failed on Linux next with gcc-13 and clang-18. > > Config: arm imx_v6_v7_defconfig - failed > > Reported-by: Linux Kernel Functional Testing > > Build log: > ----- > arm-linux-gnueabihf-ld: kernel/rcu/update.o: in function > `rcu_trc_cmpxchg_need_qs': > update.c:(.text+0x348): undefined reference to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: kernel/rcu/update.o: in function > `rcu_read_unlock_trace_special': > update.c:(.text+0x41c): undefined reference to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: kernel/rcu/update.o: in function > `trc_read_check_handler': > update.c:(.text+0x4b0): undefined reference to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: kernel/rcu/update.o: in function `trc_inspect_reader': > update.c:(.text+0x1518): undefined reference to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: update.c:(.text+0x1548): undefined reference > to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: kernel/rcu/update.o:update.c:(.text+0x1cc4): > more undefined references to `__bad_cmpxchg' follow > make[3]: *** [/builds/linux/scripts/Makefile.vmlinux:34: vmlinux] Error 1 You get a reference to __bad_cmpxchg() when someone uses cmpxchg() on a datatype that there are no CPU instructions to perform the atomic compare-and-exchange. As we support 8-bit, 16-bit and 32-bit, I would expect that we're now seeing cmpxchg() being used on 64-bit values, which are unsupportable on 32-bit Arm. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EDF42C27C43 for ; Thu, 30 May 2024 12:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hKjUOuoMpD+sHYY7rQO25da8KBjrlqWTEv+NOXNVbEU=; b=L0gxt5lgudouN3 6kpm3ae8s0bA2LpgYS5vAo+6b/bYdHDqIzJw9S1v/CLMYTI8N/0YNTpzcRBnzOce7wK0PDmGt0N2U QQPK1Bl+sC/1YjKL6X4QBt37f8KEBR8Veek8OCGSCKNq7sS4nhvrZ16r4OOdZzZzjeNcV4a/BfRRu 2MrQgWjVr6/cyqXwHAhTWQj+HNLrh4KIKku5vbauXinLB5Xjlya7bPwEU9OmuJ6aqDIW4CU32JDbA jPoN4dgRpaErn8f4+YypBzOFkh3oey/caHXDOovfQJJMA3qIn5qA+kIFxKX+AeWSQ5FB20uihJC+a LkaA4bkO60aQMeSXxSag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCero-00000007EBF-1ssC; Thu, 30 May 2024 12:26:48 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCerj-00000007E8C-406V for linux-arm-kernel@lists.infradead.org; Thu, 30 May 2024 12:26:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xesVBLyk2WRbDcXVWG0pEUYP3V61JmuSdVX8kyL/MGM=; b=HAi0ODxC1fc7rpfK3TIamNoDMg oEvRbbOfGupH4U/eg772GjYV89EKYxfiWHLPeEhV31kx4FNifX89nFjzAyNpSyh3PKxQd+IOp8YAa VZbU7PyIdszPWInRtS65Pi6XwXMz6VnEEkRmd/JHUy0+kb0S32WkJ3gTfUjwnnSqzRmfvNwmEAUY6 zOwdabiUEvbVTJI1jt4jEpGHNjoVfZOT7tWis+uLc+HMQhKg+91OIwfhBM7f0rERt7ovM/a7hnTpg YAyKIgt3CUbQs2z4fX9PerPd6ysN7aXjTb/693olm/+sbG/bJN7/HP02c1DME89H+xEOZji+7I/WY AtpbyyDA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47132) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sCerb-0007MG-0r; Thu, 30 May 2024 13:26:35 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sCerc-00058h-BI; Thu, 30 May 2024 13:26:36 +0100 Date: Thu, 30 May 2024 13:26:35 +0100 From: "Russell King (Oracle)" To: Naresh Kamboju Cc: open list , Linux ARM , lkft-triage@lists.linaro.org, Linux Regressions , rcu , Arnd Bergmann , Dan Carpenter , "Paul E. McKenney" , Joel Fernandes , eeraj.upadhyay@kernel.org, John Ogness Subject: Re: arm-linux-gnueabihf-ld: kernel/rcu/update.o:update.c:(.text+0x1cc4): more undefined references to `__bad_cmpxchg' follow Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_052644_111925_AA051D18 X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, May 30, 2024 at 05:50:52PM +0530, Naresh Kamboju wrote: > The arm builds failed on Linux next with gcc-13 and clang-18. > > Config: arm imx_v6_v7_defconfig - failed > > Reported-by: Linux Kernel Functional Testing > > Build log: > ----- > arm-linux-gnueabihf-ld: kernel/rcu/update.o: in function > `rcu_trc_cmpxchg_need_qs': > update.c:(.text+0x348): undefined reference to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: kernel/rcu/update.o: in function > `rcu_read_unlock_trace_special': > update.c:(.text+0x41c): undefined reference to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: kernel/rcu/update.o: in function > `trc_read_check_handler': > update.c:(.text+0x4b0): undefined reference to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: kernel/rcu/update.o: in function `trc_inspect_reader': > update.c:(.text+0x1518): undefined reference to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: update.c:(.text+0x1548): undefined reference > to `__bad_cmpxchg' > arm-linux-gnueabihf-ld: kernel/rcu/update.o:update.c:(.text+0x1cc4): > more undefined references to `__bad_cmpxchg' follow > make[3]: *** [/builds/linux/scripts/Makefile.vmlinux:34: vmlinux] Error 1 You get a reference to __bad_cmpxchg() when someone uses cmpxchg() on a datatype that there are no CPU instructions to perform the atomic compare-and-exchange. As we support 8-bit, 16-bit and 32-bit, I would expect that we're now seeing cmpxchg() being used on 64-bit values, which are unsupportable on 32-bit Arm. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel