Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp926221lqb; Wed, 29 May 2024 15:11:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6od10w6knUABGRkIMn18icVVdF5+d3IhMYQXS1N8YyWpi1ytXv/QhOtpTstishzCZBsysAbHXjWJnGxjoMRqGyT50Z1HMwpMqX09MRw== X-Google-Smtp-Source: AGHT+IEzaUaGbRQnCRmST/qxpaIAnrXUjvFx1nliVSLS/cUHpVdtQFGHlqTtwBhmWtlp5q+qlSDc X-Received: by 2002:a05:620a:2590:b0:792:988f:5916 with SMTP id af79cd13be357-794eaead189mr27727185a.5.1717020677154; Wed, 29 May 2024 15:11:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717020677; cv=pass; d=google.com; s=arc-20160816; b=wloKYU/1BoeHGdeGM7XJzE1ztY+rdvtNdXA+0EwMPpoSHXBhB4EZ7ubWdU9dIo+4Io pHDJpsk1f849CpF6RVHcuPavSkT3aiNSyzzpuWIgyyW5dgPyo4EHqlk+zpsncu0FMVTb sWJkHX2diFuoflW6qnM1JqYivhUcDveHJ9dvR8aipuya2sNUvjPDacHkWEjrI+8SouHj zNDj5+hAGdJ/IvuP9rRf0bugGO8auHW0gKdHPgX/kpSf8LKeetebw9Q10tK4LUj+3whG Cu0UfwwRjUfUF/lVy9WxbcvE8lm/DpD7isdifdZclYbuASRNBictsbAFxJ/kcQF80NDU EKSg== 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=sg/QIRblIFtNLWufQCRmoJv7k/DY1a76R2WYQ7BmaYQ=; fh=ld8E1F7MKhv3XNsCtaM+qW/obvfA1L9/tRVyECfNvso=; b=sbOQckq+iigjVFalx0hkHa0H32obJgKsIAYobD6KoFJaG+FDnXUILu0EBCElbdgzUh geYeX7lTPChdFptavdEi9Q91gkX6z8CDerIfn8l4tf4lNybfnb1xS5Hg+f3IZS+g/DET PgN7USbdZUFn8a+Me5Prw7keFTXvf64GseAPuBz58dqbvhhD/Rp8BRDqJmNtXotg4wC3 J3A/kNhddDtG0/BhB0NeGAsQ6f7u4dRPVGQARhXp6nao6IOe3knrYCFVUXLqTQQGZlUk SQE6Tr8ZPMULn8zvL5KxJ6Ai3Y95mkwErJwasvOmqqga5umNYguejbS8nvyH07xUg2u3 Y9Cw==; 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=YgtfFQf0; 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-194734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194734-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abcabb2esi1339970285a.117.2024.05.29.15.11.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:11:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=YgtfFQf0; 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-194734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194734-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C4F6E1C21897 for ; Wed, 29 May 2024 22:11:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56DF21C9EC9; Wed, 29 May 2024 22:11:09 +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="YgtfFQf0" Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 2B4A91C9EA7 for ; Wed, 29 May 2024 22:11:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020668; cv=none; b=bWsYsnTW+hazxuu1nWOkvEYse60Nblc5cATVwjnNRE20f4DZXsmIpvkeYETKD5Tp8YMnWKXx4hRWPBbXQ2i8qoRHF0Y1du/QCVYSRnKEy5wo7HMSk4W+jmGNTQGsQPXXQRJPO+yPB1Gdksc9yQrFoS7mYQJrtsqC9LNlI452cVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020668; c=relaxed/simple; bh=uRvAFkxcT/frJTOw5HpoxiOkaQasgRIj45sCGAc/b00=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dWIlpse563RHP7zsYKHLDV37JNf4kFc3GiOJdX61SO9dHk8cvonGG8mFSgNzs9CPcUgD8ujGvWDkejTNWr85zWGCwZXeSnnyvEyg4aY9Ip+iMW1Vrf6695JGIcnwIFrhgaQlNRclEvZmJpZ0RR5ive+g+qJELBgQdqNnLJSm//o= 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=YgtfFQf0; arc=none smtp.client-ip=209.85.214.177 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-f177.google.com with SMTP id d9443c01a7336-1f449f09476so3205725ad.1 for ; Wed, 29 May 2024 15:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717020666; x=1717625466; 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=sg/QIRblIFtNLWufQCRmoJv7k/DY1a76R2WYQ7BmaYQ=; b=YgtfFQf0IjtritWnPJ1OYavygEZPzyTPeZ9lIi8aqYTHQnWV88qkStO1PJSnOwN8af ahHGYGD9U8/wlJQp2Oh/Ic59hzgakMpqop+6IEwt7nUgJqna89+y0PHKMa8stXbA7sf6 AR+ZennqqZGJdRYAgg2FFLojplfb/CsUNMUBz39STZS1wcNBw/6A5Jxp8Xn1n62mZOAA RCmm9L6mNF5LwWpnIlsYV+KbuQt/6dehbroliHvjjRNz1859P/Roq+Sw9fyg/QW0xv2t FuuHkQU7H2J3xIg8jfBnpXFLjGX66coboake1rA2Vvxq+FA3uIKB++ah2umlyubMMspK IFiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717020666; x=1717625466; 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=sg/QIRblIFtNLWufQCRmoJv7k/DY1a76R2WYQ7BmaYQ=; b=dYlaN7R2Gpb5tTd+Tt23OUvuahcRlvdJBAaGQjXLXtYPqgM6kWjMVZS+OMEYeWhpC2 vVaoQ3pcZW1uK0mpH834VkHZ1OZpdk5SOf9uhnL3SoMXhHCUzkO3/yJOEtYt2SSJmYBU r0AhGfvSuNnIOCLnr4P+UGFOAuST6VIgTyMmkxz8BilARybOR2olcmDAEvsyQNLyo3Du NbRlaLzpN1kepDGo52AZWlP6XDpH09K7hSlYDnswzxQrQ4IDuAGKDEkCGmY5xRv5MoxK aIy/f99IrOWsdisvr7tVaXLx62+XKLcBzLycrkDSY/KBWM4MKPDHupoArLqpMkDEcae2 6geg== X-Forwarded-Encrypted: i=1; AJvYcCXqWxFyT1BeudTbGJrEHSYCAlLw2JFmNjwc5qkcF/wMHxPlt8sfLJcjzsNfI+1KrqMf3QURKt1wc0a1QHs2WwBuAkUOLsNpBpZb8+/E X-Gm-Message-State: AOJu0YyuoRg4sjPZcWwAKjPyyWzwcArIop1iyAr/OU6ZCMk4OZ1dqavN x1FDovUX4zhyhg2T98hnhERZkLbI6T51HsqMSSaF+iltqDXUO9HIIr8lzWSl8aI= X-Received: by 2002:a17:903:183:b0:1f4:9b48:7561 with SMTP id d9443c01a7336-1f61bddd04amr1614855ad.6.1717020666343; Wed, 29 May 2024 15:11:06 -0700 (PDT) Received: from ghost ([2601:647:5700:6860:32f9:8d5b:110a:1952]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f44c968488sm107303805ad.172.2024.05.29.15.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:11:05 -0700 (PDT) Date: Wed, 29 May 2024 15:11:03 -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 03/16] riscv: hwprobe: export Zimop ISA extension Message-ID: References: <20240517145302.971019-1-cleger@rivosinc.com> <20240517145302.971019-4-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-4-cleger@rivosinc.com> On Fri, May 17, 2024 at 04:52:43PM +0200, Cl?ment L?ger wrote: > Export Zimop ISA extension through hwprobe. > > Signed-off-by: Cl?ment L?ger > --- > Documentation/arch/riscv/hwprobe.rst | 4 ++++ > arch/riscv/include/uapi/asm/hwprobe.h | 1 + > arch/riscv/kernel/sys_hwprobe.c | 1 + > 3 files changed, 6 insertions(+) > > diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/riscv/hwprobe.rst > index 204cd4433af5..48be38e0b788 100644 > --- a/Documentation/arch/riscv/hwprobe.rst > +++ b/Documentation/arch/riscv/hwprobe.rst > @@ -192,6 +192,10 @@ The following keys are defined: > supported as defined in the RISC-V ISA manual starting from commit > d8ab5c78c207 ("Zihintpause is ratified"). > > + * :c:macro:`RISCV_HWPROBE_EXT_ZIMOP`: The Zimop May-Be-Operations extension is > + supported as defined in the RISC-V ISA manual starting from commit > + 58220614a5f ("Zimop is ratified/1.0"). > + > * :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains performance > information about the selected set of processors. > > diff --git a/arch/riscv/include/uapi/asm/hwprobe.h b/arch/riscv/include/uapi/asm/hwprobe.h > index 31c570cbd1c5..3b16a12204b1 100644 > --- a/arch/riscv/include/uapi/asm/hwprobe.h > +++ b/arch/riscv/include/uapi/asm/hwprobe.h > @@ -60,6 +60,7 @@ struct riscv_hwprobe { > #define RISCV_HWPROBE_EXT_ZACAS (1ULL << 34) > #define RISCV_HWPROBE_EXT_ZICOND (1ULL << 35) > #define RISCV_HWPROBE_EXT_ZIHINTPAUSE (1ULL << 36) > +#define RISCV_HWPROBE_EXT_ZIMOP (1ULL << 37) > #define RISCV_HWPROBE_KEY_CPUPERF_0 5 > #define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0) > #define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0) > diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprobe.c > index 969ef3d59dbe..fc6f4238f0b3 100644 > --- a/arch/riscv/kernel/sys_hwprobe.c > +++ b/arch/riscv/kernel/sys_hwprobe.c > @@ -112,6 +112,7 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, > EXT_KEY(ZACAS); > EXT_KEY(ZICOND); > EXT_KEY(ZIHINTPAUSE); > + EXT_KEY(ZIMOP); > > if (has_vector()) { > EXT_KEY(ZVBB); > -- > 2.43.0 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv Reviewed-by: Charlie Jenkins