Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp470657rdb; Mon, 29 Jan 2024 07:51:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrxZrGhkX66QiVhIej57wx8nVaDPLHitfqkyIdQULE2OeyKWgF3natgAtHMYnXN17CTNGd X-Received: by 2002:a05:6a20:4f1e:b0:19b:e91c:1a42 with SMTP id gi30-20020a056a204f1e00b0019be91c1a42mr2569185pzb.55.1706543459795; Mon, 29 Jan 2024 07:50:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706543459; cv=pass; d=google.com; s=arc-20160816; b=kN7wyqD+MepvB9tMcCTOEVNWL78t1Ahqr5OFgVfiz3wF8VpM5m9WOMY47M+6RqmynY Pv6fRa7IlwGN/ErYmnQ3uY7UnTLbPEqH8U3H3csrY8pNHJ9GRBnl19KTpvS4MKNwCigI /x2QsoEUKtbQKudF7wXteWKrhQFAHcMihdJHcUmC+6rCBWvScCCUqDaR/KRsMTOe58nT OJJhd3zvZTIZTzA/PNzovDRV9GP+hHucZZf1FGUymKl9XhXS/dM3x0IBklMLxGCp1XIO CcO/frGbXLcO6HN/7UAfORruh5XwJg238ASWOfdt/moPXVoU6YgY0hwrxi8YdwdjR6sP ZUvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=687TXrnvgJ5S3SUzRlkgrQ0P/U4cN6hUdffxFpFH3Qo=; fh=jarptPc5jT4prqSAvfAJVPW8pO21r7SjsIYa/fAoj2w=; b=MhWuTH+iEUaK5r/B4iuLPvbNX+5fmpZAKXw0Fi6sU/E1GD+pQMJU7uju7pNqTxV8q7 9aSjr6a7BR4WbjJtKtYM7Y2uB9iZIPRYWNuzshjVJI0EbMlp6w/I2BAM2PR85Rl8rOac FhR6iF2B4z+E1gdCno4kioMCxgCU6zTdYEa7qsrkFNYGMeNqJupw/KmRKW9zIu39mwLm d6IgFGFP8ZjX3S/5mCS7s0Cj6aXXTTofBEmcK0wgFzQsYmCFhilAp+zeMzlo2UQxLisM vX1t0GoVCDBaDSnj8zsHeqz9nVZEJvvfdnaFj6S1qvdGuuGgYPijfBToEbudR2B9T3EX xg7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=klRqlMJk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d18-20020a170902ced200b001d6f7875f69si1432101plg.380.2024.01.29.07.50.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 07:50:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=klRqlMJk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2D09A28CAEF for ; Mon, 29 Jan 2024 15:49:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08DC81552E4; Mon, 29 Jan 2024 15:49:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="klRqlMJk" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B7856154BF0; Mon, 29 Jan 2024 15:49:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706543371; cv=none; b=nD9XekQJKzXee6h2GKC+s73F+lamqBRaGl07ClQNdGgNVFZn6OW6FBKwF8f2okrPKiQCpqiokLlz/gNFpX+uzy59K/U4io5+ghjpJztw6PXDXqVbsQG8NNzBoPUxALs1hPfPNyK3yQiM1ch2qK5lMnc4BAZ87TDD+KKZxCuW4Qk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706543371; c=relaxed/simple; bh=e0ESeQsRk5SoTUCa6RZLB/A935snlZkD/TqcBFtYBfs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V8Me1dzPMBpTon86D59mb8XwSTTfhllcIpkhDPZu+X9hq30N17I7RhJsaCvIA79LWhiiWeYFQCsvIMkzAK7f7joXMNl2CmjVB3KWPAgQc6bWesARplhM5U6p1684oMRC9608WNgHa/zuy6xrIeil4SsuoVwDGBD+oi0M6NZWG+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=klRqlMJk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED4B4C433F1; Mon, 29 Jan 2024 15:49:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706543371; bh=e0ESeQsRk5SoTUCa6RZLB/A935snlZkD/TqcBFtYBfs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=klRqlMJkd+WDOpLV4juXYlgk8v3HtObx4BTF0uw+i6uMJ2Ukbl/AnHkgvlzC3Fbeh 6/k0AZzH8diBnwhlxKgNtvAV1pnyzv4YX5C8n2D8jRsHUGxqz7zRFU0SuVB3wnLab9 IFHbOYbi4/huqwPcpPd4nWnzstOvOF0xQQnUjlNgiLC8Q+qxfpU59I8TnfR3mIHCz/ pNpoXRsCLig/7qtUkzPbEMZkSD6AWncpltomFPmywI3UZeEQzN6/7AK8D8wYxWoOiP XEmSj7BUmVDzGjaXikIqMFY1lMv/0F6lECM2o63uF4fnm05hwo4nrnQJUzJVN91/hn c3++kX5OZ/raQ== Date: Mon, 29 Jan 2024 15:49:27 +0000 From: Conor Dooley To: Eric Biggers Cc: linux-riscv@lists.infradead.org, linux-crypto@vger.kernel.org, llvm@lists.linux.dev, Brandon Wu , Nathan Chancellor Subject: Re: [PATCH] RISC-V: fix check for zvkb with tip-of-tree clang Message-ID: <20240129-always-nurture-f5fe831b8bb2@spud> References: <20240127090055.124336-1-ebiggers@kernel.org> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EL2F3hYGXg3SLtEB" Content-Disposition: inline In-Reply-To: <20240127090055.124336-1-ebiggers@kernel.org> --EL2F3hYGXg3SLtEB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 27, 2024 at 01:00:54AM -0800, Eric Biggers wrote: > From: Eric Biggers >=20 > LLVM commit 8e01042da9d3 ("[RISCV] Add missing dependency check for Zvkb > (#79467)") broke the check used by the TOOLCHAIN_HAS_VECTOR_CRYPTO > kconfig symbol because it made zvkb start depending on v or zve*. Fix > this by specifying both v and zvkb when checking for support for zvkb. Seems like a reasonable change on the part of LLVM. Reviewed-by: Conor Dooley Cheers, Conor. >=20 > Signed-off-by: Eric Biggers > --- > arch/riscv/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index b49016bb5077b..912fff31492b9 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -581,21 +581,21 @@ config TOOLCHAIN_HAS_ZBB > default y > depends on !64BIT || $(cc-option,-mabi=3Dlp64 -march=3Drv64ima_zbb) > depends on !32BIT || $(cc-option,-mabi=3Dilp32 -march=3Drv32ima_zbb) > depends on LLD_VERSION >=3D 150000 || LD_VERSION >=3D 23900 > depends on AS_HAS_OPTION_ARCH > =20 > # This symbol indicates that the toolchain supports all v1.0 vector cryp= to > # extensions, including Zvk*, Zvbb, and Zvbc. LLVM added all of these a= t once. > # binutils added all except Zvkb, then added Zvkb. So we just check for= Zvkb. > config TOOLCHAIN_HAS_VECTOR_CRYPTO > - def_bool $(as-instr, .option arch$(comma) +zvkb) > + def_bool $(as-instr, .option arch$(comma) +v$(comma) +zvkb) > depends on AS_HAS_OPTION_ARCH > =20 > config RISCV_ISA_ZBB > bool "Zbb extension support for bit manipulation instructions" > depends on TOOLCHAIN_HAS_ZBB > depends on MMU > depends on RISCV_ALTERNATIVE > default y > help > Adds support to dynamically detect the presence of the ZBB >=20 > base-commit: cb4ede926134a65bc3bf90ed58dace8451d7e759 > --=20 > 2.43.0 >=20 >=20 > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv --EL2F3hYGXg3SLtEB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbfJBwAKCRB4tDGHoIJi 0gPKAP4wBaV9cReJkJDl06WUVEYJxyYVr3Il1OGMyQgDVaCHKAD+L7LWWskK+HJW fTp58Q6g61eD/wtV2oyASlZrEQ8f2g4= =khU5 -----END PGP SIGNATURE----- --EL2F3hYGXg3SLtEB--