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 D8586C433F5 for ; Thu, 6 Oct 2022 18:07:29 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vOfXB8AI1fsyh5vz3EEKsG1yWCdMYhZRXNrqtKoySkg=; b=D6D4m2MDVSjOA5 GKb1X4ey5WWEejJ8nrSX5EEOCZhsokeKo8vdqDA5jeajriLgjgHY//Uruinp6kHW/sty9sVr7eFSG PJSUfkkPpm7wftgBFo9BX4q2p5eV6SWG6hnSq6vVP6phGSnRhOKOPBcsoyuc4tFTdlodbIDz6ZuWk 9ya6XdSkT37ApThe6vUOYuZjnWlZbsTmTfkqX+bxs4e8vvzzisBgMLGDZuyCnJC97f8+FITmglpnz YO7oRD/ByzvtVuNyyOQQzkBSUb0nRH7XvkkIQtgrXk8c7mEPsdYLJGmqmJvvBMKLbYPIKT8u0DhWk v0JcCOojo+22ix6SNiig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ogVHD-004Mx8-PZ; Thu, 06 Oct 2022 18:07:19 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ogVHB-004MvU-8z for linux-riscv@lists.infradead.org; Thu, 06 Oct 2022 18:07:18 +0000 Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ogVH2-0001pm-1s; Thu, 06 Oct 2022 20:07:08 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Palmer Dabbelt , Nathan Chancellor , Nick Desaulniers , Conor Dooley Cc: Tom Rix , Conor Dooley , Dao Lu , Guo Ren , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH 2/2] riscv: fix detection of toolchain Zihintpause support Date: Thu, 06 Oct 2022 20:07:07 +0200 Message-ID: <2599561.BddDVKsqQX@diego> In-Reply-To: <20221006173520.1785507-3-conor@kernel.org> References: <20221006173520.1785507-1-conor@kernel.org> <20221006173520.1785507-3-conor@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221006_110717_339329_7569B79C X-CRM114-Status: GOOD ( 11.73 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Am Donnerstag, 6. Oktober 2022, 19:35:21 CEST schrieb Conor Dooley: > From: Conor Dooley > > It is not sufficient to check if a toolchain supports a particular > extension without checking if the linker supports that extension > too. For example, Clang 15 supports Zihintpause but GNU bintutils > 2.35.2 does not, leading build errors like so: > > riscv64-linux-gnu-ld: -march=rv64i2p0_m2p0_a2p0_c2p0_zihintpause2p0: Invalid or unknown z ISA extension: 'zihintpause' > > Add a TOOLCHAIN_HAS_ZIHINTPAUSE which checks if each of the compiler, > assembler and linker support the extension. Replace the ifdef in the > vdso with one depending on this new symbol. > > Fixes: 8eb060e10185 ("arch/riscv: add Zihintpause support") > Signed-off-by: Conor Dooley Reviewed-by: Heiko Stuebner _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv