<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-by: Alex Deucher <alexander.deucher@amd.com></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Luqmaan Irshad <Luqmaan.Irshad@amd.com><br>
<b>Sent:</b> Tuesday, April 2, 2024 6:01 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Irshad, Luqmaan <Luqmaan.Irshad@amd.com><br>
<b>Subject:</b> [PATCH] drm/amd/amdgpu: Update PF2VF Header</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Adding a new field for GPU Capacity to align the header with the host.<br>
<br>
Signed-off-by: Luqmaan Irshad <Luqmaan.Irshad@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h b/drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h<br>
index 0de78d6a83fe..fb2b394bb9c5 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h<br>
@@ -158,7 +158,7 @@ struct amd_sriov_msg_pf2vf_info_header {<br>
         uint32_t reserved[2];<br>
 };<br>
 <br>
-#define AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE (48)<br>
+#define AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE (49)<br>
 struct amd_sriov_msg_pf2vf_info {<br>
         /* header contains size and version */<br>
         struct amd_sriov_msg_pf2vf_info_header header;<br>
@@ -209,6 +209,8 @@ struct amd_sriov_msg_pf2vf_info {<br>
         struct amd_sriov_msg_uuid_info uuid_info;<br>
         /* PCIE atomic ops support flag */<br>
         uint32_t pcie_atomic_ops_support_flags;<br>
+       /* Portion of GPU memory occupied by VF.  MAX value is 65535, but set to uint32_t to maintain alignment with reserved size */<br>
+       uint32_t gpu_capacity;<br>
         /* reserved */<br>
         uint32_t reserved[256 - AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE];<br>
 };<br>
-- <br>
2.44.0<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>