<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="en-CN" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<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="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Aptos",sans-serif">Ping…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Aptos",sans-serif">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Aptos",sans-serif">Sam<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">From:
</span></b><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">Samuel Zhang <guoqing.zhang@amd.com><br>
<b>Date: </b>Monday, April 14, 2025 at 18:47<br>
<b>To: </b>amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc: </b>Zhao, Victor <Victor.Zhao@amd.com>, Chang, HaiJun <HaiJun.Chang@amd.com>, Deng, Emily <Emily.Deng@amd.com>, Zhang, GuoQing (Sam) <GuoQing.Zhang@amd.com><br>
<b>Subject: </b>[PATCH 0/6] enable switching to new gpu index for hibernate on SRIOV.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">On SRIOV and VM environment, customer may need to switch to new vGPU indexes<br>
after hibernate and then resume the VM. For GPUs with XGMI, `vram_start` will <br>
change in this case, the VRAM aperture gpu address of VRAM BOs will also change.<br>
These gpu addresses need to be updated when resume. But these addresses are all<br>
over the KMD codebase, updating each of them is error-prone and not acceptable. <br>
<br>
The solution is to use pdb0 page table to cover both vram and gart memory and<br>
use pdb0 virtual gpu address instead. When gpu indexes change, the virtual gpu <br>
address won't change.<br>
<br>
For psp and smu, pdb0's gpu address does not work, so the original gpu address<br>
is used instead. They need to be updated when resume with changed vGPUs.<br>
<br>
The last 2 patches fix the issues we hit when testing this feature.<br>
<br>
Samuel Zhang (6):<br>
drm/amdgpu: update XGMI physical node id and GMC configs on resume<br>
drm/amdgpu: update cached GPU addresses for PSP and ucode<br>
drm/amdgpu: update cached GPU addresses for SMU<br>
drm/amdgpu: enable pdb0 for hibernation on SRIOV<br>
drm/amdgpu: fix sdma ring test fail when resume from hibernation<br>
drm/amdgpu: fix fence fallback timer expired error<br>
<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 25 ++++++++++++<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 45 +++++++++++++++-------<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | 1 +<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 7 +++-<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h | 1 +<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 8 +++-<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 24 ++++++++++++<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 3 ++<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h | 2 +<br>
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 39 +++++++++++++------<br>
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 30 ++++++++++++---<br>
drivers/gpu/drm/amd/amdgpu/vega20_ih.c | 18 ++++++++-<br>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 30 +++++++++++++++<br>
14 files changed, 199 insertions(+), 36 deletions(-)<br>
<br>
-- <br>
2.43.5<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>