<html xmlns:v="urn:schemas-microsoft-com:vml" 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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F4E79;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<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="WordSection1">
<p class="MsoNormal"><span style="color:#1F4E79">Reviewed By Zhigang Luo <Zhigang.Luo@amd.com><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Lu, Victor Cheng Chi (Victor) <VictorChengChi.Lu@amd.com>
<br>
<b>Sent:</b> Friday, February 16, 2024 1:50 PM<br>
<b>To:</b> Luo, Zhigang <Zhigang.Luo@amd.com><br>
<b>Subject:</b> Fw: [PATCH 3/4] drm/amdgpu: Use correct SRIOV macro for gmc_v9_0_vm_fault_interrupt_state<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:5.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue">[AMD Official Use Only - General]<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Lu, Victor Cheng Chi (Victor) <<a href="mailto:VictorChengChi.Lu@amd.com">VictorChengChi.Lu@amd.com</a>><br>
<b>Sent:</b> Tuesday, January 2, 2024 12:30 PM<br>
<b>To:</b> <a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a> <<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>><br>
<b>Cc:</b> Chander, Vignesh <<a href="mailto:Vignesh.Chander@amd.com">Vignesh.Chander@amd.com</a>>; Lu, Victor Cheng Chi (Victor) <<a href="mailto:VictorChengChi.Lu@amd.com">VictorChengChi.Lu@amd.com</a>><br>
<b>Subject:</b> [PATCH 3/4] drm/amdgpu: Use correct SRIOV macro for gmc_v9_0_vm_fault_interrupt_state</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Under SRIOV, programming to VM_CONTEXT*_CNTL regs failed because the<br>
current macro does not pass through the correct xcc instance.<br>
Use the *REG32_XCC macro in this case.<br>
<br>
The behaviour without SRIOV is the same.<br>
<br>
Signed-off-by: Victor Lu <<a href="mailto:victorchengchi.lu@amd.com">victorchengchi.lu@amd.com</a>><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c<br>
index 473a774294ce..e2e14d40109c 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c<br>
@@ -496,14 +496,14 @@ static int gmc_v9_0_vm_fault_interrupt_state(struct amdgpu_device *adev,<br>
                                 if (j >= AMDGPU_MMHUB0(0))<br>
                                         tmp = RREG32_SOC15_IP(MMHUB, reg);<br>
                                 else<br>
-                                       tmp = RREG32_SOC15_IP(GC, reg);<br>
+                                       tmp = RREG32_XCC(reg, j);<br>
 <br>
                                 tmp &= ~bits;<br>
 <br>
                                 if (j >= AMDGPU_MMHUB0(0))<br>
                                         WREG32_SOC15_IP(MMHUB, reg, tmp);<br>
                                 else<br>
-                                       WREG32_SOC15_IP(GC, reg, tmp);<br>
+                                       WREG32_XCC(reg, tmp, j);<br>
                         }<br>
                 }<br>
                 break;<br>
@@ -524,14 +524,14 @@ static int gmc_v9_0_vm_fault_interrupt_state(struct amdgpu_device *adev,<br>
                                 if (j >= AMDGPU_MMHUB0(0))<br>
                                         tmp = RREG32_SOC15_IP(MMHUB, reg);<br>
                                 else<br>
-                                       tmp = RREG32_SOC15_IP(GC, reg);<br>
+                                       tmp = RREG32_XCC(reg, j);<br>
 <br>
                                 tmp |= bits;<br>
 <br>
                                 if (j >= AMDGPU_MMHUB0(0))<br>
                                         WREG32_SOC15_IP(MMHUB, reg, tmp);<br>
                                 else<br>
-                                       WREG32_SOC15_IP(GC, reg, tmp);<br>
+                                       WREG32_XCC(reg, tmp, j);<br>
                         }<br>
                 }<br>
                 break;<br>
-- <br>
2.34.1<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>