<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[AMD Official Use Only - AMD Internal Distribution Only]<br>
</p>
<br>
<div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Please help us review this patch.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thanks!</div>
<div id="appendonsend"></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Bokun Zhang <bokun.zhang@amd.com><br>
<b>Sent:</b> Wednesday, December 11, 2024 4:48 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Zhang, Bokun <Bokun.Zhang@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu/vcn: reset fw_shared under SRIOV</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">- The previous patch only considered the case for baremetal<br>
and not applicable for SRIOV code path. We also need to<br>
init fw_share for SRIOV VF<br>
<br>
Signed-off-by: Bokun Zhang <bokun.zhang@amd.com><br>
Change-Id: If26a377a2fe8f2aa09bfa21fc54bf26e80fd564c<br>
---<br>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 2 ++<br>
1 file changed, 2 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c<br>
index eeade7366e82..ecdc027f8220 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c<br>
@@ -957,6 +957,8 @@ static int vcn_v4_0_3_start_sriov(struct amdgpu_device *adev)<br>
for (i = 0; i < adev->vcn.num_vcn_inst; i++) {<br>
vcn_inst = GET_INST(VCN, i);<br>
<br>
+ vcn_v4_0_3_fw_shared_init(adev, vcn_inst);<br>
+<br>
memset(&header, 0, sizeof(struct mmsch_v4_0_3_init_header));<br>
header.version = MMSCH_VERSION;<br>
header.total_size = sizeof(struct mmsch_v4_0_3_init_header) >> 2;<br>
-- <br>
2.34.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>