Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp35975lqg; Wed, 10 Apr 2024 14:33:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUjfht+JC+3IXM/NKCepXXpUsSdYybYMwHYzlV7Xs7YfD/JL/vnJsKYDgS7WUxbR2N8F32B0YSi4/yRlXftOlGMtiR67lbRMd9GCa39Q== X-Google-Smtp-Source: AGHT+IGYmpBDrbL5+yBpLe6InZL7bIpISuIfyKwa5EL6KBky87WgRRJ9oIFd81mkzuYAKrhZDW7J X-Received: by 2002:ac2:59db:0:b0:513:cd70:8db0 with SMTP id x27-20020ac259db000000b00513cd708db0mr2345112lfn.65.1712784799090; Wed, 10 Apr 2024 14:33:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712784799; cv=pass; d=google.com; s=arc-20160816; b=UqMFUo1ZL3plbG/t5KjqGseJ1rs6I/DyHO3b+xNWrDPlb6Ih0gU4bOg+1cL/DetrY2 MbYaFmfYdboWhqmrzMFSvg7fz/QqmNN/f4bsN0BVJuUYVLveqHC05cAeQ6I2Ssg+UGlq p3GiY3WizgUhNfDOodjqBv+rljAu1hiOv0I82tmCGohqpcy8fCs6pu+Q1Z0hYfhHBeU9 IzZPlL4o0xk71nPY6bCCOf2LXMTP+keWSRrNL04LEvzwkTkAwnvamRn9Io7PAGmlGmQe qtdOIypczUnNDiP9/aTblqv6dO8A7IDIeVkDKXE8NRjusK/WDW1fDcgcQfu7Zg9tJe4F whiQ== 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=z/gmMU/A0Yd0PYrsEGoyRAws1U1MCAqzm8TivoV2wjk=; fh=v8OUeXgjSSLwrSt2j3sO4eib+0jQTCt3aJvjIW2E0II=; b=KrrseyY5uFtMyqIovO81OetPfjZc2QGBgf0sH4ZJDGkTXSqVOvGlzLYfWfpnH2/vti Y7b1DSXnntBRAwfw2/1kRhtAEHnCVlCpzHIEPRaK+vW1IGFusROOKzQs7wPpikCjQeyg i7Rs/glD9yv1TcHTwi08dkrtzlDCgvDu5925T6HbVEYWTNvnYXrxZWt1WfaBPAlmjO/S GEKSO9Ym7M/+jz61pf/NxXlXfqKmpyFPVzvZvJitzc1F66+kXOCFkS37E4vsOW1XfJ6g truOqEv0DBPIwuzZE0ZiWD/Qzb1kLxGIYttY1TYaEkhS6wwnZKjDLEPks2LO0eMo8KoL g4Rg==; 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=ULAVZ628; 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-139373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139373-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lt22-20020a170906fa9600b00a4e90a1ff00si44869ejb.822.2024.04.10.14.33.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 14:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=ULAVZ628; 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-139373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139373-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 B57F31F21007 for ; Wed, 10 Apr 2024 21:32:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CC06184106; Wed, 10 Apr 2024 21:32:46 +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="ULAVZ628" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 0E3981836F3 for ; Wed, 10 Apr 2024 21:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712784765; cv=none; b=UewwThsX3gauN4FqjZ+bPzaPdk2oyHjMfhml9ANdNEaTK7U3XNz6CbCrwoWHh/CirsX2odMq5CuuqL9uKIvz7hFlYJYdbIUYOnpcmSuDW0GoW7K+LckiROdXqpEj0JrxkjoyJwb5HjEOUg+GqJm/dVXU3RGRST6c5hDFOfkb89Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712784765; c=relaxed/simple; bh=WZ6f8pq5LAs2d/D3LGFzHCxodGA7vKuwHI5jQj/3Iec=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OqG6VN74BZgNCxm7+p9+7Tcq+VBhTHY/Bj+wlnS2R5PmjO4YCKqq6X+Rcn6Px/68kbCUjwE46A4haF5pSwpLJNO+LqszNwluKeTxSBTBw8d7D4MfVqKeIvuW1xjIQNfiUaDpD81rCabIDA/LPzuftHbPt8i7QrZabmhpsp7upNE= 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=ULAVZ628; arc=none smtp.client-ip=209.85.210.170 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-pf1-f170.google.com with SMTP id d2e1a72fcca58-6ed04c91c46so5224282b3a.0 for ; Wed, 10 Apr 2024 14:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712784763; x=1713389563; 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=z/gmMU/A0Yd0PYrsEGoyRAws1U1MCAqzm8TivoV2wjk=; b=ULAVZ628fDKYTcl41Bj+v3YYJh64ncAGRB5MrG9iwUTfJ+LUR4BIW7iqeAz9W5ltp3 8DTdEu/JwT1WY/F+GVbgMwSE0Nhd3oM3+OwVx3Ak431vrgK/q1OUmu/flPkUG+GktzLt 5EtBRORORrXBgqftkYb0MUTxqY6mVYQhMQ66v2oY5fh9wDIdHl4xcWIksfWPSFSLsuqv 9kqLel6+2oCD2P5lDMrHaJe6hEUM95TUCPA2RWkbr0OLKQKwXXS0Rok0oO2qRADrrUoG Z0lduOSpsDnRkzaYWjAeAMumbJLJcirCZT1eMMc/gFw0cUIQfGz/XaS5nCCOeWKJoVnv 0wXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712784763; x=1713389563; 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=z/gmMU/A0Yd0PYrsEGoyRAws1U1MCAqzm8TivoV2wjk=; b=NKmzMt0BE0bJICYDzr8Aiv//I+5Zr3S5K1q2mP+Ov1Jza1kvriWckHLznjYGZOoHTN ufZBereZNjraHRwZjntg+vUkstt0omwafYwr63sgO7KIO3jyiBbbvsFFLyRdEzOxrgEc UokqspjVEEwMvvXMRjpKmY4yLYYQLKWwqMCaMKhsPaekLpnzUE5eDyT79POHMJtitfk6 3lmkgrf83idaXDAWeOGO/cXKmSwtWiGrhf0BqN0VxVPDIQCfbMvHF+5IwAS6l8M/EGwk uwoqUzUqaY1TL7cIZ9d3YWTi80Ct1JgNHVjWqCUCfkHgcgYS+X44qnT4HlwqRro0UkOg Bygw== X-Forwarded-Encrypted: i=1; AJvYcCV9gKstfOt/K91L6f+B+qI2RK4WKOe6pye6vODWGfd7xL1+WDe/R+p00/fAwexp8uQNProT8xS+Nw7j0g9Th50lC4KSBxowhwGe9LyW X-Gm-Message-State: AOJu0YwgMT3gD9AxNSuqpzX1pSpaLmDLZe6Agi2XGPQL3IttK6N+uyoY r4ufwxo2upeFsjUifZcFZLv7hUQ17XWtzkptRBAnp+B4jcRjFn390uP0ARk0XWQ= X-Received: by 2002:a05:6a00:2355:b0:6e7:8322:ff8e with SMTP id j21-20020a056a00235500b006e78322ff8emr4200583pfj.30.1712784763268; Wed, 10 Apr 2024 14:32:43 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id gx21-20020a056a001e1500b006e72c8ece23sm99920pfb.191.2024.04.10.14.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 14:32:42 -0700 (PDT) Date: Wed, 10 Apr 2024 14:32:41 -0700 From: Deepak Gupta 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 07/10] riscv: add ISA extension parsing for Zcmop Message-ID: References: <20240410091106.749233-1-cleger@rivosinc.com> <20240410091106.749233-8-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; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240410091106.749233-8-cleger@rivosinc.com> On Wed, Apr 10, 2024 at 11:11:00AM +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 b7551bad341b..cff7660de268 100644 >--- a/arch/riscv/include/asm/hwcap.h >+++ b/arch/riscv/include/asm/hwcap.h >@@ -86,6 +86,7 @@ > #define RISCV_ISA_EXT_ZCB 77 > #define RISCV_ISA_EXT_ZCD 78 > #define RISCV_ISA_EXT_ZCF 79 >+#define RISCV_ISA_EXT_ZCMOP 80 > > #define RISCV_ISA_EXT_XLINUXENVCFG 127 > >diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c >index 09dee071274d..f1450cd7231e 100644 >--- a/arch/riscv/kernel/cpufeature.c >+++ b/arch/riscv/kernel/cpufeature.c >@@ -265,6 +265,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { > __RISCV_ISA_EXT_DATA(zcb, RISCV_ISA_EXT_ZCB), > __RISCV_ISA_EXT_DATA(zcd, RISCV_ISA_EXT_ZCD), > __RISCV_ISA_EXT_DATA(zcf, RISCV_ISA_EXT_ZCF), >+ __RISCV_ISA_EXT_DATA(zcmop, RISCV_ISA_EXT_ZCMOP), As per spec zcmop is dependent on zca. So perhaps below ? __RISCV_ISA_EXT_SUPERSET(zicboz, RISCV_ISA_EXT_ZCMOP, RISCV_ISA_EXT_ZCA) > __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 > >