Skip to content

Commit 6b0d780

Browse files
Luqmaan Irshadalexdeucher
authored andcommitted
drm/amd/amdgpu: Update PF2VF Header
Adding a new field for GPU Capacity to align the header with the host. Signed-off-by: Luqmaan Irshad <Luqmaan.Irshad@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 526b184 commit 6b0d780

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ struct amd_sriov_msg_pf2vf_info_header {
158158
uint32_t reserved[2];
159159
};
160160

161-
#define AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE (48)
161+
#define AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE (49)
162162
struct amd_sriov_msg_pf2vf_info {
163163
/* header contains size and version */
164164
struct amd_sriov_msg_pf2vf_info_header header;
@@ -209,6 +209,8 @@ struct amd_sriov_msg_pf2vf_info {
209209
struct amd_sriov_msg_uuid_info uuid_info;
210210
/* PCIE atomic ops support flag */
211211
uint32_t pcie_atomic_ops_support_flags;
212+
/* Portion of GPU memory occupied by VF. MAX value is 65535, but set to uint32_t to maintain alignment with reserved size */
213+
uint32_t gpu_capacity;
212214
/* reserved */
213215
uint32_t reserved[256 - AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE];
214216
};

0 commit comments

Comments
 (0)