Commit 6b0d7803 authored by Luqmaan Irshad's avatar Luqmaan Irshad Committed by Alex Deucher

drm/amd/amdgpu: Update PF2VF Header

Adding a new field for GPU Capacity to align the header with the host.
Signed-off-by: default avatarLuqmaan Irshad <Luqmaan.Irshad@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 526b184e
...@@ -158,7 +158,7 @@ struct amd_sriov_msg_pf2vf_info_header { ...@@ -158,7 +158,7 @@ struct amd_sriov_msg_pf2vf_info_header {
uint32_t reserved[2]; uint32_t reserved[2];
}; };
#define AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE (48) #define AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE (49)
struct amd_sriov_msg_pf2vf_info { struct amd_sriov_msg_pf2vf_info {
/* header contains size and version */ /* header contains size and version */
struct amd_sriov_msg_pf2vf_info_header header; struct amd_sriov_msg_pf2vf_info_header header;
...@@ -209,6 +209,8 @@ struct amd_sriov_msg_pf2vf_info { ...@@ -209,6 +209,8 @@ struct amd_sriov_msg_pf2vf_info {
struct amd_sriov_msg_uuid_info uuid_info; struct amd_sriov_msg_uuid_info uuid_info;
/* PCIE atomic ops support flag */ /* PCIE atomic ops support flag */
uint32_t pcie_atomic_ops_support_flags; uint32_t pcie_atomic_ops_support_flags;
/* Portion of GPU memory occupied by VF. MAX value is 65535, but set to uint32_t to maintain alignment with reserved size */
uint32_t gpu_capacity;
/* reserved */ /* reserved */
uint32_t reserved[256 - AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE]; uint32_t reserved[256 - AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment