[PATCH v2 1/1] riscv: Add RVV memset via multiarch/IFUNC

Jeff Law jlaw@ventanamicro.com
Wed Nov 5 19:36:28 GMT 2025


On 11/5/25 12:23 PM, Darius Rad wrote:

>>
>> We've had approval for the riscv probe stuff for roughly a year, the only
>> reason it hasn't moved forward is I didn't have the time to push the
>> approved patch into the tree.  Yao has kindly picked up the effort and it's
>> ready to move forward.   hwprobe is the approved mechanism to handle this
>> stuff across the various relevant projects.  If there's capabilities missing
>> in that interface, then that's what needs to be fixed.  But we shouldn't
>> make perfect be the enemy of the good IMHO.
> 
> So do that first, or use dl_hwcap until it is available.  Don't break
> something that's working.
But that is precisely the code you are insisting Yao change.  That code 
uses hwprobe in both paths and totally avoids dl_hwcap per the agreed 
upon design.

User space turning the vector unit on/off, while interesting, should not 
drive this discussion.  That needs to go back to the kernel and glibc 
teams to figure out if/how it should be supported within the hwprobe 
framework.


Jeff



More information about the Libc-alpha mailing list