Message ID | 20231220155723.684081-2-cleger@rivosinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-7215-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2737790dyi; Wed, 20 Dec 2023 07:58:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IELV/HfRLUORy37jFKNfm2d/+5Q0fZiRRTongcIuL5Fc2uO3pHpBr90gUxwF0pDX4LVIcjA X-Received: by 2002:a05:622a:1056:b0:425:9280:3110 with SMTP id f22-20020a05622a105600b0042592803110mr28094076qte.97.1703087909203; Wed, 20 Dec 2023 07:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703087909; cv=none; d=google.com; s=arc-20160816; b=E0yZeei3EM7NJRuQl/e87a7sEKt7merNgYQPd/a+k6iSucykfPId9ad5l9613CFRId OoXyGZ3ZCN5pygT/libZU88DXyppFu/iKGm5fLbQ3H8HCNK+JEH/Osj8jMsAjt8fGOSf 8T5Ruy+mVrKdlO5u6yUm6KhWGgxEZllZL7+TSU4XsZ3SiSl/88Q9HdcZzn5lq5kIo/35 61Ef+s5ijqj+xeLaTNd8Yhv64OQJz33JUxR6CfRwIfCDGkQ4+jSdHM+MkvuyLkSMljLU bK2jZGLoPGe0FANiS4cyvFd+kc6aWrjyv/ByUN0qayBcAv/t/IQb4+/7UJ3L2o/Bgth2 iyCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EdmTrlQiysEJ9gRiozTT9JeMo8PxECkQ3IPcbyVimLw=; fh=1hIbTlY9fe47OMjPd4Xg1gGgwqUti2WWb2AlGWqd+q0=; b=N9uwUg22FByG4IhdEsUS+v+7ghI7Y/7LRPFqOlbNkXjzoseiEnUgJ1f2uFJ8srZKFt DsuZ7j9iQDA7VoRn7Z2V7/cxO1d7mzrWfK5fuyoxjKj9UKt5JVWudKAw4ARa+DXTfK12 66oUq7dB96zbkHLU7O69gIEkXzM3TLnsfdGQw9O5KdkEjfWfjh3LsodbpgUxgh3q/hTJ MOxJKCHwTW48IwBoMS+ur/+8bZW1H9XCFZEkLn1Vj0Tb+rkcDcfIaYYUHA7d/PlRXXFY NDyhX5+PkcN/1EEJpvpEtTwhaKheA207vQIUoPfb2OupzVnu+CAmSDyiM0FMoIGnJph5 JsGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=bnh21xvF; spf=pass (google.com: domain of linux-kernel+bounces-7215-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7215-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o3-20020ac87c43000000b004260e7cbe50si13397050qtv.504.2023.12.20.07.58.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 07:58:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7215-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=bnh21xvF; spf=pass (google.com: domain of linux-kernel+bounces-7215-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7215-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E906D1C2401C for <ouuuleilei@gmail.com>; Wed, 20 Dec 2023 15:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C93A47773; Wed, 20 Dec 2023 15:57:47 +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="bnh21xvF" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 C86F54123D for <linux-kernel@vger.kernel.org>; Wed, 20 Dec 2023 15:57:42 +0000 (UTC) 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-wm1-f53.google.com with SMTP id 5b1f17b1804b1-40c192f488cso10756935e9.1 for <linux-kernel@vger.kernel.org>; Wed, 20 Dec 2023 07:57:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1703087861; x=1703692661; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EdmTrlQiysEJ9gRiozTT9JeMo8PxECkQ3IPcbyVimLw=; b=bnh21xvFaTDdR/Fj6UiC+r+Uuaj++HtPKNXaCpId5gSU9PeO08ZUKcfCitiMGLPxGX YnqMCoc9r8TEtRebEu/aPcs5ivmv5RWbiHqb7E56AwxWCbI9GteqtsfzxQ1u54DIRV1f 60Gd4gYWxTBpVYXdj2HhfLWCy472/BsuD3d5wdyZfYFDTkTPmzkVhtIJx05MmECj0do0 qAVKNi7jtLUCtcHaLN4R1yQ97vGNKWzoJUW49prgEvpqXI4mhBmNypITuCDEJEZrWkD1 cTZO3KG5hMYHUcRxmcm8l/dVpDG6l8eA4TCxcLurRRpaz0pMRtHayHQVdnHxxfXirFdo 7J0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703087861; x=1703692661; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EdmTrlQiysEJ9gRiozTT9JeMo8PxECkQ3IPcbyVimLw=; b=pxBDzNqN2P2r3stJPqfY4WrgFBlyTcYgRQZoA/V3krvGAxMyZrSmdBXV9JXnbjlod+ xXDB86CobLjVJu2I1BxCVo1ilpPJZEe9QPwrBK5qTQ1f72SNsnvokkfS94PC1MLt9huF Of4Y8SsMgYD5aAzjD/lIsMgCRWs+s14LUycLeea5e5dE4sPmCcOXWquJz1QHW8GEhdqT jbqBw9Cd/PMTMozNKxqu/H8UvV8iVptBsOMNZ7uelt8BVg+y6Yc37d9mFrBGlKecBmKX AtuZPcKUT+xiYeye3MGDuFPwUs8h350/8hEXUAKllwjCDqgFuyq4pMghnkLykixgSE/t lYDQ== X-Gm-Message-State: AOJu0YwNDSb2tgbJk/mm5118DEqvFgMvW9mss3NZ7uTwqKOJYM9FUHey brhuleaY2rIFjYEKHBODfVZbzA== X-Received: by 2002:a05:600c:81b:b0:40d:2cb9:42f6 with SMTP id k27-20020a05600c081b00b0040d2cb942f6mr3120863wmp.2.1703087861074; Wed, 20 Dec 2023 07:57:41 -0800 (PST) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:3eae:b70:f27f:7aa1]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b003366af9d611sm7279693wrs.22.2023.12.20.07.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 07:57:40 -0800 (PST) From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <cleger@rivosinc.com> To: linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <cleger@rivosinc.com>, Jonathan Corbet <corbet@lwn.net>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Conor Dooley <conor@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Robbin Ehn <rehn@rivosinc.com>, Gianluca Guida <gianluca@rivosinc.com> Subject: [PATCH v2 1/6] riscv: add ISA extension parsing for Ztso Date: Wed, 20 Dec 2023 16:57:17 +0100 Message-ID: <20231220155723.684081-2-cleger@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231220155723.684081-1-cleger@rivosinc.com> References: <20231220155723.684081-1-cleger@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785817107465162810 X-GMAIL-MSGID: 1785817107465162810 |
Series |
riscv: hwprobe: add Zicond, Zacas and Ztso support
|
|
Commit Message
Clément Léger
Dec. 20, 2023, 3:57 p.m. UTC
Add support to parse the Ztso string in the riscv,isa string. The
bindings already supports it but not the ISA parsing code.
Signed-off-by: Clément Léger <cleger@rivosinc.com>
---
arch/riscv/include/asm/hwcap.h | 1 +
arch/riscv/kernel/cpufeature.c | 1 +
2 files changed, 2 insertions(+)
Comments
On Wed, Dec 20, 2023 at 04:57:17PM +0100, Clément Léger wrote: > Add support to parse the Ztso string in the riscv,isa string. The > bindings already supports it but not the ISA parsing code. > > Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Cheers, Conor. > --- > 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 2438d4685da6..3b31efe2f716 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -84,6 +84,7 @@ > #define RISCV_ISA_EXT_ZVFH 69 > #define RISCV_ISA_EXT_ZVFHMIN 70 > #define RISCV_ISA_EXT_ZFA 71 > +#define RISCV_ISA_EXT_ZTSO 72 > > #define RISCV_ISA_EXT_MAX 128 > #define RISCV_ISA_EXT_INVALID U32_MAX > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c > index dc0ab3e97cd2..3eb48a0eecb3 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -279,6 +279,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { > __RISCV_ISA_EXT_DATA(zkt, RISCV_ISA_EXT_ZKT), > __RISCV_ISA_EXT_DATA(zksed, RISCV_ISA_EXT_ZKSED), > __RISCV_ISA_EXT_DATA(zksh, RISCV_ISA_EXT_ZKSH), > + __RISCV_ISA_EXT_DATA(ztso, RISCV_ISA_EXT_ZTSO), > __RISCV_ISA_EXT_SUPERSET(zvbb, RISCV_ISA_EXT_ZVBB, riscv_zvbb_exts), > __RISCV_ISA_EXT_DATA(zvbc, RISCV_ISA_EXT_ZVBC), > __RISCV_ISA_EXT_DATA(zvfh, RISCV_ISA_EXT_ZVFH), > -- > 2.43.0 >
diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index 2438d4685da6..3b31efe2f716 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -84,6 +84,7 @@ #define RISCV_ISA_EXT_ZVFH 69 #define RISCV_ISA_EXT_ZVFHMIN 70 #define RISCV_ISA_EXT_ZFA 71 +#define RISCV_ISA_EXT_ZTSO 72 #define RISCV_ISA_EXT_MAX 128 #define RISCV_ISA_EXT_INVALID U32_MAX diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index dc0ab3e97cd2..3eb48a0eecb3 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -279,6 +279,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { __RISCV_ISA_EXT_DATA(zkt, RISCV_ISA_EXT_ZKT), __RISCV_ISA_EXT_DATA(zksed, RISCV_ISA_EXT_ZKSED), __RISCV_ISA_EXT_DATA(zksh, RISCV_ISA_EXT_ZKSH), + __RISCV_ISA_EXT_DATA(ztso, RISCV_ISA_EXT_ZTSO), __RISCV_ISA_EXT_SUPERSET(zvbb, RISCV_ISA_EXT_ZVBB, riscv_zvbb_exts), __RISCV_ISA_EXT_DATA(zvbc, RISCV_ISA_EXT_ZVBC), __RISCV_ISA_EXT_DATA(zvfh, RISCV_ISA_EXT_ZVFH),