[PATCH 3/6] RISC-V: hwprobe: Expose Zicboz extension and its block size

Conor Dooley conor.dooley at microchip.com
Thu Aug 10 04:33:54 PDT 2023


On Thu, Aug 10, 2023 at 12:57:30PM +0200, Andrew Jones wrote:
> On Thu, Aug 10, 2023 at 10:49:59AM +0100, Conor Dooley wrote:
> > On Wed, Aug 09, 2023 at 01:55:20PM +0200, Andrew Jones wrote:

> > > +#define EXT_KEY(ext)									\
> > > +	do {										\
> > > +		if (__riscv_isa_extension_available(isainfo->isa, RISCV_ISA_EXT_##ext))	\
> > > +			pair->value |= RISCV_HWPROBE_EXT_##ext;				\
> > > +		else									\
> > > +			missing |= RISCV_HWPROBE_EXT_##ext;				\
> > > +	} while (false)
> > 
> > Would you mind adding a comment here that using this macro is only
> > permitted for extensions that can be used by userspace regardless of kernel
> > config options?
> 
> I can do that. Then, as part of the "extension available" API rework, we
> can maybe drop the comment when we use the new call, which will be
> documented to say that as well.

Yeah, exactly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20230810/cd65d618/attachment.sig>


More information about the linux-riscv mailing list