From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 DE7BB289345 for ; Thu, 24 Apr 2025 16:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745512919; cv=none; b=pyaVBOBRz5gb40wussHewvMtDcUrT/wi9D/wabMp2uc2ARFHMjT8I7A8q+tXObVoEX0D0d85JZXPbC7+QU07Mk8KUar/nvxCefZAs8F1QQLtyPYduy0lWrnNOkXK3BxKC1MsqI2TDGZ06ukixkzKlSV/b0zP/KH7uf4ZYkXN950= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745512919; c=relaxed/simple; bh=vye0Q+xd1G2Olnf5Qkr8nib/GWDRlQm+UGeZYjZUyDA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WbPSmNtEh04Mrnc7Az/o7QMt5cPAfob1PYyz9pwE9uo3iXY2d3C6scVYF46b242FnmBzDwYgJaoVZ9kW/NFBtwvHBBYj273sEdJG7h4u+onpsRJl4dAgxwXxB72tKeoABUy0jGBc0gwAX6+EK/Navqve3I/A5Sf4AFrhrLLiowg= 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=vt7T0uzd; arc=none smtp.client-ip=209.85.210.176 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 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="vt7T0uzd" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-73bf5aa95e7so1221092b3a.1 for ; Thu, 24 Apr 2025 09:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1745512916; x=1746117716; 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=k6m4QSCkOjvBeG8/Kperh6wZuRGbtha7PIChY6FuIlM=; b=vt7T0uzd3xCze3Zzyzjt6oEBKu5b2AaMF+bEL0x1WfJmo4ncPEEJHxQG9zfcis/Kwx xahjvt8L0fz/GsUWvTYMadKC40Y3zgw5Vj/Bg/B+E9IfGRpYntx5JPA6qXHyXJywlCbw biLB7vMtyYOyIxwfNlsW2xGWIxIU7Mq8SCI1F/1SnDyWqTzKzLDLl3U6wnksQ8jZfj77 3YYI4PhAenG/mAaDMYSsi4PkpMu/k1Hi7XbYXadK3K3CXlDrvFtQjLVaFQ/APbqalqcZ uGCMIyBp0jytuhdm4FN+sbkfo2YPgMosChYFZjXIJ7F2OiHQNGi0YRlu1TUMK5rxwd2g fGkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745512916; x=1746117716; 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=k6m4QSCkOjvBeG8/Kperh6wZuRGbtha7PIChY6FuIlM=; b=ppGT50LN7b/LGMNqjwbHCiOpi7y1Fh7RiIFi8inj021oRR66MX0nNVQEwtkhl1wwxs zyOcwQrf4M2sr+f/ZgAU4rBCEcvk0SCFiNhIf6kNiFlxYhEPE+LUPf5AlLbXI9iIkJEd Y9hxVQafVgxfziqZebX4FnM+MViKuwBXWxMf12c1QJM9QXCQyLogwIw/haQSMqoRvlWP a9QYo7H1OhDMTqWp69haknOxevYKliBOsAG/NDndUWoji+MZ7c1eMqSsyv4BT/CuB6jr UX5CR6YWHAI3kvdhOLy+Evk0ODAQGBXwdee+Eme2J3RTtt2yNUw51pSETOfhjZP9TfAA /ZRw== X-Forwarded-Encrypted: i=1; AJvYcCXG1huh9MXkdvcA3XeyMIaZorha6x1rPVaC+M9HpeSW2S12P16wLUbhv9freF6TwFKYtvVMwZV8s40w@vger.kernel.org X-Gm-Message-State: AOJu0Yx+xKGa+CHew3aqHXAA3Nf453WKnNLZrmzQ9qflMHFwebk0RjlT IMTwF35/aaTaLYUijYUQFApyANW4/hpgNb6gfgx6Tk+ZG5UUbDJKjtOi9Yy4Sgo= X-Gm-Gg: ASbGncuAdTKIveP646+UFxZEZbvh2u9sFhViLz2LdmTD85wYyv6lHWAXHKpEUDkp1ni 5ic+F5UNeFIPoEVwak4J3sVMecU1lcj5qGiL02ys67P/m+ddN+PtnuhCXy/wy4Qr902s1ZpG1I8 xsn/+lT0IFS1sMWfdPW5Kalj02Gx+f30USQGZ1jKoqryplLTXtzR8jenYyWMpUJTmURxPe1hjpd UlX4DqVodYlt/2yI3+k5Dht5zOqHjmeKdwQ8gpQqbIJZzBEwTgdEM8j+V4PM6DAzLjpNQ5x3LQK ViK2A2ran9tn4thhzJmvz5kG6If83kWgo5Bpk/QFkuGC+LSeaek= X-Google-Smtp-Source: AGHT+IGxyp+KENwVEkLGrt7S8pn2vlKD8bBJVWEd1Iv8ULUIPojD/9R2kqNR1Mge6+txkrxVbJHCXA== X-Received: by 2002:a05:6a21:6d8e:b0:1f5:8072:d7f3 with SMTP id adf61e73a8af0-20444fc0e44mr4794400637.30.1745512916109; Thu, 24 Apr 2025 09:41:56 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b15f76f48b2sm1462741a12.8.2025.04.24.09.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Apr 2025 09:41:55 -0700 (PDT) Date: Thu, 24 Apr 2025 09:41:51 -0700 From: Deepak Gupta To: Miquel =?iso-8859-1?Q?Sabat=E9_Sol=E0?= Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andrew Morton , "Liam R. Howlett" , Vlastimil Babka , Lorenzo Stoakes , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Christian Brauner , Peter Zijlstra , Oleg Nesterov , Eric Biederman , Kees Cook , Jonathan Corbet , Shuah Khan , Jann Horn , Conor Dooley , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, alistair.francis@wdc.com, richard.henderson@linaro.org, jim.shu@sifive.com, andybnac@gmail.com, kito.cheng@sifive.com, charlie@rivosinc.com, atishp@rivosinc.com, evan@rivosinc.com, cleger@rivosinc.com, alexghiti@rivosinc.com, samitolvanen@google.com, broonie@kernel.org, rick.p.edgecombe@intel.com, rust-for-linux@vger.kernel.org, Zong Li Subject: Re: [PATCH v13 20/28] riscv/hwprobe: zicfilp / zicfiss enumeration in hwprobe Message-ID: References: <20250424-v5_user_cfi_series-v13-0-971437de586a@rivosinc.com> <20250424-v5_user_cfi_series-v13-20-971437de586a@rivosinc.com> <680a0cd4.050a0220.296475.3867@mx.google.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <680a0cd4.050a0220.296475.3867@mx.google.com> On Thu, Apr 24, 2025 at 12:05:04PM +0200, Miquel Sabaté Solà wrote: >On dj., d’abr. 24 2025, Deepak Gupta wrote: > >Hello, > >> Adding enumeration of zicfilp and zicfiss extensions in hwprobe syscall. >> >> Reviewed-by: Zong Li >> Signed-off-by: Deepak Gupta >> --- >> arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ >> arch/riscv/kernel/sys_hwprobe.c | 2 ++ >> 2 files changed, 4 insertions(+) >> >> diff --git a/arch/riscv/include/uapi/asm/hwprobe.h b/arch/riscv/include/uapi/asm/hwprobe.h >> index c3c1cc951cb9..c1b537b50158 100644 >> --- a/arch/riscv/include/uapi/asm/hwprobe.h >> +++ b/arch/riscv/include/uapi/asm/hwprobe.h >> @@ -73,6 +73,8 @@ struct riscv_hwprobe { >> #define RISCV_HWPROBE_EXT_ZCMOP (1ULL << 47) >> #define RISCV_HWPROBE_EXT_ZAWRS (1ULL << 48) >> #define RISCV_HWPROBE_EXT_SUPM (1ULL << 49) >> +#define RISCV_HWPROBE_EXT_ZICFILP (1ULL << 50) >> +#define RISCV_HWPROBE_EXT_ZICFISS (1ULL << 51) > >Notice that, as it stands in Linux v6.15-rc, this will conflict with the >values for Zicntr and Zihpm. See 4458b8f68dc7 ("riscv: hwprobe: export >Zicntr and Zihpm extensions"). I'd say that you should update these >values. Got it. Noted for next version. > >> #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 bcd3b816306c..d802ff707913 100644 >> --- a/arch/riscv/kernel/sys_hwprobe.c >> +++ b/arch/riscv/kernel/sys_hwprobe.c >> @@ -108,6 +108,8 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, >> EXT_KEY(ZCB); >> EXT_KEY(ZCMOP); >> EXT_KEY(ZICBOZ); >> + EXT_KEY(ZICFILP); >> + EXT_KEY(ZICFISS); >> EXT_KEY(ZICOND); >> EXT_KEY(ZIHINTNTL); >> EXT_KEY(ZIHINTPAUSE); > >Greetings, >Miquel