<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">
<p style="font-family:Arial;font-size:10pt;color:#0078D7;margin:15pt;" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Might as well add it for gfx9 as well.  With that fixed:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></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> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Tom St Denis <tom.stdenis@amd.com><br>
<b>Sent:</b> Tuesday, June 9, 2020 1:59 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> StDenis, Tom <Tom.StDenis@amd.com><br>
<b>Subject:</b> [PATCH] drm/amd/amdgpu: Add SQ debug registers to GFX10 headers</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Requested for UMR support.<br>
<br>
Signed-off-by: Tom St Denis <tom.stdenis@amd.com><br>
---<br>
 .../include/asic_reg/gc/gc_10_1_0_offset.h    |  1 +<br>
 .../include/asic_reg/gc/gc_10_1_0_sh_mask.h   | 20 +++++++++++++++++++<br>
 .../include/asic_reg/gc/gc_10_3_0_offset.h    |  1 +<br>
 .../include/asic_reg/gc/gc_10_3_0_sh_mask.h   | 19 ++++++++++++++++++<br>
 4 files changed, 41 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_1_0_offset.h b/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_1_0_offset.h<br>
index 075867d4b1da..791dc2b3d74a 100644<br>
--- a/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_1_0_offset.h<br>
+++ b/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_1_0_offset.h<br>
@@ -11151,6 +11151,7 @@<br>
 <br>
 // addressBlock: sqind<br>
 // base address: 0x0<br>
+#define ixSQ_DEBUG_STS_LOCAL                                                                           0x0008<br>
 #define ixSQ_WAVE_MODE                                                                                 0x0101<br>
 #define ixSQ_WAVE_STATUS                                                                               0x0102<br>
 #define ixSQ_WAVE_TRAPSTS                                                                              0x0103<br>
diff --git a/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_1_0_sh_mask.h b/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_1_0_sh_mask.h<br>
index 8b0b9a2a8fed..355e61bed291 100644<br>
--- a/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_1_0_sh_mask.h<br>
+++ b/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_1_0_sh_mask.h<br>
@@ -42546,6 +42546,26 @@<br>
 <br>
 <br>
 // addressBlock: sqind<br>
+//SQ_DEBUG_STS_LOCAL<br>
+#define SQ_DEBUG_STS_LOCAL__BUSY_MASK                                                                         0x00000001L<br>
+#define SQ_DEBUG_STS_LOCAL__BUSY__SHIFT                                                                       0x00000000<br>
+#define SQ_DEBUG_STS_LOCAL__WAVE_LEVEL_MASK                                                                   0x000003f0L<br>
+#define SQ_DEBUG_STS_LOCAL__WAVE_LEVEL__SHIFT                                                                 0x00000004<br>
+#define SQ_DEBUG_STS_LOCAL__SQ_BUSY_MASK                                                                      0x00001000L<br>
+#define SQ_DEBUG_STS_LOCAL__SQ_BUSY__SHIFT                                                                    0x0000000C<br>
+#define SQ_DEBUG_STS_LOCAL__IS_BUSY_MASK                                                                      0x00002000L<br>
+#define SQ_DEBUG_STS_LOCAL__IS_BUSY__SHIFT                                                                    0x0000000D<br>
+#define SQ_DEBUG_STS_LOCAL__IB_BUSY_MASK                                                                      0x00004000L<br>
+#define SQ_DEBUG_STS_LOCAL__IB_BUSY__SHIFT                                                                    0x0000000E<br>
+#define SQ_DEBUG_STS_LOCAL__ARB_BUSY_MASK                                                                     0x00008000L<br>
+#define SQ_DEBUG_STS_LOCAL__ARB_BUSY__SHIFT                                                                   0x0000000F<br>
+#define SQ_DEBUG_STS_LOCAL__EXP_BUSY_MASK                                                                     0x00010000L<br>
+#define SQ_DEBUG_STS_LOCAL__EXP_BUSY__SHIFT                                                                   0x00000010<br>
+#define SQ_DEBUG_STS_LOCAL__BRMSG_BUSY_MASK                                                                   0x00020000L<br>
+#define SQ_DEBUG_STS_LOCAL__BRMSG_BUSY__SHIFT                                                                 0x00000011<br>
+#define SQ_DEBUG_STS_LOCAL__VM_BUSY_MASK                                                                      0x00040000L<br>
+#define SQ_DEBUG_STS_LOCAL__VM_BUSY__SHIFT                                                                    0x00000018<br>
+<br>
 //SQ_WAVE_MODE<br>
 #define SQ_WAVE_MODE__FP_ROUND__SHIFT                                                                         0x0<br>
 #define SQ_WAVE_MODE__FP_DENORM__SHIFT                                                                        0x4<br>
diff --git a/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_offset.h b/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_offset.h<br>
index 71c787d66132..a9a66371b75e 100644<br>
--- a/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_offset.h<br>
+++ b/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_offset.h<br>
@@ -13277,6 +13277,7 @@<br>
 <br>
 // addressBlock: sqind<br>
 // base address: 0x0<br>
+#define ixSQ_DEBUG_STS_LOCAL                                                                           0x0008<br>
 #define ixSQ_WAVE_ACTIVE                                                                               0x000a<br>
 #define ixSQ_WAVE_VALID_AND_IDLE                                                                       0x000b<br>
 #define ixSQ_WAVE_MODE                                                                                 0x0101<br>
diff --git a/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_sh_mask.h b/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_sh_mask.h<br>
index 00bae8e09f84..499a8c3c2693 100644<br>
--- a/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_sh_mask.h<br>
+++ b/drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_sh_mask.h<br>
@@ -46269,6 +46269,25 @@<br>
 <br>
 <br>
 // addressBlock: sqind<br>
+//SQ_DEBUG_STS_LOCAL<br>
+#define SQ_DEBUG_STS_LOCAL__BUSY_MASK                                                                         0x00000001L<br>
+#define SQ_DEBUG_STS_LOCAL__BUSY__SHIFT                                                                       0x00000000<br>
+#define SQ_DEBUG_STS_LOCAL__WAVE_LEVEL_MASK                                                                   0x000003f0L<br>
+#define SQ_DEBUG_STS_LOCAL__WAVE_LEVEL__SHIFT                                                                 0x00000004<br>
+#define SQ_DEBUG_STS_LOCAL__SQ_BUSY_MASK                                                                      0x00001000L<br>
+#define SQ_DEBUG_STS_LOCAL__SQ_BUSY__SHIFT                                                                    0x0000000C<br>
+#define SQ_DEBUG_STS_LOCAL__IS_BUSY_MASK                                                                      0x00002000L<br>
+#define SQ_DEBUG_STS_LOCAL__IS_BUSY__SHIFT                                                                    0x0000000D<br>
+#define SQ_DEBUG_STS_LOCAL__IB_BUSY_MASK                                                                      0x00004000L<br>
+#define SQ_DEBUG_STS_LOCAL__IB_BUSY__SHIFT                                                                    0x0000000E<br>
+#define SQ_DEBUG_STS_LOCAL__ARB_BUSY_MASK                                                                     0x00008000L<br>
+#define SQ_DEBUG_STS_LOCAL__ARB_BUSY__SHIFT                                                                   0x0000000F<br>
+#define SQ_DEBUG_STS_LOCAL__EXP_BUSY_MASK                                                                     0x00010000L<br>
+#define SQ_DEBUG_STS_LOCAL__EXP_BUSY__SHIFT                                                                   0x00000010<br>
+#define SQ_DEBUG_STS_LOCAL__BRMSG_BUSY_MASK                                                                   0x00020000L<br>
+#define SQ_DEBUG_STS_LOCAL__BRMSG_BUSY__SHIFT                                                                 0x00000011<br>
+#define SQ_DEBUG_STS_LOCAL__VM_BUSY_MASK                                                                      0x00040000L<br>
+#define SQ_DEBUG_STS_LOCAL__VM_BUSY__SHIFT                                                                    0x00000018<br>
 //SQ_WAVE_ACTIVE<br>
 #define SQ_WAVE_ACTIVE__WAVE_SLOT__SHIFT                                                                      0x0<br>
 #define SQ_WAVE_ACTIVE__WAVE_SLOT_MASK                                                                        0x000FFFFFL<br>
-- <br>
2.26.2<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Calexander.deucher%40amd.com%7C074e128186ff4eff8d3708d80c9ed105%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637273223554480702&amp;sdata=qBZDzvWcTZjKHXBGShZF4eAduD0vA6jbyFNEDqwxUkQ%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Calexander.deucher%40amd.com%7C074e128186ff4eff8d3708d80c9ed105%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637273223554480702&amp;sdata=qBZDzvWcTZjKHXBGShZF4eAduD0vA6jbyFNEDqwxUkQ%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</div>
</body>
</html>