Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1389468lqb; Thu, 30 May 2024 08:48:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRMavEMLbvzYhWWdJVq20Pyk7YU3l2p8zBeXwBv6k/ncQKfkH/Ef6dOIPGZLTLkIJn9db+MFzp/T12YVmgEfveQTR5TSoLBa0OTwNBBQ== X-Google-Smtp-Source: AGHT+IF9yBxmcuP2L23rsHX8ePW1wVPgk2HCgXdMn6T22Hcp+ASV+dCtAK+JhbBxQrM5wHwzQndT X-Received: by 2002:a17:906:2c4a:b0:a66:6281:bc8e with SMTP id a640c23a62f3a-a666281bd24mr108500666b.53.1717084112285; Thu, 30 May 2024 08:48:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717084112; cv=pass; d=google.com; s=arc-20160816; b=KHVgJ2YhdKpSGHdQAwRmtQFBLfP18+okghneTzTN8qz5CzmYJhJE8KcSYCvmY1GyEw YCefnsNaE/WxzNZ1rdjKf1wZtods2i0+e2r5q1sRYbCf+DfLCfiKBZ1NUJiNeK7ZaMFg +D+Fnw2U71GqEfDu98UtZSxffe89LN+i0cJiqYpCXWaIQh+YmGa+3CRLhICxESwR8aXk mdE/d1tpxS0W6tTjwuk1pdbSI/JONERiqg6KNnWM9cwuJY8bQ85arrRzziBHuzq+EqJQ SYuqL4clAuSwI58JR79ZxYszi0CqFzrRSPqed1BlqQVZ82eOCub1snkHReee5lpVo11h +G5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=z2/9YXup/8RbMNmyLIVK+PNdaz2WPXgvrHbc/uuCS+s=; fh=sOUNBMRtN7XLsNxedaNE/avjIE6OJxPLX9x7KgkQIKc=; b=YiTFOtiuo4VzbV3b5C2Zq2IfD80qe56YSp5y/3CbhG3f8OjnULgStHkAb2vSisZExM 8LlcfIG7S4pv91sKOXbn+v2NMzv4l9wxEdrJkpQR+3h0diG8jFpPWeXO55pADrX3Rx4q IcvnnTvMAKarF/csUlzb+ssjQ2WW2iVNIMQ33c0PQUPdiPoObUiV26cQV+ew7zScf/Va Mwm7+xCugWy+7gwqFF6acCf97s1dWwcZ0w6IerK4ncjtNrJPycIjOdyUJDazWuzS8/IS QzfEAygSyEalUx0glcC1MwcPI0gT96Q349oRXU1L0X08Khri5MPPXLGRwqLin6qY6DNx L9jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=WVdSqWHi; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-195620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195620-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a659c86dee9si162759866b.694.2024.05.30.08.48.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 08:48:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=WVdSqWHi; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-195620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195620-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 078081F23D33 for ; Thu, 30 May 2024 15:48:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA588208AD; Thu, 30 May 2024 15:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="WVdSqWHi" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C389E1CD2C for ; Thu, 30 May 2024 15:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717084100; cv=none; b=HUmPeZlsq4zHfeULX/jYlNGUqbMranoU/OhGpuSR8lLsBTrZvEF0YzS1f7HcsDHmmNctWaqzKEIyLm0IUVE8qBpuGTQHFNXk3xPvUze36LUNxU4ZZaoGFQro41NDLKlC7YXiuYOG4tzmAq6MrCnuvi2duMqF0ihdGBWZ9HgTf1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717084100; c=relaxed/simple; bh=uiGOFfneORywVqa7KwbGbVLdPn3xrlFWKiXYGWlSZWw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YjLd/PD4OHnts54mVpiszM58VUCPkTdhvyakzaVl7bp0KWebP+F5MY91Nk1Z9ImI0xHVcxzKBYKgoPeTOaMzUL5zOQ5IPnoyOHk0GDfcqLlzlwoxE3nvoaGBms9wp6yn/+Gok16z3MNfzwed1ymygE0dPhJRljt9S3PtW8C4iEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=WVdSqWHi; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1f48e9414e9so10205065ad.0 for ; Thu, 30 May 2024 08:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717084097; x=1717688897; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=z2/9YXup/8RbMNmyLIVK+PNdaz2WPXgvrHbc/uuCS+s=; b=WVdSqWHiu5sKaDLWZCxaBXUV31ZBsthCdZZZutKEkDcX0e61rFlvsCJTLb3B04m05m dAIH+HyiM647olGbM+CDjUCzUmEg/4RI2zyqBxMj+yoqLTxMhXWbYt9bSf7YKAAtZ/8q 1HO5hyaXQilQrcmuveR7lGVHRGN20WpXFNlyoFsjJE0heqSPm1sB+d54c6GmwhKAIfk2 G3SHZNVzMW9nmYz1Ah4ZfpOylk9AsCrkiceqrqohFTErQ2RHMvO3JQ445W7+8jY/szIZ b0c3UV0yO7SK/xyD6NBOgb7iuVJC+7Dd4XPGCQsEnGfkEDIUwASlnGrfRigBExCYzm70 PKmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717084097; x=1717688897; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z2/9YXup/8RbMNmyLIVK+PNdaz2WPXgvrHbc/uuCS+s=; b=U7NsMH1FIucKPkX/7VnpnVvIF2MDDoLJ5bYsvs9NaeHvKM9POiRJq1yprVwchzJyJm eJchgAE11fVdwfWbDJOjQtOSBZzUibw4nJ2/z7rNw0jRU6NDFewIk3gl+8m78pfbvVEk 0RobD8z/OwuRkkgkZ5qzpOG1rVgEo1qrtk6ezepTFDh81B05lr5Kjt0eclQcMAuWJeKD F+OSbf4+LdWL/CBx4N68tCOr/AI+y1UsKrujN83/DQvadhRu0YXr8irfTK5eUXHIeGY9 usGs3KKVVmWJo9pI7OAn0gD1yywmkYRze8xcT3tSlDBF7N6aVRs3+1uxR0k4P8tVjcix 89NA== X-Forwarded-Encrypted: i=1; AJvYcCWsMnqF3GqIceUB9lsE4y4eW+rLdKQvbvQFUoH2zqsumyE7Dz9iFbCHm4EefhvqRR/7Dc8tPJE9SgkP4ATkytoiEjy/9lPHDuFCYkvg X-Gm-Message-State: AOJu0YxbikJQk+lVQkdsbYUkvEqTFUUemxvJZ0IcqXRooJpjy5l8Ikgl GqZYtWloKmjgDbCYT4BXGy9G3bQbBAAeJGoMsCPcH15xTIOP4htsn4snW426YQQ= X-Received: by 2002:a17:902:db09:b0:1f4:9468:38b6 with SMTP id d9443c01a7336-1f61c1ba67dmr29549475ad.34.1717084096975; Thu, 30 May 2024 08:48:16 -0700 (PDT) Received: from ghost ([50.145.13.30]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f4d6fe4775sm49803095ad.257.2024.05.30.08.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 08:48:16 -0700 (PDT) Date: Thu, 30 May 2024 08:48:13 -0700 From: Charlie Jenkins To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Anup Patel , Shuah Khan , Atish Patra , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v5 13/16] riscv: add ISA extension parsing for Zcmop Message-ID: References: <20240517145302.971019-1-cleger@rivosinc.com> <20240517145302.971019-14-cleger@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240517145302.971019-14-cleger@rivosinc.com> On Fri, May 17, 2024 at 04:52:53PM +0200, Cl?ment L?ger wrote: > Add parsing for Zcmop ISA extension which was ratified in commit > b854a709c00 ("Zcmop is ratified/1.0") of the riscv-isa-manual. > > Signed-off-by: Cl?ment L?ger > --- > arch/riscv/include/asm/hwcap.h | 1 + > arch/riscv/kernel/cpufeature.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h > index a5836fa6b998..aaaf23f204ac 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -85,6 +85,7 @@ > #define RISCV_ISA_EXT_ZCB 76 > #define RISCV_ISA_EXT_ZCD 77 > #define RISCV_ISA_EXT_ZCF 78 > +#define RISCV_ISA_EXT_ZCMOP 79 > > #define RISCV_ISA_EXT_XLINUXENVCFG 127 > > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c > index 3bb2ef52a38b..0a40fa1faa04 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -290,6 +290,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { > __RISCV_ISA_EXT_DATA_VALIDATE(zcb, RISCV_ISA_EXT_ZCB, riscv_ext_zca_depends), > __RISCV_ISA_EXT_DATA_VALIDATE(zcd, RISCV_ISA_EXT_ZCD, riscv_ext_zcd_validate), > __RISCV_ISA_EXT_DATA_VALIDATE(zcf, RISCV_ISA_EXT_ZCF, riscv_ext_zcf_validate), > + __RISCV_ISA_EXT_DATA_VALIDATE(zcmop, RISCV_ISA_EXT_ZCMOP, riscv_ext_zca_depends), > __RISCV_ISA_EXT_DATA(zba, RISCV_ISA_EXT_ZBA), > __RISCV_ISA_EXT_DATA(zbb, RISCV_ISA_EXT_ZBB), > __RISCV_ISA_EXT_DATA(zbc, RISCV_ISA_EXT_ZBC), > -- > 2.43.0 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv Reviewed-by: Charlie Jenkins