Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp60174lqg; Wed, 10 Apr 2024 15:34:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4MnI4CpeoXf6LOdHILPkNbEmQCF+UvPLKIG+sp8FbYi5ddzh2E1musx6+t/Rqq5/hfITThBiucamiHV9IyDvjmmXJRfCX2bz+KrYyag== X-Google-Smtp-Source: AGHT+IGpU2rVrvyB+nIEUiTUyY17o4dcp0rqM5W3M0nCnvr8OvC2MVk5/hVuNNh+EW7jfvgNODCL X-Received: by 2002:a17:906:2499:b0:a51:85d8:5892 with SMTP id e25-20020a170906249900b00a5185d85892mr552931ejb.36.1712788445810; Wed, 10 Apr 2024 15:34:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712788445; cv=pass; d=google.com; s=arc-20160816; b=vK8wgsYOsaLN253PMZwm9igFq7lO+fIicSCj6BpHIuKvDyLOmoo0kuTyUTG4b6XV9t WmRdljzt6K5shgW+UPumXB1u5I4aCOZOU9U8mtkkd2tL9yeMrFTRsWjnAXvyHG860kw8 k5FV53V94/Gp6doxbheE7f4AbEaTsNggP/JRRO7Iy7vMfsDvLbOeWTL+8DYNNQ8AC7R2 csPG/CCOy+NXE30D1XUaD3mSSgGhn52f620hW0wGBQVMPzHKED1GoSHGds2qsL2TSrwo I77c5VTj3W8eD5XhBs8A5tfUtyKsAoeIR4ZJbEemOsSiTo6VsssYc9xa0cNij+ytL8cj X7aw== 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=8QwE0M/+UHCtJodiY6DO3J7/Qf3c8/oO3mN4e+iOAjs=; fh=E9nXjQrNu3ZYIct7I39SX1h09BQWXDLYL4+RWN68lBQ=; b=FooHwa7+CMN9Jkb6tluGoD0X0totIL4rsgihsCRlVLrgdt+o70GWIiX2114vxG0t47 /PalK2rO4MABcePzXz6pJTOT8GIbovdUhTVi7JYLY5kGOXwe5JtzT6Q6CoJF7+ubgjxs JhnGEzz8AXcHZHJ5vF8cQQScBLj7Qdbv+jCyYw56qux/bRzyWHoGB4Vy6a9Qezty9k9o 7Pspxg7FxDYuEdV0NdFxYxGQPVfqFeQ3XKy0CwovjwVVb9P+fmSqML4WQGzEdobMtHff w0KRX1GzQFB3f5JoUp++mS5Lhk6vNUCTve9Wtx9vCQNeIZBS6IqfY+qKLJd704QEF8MF FLmA==; 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=RkkB7C1d; 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-139443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139443-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 u3-20020a1709060b0300b00a46485678b2si83298ejg.651.2024.04.10.15.34.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 15:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139443-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=RkkB7C1d; 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-139443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139443-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 8152D1F21FEC for ; Wed, 10 Apr 2024 22:33:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23C3A1CA80; Wed, 10 Apr 2024 22:32:48 +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="RkkB7C1d" Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (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 920451C0DEF for ; Wed, 10 Apr 2024 22:32:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712788367; cv=none; b=XGmToE8Jx4zKui5NWYWjl22zhG25P6GlDljuF4iuz1F2K4C+20EoykRh4SHLCP//aTUyam7Xe2wqdBAI/RjEzlzqTOL2SGRxkIn91LRXdk8aeLJ+1lOoiOMYB8nIFMSKxAhzTMMN0RApB4+ZbG1EgVdWNu+aJtjJ/CMgO2VhFPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712788367; c=relaxed/simple; bh=CM4Nfxlau91i+wTCngy88tyM8dxynNHwdKc70IzsoDE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JRfXiWvBWJ36ZeoCrHZDAv5q6d9sQnstdjuZy/K6jbpb0dCIzxpaCgNno/UJ+8uNCnuTtasuUL/e3dTzBRM4GfbazwLXKF/pTkmWx4G5uW0Vs7UmQdXh/KcXlVKGDOuyCjucUDUEGsf1D2IPu4QrVPevnBcIewrvDYecdINuzPo= 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=RkkB7C1d; arc=none smtp.client-ip=209.85.161.45 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-oo1-f45.google.com with SMTP id 006d021491bc7-5a50880ce2aso4485715eaf.0 for ; Wed, 10 Apr 2024 15:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712788363; x=1713393163; 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=8QwE0M/+UHCtJodiY6DO3J7/Qf3c8/oO3mN4e+iOAjs=; b=RkkB7C1dNIBvXbGFDUkYVbREy9QrsdRlTumeDjfDUj/DO1V38garIc7VxpOWCXbb9P 5o4cPZZtezzgY7dD2ijiFiWul651qM5lzOYpo3hG6L6NQ6Hrz/5MCSdqjXqqqriwEFYF NdUS7cDKYcwDeUBoINrb+0IyC+QhGQoJZtqPt90g9nXNtvrsWhCI9PttAuuEL/0uPsVR RgD0FvRO3Xzctlc+2Kx8REL/EwtlgMHsDodQrY9lJpBU48nXnSZZirl0oP24J3KaSBP/ i6qsxMvHURwT5XFVrZ8Fc/m/i0l7r7O/NmvYWt4pjA64f41lNCm/DenCqnnuxCr2nqFJ KtEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712788363; x=1713393163; 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=8QwE0M/+UHCtJodiY6DO3J7/Qf3c8/oO3mN4e+iOAjs=; b=gMZCwap7ta9MCTcCe2Pt8fRV3ufFHj3zW0feIgAUmQHn7b74RJ4lrQWBLmvP70a/OB Cq3MAVBbQ+JU20Y88hbxttcG/OzDZQPhjfJR/PQLzhCWikXfUySMNk2Ad5fGJa3Dm7/T fXQhaH0Z2lwl/m2qiJwib44MGPm/He8yXXI6Q5NFUiElry44HP3DCepsmty+cCZjac65 yf3cokl+dHqeMuQ/oSS4aIRwQybC0E89fhzkoOz6WxuyXomwYlyzfGKc9PwX2CaHp9Cz 8IhBIlN+8d3GeYNJxhVSGKQL4RTjd8AIz31y4NdlUnfJA/ixpBkHh4PNqZhJyFxho8KW 0mZQ== X-Forwarded-Encrypted: i=1; AJvYcCU5KcF2jncg2TufU8FtCCEoH57Fp+ZYlQ+futF5YQ84Wz937QXv6w4zPcdU+7mixSiGbHkPotY25hXDMbDFNAGiWjW947bpNtAnTF4x X-Gm-Message-State: AOJu0YxRcgJnHyUWiUFmN6T6lwgo7RYtVNK7vwfh/xWqIaIVZ9/Ckmhk sB9RKvTRQsYZ9m/IQMy6niFT/AIil+w889EnT5MH8wUwajK4dscBoHn4yCoiZ9I= X-Received: by 2002:a05:6358:b5c1:b0:186:2ac7:316c with SMTP id wb1-20020a056358b5c100b001862ac7316cmr5042482rwc.20.1712788363600; Wed, 10 Apr 2024 15:32:43 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id o65-20020a634144000000b005dc36761ad1sm55196pga.33.2024.04.10.15.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 15:32:43 -0700 (PDT) Date: Wed, 10 Apr 2024 15:32:41 -0700 From: Deepak Gupta To: Conor Dooley Cc: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , 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> <20240410-jawless-cavalry-a3eaf9c562a4@spud> <20240410-judgingly-appease-5df493852b70@spud> 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: <20240410-judgingly-appease-5df493852b70@spud> On Wed, Apr 10, 2024 at 11:27:16PM +0100, Conor Dooley wrote: >On Wed, Apr 10, 2024 at 11:16:11PM +0100, Conor Dooley wrote: >> On Wed, Apr 10, 2024 at 02:32:41PM -0700, Deepak Gupta wrote: >> > 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) >> >> What's zicboz got to do with it, copy-pasto I guess? Yes, copy-pasta :-) >> If we're gonna imply stuff like this though I think we need some >> comments explaining why it's okay. > >Also, I'm inclined to call that out specifically in the binding, I've >not yet checked if dependencies actually work for elements of a string >array like the do for individual properties. I'll todo list that.. Earlier examples of specifying dependency on envcfg actually had functional use case. So you are right, I am not sure if its actually needed in this particular case. And yes definitley, dependency should be mentioned in binding.