Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp652798lqs; Fri, 14 Jun 2024 01:12:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWl0nt8czNSXypz+W/Wo6281KlkQpOcGdwydxhAsm7nKvFTAUyO4xiGAEsdT7kcrRTafn2izb0l/Rq85zLlSIeMWyyIv3ud4OgjOxVV+g== X-Google-Smtp-Source: AGHT+IFaWkNgjCfqS0xSOFyPrgxROAJjm+OnIpo8bkF/F338bxnAMNsYv4WStvyOEXW/GJSn2GsW X-Received: by 2002:a05:6a20:3d8a:b0:1b6:dc30:c28f with SMTP id adf61e73a8af0-1bae7f0088dmr2339869637.33.1718352761490; Fri, 14 Jun 2024 01:12:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718352761; cv=pass; d=google.com; s=arc-20160816; b=o4zYOXT46LDUpewNhSR0YyWanWAs/rnrBrSADQcysP+V+G9A2dpfWZ3RThAwVjNcGb LSZPdZZ4z97jekzAmqw27mzW/nIZ6lonzYMled8bh09RT0dx9cAbx/MT74f2Otuy5BeR t/Y1hi7NAofNkjAXtN13hhFC56QqV088UFcb4wT8GwS1Jg6OwhU8rpyJHPl1cBSq1g18 yFyuHgIcrT9ys9MWZBe3y61UyBdu/L+nLpb+rORn6VE0YEViWIfd/9FhYfl15Sq0OH9v dbzYDn4kSBa2kud8kFwSQYFNwhGA95+x8/mM1aZKrtl2SKBmv1ME2Y14NScUOHSoEYu3 c/DA== 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=tdyxMi9MCtjeyNj6V3YguqessosZYjypEXDKgngR3k4=; fh=sLh1CGcWzbiP5LK2GU1f2rdMR1WRRjhKapWSpixyjGM=; b=wEbynP3A4LCpLROaVOb25xCCm/uYpgoeB5VDx5rWBy2fog3XpL5ij9rw0u//ebbIsG y3J9a6EdExM4P7eBI3U8IiU4x2UQVCxdIMgBN6SDKBniN4tto/W/WMVJIkpDPtlVqDs0 RY+y0cKtuu1pMYjiGw/4t9cZTx6PCU/sa8nn4T59DEfxSj2FClI2IsFm7qfSQeI8RB6i wpKEWIB8v5pbkwjjC4mHs5ha26/4WEp0n47cy/KuPp+l7KZh07yXfEuXWcP+rRQiXBJj LEgr4sK+wLHcLlgz/F6SrOZHkvHOaz5Ra7moaXUcFKNqOGZ7swCdLz9UDr801lPQ+K2j kUXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=CpGYsKCo; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-214505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb3bfd4si3271354b3a.177.2024.06.14.01.12.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 01:12:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214505-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=@microchip.com header.s=mchp header.b=CpGYsKCo; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-214505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com 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 D970CB242B2 for ; Fri, 14 Jun 2024 08:10:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB9BC18412D; Fri, 14 Jun 2024 08:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="CpGYsKCo" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 6AAB11836DE; Fri, 14 Jun 2024 08:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718352598; cv=none; b=PBsPWHx0S5m8nFiTC43JuNmPFmQLkhC05QODi+wnbdnrbedMt7bey2zTwTrUjEsSEg5ki/+Z+ZL+dqj7THP6OmznYmhRt5Pm2Csd+pgFSz96C41CNp3bsOU4hI5stvSVTLs2a3xZYsDZQPTyw+FzIGJBFiN/LWSNWzKDVkKBmd8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718352598; c=relaxed/simple; bh=tdyxMi9MCtjeyNj6V3YguqessosZYjypEXDKgngR3k4=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pQaqpjaspWA92HgrpAkmLqCoWeb6BJUcJUUCWHea1pegZIn8qc6D+4ntVS2Y/SyjKgkye31L37ZNw5fW/rh/6Zb5/B+EE+7G2dSDQThoM+TgKOC3aaZTWpt1DUDhkPQ+mfdd3v1OjN+J74eTq8EGXY2HR5fQ+m449XklB8hAZ08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=CpGYsKCo; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1718352596; x=1749888596; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tdyxMi9MCtjeyNj6V3YguqessosZYjypEXDKgngR3k4=; b=CpGYsKCoW4PGUZpLpT7vHazzPvsz70Vi+l44fuLr234xepsHKyQJGlyM NsgcbgvwJwEAgMKvr11Fa4fcCAhePZHKD9ME7jEpTZYmafq0aHzi4vWFJ yva9mD2X9zAL8rcNhLNpUCzAWhpFDfo0Xw/WhorH85quBqMaUb22xgJFr QUsjL1n0HEoxqNMWTqvE+cVLXfeHdowDaa+h+43i7xoAAQsX3W0LRRJmT pJb7kYsdujmXacIlfnhh9GvBpTpqMmDBTEyhV0n5KlDpLH5FFwHCvF+M4 BotzoBLk6PmnEmldqkngkJEzBAEIlxI/U6mJfadA6M45AS6Bkj//0vuQX w==; X-CSE-ConnectionGUID: MPaymeoARIu6VK5pumub+w== X-CSE-MsgGUID: Uq74KbUuSymUnT1JBSATOA== X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="asc'?scan'208";a="29987298" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 14 Jun 2024 01:09:54 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 14 Jun 2024 01:09:38 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 14 Jun 2024 01:09:33 -0700 Date: Fri, 14 Jun 2024 09:09:15 +0100 From: Conor Dooley To: Jesse Taube CC: , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , 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 , , , Subject: Re: [PATCH v2 1/6] RISC-V: Add Zicclsm to cpufeature and hwprobe Message-ID: <20240614-oyster-ditch-80e8f00fd91b@wendy> References: <20240613191616.2101821-1-jesse@rivosinc.com> <20240613191616.2101821-2-jesse@rivosinc.com> 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="OQKmvcs8HRT7+PY2" Content-Disposition: inline In-Reply-To: <20240613191616.2101821-2-jesse@rivosinc.com> --OQKmvcs8HRT7+PY2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 03:16:10PM -0400, Jesse Taube wrote: > > Zicclsm Misaligned loads and stores to main memory regions with both > > the cacheability and coherence PMAs must be supported. > > Note: > > This introduces a new extension name for this feature. > > This requires misaligned support for all regular load and store > > instructions (including scalar and vector) but not AMOs or other > > specialized forms of memory access. Even though mandated, misaligned > > loads and stores might execute extremely slowly. Standard software > > distributions should assume their existence only for correctness, > > not for performance. >=20 > Detecing zicclsm allows the kernel to report if the > hardware supports misaligned accesses even if support wasn't probed. >=20 > This is useful for usermode to know if vector misaligned accesses are > supported. >=20 > Signed-off-by: Jesse Taube Reviewed-by: Conor Dooley --OQKmvcs8HRT7+PY2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmv6qwAKCRB4tDGHoIJi 0mzaAP9YBq9BuQ1DEPPsxpTTaIEq91WxQdesurCAlXQCERPNnQEA5hS94j7obJ9J hv52wvk6In81vYzmCTh9UFDBJVVc9gw= =TSBq -----END PGP SIGNATURE----- --OQKmvcs8HRT7+PY2--