Re: [PATCH v4 04/23] RISC-V: Add defines for the SBI message proxy extension
From: Anup Patel
Date: Mon Jun 09 2025 - 02:12:48 EST
On Tue, May 27, 2025 at 2:17 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> On Sun, May 25, 2025 at 02:16:51PM +0530, Anup Patel wrote:
> > Add defines for the new SBI message proxy extension which is part
> > of the SBI v3.0 specification.
>
> ...
>
> > +/** RPMI message protocol specific MPXY attributes */
>
> If you do a kernel-doc, do it properly.
Okay, I will update.
>
> > +enum sbi_mpxy_rpmi_attribute_id {
> > + SBI_MPXY_RPMI_ATTR_SERVICEGROUP_ID = SBI_MPXY_ATTR_MSGPROTO_ATTR_START,
> > + SBI_MPXY_RPMI_ATTR_SERVICEGROUP_VERSION,
>
> > + SBI_MPXY_RPMI_ATTR_MAX_ID,
>
> Remove trailing comma for the terminator.
Okay, I will update.
>
> > +};
> > +
> > +/* Encoding of MSG_PROT_VER attribute */
> > +#define SBI_MPXY_MSG_PROT_VER_MAJOR(__ver) (((__ver) >> 16) & 0xffff)
> > +#define SBI_MPXY_MSG_PROT_VER_MINOR(__ver) ((__ver) & 0xffff)
>
> This can utilise GENAMSK() or even upper_16_bits()/lower_16_bits().
Okay, I will update.
Regards,
Anup