Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp925118lqb; Wed, 29 May 2024 15:09:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLpa0EBGxdZC/kw7PRnffT9ehiPxGwmDpbMt4iRqDbGum0/l91sQELoH5y3JkR3+YaY6luaSKglgM4q8K2cN+iqEC/GFqt3qIsIrwicA== X-Google-Smtp-Source: AGHT+IFMevsx6woJWp8MSZsOtYxnqPA5OiUTAQ/qtlXJsl/KtN1Jun3SKGjHlqnIDICU2rBglagN X-Received: by 2002:a17:902:e846:b0:1f4:8e97:de25 with SMTP id d9443c01a7336-1f619930d5amr2885645ad.44.1717020547163; Wed, 29 May 2024 15:09:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717020547; cv=pass; d=google.com; s=arc-20160816; b=i2Ody8pCuhs2HqfI1rCIHdLJD6JDSy8+enXlpVOhNCNz3lCxsbRsVk7Y17WRXdk7h7 MfNb5YEgQ6xfpfb34R+3hz296U7e50cWhkel012ngGc4otoQ3wsZrgshfZbIsgO2EKj/ scGWEICRMDAKpNrQERsJIFY2vqtMofbi/DTy1mlCfNqChpdshU+AWDQAIp2hrY1Zwjr4 BAvN7eAvQ/encms4/mm5wTHwK5bcje7UbiViKmSKPt8V9k8PRWYOY4wStFmypn8ZZZ6E Ua7cZZTLC2rrihPYc3zbdrO7sovMBEes6W1RmGX0KQqiwTA8j3R3vdJnDzY+m9Bwnz2x H/dA== 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=RdCGT44mhuV5q5NuFAR9fXiN471X1L/TiMRJsZFqU8M=; fh=MpoCaP9OUW10T0lzem+CD81x7rZbtuptKJv/txL1iIk=; b=k20/j1l/YxZDlkWbb8YlVBHuYJ77JWYInyxssWCKeaKM5j4EquhwdxNgfqJtuCNWq0 OYbZ2FxVI37QEWeVF+m1IXyliBSPb81LcjePs2oKJfDjHbFzuOortlZ84+VOKh2IFOeX gwO4Gjp3AmycoEI5MfveczsJv1nyopGUjDK68MiS6zHeZ0qLZN6m2hRXMyoLNb5SVoqJ qBc1GKCF81eswWSJOL8w2NURA5sbjR6H9HF9Gjxfo+OxkiyTTyx0EW7oKE9/mvJOchJc 3lGpDHUYY/fy5infWmkPfi2gs6IKW3ssvXZIh/7a2dCpa0M9WSXUKxsvSeiu78L4Ovid v0gQ==; 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=Hr1zRBtU; 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-194729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194729-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9cba3asi104349165ad.506.2024.05.29.15.09.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=Hr1zRBtU; 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-194729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194729-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BF9AB2895C3 for ; Wed, 29 May 2024 22:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FC891CB32B; Wed, 29 May 2024 22:08:45 +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="Hr1zRBtU" Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 2EC461C9EB2 for ; Wed, 29 May 2024 22:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020524; cv=none; b=CydGOjfBAzqyQXdh9k3q6Jg2E1sojH3156EONOMUxt0fKcsR/P7EyEMeI67LNnlQjVHzNPROh3MQAzrX54i0q2gxd3wtUxdkWDOVz/HwitQReF/6dtbzTRES+6fEsYvNLGtCMSFb5YCrU27WF4vKhY+ZDg2FVui84Fx6tiPg4IA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020524; c=relaxed/simple; bh=E9cC9YBfnRBR3Uz0I+4AkqOzYtSqq1o71OLZJ27uiMA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mw2wSMYtpRVCUgMkhgpzr669C8tag08ziIWFqUE4jAzrIMSsSfQZXFt4un3lzJWdPCPaS92zAB7Biv5Pv8zQX3H4y8EvJ9CRx4vit6qjf8ho7+WUXtJr1Ej0ztGaaGZqzI+eG7DfTWR5UZdAbv8INy99kq1gkjfMWajUR/6mwuM= 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=Hr1zRBtU; arc=none smtp.client-ip=209.85.210.181 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-f181.google.com with SMTP id d2e1a72fcca58-7022c8418d9so263398b3a.1 for ; Wed, 29 May 2024 15:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717020522; x=1717625322; 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=RdCGT44mhuV5q5NuFAR9fXiN471X1L/TiMRJsZFqU8M=; b=Hr1zRBtUzGh0r7/9P95krkrlLsWI53kOVbfFbglQCOvtvTUiIuufLK3/GdJ3bgl9RE S3GvkhjXz6JluXHe7cg4xH6kza9MQOfrpnhe2uYqi7GRbYgf/4tA0tFgVvRSkfJxYB2Q RN4d8lq+QKEi/u0OQq36BrovCbs1y5W5jSMDq6Q65iChhh8YUckWBx3KRDY3ZHdTJJNh MimwDmQynpVX4U5v+bBpbcp325/7QIzUdrZYZ0D5E3aTHZVILXL6W1SLVgW9bg4YdvqY icd1HFfVdPMcgR+OXkYAubH3ejLw5JiMpIMIPr+/VUBcuoeq3cysve4cq+GoUdcv9tUo HXOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717020522; x=1717625322; 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=RdCGT44mhuV5q5NuFAR9fXiN471X1L/TiMRJsZFqU8M=; b=Fy7HN8PKv77ZNywq5k81YGrih3ujLPA7Lz5xWsUgLb2xPdd3+9HVFyLrMvNCOlk9PW H3s87GSSyRLmcfIWCtzQggitmVbh2fobIBT9izxJIxNrXAwhxKgxwVLVn0I8yhFM1Xfw J6qPBlZNA1gYFkyaf8bB0F3uP0Zrs4lZdcTPvfyKewlguc3GdAr3sX46g1wpAQk3L6VM SKe0FWjKJsXdxDc8dDndKcsLqbWToXkK2kMIAMMTUXFBKqEkWdiD9WvPouTy6NGM5dc9 NzeArUuzf8Krm9ajhLKSXtZQ1PTC6CxotT3RoQNeKJpgNI3ifp+qS1p/fgehX3PXXO6J QZzw== X-Forwarded-Encrypted: i=1; AJvYcCXX0+Ch7ZhLm94yxEtVvAkxnXRjMluByS8mb0e2PIXPOrCva322owZJ4UuUU5PIRTJGDeZbHiY2mCrjHzEMWhi0qHmZNhuC5x4+FyyF X-Gm-Message-State: AOJu0YzAfI2pnO5P3CGEfF5/ThRa7ATXV+lA2pQz9ADvMO4GQ/2w6SpW 6b96Tq7ymBgsXVNejcm3IiUMLZXjS34jkuBDB5kGYlYJIZI9pVLk37LsV93WDMY= X-Received: by 2002:a05:6a20:f3a7:b0:1b0:278e:34a6 with SMTP id adf61e73a8af0-1b264636f38mr300967637.49.1717020522470; Wed, 29 May 2024 15:08:42 -0700 (PDT) Received: from ghost ([2601:647:5700:6860:32f9:8d5b:110a:1952]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fc3552ffsm8482750b3a.80.2024.05.29.15.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:08:42 -0700 (PDT) Date: Wed, 29 May 2024 15:08:39 -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 02/16] riscv: add ISA extension parsing for Zimop Message-ID: References: <20240517145302.971019-1-cleger@rivosinc.com> <20240517145302.971019-3-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-3-cleger@rivosinc.com> On Fri, May 17, 2024 at 04:52:42PM +0200, Cl?ment L?ger wrote: > Add parsing for Zimop ISA extension which was ratified in commit > 58220614a5f 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 1f2d2599c655..b1896dade74c 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -80,6 +80,7 @@ > #define RISCV_ISA_EXT_ZFA 71 > #define RISCV_ISA_EXT_ZTSO 72 > #define RISCV_ISA_EXT_ZACAS 73 > +#define RISCV_ISA_EXT_ZIMOP 74 Since my changes for removing xandespmu haven't landed here yet I think you should keep RISCV_ISA_EXT_XANDESPMU in the diff here and make RISCV_ISA_EXT_ZIMOP have a key of 75. Palmer can probably resolve the conflicting keys when these two series are merged. - Charlie > > #define RISCV_ISA_EXT_XLINUXENVCFG 127 > > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c > index 2993318b8ea2..41f8ae22e7a0 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -241,6 +241,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { > __RISCV_ISA_EXT_DATA(zihintntl, RISCV_ISA_EXT_ZIHINTNTL), > __RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE), > __RISCV_ISA_EXT_DATA(zihpm, RISCV_ISA_EXT_ZIHPM), > + __RISCV_ISA_EXT_DATA(zimop, RISCV_ISA_EXT_ZIMOP), > __RISCV_ISA_EXT_DATA(zacas, RISCV_ISA_EXT_ZACAS), > __RISCV_ISA_EXT_DATA(zfa, RISCV_ISA_EXT_ZFA), > __RISCV_ISA_EXT_DATA(zfh, RISCV_ISA_EXT_ZFH), > -- > 2.43.0 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv