Re: [EXT] Re: [PATCH 1/2] riscv: hwprobe: export the availability of vector to user
Florian Weimer <[email protected]> Thu, 06 Aug 2026 08:31:48 +0200
| Newsgroups | org.infradead.lists.linux-riscv,org.kernel.vger.linux-api,org.kernel.vger.linux-doc |
|---|---|
| Message-ID | <[email protected]> |
* Peter Bergner: >> We only get a true userspace simplification over hwprobe + prctl if we >> can disable vector extension usage if the kernel does not support >> RISCV_HWPROBE_KEY_EXT_ENABLED (so a V usage regression for older >> kernels). Otherwise we'd have to use the new approach and, as a >> fallback, the old combination of hwprobe and prctl. > > Since the kernel ignores unknown keys, we do get a userspace simplification > over hwprobe + prctl. The plan is for our GLIBC IFUNC resolvers to just have > one hwprobe call (as they do now) with RISCV_HWPROBE_KEY_EXT_ENABLED as the > first key and RISCV_HWPROBE_KEY_IMA_EXT_0 as the second key. And if RISCV_HWPROBE_KEY_IMA_EXT_0 comes back at -1, we'd turn on V unconditionally? That still leaves the existing bug on old kernels, but at least the bug goes away with a kernel upgrade. This isn't too bad. Thanks, Florian _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv