Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp417021lqr; Wed, 5 Jun 2024 09:35:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQLxKp6gnNC7tonBwYmkxPlTcp7nFYfnskVVJ8K5/7Op0gRAJTE7a0B96kkvakaFBx9KGV7IXZsg/zXa3vLWVNRlTjKYOtYtZeIGAXgA== X-Google-Smtp-Source: AGHT+IELNZO5zGn5cMF5/KxYqABs94R5CQdiGfmin8pHLNlhjILx5rn+VZ99ikDDA6KSBTJY1rlM X-Received: by 2002:a05:620a:a16:b0:792:7d2f:156f with SMTP id af79cd13be357-795240e5202mr291811785a.77.1717605304012; Wed, 05 Jun 2024 09:35:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717605303; cv=pass; d=google.com; s=arc-20160816; b=OSFWoxcNob6ORdgtes/ak6OI/vWCLQk+4NWT4LJ53H3d6ANK4YAUpSFgVlus4IkhkE V89dMBvYWhrAJSZu0SF9POqo5VAU12UM284MkOWGWgXC7Xz4/AestWU02RHPL0SSKAzE rL/HLMbUmncCNrnY3ch4eUNOAfaSUlsfbMYu+1fVfGuHbSEu/RzzEwb4Fp7qZ/AjTW8t vW+UxPX2NkiKNEeRkYxwm/CGjpWSWlgQPxmBSIW/1bMQSTvG52Z9kZfSDZgTUzvcqSIF aMqWtJn79j0VZDWuGiAAw9EsACR+626NYeIItqaI6sNklvjUevWwbO+lpQUocddGtRjP h/1w== 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=xUjOgD1MyQ9M5v+aEoVa+5lBN47le78b6xl8mERqNMw=; fh=t2gWLycyuvepoOf922v8tTcI9lz+vSt8OQl9l7s8q2Q=; b=t/NSqYOyZk2u2C7qEwa9lqh1Pz9BJPyar6eC5yJQd6OkOVM/EY27OHBaEuHo4EjlYO FICN247NiC4i9DUlJY+w5ddznYMjUvkew3g0tQ4XSXAhKAksnfKydNB5kh7VORTMWB+3 8B5s2OXAeq3Rvw9DyI3m6iVJgsHumsTWaIcnbSGrpqGYFM5tLhwBrxoaKqqUccmqunyj UFYRM/1P/lZ/xfuNNCZTeSJLn0NjWB59Fm9FXmsoqxr8tUuNLH5Q1KTve4Za9hk8qqr8 4Hsb93Ui0C7JWeAQ6uIh1GogZPInH8qBpxAzwWQSjQc5xKVOMT9Dp7hioXhFlbC9/9CK /6XQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TQBIbr1K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7951d80d336si16954985a.577.2024.06.05.09.35.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 09:35:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TQBIbr1K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202919-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A76041C213F5 for ; Wed, 5 Jun 2024 16:35:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CD5E152DEB; Wed, 5 Jun 2024 16:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TQBIbr1K" 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 C5D294597F for ; Wed, 5 Jun 2024 16:34:57 +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=1717605297; cv=none; b=QdfVXf3FB1vJjln72H4ydRRU2kheJfhZ0GmstUl62AIGU9XlzvWL7+XrOeKJ2m1Z/fY9QnVj9XNi7EDrWSIpObrb85VupkJepOWH8budX1rgggk5y1dQJwBvohtanb6egg0YYT+UoqaEUCwMhe4+AZkGaFtL2opkz/mT8dXeq3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717605297; c=relaxed/simple; bh=xUjOgD1MyQ9M5v+aEoVa+5lBN47le78b6xl8mERqNMw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ME0Ro+YgSDhMJ2BIdvt7ID35Ey11G5+ISjHUVF/XfEofrhBfRZcs8HacHreq7S0VxR8OjRJOTHE3nHkiAHVb38bGlq1IZUmFIhSZb/6Z7NiKeywlub6VjpNL1NQJAN+/I5MuehICktDxNWg1GE9b4CH51tuaSgO6dj83MrFCkaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TQBIbr1K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EB2EC2BD11; Wed, 5 Jun 2024 16:34:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717605297; bh=xUjOgD1MyQ9M5v+aEoVa+5lBN47le78b6xl8mERqNMw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TQBIbr1KCC2UDPT1LxhnakDfxnaoCREnhIPWuz0dcxbM21NXf3c5aD2MLx1YzZ75a 0504O+ZkHJ90rqRDmXZfBSKzybYjRdR4LuG/xKKeehpAvnzDx0i5ylN5qL2E/8MGmQ 9LYLUZx1Is3g88LL47P80XZHqOva46h9iDq2af82/j39TkZxQ71WBJiFVZN+Y79vVw MJVxUAzzLTl7Ub5TvfwqP/zs8aY4wC95C64eu5LQEsWDHTQZi9xGpl7x/9Egvggr7B jABJvOFRQzf4uk7JXGc+YjUhza+k6b3hdy9Ru9WEtoLLyTKPRPpSPzhUM0xvq+9luL 7uWNo+RBv7REw== Date: Wed, 5 Jun 2024 17:34:51 +0100 From: Conor Dooley To: Evan Green Cc: Jesse Taube , linux-riscv@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Charlie Jenkins , Andrew Jones , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Xiao Wang , Andy Chiu , Costa Shulyupin , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Ben Dooks , "Gustavo A. R. Silva" , Alexandre Ghiti , Erick Archer , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v0] RISCV: Report vector unaligned accesses hwprobe Message-ID: <20240605-swipe-giant-2f9659fbf430@spud> References: <20240604162457.3757417-1-jesse@rivosinc.com> <20240605-bullfight-ivory-b0151ad2b987@spud> 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="8xKL+FQLxTuCrMWr" Content-Disposition: inline In-Reply-To: <20240605-bullfight-ivory-b0151ad2b987@spud> --8xKL+FQLxTuCrMWr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Wed, Jun 05, 2024 at 08:54:21AM -0700, Evan Green wrote: > > On Tue, Jun 4, 2024 at 9:25=E2=80=AFAM Jesse Taube = wrote: > > What value should be returned when V is not enabled in the kernel, or > > V is not supported in the hardware? Currently in the code it would be > > UNKNOWN, right? Is that what we want, or is it worth differentiating > > "no support for V" from "I don't know the speed of misaligned loads"? > > Maybe UNKNOWN is the right value, as there are other values to tell > > you V is not enabled. >=20 > I think UNKNOWN is fine for !V, assuming identical definitions as scalar. I dunno, maybe we should set it to UNSUPPORTED in that case, but there's probably some funny behaviour around the v prctl we might need to be aware of. If the system has vector, we should probably figure out the actual speed is, but not report it while vector is disabled from the prctl? --8xKL+FQLxTuCrMWr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmCTqwAKCRB4tDGHoIJi 0iTYAQDoRc7CTqJQPG3KQEVPKCP3+Otu7uuOldxgilGh0Fu6VAD/Twk8nc9C3hfp zLZbFEP0/FzGD0K2QtWUaQT0WccX7Qs= =dr74 -----END PGP SIGNATURE----- --8xKL+FQLxTuCrMWr--