<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">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</p>
</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> Wentland, Harry<br>
<b>Sent:</b> Thursday, March 22, 2018 3:53:57 PM<br>
<b>To:</b> amd-gfx mailing list<br>
<b>Cc:</b> Cheng, Tony; Deucher, Alexander<br>
<b>Subject:</b> Re: [PATCH] drm/amdgpu: Add CM_TEST_DEBUG regs for DCN</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Ping.<br>
<br>
Wonder if I can get an RB or AB for this.<br>
<br>
Harry<br>
<br>
On 2018-03-19 01:45 PM, Harry Wentland wrote:<br>
> We'd like to use them for reading DCN debug status.<br>
> <br>
> Signed-off-by: Harry Wentland <harry.wentland@amd.com><br>
> ---<br>
> <br>
> See patch for where we use them <a href="http://git.amd.com:8080/#/c/137151/1">
http://git.amd.com:8080/#/c/137151/1</a><br>
> <br>
> Tony can comment on details.<br>
> <br>
> Harry<br>
> <br>
>  .../gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_offset.h | 19 ++++++++++++++++---<br>
>  .../drm/amd/include/asic_reg/dcn/dcn_1_0_sh_mask.h    |  8 ++++++++<br>
>  2 files changed, 24 insertions(+), 3 deletions(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_offset.h b/drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_offset.h<br>
> index 4ccf9681c45d..721c61171045 100644<br>
> --- a/drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_offset.h<br>
> +++ b/drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_offset.h<br>
> @@ -3895,6 +3895,10 @@<br>
>  #define mmCM0_CM_MEM_PWR_CTRL_BASE_IDX                                                                 2<br>
>  #define mmCM0_CM_MEM_PWR_STATUS                                                                        0x0d33<br>
>  #define mmCM0_CM_MEM_PWR_STATUS_BASE_IDX                                                               2<br>
> +#define mmCM0_CM_TEST_DEBUG_INDEX                                                                      0x0d35<br>
> +#define mmCM0_CM_TEST_DEBUG_INDEX_BASE_IDX                                                             2<br>
> +#define mmCM0_CM_TEST_DEBUG_DATA                                                                       0x0d36<br>
> +#define mmCM0_CM_TEST_DEBUG_DATA_BASE_IDX                                                              2<br>
>  <br>
>  <br>
>  // addressBlock: dce_dc_dpp0_dispdec_dpp_dcperfmon_dc_perfmon_dispdec<br>
> @@ -4367,7 +4371,10 @@<br>
>  #define mmCM1_CM_MEM_PWR_CTRL_BASE_IDX                                                                 2<br>
>  #define mmCM1_CM_MEM_PWR_STATUS                                                                        0x0e4e<br>
>  #define mmCM1_CM_MEM_PWR_STATUS_BASE_IDX                                                               2<br>
> -<br>
> +#define mmCM1_CM_TEST_DEBUG_INDEX                                                                      0x0e50<br>
> +#define mmCM1_CM_TEST_DEBUG_INDEX_BASE_IDX                                                             2<br>
> +#define mmCM1_CM_TEST_DEBUG_DATA                                                                       0x0e51<br>
> +#define mmCM1_CM_TEST_DEBUG_DATA_BASE_IDX                                                              2<br>
>  <br>
>  // addressBlock: dce_dc_dpp1_dispdec_dpp_dcperfmon_dc_perfmon_dispdec<br>
>  // base address: 0x399c<br>
> @@ -4839,7 +4846,10 @@<br>
>  #define mmCM2_CM_MEM_PWR_CTRL_BASE_IDX                                                                 2<br>
>  #define mmCM2_CM_MEM_PWR_STATUS                                                                        0x0f69<br>
>  #define mmCM2_CM_MEM_PWR_STATUS_BASE_IDX                                                               2<br>
> -<br>
> +#define mmCM2_CM_TEST_DEBUG_INDEX                                                                      0x0f6b<br>
> +#define mmCM2_CM_TEST_DEBUG_INDEX_BASE_IDX                                                             2<br>
> +#define mmCM2_CM_TEST_DEBUG_DATA                                                                       0x0f6c<br>
> +#define mmCM2_CM_TEST_DEBUG_DATA_BASE_IDX                                                              2<br>
>  <br>
>  // addressBlock: dce_dc_dpp2_dispdec_dpp_dcperfmon_dc_perfmon_dispdec<br>
>  // base address: 0x3e08<br>
> @@ -5311,7 +5321,10 @@<br>
>  #define mmCM3_CM_MEM_PWR_CTRL_BASE_IDX                                                                 2<br>
>  #define mmCM3_CM_MEM_PWR_STATUS                                                                        0x1084<br>
>  #define mmCM3_CM_MEM_PWR_STATUS_BASE_IDX                                                               2<br>
> -<br>
> +#define mmCM3_CM_TEST_DEBUG_INDEX                                                                      0x1086<br>
> +#define mmCM3_CM_TEST_DEBUG_INDEX_BASE_IDX                                                             2<br>
> +#define mmCM3_CM_TEST_DEBUG_DATA                                                                       0x1087<br>
> +#define mmCM3_CM_TEST_DEBUG_DATA_BASE_IDX                                                              2<br>
>  <br>
>  // addressBlock: dce_dc_dpp3_dispdec_dpp_dcperfmon_dc_perfmon_dispdec<br>
>  // base address: 0x4274<br>
> diff --git a/drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_sh_mask.h b/drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_sh_mask.h<br>
> index e2a2f114bd8e..e7c0cad41081 100644<br>
> --- a/drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_sh_mask.h<br>
> +++ b/drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_1_0_sh_mask.h<br>
> @@ -14049,6 +14049,14 @@<br>
>  #define CM0_CM_MEM_PWR_STATUS__RGAM_MEM_PWR_STATE__SHIFT                                                      0x2<br>
>  #define CM0_CM_MEM_PWR_STATUS__SHARED_MEM_PWR_STATE_MASK                                                      0x00000003L<br>
>  #define CM0_CM_MEM_PWR_STATUS__RGAM_MEM_PWR_STATE_MASK                                                        0x0000000CL<br>
> +//CM0_CM_TEST_DEBUG_INDEX<br>
> +#define CM0_CM_TEST_DEBUG_INDEX__CM_TEST_DEBUG_INDEX__SHIFT                                                   0x0<br>
> +#define CM0_CM_TEST_DEBUG_INDEX__CM_TEST_DEBUG_WRITE_EN__SHIFT                                                0x8<br>
> +#define CM0_CM_TEST_DEBUG_INDEX__CM_TEST_DEBUG_INDEX_MASK                                                     0x000000FFL<br>
> +#define CM0_CM_TEST_DEBUG_INDEX__CM_TEST_DEBUG_WRITE_EN_MASK                                                  0x00000100L<br>
> +//CM0_CM_TEST_DEBUG_DATA<br>
> +#define CM0_CM_TEST_DEBUG_DATA__CM_TEST_DEBUG_DATA__SHIFT                                                     0x0<br>
> +#define CM0_CM_TEST_DEBUG_DATA__CM_TEST_DEBUG_DATA_MASK                                                       0xFFFFFFFFL<br>
>  <br>
>  <br>
>  // addressBlock: dce_dc_dpp0_dispdec_dpp_dcperfmon_dc_perfmon_dispdec<br>
> <br>
</div>
</span></font></div>
</body>
</html>