Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp235091lqt; Thu, 18 Apr 2024 13:30:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVN3Qmt6Hr6841udKa2mO+d6Vq4MdKH/Fi9Y7XDlc/FPVTiOsWBDOFZI9veYO+faAR2rRCE07j6tWKp67yX+QabGK+9TDsoioOdilCSog== X-Google-Smtp-Source: AGHT+IE8GCO85mP9qlRxItitSN/IcrBjhdUJ9VE4C3tVbMHGCpxyiN6ewwe1Nf4O8WjGBH3fnnwg X-Received: by 2002:a05:6a21:3384:b0:1a9:c80a:bdcf with SMTP id yy4-20020a056a21338400b001a9c80abdcfmr412523pzb.2.1713472253483; Thu, 18 Apr 2024 13:30:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713472253; cv=pass; d=google.com; s=arc-20160816; b=m0c/xZz5Xyuobwcjpspl3Z3MpdFPBe0ys5Dqqyv+jGCrATKyKGq2uoZCdiFpOvDKEW xapHwz4E2FbQFbGaNT0ApK48ngKo4u3B5RMKaStMLf0co1ExuRnoYcbAQ/sWCn1cMSCh ziJX6tvrcSX7IcpoMCUd3/NB6+YUcPCl3cr8OJ/hrwoEE/0XwCtp/gYAwHNfTYuCLstl NDABRsF0YQhTcclR3ygU/W9GQbLiKASpu0MmH3r1ANemxikRMBn1E0QlmRoRPBs3HcNB rH0N2kL6UtlGiq9Nhlb0TieEo54UIiNEDHOweeohbkLOXR15sqLeLnU5ynEa/4QmRtzK HV1w== 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=RNO5hCogHifaA06cuC4zK6r76uMEKaYnkKR9Vz2XNxo=; fh=K92XxA1NV6InMSFQkdhOy9ekCbSCQhqMYq54sn55Nhk=; b=ge4LlAZ0sNYbF95yC1YXoQcIU5KdEn+rvd0RWQHSve2xlCPt2+UsfO0OFjSGQ0s7is IXLSRlXnLdbUFIJCPfPk3ptaiMg0gT2YN8j6JSLjQBiPMCcBJDONRqUQ4NSqNI7rhfYT z05g9Rr+2fZH3YShQRxeuGfaPFBmjH7GEiD4lF9bCAXg0H0Ohgyco6MopTcZfbK2pL1k y6KzxovalQc39wqlFRo2UwMqeeFpFbURnrZbyVB/YjewyTUBgsWCvPnAgEpWXjoJkH/3 cpy2E90ujsoqYjFy9oa0eJuasRDkPar7DVoK8hJt9EH9dz44f1SplyFBEpO0bmNd0lXM 30RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eY4rQTR0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150725-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id gm17-20020a056a00641100b006e558b4e179si1948091pfb.235.2024.04.18.13.30.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 13:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eY4rQTR0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150725-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 732CDB25BB5 for ; Thu, 18 Apr 2024 20:00:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C78B180A97; Thu, 18 Apr 2024 20:00:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eY4rQTR0" 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 92C6F16D314; Thu, 18 Apr 2024 20:00:08 +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=1713470408; cv=none; b=nqg9TR9hkFsjJ1+BZnpOjQBZEzBH6iZduhEFQiUSGi5D3vUw6rnvhAAh2UdD988pVp+/fTfS1K8/F2yRNE7U1lLMUUhULg8mxgqtlwj6JMjrhyu7aXPs3C0RbACJkgi8DrIFxFwtxNwhlJBBIg4oZD2wuOvdae3Z/7TVU9tq2pQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713470408; c=relaxed/simple; bh=HWefGnwQI2HwNz4Knpy1Fh114LZYu0wgCLBTdlxtmUM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=G+tkgY+fvZtBuM+ENr0k0NIhjhFuMoia0wjM7de6oC5nPQLeab0L4kERid5AuOYxFghLc6FvsR7UuXlhG2JRnGtkBgVOAsgJuwGf3qWUdX0gx9wEJEgXFiV1H1m+81kO1UvcjGXRqMkGyy31QYL6ayZ+jySJyU7DNDAEbum0xuo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eY4rQTR0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6AAFC113CC; Thu, 18 Apr 2024 20:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713470408; bh=HWefGnwQI2HwNz4Knpy1Fh114LZYu0wgCLBTdlxtmUM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eY4rQTR0vB3nF31du2IEDKNwwn+Arhad3fDAJYF8yZ1FJh3Dhu/OomZi51qGz0+xm yra/nkWPz4cFawkghV0gdBKi6ECmIsqrPWj3/SQU3/50UuGZrAWlq2RS2efp5kTKhn sEsyCi98quhg615KvU+4ANrTH8KbscCy6oiuVNXuib7kuD0Id9WX3lNppWvtA90Im5 0AKhCGhrvZTB2b9mhHgqt6RU8CbmlUzz8j1iWRciRpAczvqRefIU8Dz3FAeIcL/OOI zD8tMN5uEBWYh68fDMPlqOQL0e7l0KYx5v22crgl35DzYqXvHmF+v+qdFjxzsYhJvr 6SFqrgLNKRXPw== Date: Thu, 18 Apr 2024 21:00:01 +0100 From: Conor Dooley To: Eric Biggers Cc: Conor Dooley , Andy Chiu , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Stuebner , Guo Ren , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Evan Green , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Shuah Khan , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Vincent Chen , Greentime Hu , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Joel Granados , Jerry Shih Subject: Re: [PATCH v4 7/9] riscv: vector: adjust minimum Vector requirement to ZVE32X Message-ID: <20240418-dolphin-epileptic-749c9628e5a9@spud> References: <20240412-zve-detection-v4-0-e0c45bb6b253@sifive.com> <20240412-zve-detection-v4-7-e0c45bb6b253@sifive.com> <20240418-brook-chili-4d3e61d1a55c@wendy> <20240418155256.GA2410@sol.localdomain> <20240418-ultimatum-yam-11de4b063b83@spud> <20240418173203.GA1081@sol.localdomain> <20240418173946.GB1081@sol.localdomain> <20240418-sterling-sanding-d59c3b0a2aaa@spud> <20240418184129.GA1071@sol.localdomain> Precedence: bulk X-Mailing-List: linux-kernel@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="MEYWdzN/KoxvaYBs" Content-Disposition: inline In-Reply-To: <20240418184129.GA1071@sol.localdomain> --MEYWdzN/KoxvaYBs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 18, 2024 at 11:41:29AM -0700, Eric Biggers wrote: > If the RISC-V kernel ever disables V, then it should also disable everyth= ing > that depends on V. >=20 > This would be similar to how on x86, if the kernel decides to disable AVX= to > mitigate the Gather Data Sampling vulnerability, it also disables AVX2, A= VX512, > VAES, VPCLMULQDQ, etc. See cpuid_deps[] in arch/x86/kernel/cpu/cpuid-dep= s.c. >=20 > Sometimes CPU features depend on other ones. That's just the way things = work. =F0=9F=A4=A8 > Whenever possible that should be handled centrally, not pushed down to ev= ery > user both in-kernel and userspace. FWIW, anything detected but rejected while probing the DT or ACPI tables will cause riscv_isa_extension_available() (or other APIs) to return false. --MEYWdzN/KoxvaYBs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZiF7wQAKCRB4tDGHoIJi 0lrQAP0ZnhY2j8dAgcGtM2slb23/HOfAFrbbsZhuBfSx0uoWSAEAubVPWlDs59pJ eFvw6AB3RzfrfggfMB1wA9nLHCZYzQs= =Ogch -----END PGP SIGNATURE----- --MEYWdzN/KoxvaYBs--