From: Florian Weimer <fweimer@redhat.com>
To: Peter Bergner <bergner@oss.tenstorrent.com>
Cc: "Andy Chiu" <tchiu@tenstorrent.com>,
"Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org,
kito.cheng@sifive.com, dfustini@oss.tenstorrent.com,
greentime.hu@sifive.com,
"Andrew Jones" <andrew.jones@oss.qualcomm.com>,
"Nutty Liu" <nutty.liu@hotmail.com>,
"Pincheng Wang" <pincheng.plct@isrc.iscas.ac.cn>,
"Yao Zihong" <zihong.plct@isrc.iscas.ac.cn>,
"Xu Lu" <luxu.kernel@bytedance.com>,
"Aleksa Paunovic" <aleksa.paunovic@htecgroup.com>,
"Jingwei Wang" <wangjingwei@iscas.ac.cn>,
"Zong Li" <zong.li@sifive.com>,
"Deepak Gupta" <debug@rivosinc.com>,
"Clément Léger" <cleger@rivosinc.com>,
linux-api@vger.kernel.org,
"Jeffrey Law" <jeffrey.law@oss.qualcomm.com>
Subject: Re: [PATCH 1/2] riscv: hwprobe: export the availability of vector to user
Date: Tue, 18 Aug 2026 09:29:26 +0200 [thread overview]
Message-ID: <lhuzeyjanu1.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <d889d09d-951e-4414-95bb-625bcab7af9b@oss.tenstorrent.com> (Peter Bergner's message of "Thu, 6 Aug 2026 12:09:00 -0500")
* Peter Bergner:
> On 8/6/26 1:31 AM, Florian Weimer wrote:
>>
>> And if RISCV_HWPROBE_KEY_IMA_EXT_0 comes back at -1, we'd turn on V
>> unconditionally?
>
> No. The unknown key (RISCV_HWPROBE_KEY_IMA_EXT_0 in this case) field would
> be reset to -1, but the value field (which is what we test for the presence
> of V and other extensions in the resolver) is set to 0, so we would not enable
> any ifuncs in that case.
I assumed, but didn't write, that there would be a separate probe for
the V extension.
> For kernels that know about RISCV_HWPROBE_KEY_IMA_EXT_0, but not the
> new key RISCV_HWPROBE_KEY_EXT_ENABLED, the key field holding
> RISCV_HWPROBE_KEY_EXT_ENABLED will be reset to -1 and its value field
> set to 0, while the value field associated with
> RISCV_HWPROBE_KEY_IMA_EXT_0 will be set to the "extension is present"
> value. This still suffers from the (already existing) we'll enable V
> ifuncs issue you mentioned if prctl was used to disable V, but as you
> say, it will be fixed with a kernel upgrade.
Okay, that's fair. I'm happy if there's no difficult-to-test prctl path
that we need to maintain indefinitely.
Thanks,
Florian
prev parent reply other threads:[~2026-08-18 7:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260723222109.2229089-1-tchiu@tenstorrent.com>
[not found] ` <20260723222109.2229089-2-tchiu@tenstorrent.com>
2026-07-24 12:53 ` [PATCH 1/2] riscv: hwprobe: export the availability of vector to user Florian Weimer
2026-08-05 18:40 ` [EXT] " Peter Bergner
2026-08-06 6:31 ` Florian Weimer
2026-08-06 17:09 ` Peter Bergner
2026-08-18 7:29 ` Florian Weimer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lhuzeyjanu1.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=aleksa.paunovic@htecgroup.com \
--cc=alex@ghiti.fr \
--cc=andrew.jones@oss.qualcomm.com \
--cc=aou@eecs.berkeley.edu \
--cc=bergner@oss.tenstorrent.com \
--cc=cleger@rivosinc.com \
--cc=corbet@lwn.net \
--cc=debug@rivosinc.com \
--cc=dfustini@oss.tenstorrent.com \
--cc=greentime.hu@sifive.com \
--cc=jeffrey.law@oss.qualcomm.com \
--cc=kito.cheng@sifive.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=luxu.kernel@bytedance.com \
--cc=nutty.liu@hotmail.com \
--cc=palmer@dabbelt.com \
--cc=pincheng.plct@isrc.iscas.ac.cn \
--cc=pjw@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=tchiu@tenstorrent.com \
--cc=wangjingwei@iscas.ac.cn \
--cc=zihong.plct@isrc.iscas.ac.cn \
--cc=zong.li@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox