<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=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:宋体;}
p.plaintext, li.plaintext, div.plaintext
        {mso-style-name:plaintext;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:宋体;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:DengXian;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1302730390;
        mso-list-template-ids:1004170488;}
@list l0:level2
        {mso-level-start-at:0;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-start-at:0;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level4
        {mso-level-start-at:0;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-start-at:0;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-start-at:0;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level7
        {mso-level-start-at:0;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-start-at:0;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-start-at:0;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1
        {mso-list-id:1646272050;
        mso-list-template-ids:567702136;}
@list l1:level2
        {mso-level-start-at:0;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level3
        {mso-level-start-at:0;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level4
        {mso-level-start-at:0;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level5
        {mso-level-start-at:0;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level6
        {mso-level-start-at:0;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level7
        {mso-level-start-at:0;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level8
        {mso-level-start-at:0;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level9
        {mso-level-start-at:0;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style>
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<p style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian"><o:p> </o:p></span></p>
<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="color:black">发件人</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Wang,
 Yang(Kevin) <KevinYang.Wang@amd.com><br>
</span><b><span style="color:black">日期</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">
</span><span style="color:black">星期三</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">, 2022</span><span style="color:black">年</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">5</span><span style="color:black">月</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">25</span><span style="color:black">日</span><span style="font-family:"Calibri",sans-serif;color:black">
</span><span style="color:black">下午</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">2:52<br>
</span><b><span style="color:black">收件人</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Yang, Stanley <Stanley.Yang@amd.com>, amd-gfx@lists.freedesktop.org
 <amd-gfx@lists.freedesktop.org>, Zhang, Hawking <Hawking.Zhang@amd.com>, Zhou1, Tao <Tao.Zhou1@amd.com>, Quan, Evan <Evan.Quan@amd.com>, Lazar, Lijo <Lijo.Lazar@amd.com><br>
</span><b><span style="color:black">主题</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Re: [PATCH Review v3 2/2] drm/amdgpu: print umc
 correctable error address<o:p></o:p></span></p>
</div>
<p style="margin:5.0pt"><span lang="EN-US" 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"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> amd-gfx <amd-gfx-bounces@lists.freedesktop.org>
 on behalf of Stanley.Yang <Stanley.Yang@amd.com><br>
<b>Sent:</b> Wednesday, May 25, 2022 2:10 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Zhang, Hawking <Hawking.Zhang@amd.com>; Zhou1, Tao <Tao.Zhou1@amd.com>; Quan, Evan <Evan.Quan@amd.com>; Lazar, Lijo <Lijo.Lazar@amd.com><br>
<b>Cc:</b> Yang, Stanley <Stanley.Yang@amd.com><br>
<b>Subject:</b> [PATCH Review v3 2/2] drm/amdgpu: print umc correctable error address</span><span lang="EN-US">
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Changed from V1:<br>
        remove unnecessary same row physical address calculation<br>
<br>
Changed from V2:<br>
        move record_ce_addr_supported to umc_ecc_info struct<br>
<br>
Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h       |  5 ++<br>
 drivers/gpu/drm/amd/amdgpu/umc_v6_7.c         | 50 ++++++++++++++++++-<br>
 .../drm/amd/pm/swsmu/smu13/aldebaran_ppt.c    |  1 +<br>
 3 files changed, 54 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h<br>
index 28e603243b67..bf5a95104ec1 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h<br>
@@ -333,6 +333,11 @@ struct ecc_info_per_ch {<br>
 <br>
 struct umc_ecc_info {<br>
         struct ecc_info_per_ch ecc[MAX_UMC_CHANNEL_NUM];<br>
+<br>
+       /* Determine smu ecctable whether support<br>
+        * record correctable error address<br>
+        */<br>
+       int record_ce_addr_supported;<br>
 };<br>
 <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">[kevin]:<o:p></o:p></span></p>
</div>
<div>
<ol start="1" type="1">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
<span lang="EN-US" style="font-family:"Calibri",sans-serif">the new field of </span><i><span lang="EN-US" style="font-size:11.0pt;font-family:"Segoe UI",sans-serif;color:black;background:white">record_ce_addr_supported </span></i><span lang="EN-US" style="font-family:"Calibri",sans-serif">is
 not set on sienna_cichlid chip.</span><span lang="EN-US" style="font-size:11.0pt"><o:p></o:p></span></li></ol>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian">Stanley: Sienna_cichild not support this feature, so do not set record_ce_addr_supported.<o:p></o:p></span></p>
</div>
<ol start="1" type="1">
<li class="plaintext" style="mso-list:l1 level1 lfo2"><span lang="EN-US" style="font-size:11.0pt">and this field is better to renamed to others when this ecc table(pmfw side) update again in the furture. .e.g: ecc_table_version<o:p></o:p></span></li></ol>
<p class="plaintext"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian">Stanley: To name record_ce_addr_supported is more intuitive then using ecc_table_version or others.<o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Best Regards<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Kevin</span><span lang="EN-US" style="font-size:11.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="font-size:11.0pt"> struct amdgpu_ras {</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v6_7.c b/drivers/gpu/drm/amd/amdgpu/umc_v6_7.c</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">index 606892dbea1c..bf7524f16b66 100644</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">--- a/drivers/gpu/drm/amd/amdgpu/umc_v6_7.c</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+++ b/drivers/gpu/drm/amd/amdgpu/umc_v6_7.c</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">@@ -119,6 +119,24 @@ static void umc_v6_7_ecc_info_query_correctable_error_count(struct amdgpu_device</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                 *error_count += 1;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                 umc_v6_7_query_error_status_helper(adev, mc_umc_status, umc_reg_offset);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+               if (ras->umc_ecc.record_ce_addr_supported)      {</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       uint64_t err_addr, soc_pa;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       uint32_t channel_index =</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                               adev->umc.channel_idx_tbl[umc_inst * adev->umc.channel_inst_num + ch_inst];</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       err_addr = ras->umc_ecc.ecc[eccinfo_table_idx].mca_ceumc_addr;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       err_addr = REG_GET_FIELD(err_addr, MCA_UMC_UMC0_MCUMC_ADDRT0, ErrorAddr);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       /* translate umc channel address to soc pa, 3 parts are included */</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       soc_pa = ADDR_OF_8KB_BLOCK(err_addr) |</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                       ADDR_OF_256B_BLOCK(channel_index) |</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                       OFFSET_IN_256B_BLOCK(err_addr);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       /* The umc channel bits are not original values, they are hashed */</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       SET_CHANNEL_HASH(channel_index, soc_pa);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       dev_info(adev->dev, "Error Address(PA): 0x%llx\n", soc_pa);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+               }</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">         }</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> }</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">@@ -251,7 +269,9 @@ static void umc_v6_7_ecc_info_query_ras_error_address(struct amdgpu_device *adev</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> static void umc_v6_7_query_correctable_error_count(struct amdgpu_device *adev,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                                                    uint32_t umc_reg_offset,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">-                                                  unsigned long *error_count)</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                                  unsigned long *error_count,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                                  uint32_t ch_inst,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                                  uint32_t umc_inst)</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> {</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">         uint32_t ecc_err_cnt_sel, ecc_err_cnt_sel_addr;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">         uint32_t ecc_err_cnt, ecc_err_cnt_addr;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">@@ -295,6 +315,31 @@ static void umc_v6_7_query_correctable_error_count(struct amdgpu_device *adev,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                 *error_count += 1;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                 umc_v6_7_query_error_status_helper(adev, mc_umc_status, umc_reg_offset);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+               {</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       uint64_t err_addr, soc_pa;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       uint32_t mc_umc_addrt0;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       uint32_t channel_index;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       mc_umc_addrt0 =</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                               SOC15_REG_OFFSET(UMC, 0, regMCA_UMC_UMC0_MCUMC_ADDRT0);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       channel_index =</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                               adev->umc.channel_idx_tbl[umc_inst * adev->umc.channel_inst_num + ch_inst];</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       err_addr = RREG64_PCIE((mc_umc_addrt0 + umc_reg_offset) * 4);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       err_addr = REG_GET_FIELD(err_addr, MCA_UMC_UMC0_MCUMC_ADDRT0, ErrorAddr);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       /* translate umc channel address to soc pa, 3 parts are included */</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       soc_pa = ADDR_OF_8KB_BLOCK(err_addr) |</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                       ADDR_OF_256B_BLOCK(channel_index) |</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                       OFFSET_IN_256B_BLOCK(err_addr);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       /* The umc channel bits are not original values, they are hashed */</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       SET_CHANNEL_HASH(channel_index, soc_pa);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                       dev_info(adev->dev, "Error Address(PA): 0x%llx\n", soc_pa);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+               }</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">         }</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> }</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">@@ -395,7 +440,8 @@ static void umc_v6_7_query_ras_error_count(struct amdgpu_device *adev,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                                                          ch_inst);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                 umc_v6_7_query_correctable_error_count(adev,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                                                        umc_reg_offset,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">-                                                      &(err_data->ce_count));</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                                      &(err_data->ce_count),</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+                                                      ch_inst, umc_inst);</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                 umc_v6_7_querry_uncorrectable_error_count(adev,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                                                           umc_reg_offset,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                                                           &(err_data->ue_count));</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">index 9cdfeea58085..c7e0fec614ea 100644</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">@@ -1883,6 +1883,7 @@ static ssize_t aldebaran_get_ecc_info(struct smu_context *smu,</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                         ecc_info_per_channel->mca_ceumc_addr =</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                                 ecc_table->EccInfo_V2[i].mca_ceumc_addr;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">                 }</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">+               eccinfo->record_ce_addr_supported =1;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">         }</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">         return ret;</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">-- </span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:11.0pt">2.17.1</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>