diff options
author | Iwona Winiarska <iwona.winiarska@intel.com> | 2022-06-06 22:48:21 +0300 |
---|---|---|
committer | Iwona Winiarska <iwona.winiarska@intel.com> | 2022-06-09 20:57:41 +0300 |
commit | 51062a295e5ab5e8cf485dc78301ef2bdff6f8a6 (patch) | |
tree | eeead9bc8c2a560bcf3e21efffa8a56b736f18d5 /include | |
parent | 01b3a074fe4b9e5861cf0e8ed2be8d703bda3cc0 (diff) | |
download | linux-51062a295e5ab5e8cf485dc78301ef2bdff6f8a6.tar.xz |
soc: aspeed: mctp: Add IOCTL to set own EID
The driver doesn't implement MCTP logic, which means that it requires
its clients to prepare valid MCTP over PCIe packets.
Because we support MCTP stacks in both kernel and userspace, and since
MCTP protocol is a part of userspace, we need userspace to update own
EID information in kernel to provide it for in-kernel aspeed-mctp
clients.
Previously, own EID information was updated by userspace using
SET_EID_INFO which now is deprecated and replaced by SET_EID_EXT_INFO to
pass CPU EID and Domain ID mappings.
To provide own EID information for in-kernel clients, add a dedicated
IOCTL.
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/aspeed-mctp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/uapi/linux/aspeed-mctp.h b/include/uapi/linux/aspeed-mctp.h index d1b253bbe171..ec3a6a0c1357 100644 --- a/include/uapi/linux/aspeed-mctp.h +++ b/include/uapi/linux/aspeed-mctp.h @@ -52,6 +52,7 @@ * mappings and return count which is lesser of the two: requested count and existing count * @ASPEED_MCTP_SET_EID_EXT_INFO: write or overwrite already existing list of * CPU EID and Domain ID mappings + * @ASPEED_MCTP_SET_OWN_EID: write/overwrite own EID information */ struct aspeed_mctp_filter_eid { @@ -101,6 +102,10 @@ struct aspeed_mctp_set_eid_info { __u16 count; }; +struct aspeed_mctp_set_own_eid { + __u8 eid; +}; + #define ASPEED_MCTP_IOCTL_BASE 0x4d #define ASPEED_MCTP_IOCTL_FILTER_EID \ @@ -125,6 +130,7 @@ struct aspeed_mctp_set_eid_info { _IOW(ASPEED_MCTP_IOCTL_BASE, 10, struct aspeed_mctp_get_eid_info) #define ASPEED_MCTP_IOCTL_SET_EID_EXT_INFO \ _IOW(ASPEED_MCTP_IOCTL_BASE, 11, struct aspeed_mctp_set_eid_info) - +#define ASPEED_MCTP_IOCTL_SET_OWN_EID \ + _IOW(ASPEED_MCTP_IOCTL_BASE, 12, struct aspeed_mctp_set_own_eid) #endif /* _UAPI_LINUX_ASPEED_MCTP_H */ |