From mboxrd@z Thu Jan 1 00:00:00 1970 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 AD5BE1822C2; Wed, 26 Jun 2024 14:37:33 +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=1719412653; cv=none; b=OALZrS0QsQPgY41FLpXeNcfztSkenrP8x8ptiDGUBBx/GVvoMPxW3ElmCaJeQI6sck5mIW9/R2fne9jrgPsAu/rT8U2310XHwtIRw0sLQvCvw7EgOvG6LG0za5ZWoPKMsp/k0U5qP/xHYPO+2Amg2INfaGLReiZFswR1eczHPRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719412653; c=relaxed/simple; bh=PYkxYTf3qacON7qTPkUSIFqgLFAzCd9sm81fWI0HDGY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jJ+8UBB5V9jmpezwO4Yn+vrbFzBaZkO0ciYFPxHKK5tOdV0a6RJKjj/WThZcIYbUY7sPqNKWTRJ62eisZOC5lcKanBDMivUDqXrSt0LSjMY5TOEaUGtFXcnfGUsY76auI3tiEJHbA3SD0Be2ab3eh5KPNcBfBqwZAfOxVPwV3aY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V4V4QX43; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V4V4QX43" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F249C116B1; Wed, 26 Jun 2024 14:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719412653; bh=PYkxYTf3qacON7qTPkUSIFqgLFAzCd9sm81fWI0HDGY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V4V4QX43NnWfSBzTFkjcNxMw8ssJEe+sYmCUOzGlwf/z/K2Xq3TuZabVIFpj72x6S op9t9m5KORwZSIl2pUmH4GQRtBzgt3jFodc7+dUz6BFTYpC7j4VWxB0hBs5K21JKBy eUcmBsae3DSfrvQZo+PocNWXjBcD/a+zUbJ9AEiiLUUQqK+23+NvHfrHJ2720Z1zJ4 qJiQgZzbmm9E5rbKTys/3Y75PhZL8CfnmcZs3eW7txxy2bc8vITXZMkWjUDObqEHVI Oc8MIRcztmkcRHYxp4nal9LcZxVVm5W6y0bRL5A+Rb/r8eADEtCSDCfUl9F1cfd6UM fot1HmhAZ9h+g== Date: Wed, 26 Jun 2024 15:37:25 +0100 From: Conor Dooley To: Jesse Taube Cc: linux-riscv@lists.infradead.org, Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Rob Herring , Krzysztof Kozlowski , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Evan Green , Andrew Jones , Charlie Jenkins , Xiao Wang , Andy Chiu , Eric Biggers , Greentime Hu , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Heiko Stuebner , Costa Shulyupin , Andrew Morton , Baoquan He , Anup Patel , Zong Li , Sami Tolvanen , Ben Dooks , Alexandre Ghiti , "Gustavo A. R. Silva" , Erick Archer , Joel Granados , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 8/8] RISC-V: hwprobe: Document unaligned vector perf key Message-ID: <20240626-cost-agenda-32aa8b68eed7@spud> References: <20240625005001.37901-1-jesse@rivosinc.com> <20240625005001.37901-9-jesse@rivosinc.com> Precedence: bulk X-Mailing-List: devicetree@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="N6mg3s0wYBE+WDSI" Content-Disposition: inline In-Reply-To: <20240625005001.37901-9-jesse@rivosinc.com> --N6mg3s0wYBE+WDSI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 24, 2024 at 08:50:01PM -0400, Jesse Taube wrote: > Document key for reporting the speed of unaligned vector accesses. > The descriptions are the same as the scalar equivalent values. >=20 > Signed-off-by: Jesse Taube > --- > V1 -> V2: > - New patch > V2 -> V3: > - Specify access width > --- > Documentation/arch/riscv/hwprobe.rst | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) >=20 > diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/ri= scv/hwprobe.rst > index 7085a694b801..d102b4a16d55 100644 > --- a/Documentation/arch/riscv/hwprobe.rst > +++ b/Documentation/arch/riscv/hwprobe.rst > @@ -236,3 +236,19 @@ The following keys are defined: > =20 > * :c:macro:`RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE`: An unsigned int which > represents the size of the Zicboz block in bytes. > + > +* :c:macro:`RISCV_HWPROBE_KEY_VEC_MISALIGNED_PERF`: An enum value descri= bing the > + performance of misaligned vector accesses on the selected set of proce= ssors. > + > + * :c:macro:`RISCV_HWPROBE_VEC_MISALIGNED_UNKNOWN`: The performance of = misaligned > + accesses is unknown. > + > + * :c:macro:`RISCV_HWPROBE_VEC_MISALIGNED_SLOW`: 32bit misaligned acces= ses are slower s/32bit/32-bit/ Thanks, Conor. > + than equivalent byte accesses. Misaligned accesses may be supported > + directly in hardware, or trapped and emulated by software. > + > + * :c:macro:`RISCV_HWPROBE_VEC_MISALIGNED_FAST`: 32bit misaligned acces= ses are faster > + than equivalent byte accesses. > + > + * :c:macro:`RISCV_HWPROBE_VEC_MISALIGNED_UNSUPPORTED`: Misaligned acce= sses are > + not supported at all and will generate a misaligned address fault. > --=20 > 2.45.2 >=20 --N6mg3s0wYBE+WDSI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZnwnpQAKCRB4tDGHoIJi 0kAdAP9dobN6gthH8CDv02wpvxrbh1f/0uKnZEb0OUliog5EuAEAn5VK1pvU+xp9 v3XNf378UlI8mArax8VWdHbpzZXYKQY= =5BAx -----END PGP SIGNATURE----- --N6mg3s0wYBE+WDSI--