lib: utils: Add Implementation ID and Version as RPMI MPXY attributes

The latest frozen RPMI spec has added Implementation ID
and Implementation Version as message protocol specific
mpxy attributes. Add support for these.

Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20250618053854.2577299-1-rpathak@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Rahul Pathak authored and Anup Patel committed 2025-06-24 08:42:27 +05:30
1 parent 13abda5169
commit a5fdef45db
4 files changed
+30 -1

No files matched your search

@@ -523,6 +523,12 @@ static int rpmi_shmem_mbox_get_attribute(struct mbox_chan *chan,
case RPMI_CHANNEL_ATTR_SERVICEGROUP_VERSION:
*((u32 *)out_value) = srvgrp_chan->servicegroup_version;
break;
case RPMI_CHANNEL_ATTR_IMPL_ID:
*((u32 *)out_value) = mctl->impl_id;
break;
case RPMI_CHANNEL_ATTR_IMPL_VERSION:
*((u32 *)out_value) = mctl->impl_version;
break;
default:
return SBI_ENOTSUPP;
}