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
2025-06-18 11:08:53 +05:30
committed by Anup Patel
parent 13abda5169
commit a5fdef45db
4 changed files with 30 additions and 1 deletions

View File

@@ -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;
}