<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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,Arial,Helvetica,sans-serif;" dir="ltr">
<p>umr + script (attached).</p>
<p><br>
</p>
<p>You'll need a relatively new build of umr (on master) that supports forcing an asic by name then you use this as</p>
<p><br>
</p>
<p>unnum.sh <asic_name></p>
<p><paste_lines_of_golden_data></p>
<p><hit CTRL+D></p>
<p><br>
</p>
<p>then it spits out the new lines replacing things with registers where found.</p>
<p><br>
</p>
<p>It'd in theory work with vega10/etc once I add one last commit to the amd-temp-soc15 branch.</p>
<p><br>
</p>
<p>Cheers,</p>
<p>Tom</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Wentland, Harry<br>
<b>Sent:</b> Friday, December 16, 2016 10:02<br>
<b>To:</b> Tom St Denis; amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> StDenis, Tom<br>
<b>Subject:</b> Re: [PATCH] drm/amd/amdgpu: De-numberify golden SI registers</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Nice. Do you have a script to do this or is this all done by hand?<br>
<br>
Reviewed-by: Harry Wentland <harry.wentland@amd.com><br>
<br>
Harry<br>
<br>
On 2016-12-16 08:50 AM, Tom St Denis wrote:<br>
> Where possible replace numeric constants in the table<br>
> with their register names.<br>
><br>
> Compile tested + executed on a Tahiti.<br>
><br>
> Signed-off-by: Tom St Denis <tom.stdenis@amd.com><br>
> ---<br>
> drivers/gpu/drm/amd/amdgpu/si.c | 975 ++++++++++++++++++++--------------------<br>
> 1 file changed, 492 insertions(+), 483 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c<br>
> index c46b0159007d..9bf7afb2f74e 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/si.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/si.c<br>
> @@ -40,337 +40,343 @@<br>
> #include "dce_v6_0.h"<br>
> #include "si.h"<br>
> #include "dce_virtual.h"<br>
> +#include "gca/gfx_6_0_d.h"<br>
> +#include "oss/oss_1_0_d.h"<br>
> +#include "gmc/gmc_6_0_d.h"<br>
> +#include "dce/dce_6_0_d.h"<br>
> +#include "uvd/uvd_4_0_d.h"<br>
><br>
> static const u32 tahiti_golden_registers[] =<br>
> {<br>
> - 0x17bc, 0x00000030, 0x00000011,<br>
> - 0x2684, 0x00010000, 0x00018208,<br>
> - 0x260c, 0xffffffff, 0x00000000,<br>
> - 0x260d, 0xf00fffff, 0x00000400,<br>
> - 0x260e, 0x0002021c, 0x00020200,<br>
> - 0x031e, 0x00000080, 0x00000000,<br>
> + mmAZALIA_SCLK_CONTROL, 0x00000030, 0x00000011,<br>
> + mmCB_HW_CONTROL, 0x00010000, 0x00018208,<br>
> + mmDB_DEBUG, 0xffffffff, 0x00000000,<br>
> + mmDB_DEBUG2, 0xf00fffff, 0x00000400,<br>
> + mmDB_DEBUG3, 0x0002021c, 0x00020200,<br>
> + mmDCI_CLK_CNTL, 0x00000080, 0x00000000,<br>
> 0x340c, 0x000000c0, 0x00800040,<br>
> 0x360c, 0x000000c0, 0x00800040,<br>
> - 0x16ec, 0x000000f0, 0x00000070,<br>
> - 0x16f0, 0x00200000, 0x50100000,<br>
> - 0x1c0c, 0x31000311, 0x00000011,<br>
> - 0x09df, 0x00000003, 0x000007ff,<br>
> - 0x0903, 0x000007ff, 0x00000000,<br>
> - 0x2285, 0xf000001f, 0x00000007,<br>
> - 0x22c9, 0xffffffff, 0x00ffffff,<br>
> - 0x22c4, 0x0000ff0f, 0x00000000,<br>
> - 0xa293, 0x07ffffff, 0x4e000000,<br>
> - 0xa0d4, 0x3f3f3fff, 0x2a00126a,<br>
> + mmFBC_DEBUG_COMP, 0x000000f0, 0x00000070,<br>
> + mmFBC_MISC, 0x00200000, 0x50100000,<br>
> + mmDIG0_HDMI_CONTROL, 0x31000311, 0x00000011,<br>
> + mmMC_ARB_WTM_CNTL_RD, 0x00000003, 0x000007ff,<br>
> + mmMC_XPB_P2P_BAR_CFG, 0x000007ff, 0x00000000,<br>
> + mmPA_CL_ENHANCE, 0xf000001f, 0x00000007,<br>
> + mmPA_SC_FORCE_EOV_MAX_CNTS, 0xffffffff, 0x00ffffff,<br>
> + mmPA_SC_LINE_STIPPLE_STATE, 0x0000ff0f, 0x00000000,<br>
> + mmPA_SC_MODE_CNTL_1, 0x07ffffff, 0x4e000000,<br>
> + mmPA_SC_RASTER_CONFIG, 0x3f3f3fff, 0x2a00126a,<br>
> 0x000c, 0xffffffff, 0x0040,<br>
> 0x000d, 0x00000040, 0x00004040,<br>
> - 0x2440, 0x07ffffff, 0x03000000,<br>
> - 0x23a2, 0x01ff1f3f, 0x00000000,<br>
> - 0x23a1, 0x01ff1f3f, 0x00000000,<br>
> - 0x2418, 0x0000007f, 0x00000020,<br>
> - 0x2542, 0x00010000, 0x00010000,<br>
> - 0x2b05, 0x00000200, 0x000002fb,<br>
> - 0x2b04, 0xffffffff, 0x0000543b,<br>
> - 0x2b03, 0xffffffff, 0xa9210876,<br>
> - 0x2234, 0xffffffff, 0x000fff40,<br>
> - 0x2235, 0x0000001f, 0x00000010,<br>
> - 0x0504, 0x20000000, 0x20fffed8,<br>
> - 0x0570, 0x000c0fc0, 0x000c0400,<br>
> - 0x052c, 0x0fffffff, 0xffffffff,<br>
> - 0x052d, 0x0fffffff, 0x0fffffff,<br>
> - 0x052e, 0x0fffffff, 0x0fffffff,<br>
> - 0x052f, 0x0fffffff, 0x0fffffff<br>
> + mmSPI_CONFIG_CNTL, 0x07ffffff, 0x03000000,<br>
> + mmSQ_DED_CNT, 0x01ff1f3f, 0x00000000,<br>
> + mmSQ_SEC_CNT, 0x01ff1f3f, 0x00000000,<br>
> + mmSX_DEBUG_1, 0x0000007f, 0x00000020,<br>
> + mmTA_CNTL_AUX, 0x00010000, 0x00010000,<br>
> + mmTCP_ADDR_CONFIG, 0x00000200, 0x000002fb,<br>
> + mmTCP_CHAN_STEER_HI, 0xffffffff, 0x0000543b,<br>
> + mmTCP_CHAN_STEER_LO, 0xffffffff, 0xa9210876,<br>
> + mmVGT_FIFO_DEPTHS, 0xffffffff, 0x000fff40,<br>
> + mmVGT_GS_VERTEX_REUSE, 0x0000001f, 0x00000010,<br>
> + mmVM_CONTEXT0_CNTL, 0x20000000, 0x20fffed8,<br>
> + mmVM_L2_CG, 0x000c0fc0, 0x000c0400,<br>
> + mmVM_PRT_APERTURE0_LOW_ADDR, 0x0fffffff, 0xffffffff,<br>
> + mmVM_PRT_APERTURE1_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE2_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE3_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> };<br>
><br>
> static const u32 tahiti_golden_registers2[] =<br>
> {<br>
> - 0x0319, 0x00000001, 0x00000001<br>
> + mmMCIF_MEM_CONTROL, 0x00000001, 0x00000001,<br>
> };<br>
><br>
> static const u32 tahiti_golden_rlc_registers[] =<br>
> {<br>
> - 0x263e, 0xffffffff, 0x12011003,<br>
> - 0x3109, 0xffffffff, 0x00601005,<br>
> + mmGB_ADDR_CONFIG, 0xffffffff, 0x12011003,<br>
> + mmRLC_LB_PARAMS, 0xffffffff, 0x00601005,<br>
> 0x311f, 0xffffffff, 0x10104040,<br>
> 0x3122, 0xffffffff, 0x0100000a,<br>
> - 0x30c5, 0xffffffff, 0x00000800,<br>
> - 0x30c3, 0xffffffff, 0x800000f4,<br>
> - 0x3d2a, 0x00000008, 0x00000000<br>
> + mmRLC_LB_CNTR_MAX, 0xffffffff, 0x00000800,<br>
> + mmRLC_LB_CNTL, 0xffffffff, 0x800000f4,<br>
> + mmUVD_CGC_GATE, 0x00000008, 0x00000000,<br>
> };<br>
><br>
> static const u32 pitcairn_golden_registers[] =<br>
> {<br>
> - 0x17bc, 0x00000030, 0x00000011,<br>
> - 0x2684, 0x00010000, 0x00018208,<br>
> - 0x260c, 0xffffffff, 0x00000000,<br>
> - 0x260d, 0xf00fffff, 0x00000400,<br>
> - 0x260e, 0x0002021c, 0x00020200,<br>
> - 0x031e, 0x00000080, 0x00000000,<br>
> + mmAZALIA_SCLK_CONTROL, 0x00000030, 0x00000011,<br>
> + mmCB_HW_CONTROL, 0x00010000, 0x00018208,<br>
> + mmDB_DEBUG, 0xffffffff, 0x00000000,<br>
> + mmDB_DEBUG2, 0xf00fffff, 0x00000400,<br>
> + mmDB_DEBUG3, 0x0002021c, 0x00020200,<br>
> + mmDCI_CLK_CNTL, 0x00000080, 0x00000000,<br>
> 0x340c, 0x000300c0, 0x00800040,<br>
> 0x360c, 0x000300c0, 0x00800040,<br>
> - 0x16ec, 0x000000f0, 0x00000070,<br>
> - 0x16f0, 0x00200000, 0x50100000,<br>
> - 0x1c0c, 0x31000311, 0x00000011,<br>
> - 0x0ab9, 0x00073ffe, 0x000022a2,<br>
> - 0x0903, 0x000007ff, 0x00000000,<br>
> - 0x2285, 0xf000001f, 0x00000007,<br>
> - 0x22c9, 0xffffffff, 0x00ffffff,<br>
> - 0x22c4, 0x0000ff0f, 0x00000000,<br>
> - 0xa293, 0x07ffffff, 0x4e000000,<br>
> - 0xa0d4, 0x3f3f3fff, 0x2a00126a,<br>
> + mmFBC_DEBUG_COMP, 0x000000f0, 0x00000070,<br>
> + mmFBC_MISC, 0x00200000, 0x50100000,<br>
> + mmDIG0_HDMI_CONTROL, 0x31000311, 0x00000011,<br>
> + mmMC_SEQ_PMG_PG_HWCNTL, 0x00073ffe, 0x000022a2,<br>
> + mmMC_XPB_P2P_BAR_CFG, 0x000007ff, 0x00000000,<br>
> + mmPA_CL_ENHANCE, 0xf000001f, 0x00000007,<br>
> + mmPA_SC_FORCE_EOV_MAX_CNTS, 0xffffffff, 0x00ffffff,<br>
> + mmPA_SC_LINE_STIPPLE_STATE, 0x0000ff0f, 0x00000000,<br>
> + mmPA_SC_MODE_CNTL_1, 0x07ffffff, 0x4e000000,<br>
> + mmPA_SC_RASTER_CONFIG, 0x3f3f3fff, 0x2a00126a,<br>
> 0x000c, 0xffffffff, 0x0040,<br>
> 0x000d, 0x00000040, 0x00004040,<br>
> - 0x2440, 0x07ffffff, 0x03000000,<br>
> - 0x2418, 0x0000007f, 0x00000020,<br>
> - 0x2542, 0x00010000, 0x00010000,<br>
> - 0x2b05, 0x000003ff, 0x000000f7,<br>
> - 0x2b04, 0xffffffff, 0x00000000,<br>
> - 0x2b03, 0xffffffff, 0x32761054,<br>
> - 0x2235, 0x0000001f, 0x00000010,<br>
> - 0x0570, 0x000c0fc0, 0x000c0400,<br>
> - 0x052c, 0x0fffffff, 0xffffffff,<br>
> - 0x052d, 0x0fffffff, 0x0fffffff,<br>
> - 0x052e, 0x0fffffff, 0x0fffffff,<br>
> - 0x052f, 0x0fffffff, 0x0fffffff<br>
> + mmSPI_CONFIG_CNTL, 0x07ffffff, 0x03000000,<br>
> + mmSX_DEBUG_1, 0x0000007f, 0x00000020,<br>
> + mmTA_CNTL_AUX, 0x00010000, 0x00010000,<br>
> + mmTCP_ADDR_CONFIG, 0x000003ff, 0x000000f7,<br>
> + mmTCP_CHAN_STEER_HI, 0xffffffff, 0x00000000,<br>
> + mmTCP_CHAN_STEER_LO, 0xffffffff, 0x32761054,<br>
> + mmVGT_GS_VERTEX_REUSE, 0x0000001f, 0x00000010,<br>
> + mmVM_L2_CG, 0x000c0fc0, 0x000c0400,<br>
> + mmVM_PRT_APERTURE0_LOW_ADDR, 0x0fffffff, 0xffffffff,<br>
> + mmVM_PRT_APERTURE1_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE2_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE3_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> };<br>
><br>
> static const u32 pitcairn_golden_rlc_registers[] =<br>
> {<br>
> - 0x263e, 0xffffffff, 0x12011003,<br>
> - 0x3109, 0xffffffff, 0x00601004,<br>
> + mmGB_ADDR_CONFIG, 0xffffffff, 0x12011003,<br>
> + mmRLC_LB_PARAMS, 0xffffffff, 0x00601004,<br>
> 0x311f, 0xffffffff, 0x10102020,<br>
> 0x3122, 0xffffffff, 0x01000020,<br>
> - 0x30c5, 0xffffffff, 0x00000800,<br>
> - 0x30c3, 0xffffffff, 0x800000a4<br>
> + mmRLC_LB_CNTR_MAX, 0xffffffff, 0x00000800,<br>
> + mmRLC_LB_CNTL, 0xffffffff, 0x800000a4,<br>
> };<br>
><br>
> static const u32 verde_pg_init[] =<br>
> {<br>
> - 0x0d4f, 0xffffffff, 0x40000,<br>
> - 0x0d4e, 0xffffffff, 0x200010ff,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x7007,<br>
> - 0x0d4e, 0xffffffff, 0x300010ff,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x400000,<br>
> - 0x0d4e, 0xffffffff, 0x100010ff,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x120200,<br>
> - 0x0d4e, 0xffffffff, 0x500010ff,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x1e1e16,<br>
> - 0x0d4e, 0xffffffff, 0x600010ff,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x171f1e,<br>
> - 0x0d4e, 0xffffffff, 0x700010ff,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4f, 0xffffffff, 0x0,<br>
> - 0x0d4e, 0xffffffff, 0x9ff,<br>
> - 0x0d40, 0xffffffff, 0x0,<br>
> - 0x0d41, 0xffffffff, 0x10000800,<br>
> - 0x0d41, 0xffffffff, 0xf,<br>
> - 0x0d41, 0xffffffff, 0xf,<br>
> - 0x0d40, 0xffffffff, 0x4,<br>
> - 0x0d41, 0xffffffff, 0x1000051e,<br>
> - 0x0d41, 0xffffffff, 0xffff,<br>
> - 0x0d41, 0xffffffff, 0xffff,<br>
> - 0x0d40, 0xffffffff, 0x8,<br>
> - 0x0d41, 0xffffffff, 0x80500,<br>
> - 0x0d40, 0xffffffff, 0x12,<br>
> - 0x0d41, 0xffffffff, 0x9050c,<br>
> - 0x0d40, 0xffffffff, 0x1d,<br>
> - 0x0d41, 0xffffffff, 0xb052c,<br>
> - 0x0d40, 0xffffffff, 0x2a,<br>
> - 0x0d41, 0xffffffff, 0x1053e,<br>
> - 0x0d40, 0xffffffff, 0x2d,<br>
> - 0x0d41, 0xffffffff, 0x10546,<br>
> - 0x0d40, 0xffffffff, 0x30,<br>
> - 0x0d41, 0xffffffff, 0xa054e,<br>
> - 0x0d40, 0xffffffff, 0x3c,<br>
> - 0x0d41, 0xffffffff, 0x1055f,<br>
> - 0x0d40, 0xffffffff, 0x3f,<br>
> - 0x0d41, 0xffffffff, 0x10567,<br>
> - 0x0d40, 0xffffffff, 0x42,<br>
> - 0x0d41, 0xffffffff, 0x1056f,<br>
> - 0x0d40, 0xffffffff, 0x45,<br>
> - 0x0d41, 0xffffffff, 0x10572,<br>
> - 0x0d40, 0xffffffff, 0x48,<br>
> - 0x0d41, 0xffffffff, 0x20575,<br>
> - 0x0d40, 0xffffffff, 0x4c,<br>
> - 0x0d41, 0xffffffff, 0x190801,<br>
> - 0x0d40, 0xffffffff, 0x67,<br>
> - 0x0d41, 0xffffffff, 0x1082a,<br>
> - 0x0d40, 0xffffffff, 0x6a,<br>
> - 0x0d41, 0xffffffff, 0x1b082d,<br>
> - 0x0d40, 0xffffffff, 0x87,<br>
> - 0x0d41, 0xffffffff, 0x310851,<br>
> - 0x0d40, 0xffffffff, 0xba,<br>
> - 0x0d41, 0xffffffff, 0x891,<br>
> - 0x0d40, 0xffffffff, 0xbc,<br>
> - 0x0d41, 0xffffffff, 0x893,<br>
> - 0x0d40, 0xffffffff, 0xbe,<br>
> - 0x0d41, 0xffffffff, 0x20895,<br>
> - 0x0d40, 0xffffffff, 0xc2,<br>
> - 0x0d41, 0xffffffff, 0x20899,<br>
> - 0x0d40, 0xffffffff, 0xc6,<br>
> - 0x0d41, 0xffffffff, 0x2089d,<br>
> - 0x0d40, 0xffffffff, 0xca,<br>
> - 0x0d41, 0xffffffff, 0x8a1,<br>
> - 0x0d40, 0xffffffff, 0xcc,<br>
> - 0x0d41, 0xffffffff, 0x8a3,<br>
> - 0x0d40, 0xffffffff, 0xce,<br>
> - 0x0d41, 0xffffffff, 0x308a5,<br>
> - 0x0d40, 0xffffffff, 0xd3,<br>
> - 0x0d41, 0xffffffff, 0x6d08cd,<br>
> - 0x0d40, 0xffffffff, 0x142,<br>
> - 0x0d41, 0xffffffff, 0x2000095a,<br>
> - 0x0d41, 0xffffffff, 0x1,<br>
> - 0x0d40, 0xffffffff, 0x144,<br>
> - 0x0d41, 0xffffffff, 0x301f095b,<br>
> - 0x0d40, 0xffffffff, 0x165,<br>
> - 0x0d41, 0xffffffff, 0xc094d,<br>
> - 0x0d40, 0xffffffff, 0x173,<br>
> - 0x0d41, 0xffffffff, 0xf096d,<br>
> - 0x0d40, 0xffffffff, 0x184,<br>
> - 0x0d41, 0xffffffff, 0x15097f,<br>
> - 0x0d40, 0xffffffff, 0x19b,<br>
> - 0x0d41, 0xffffffff, 0xc0998,<br>
> - 0x0d40, 0xffffffff, 0x1a9,<br>
> - 0x0d41, 0xffffffff, 0x409a7,<br>
> - 0x0d40, 0xffffffff, 0x1af,<br>
> - 0x0d41, 0xffffffff, 0xcdc,<br>
> - 0x0d40, 0xffffffff, 0x1b1,<br>
> - 0x0d41, 0xffffffff, 0x800,<br>
> - 0x0d42, 0xffffffff, 0x6c9b2000,<br>
> - 0x0d44, 0xfc00, 0x2000,<br>
> - 0x0d51, 0xffffffff, 0xfc0,<br>
> - 0x0a35, 0x00000100, 0x100<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x40000,<br>
> + mmGMCON_PGFSM_CONFIG, 0xffffffff, 0x200010ff,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x7007,<br>
> + mmGMCON_PGFSM_CONFIG, 0xffffffff, 0x300010ff,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x400000,<br>
> + mmGMCON_PGFSM_CONFIG, 0xffffffff, 0x100010ff,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x120200,<br>
> + mmGMCON_PGFSM_CONFIG, 0xffffffff, 0x500010ff,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x1e1e16,<br>
> + mmGMCON_PGFSM_CONFIG, 0xffffffff, 0x600010ff,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x171f1e,<br>
> + mmGMCON_PGFSM_CONFIG, 0xffffffff, 0x700010ff,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_WRITE, 0xffffffff, 0x0,<br>
> + mmGMCON_PGFSM_CONFIG, 0xffffffff, 0x9ff,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x0,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x10000800,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xf,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xf,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x4,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x1000051e,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xffff,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xffff,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x8,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x80500,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x12,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x9050c,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x1d,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xb052c,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x2a,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x1053e,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x2d,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x10546,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x30,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xa054e,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x3c,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x1055f,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x3f,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x10567,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x42,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x1056f,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x45,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x10572,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x48,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x20575,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x4c,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x190801,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x67,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x1082a,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x6a,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x1b082d,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x87,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x310851,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xba,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x891,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xbc,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x893,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xbe,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x20895,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xc2,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x20899,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xc6,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x2089d,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xca,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x8a1,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xcc,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x8a3,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xce,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x308a5,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0xd3,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x6d08cd,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x142,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x2000095a,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x1,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x144,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x301f095b,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x165,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xc094d,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x173,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xf096d,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x184,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x15097f,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x19b,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xc0998,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x1a9,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x409a7,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x1af,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0xcdc,<br>
> + mmGMCON_RENG_RAM_INDEX, 0xffffffff, 0x1b1,<br>
> + mmGMCON_RENG_RAM_DATA, 0xffffffff, 0x800,<br>
> + mmGMCON_RENG_EXECUTE, 0xffffffff, 0x6c9b2000,<br>
> + mmGMCON_MISC2, 0xfc00, 0x2000,<br>
> + mmGMCON_MISC3, 0xffffffff, 0xfc0,<br>
> + mmMC_PMG_AUTO_CFG, 0x00000100, 0x100,<br>
> };<br>
><br>
> static const u32 verde_golden_rlc_registers[] =<br>
> {<br>
> - 0x263e, 0xffffffff, 0x02010002,<br>
> - 0x3109, 0xffffffff, 0x033f1005,<br>
> + mmGB_ADDR_CONFIG, 0xffffffff, 0x02010002,<br>
> + mmRLC_LB_PARAMS, 0xffffffff, 0x033f1005,<br>
> 0x311f, 0xffffffff, 0x10808020,<br>
> 0x3122, 0xffffffff, 0x00800008,<br>
> - 0x30c5, 0xffffffff, 0x00001000,<br>
> - 0x30c3, 0xffffffff, 0x80010014<br>
> + mmRLC_LB_CNTR_MAX, 0xffffffff, 0x00001000,<br>
> + mmRLC_LB_CNTL, 0xffffffff, 0x80010014,<br>
> };<br>
><br>
> static const u32 verde_golden_registers[] =<br>
> {<br>
> - 0x17bc, 0x00000030, 0x00000011,<br>
> - 0x2684, 0x00010000, 0x00018208,<br>
> - 0x260c, 0xffffffff, 0x00000000,<br>
> - 0x260d, 0xf00fffff, 0x00000400,<br>
> - 0x260e, 0x0002021c, 0x00020200,<br>
> - 0x031e, 0x00000080, 0x00000000,<br>
> + mmAZALIA_SCLK_CONTROL, 0x00000030, 0x00000011,<br>
> + mmCB_HW_CONTROL, 0x00010000, 0x00018208,<br>
> + mmDB_DEBUG, 0xffffffff, 0x00000000,<br>
> + mmDB_DEBUG2, 0xf00fffff, 0x00000400,<br>
> + mmDB_DEBUG3, 0x0002021c, 0x00020200,<br>
> + mmDCI_CLK_CNTL, 0x00000080, 0x00000000,<br>
> 0x340c, 0x000300c0, 0x00800040,<br>
> 0x360c, 0x000300c0, 0x00800040,<br>
> - 0x16ec, 0x000000f0, 0x00000070,<br>
> - 0x16f0, 0x00200000, 0x50100000,<br>
> - 0x1c0c, 0x31000311, 0x00000011,<br>
> - 0x0ab9, 0x00073ffe, 0x000022a2,<br>
> - 0x0903, 0x000007ff, 0x00000000,<br>
> - 0x2285, 0xf000001f, 0x00000007,<br>
> - 0x22c9, 0xffffffff, 0x00ffffff,<br>
> - 0x22c4, 0x0000ff0f, 0x00000000,<br>
> - 0xa293, 0x07ffffff, 0x4e000000,<br>
> - 0xa0d4, 0x3f3f3fff, 0x0000124a,<br>
> + mmFBC_DEBUG_COMP, 0x000000f0, 0x00000070,<br>
> + mmFBC_MISC, 0x00200000, 0x50100000,<br>
> + mmDIG0_HDMI_CONTROL, 0x31000311, 0x00000011,<br>
> + mmMC_SEQ_PMG_PG_HWCNTL, 0x00073ffe, 0x000022a2,<br>
> + mmMC_XPB_P2P_BAR_CFG, 0x000007ff, 0x00000000,<br>
> + mmPA_CL_ENHANCE, 0xf000001f, 0x00000007,<br>
> + mmPA_SC_FORCE_EOV_MAX_CNTS, 0xffffffff, 0x00ffffff,<br>
> + mmPA_SC_LINE_STIPPLE_STATE, 0x0000ff0f, 0x00000000,<br>
> + mmPA_SC_MODE_CNTL_1, 0x07ffffff, 0x4e000000,<br>
> + mmPA_SC_RASTER_CONFIG, 0x3f3f3fff, 0x0000124a,<br>
> 0x000c, 0xffffffff, 0x0040,<br>
> 0x000d, 0x00000040, 0x00004040,<br>
> - 0x2440, 0x07ffffff, 0x03000000,<br>
> - 0x23a2, 0x01ff1f3f, 0x00000000,<br>
> - 0x23a1, 0x01ff1f3f, 0x00000000,<br>
> - 0x2418, 0x0000007f, 0x00000020,<br>
> - 0x2542, 0x00010000, 0x00010000,<br>
> - 0x2b05, 0x000003ff, 0x00000003,<br>
> - 0x2b04, 0xffffffff, 0x00000000,<br>
> - 0x2b03, 0xffffffff, 0x00001032,<br>
> - 0x2235, 0x0000001f, 0x00000010,<br>
> - 0x0570, 0x000c0fc0, 0x000c0400,<br>
> - 0x052c, 0x0fffffff, 0xffffffff,<br>
> - 0x052d, 0x0fffffff, 0x0fffffff,<br>
> - 0x052e, 0x0fffffff, 0x0fffffff,<br>
> - 0x052f, 0x0fffffff, 0x0fffffff<br>
> + mmSPI_CONFIG_CNTL, 0x07ffffff, 0x03000000,<br>
> + mmSQ_DED_CNT, 0x01ff1f3f, 0x00000000,<br>
> + mmSQ_SEC_CNT, 0x01ff1f3f, 0x00000000,<br>
> + mmSX_DEBUG_1, 0x0000007f, 0x00000020,<br>
> + mmTA_CNTL_AUX, 0x00010000, 0x00010000,<br>
> + mmTCP_ADDR_CONFIG, 0x000003ff, 0x00000003,<br>
> + mmTCP_CHAN_STEER_HI, 0xffffffff, 0x00000000,<br>
> + mmTCP_CHAN_STEER_LO, 0xffffffff, 0x00001032,<br>
> + mmVGT_GS_VERTEX_REUSE, 0x0000001f, 0x00000010,<br>
> + mmVM_L2_CG, 0x000c0fc0, 0x000c0400,<br>
> + mmVM_PRT_APERTURE0_LOW_ADDR, 0x0fffffff, 0xffffffff,<br>
> + mmVM_PRT_APERTURE1_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE2_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE3_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> };<br>
><br>
> static const u32 oland_golden_registers[] =<br>
> {<br>
> - 0x17bc, 0x00000030, 0x00000011,<br>
> - 0x2684, 0x00010000, 0x00018208,<br>
> - 0x260c, 0xffffffff, 0x00000000,<br>
> - 0x260d, 0xf00fffff, 0x00000400,<br>
> - 0x260e, 0x0002021c, 0x00020200,<br>
> - 0x031e, 0x00000080, 0x00000000,<br>
> + mmAZALIA_SCLK_CONTROL, 0x00000030, 0x00000011,<br>
> + mmCB_HW_CONTROL, 0x00010000, 0x00018208,<br>
> + mmDB_DEBUG, 0xffffffff, 0x00000000,<br>
> + mmDB_DEBUG2, 0xf00fffff, 0x00000400,<br>
> + mmDB_DEBUG3, 0x0002021c, 0x00020200,<br>
> + mmDCI_CLK_CNTL, 0x00000080, 0x00000000,<br>
> 0x340c, 0x000300c0, 0x00800040,<br>
> 0x360c, 0x000300c0, 0x00800040,<br>
> - 0x16ec, 0x000000f0, 0x00000070,<br>
> - 0x16f0, 0x00200000, 0x50100000,<br>
> - 0x1c0c, 0x31000311, 0x00000011,<br>
> - 0x0ab9, 0x00073ffe, 0x000022a2,<br>
> - 0x0903, 0x000007ff, 0x00000000,<br>
> - 0x2285, 0xf000001f, 0x00000007,<br>
> - 0x22c9, 0xffffffff, 0x00ffffff,<br>
> - 0x22c4, 0x0000ff0f, 0x00000000,<br>
> - 0xa293, 0x07ffffff, 0x4e000000,<br>
> - 0xa0d4, 0x3f3f3fff, 0x00000082,<br>
> + mmFBC_DEBUG_COMP, 0x000000f0, 0x00000070,<br>
> + mmFBC_MISC, 0x00200000, 0x50100000,<br>
> + mmDIG0_HDMI_CONTROL, 0x31000311, 0x00000011,<br>
> + mmMC_SEQ_PMG_PG_HWCNTL, 0x00073ffe, 0x000022a2,<br>
> + mmMC_XPB_P2P_BAR_CFG, 0x000007ff, 0x00000000,<br>
> + mmPA_CL_ENHANCE, 0xf000001f, 0x00000007,<br>
> + mmPA_SC_FORCE_EOV_MAX_CNTS, 0xffffffff, 0x00ffffff,<br>
> + mmPA_SC_LINE_STIPPLE_STATE, 0x0000ff0f, 0x00000000,<br>
> + mmPA_SC_MODE_CNTL_1, 0x07ffffff, 0x4e000000,<br>
> + mmPA_SC_RASTER_CONFIG, 0x3f3f3fff, 0x00000082,<br>
> 0x000c, 0xffffffff, 0x0040,<br>
> 0x000d, 0x00000040, 0x00004040,<br>
> - 0x2440, 0x07ffffff, 0x03000000,<br>
> - 0x2418, 0x0000007f, 0x00000020,<br>
> - 0x2542, 0x00010000, 0x00010000,<br>
> - 0x2b05, 0x000003ff, 0x000000f3,<br>
> - 0x2b04, 0xffffffff, 0x00000000,<br>
> - 0x2b03, 0xffffffff, 0x00003210,<br>
> - 0x2235, 0x0000001f, 0x00000010,<br>
> - 0x0570, 0x000c0fc0, 0x000c0400,<br>
> - 0x052c, 0x0fffffff, 0xffffffff,<br>
> - 0x052d, 0x0fffffff, 0x0fffffff,<br>
> - 0x052e, 0x0fffffff, 0x0fffffff,<br>
> - 0x052f, 0x0fffffff, 0x0fffffff<br>
> + mmSPI_CONFIG_CNTL, 0x07ffffff, 0x03000000,<br>
> + mmSX_DEBUG_1, 0x0000007f, 0x00000020,<br>
> + mmTA_CNTL_AUX, 0x00010000, 0x00010000,<br>
> + mmTCP_ADDR_CONFIG, 0x000003ff, 0x000000f3,<br>
> + mmTCP_CHAN_STEER_HI, 0xffffffff, 0x00000000,<br>
> + mmTCP_CHAN_STEER_LO, 0xffffffff, 0x00003210,<br>
> + mmVGT_GS_VERTEX_REUSE, 0x0000001f, 0x00000010,<br>
> + mmVM_L2_CG, 0x000c0fc0, 0x000c0400,<br>
> + mmVM_PRT_APERTURE0_LOW_ADDR, 0x0fffffff, 0xffffffff,<br>
> + mmVM_PRT_APERTURE1_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE2_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE3_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> +<br>
> };<br>
><br>
> static const u32 oland_golden_rlc_registers[] =<br>
> {<br>
> - 0x263e, 0xffffffff, 0x02010002,<br>
> - 0x3109, 0xffffffff, 0x00601005,<br>
> + mmGB_ADDR_CONFIG, 0xffffffff, 0x02010002,<br>
> + mmRLC_LB_PARAMS, 0xffffffff, 0x00601005,<br>
> 0x311f, 0xffffffff, 0x10104040,<br>
> 0x3122, 0xffffffff, 0x0100000a,<br>
> - 0x30c5, 0xffffffff, 0x00000800,<br>
> - 0x30c3, 0xffffffff, 0x800000f4<br>
> + mmRLC_LB_CNTR_MAX, 0xffffffff, 0x00000800,<br>
> + mmRLC_LB_CNTL, 0xffffffff, 0x800000f4,<br>
> };<br>
><br>
> static const u32 hainan_golden_registers[] =<br>
> {<br>
> 0x17bc, 0x00000030, 0x00000011,<br>
> - 0x2684, 0x00010000, 0x00018208,<br>
> - 0x260c, 0xffffffff, 0x00000000,<br>
> - 0x260d, 0xf00fffff, 0x00000400,<br>
> - 0x260e, 0x0002021c, 0x00020200,<br>
> + mmCB_HW_CONTROL, 0x00010000, 0x00018208,<br>
> + mmDB_DEBUG, 0xffffffff, 0x00000000,<br>
> + mmDB_DEBUG2, 0xf00fffff, 0x00000400,<br>
> + mmDB_DEBUG3, 0x0002021c, 0x00020200,<br>
> 0x031e, 0x00000080, 0x00000000,<br>
> 0x3430, 0xff000fff, 0x00000100,<br>
> 0x340c, 0x000300c0, 0x00800040,<br>
> @@ -379,63 +385,63 @@ static const u32 hainan_golden_registers[] =<br>
> 0x16ec, 0x000000f0, 0x00000070,<br>
> 0x16f0, 0x00200000, 0x50100000,<br>
> 0x1c0c, 0x31000311, 0x00000011,<br>
> - 0x0ab9, 0x00073ffe, 0x000022a2,<br>
> - 0x0903, 0x000007ff, 0x00000000,<br>
> - 0x2285, 0xf000001f, 0x00000007,<br>
> - 0x22c9, 0xffffffff, 0x00ffffff,<br>
> - 0x22c4, 0x0000ff0f, 0x00000000,<br>
> - 0xa293, 0x07ffffff, 0x4e000000,<br>
> - 0xa0d4, 0x3f3f3fff, 0x00000000,<br>
> + mmMC_SEQ_PMG_PG_HWCNTL, 0x00073ffe, 0x000022a2,<br>
> + mmMC_XPB_P2P_BAR_CFG, 0x000007ff, 0x00000000,<br>
> + mmPA_CL_ENHANCE, 0xf000001f, 0x00000007,<br>
> + mmPA_SC_FORCE_EOV_MAX_CNTS, 0xffffffff, 0x00ffffff,<br>
> + mmPA_SC_LINE_STIPPLE_STATE, 0x0000ff0f, 0x00000000,<br>
> + mmPA_SC_MODE_CNTL_1, 0x07ffffff, 0x4e000000,<br>
> + mmPA_SC_RASTER_CONFIG, 0x3f3f3fff, 0x00000000,<br>
> 0x000c, 0xffffffff, 0x0040,<br>
> 0x000d, 0x00000040, 0x00004040,<br>
> - 0x2440, 0x03e00000, 0x03600000,<br>
> - 0x2418, 0x0000007f, 0x00000020,<br>
> - 0x2542, 0x00010000, 0x00010000,<br>
> - 0x2b05, 0x000003ff, 0x000000f1,<br>
> - 0x2b04, 0xffffffff, 0x00000000,<br>
> - 0x2b03, 0xffffffff, 0x00003210,<br>
> - 0x2235, 0x0000001f, 0x00000010,<br>
> - 0x0570, 0x000c0fc0, 0x000c0400,<br>
> - 0x052c, 0x0fffffff, 0xffffffff,<br>
> - 0x052d, 0x0fffffff, 0x0fffffff,<br>
> - 0x052e, 0x0fffffff, 0x0fffffff,<br>
> - 0x052f, 0x0fffffff, 0x0fffffff<br>
> + mmSPI_CONFIG_CNTL, 0x03e00000, 0x03600000,<br>
> + mmSX_DEBUG_1, 0x0000007f, 0x00000020,<br>
> + mmTA_CNTL_AUX, 0x00010000, 0x00010000,<br>
> + mmTCP_ADDR_CONFIG, 0x000003ff, 0x000000f1,<br>
> + mmTCP_CHAN_STEER_HI, 0xffffffff, 0x00000000,<br>
> + mmTCP_CHAN_STEER_LO, 0xffffffff, 0x00003210,<br>
> + mmVGT_GS_VERTEX_REUSE, 0x0000001f, 0x00000010,<br>
> + mmVM_L2_CG, 0x000c0fc0, 0x000c0400,<br>
> + mmVM_PRT_APERTURE0_LOW_ADDR, 0x0fffffff, 0xffffffff,<br>
> + mmVM_PRT_APERTURE1_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE2_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> + mmVM_PRT_APERTURE3_LOW_ADDR, 0x0fffffff, 0x0fffffff,<br>
> };<br>
><br>
> static const u32 hainan_golden_registers2[] =<br>
> {<br>
> - 0x263e, 0xffffffff, 0x2011003<br>
> + mmGB_ADDR_CONFIG, 0xffffffff, 0x2011003,<br>
> };<br>
><br>
> static const u32 tahiti_mgcg_cgcg_init[] =<br>
> {<br>
> - 0x3100, 0xffffffff, 0xfffffffc,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> - 0x2698, 0xffffffff, 0x00000100,<br>
> - 0x24a9, 0xffffffff, 0x00000100,<br>
> - 0x3059, 0xffffffff, 0x00000100,<br>
> - 0x25dd, 0xffffffff, 0x00000100,<br>
> - 0x2261, 0xffffffff, 0x06000100,<br>
> - 0x2286, 0xffffffff, 0x00000100,<br>
> - 0x24a8, 0xffffffff, 0x00000100,<br>
> - 0x30e0, 0xffffffff, 0x00000100,<br>
> - 0x22ca, 0xffffffff, 0x00000100,<br>
> - 0x2451, 0xffffffff, 0x00000100,<br>
> - 0x2362, 0xffffffff, 0x00000100,<br>
> - 0x2363, 0xffffffff, 0x00000100,<br>
> - 0x240c, 0xffffffff, 0x00000100,<br>
> - 0x240d, 0xffffffff, 0x00000100,<br>
> - 0x240e, 0xffffffff, 0x00000100,<br>
> - 0x240f, 0xffffffff, 0x00000100,<br>
> - 0x2b60, 0xffffffff, 0x00000100,<br>
> - 0x2b15, 0xffffffff, 0x00000100,<br>
> - 0x225f, 0xffffffff, 0x06000100,<br>
> - 0x261a, 0xffffffff, 0x00000100,<br>
> - 0x2544, 0xffffffff, 0x00000100,<br>
> - 0x2bc1, 0xffffffff, 0x00000100,<br>
> - 0x2b81, 0xffffffff, 0x00000100,<br>
> - 0x2527, 0xffffffff, 0x00000100,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> + mmRLC_CGTT_MGCG_OVERRIDE, 0xffffffff, 0xfffffffc,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> + mmCB_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_BCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_CP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_GDS_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_IA_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmCGTT_PA_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_PC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_RLC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SPI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQ_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQG_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL0, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL1, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL2, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL3, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_VGT_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmDB_CGTT_CLK_CTRL_0, 0xffffffff, 0x00000100,<br>
> + mmTA_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCA_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCC_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTD_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> 0x2458, 0xffffffff, 0x00010000,<br>
> 0x2459, 0xffffffff, 0x00030002,<br>
> 0x245a, 0xffffffff, 0x00040007,<br>
> @@ -516,55 +522,55 @@ static const u32 tahiti_mgcg_cgcg_init[] =<br>
> 0x24a5, 0xffffffff, 0x00000015,<br>
> 0x24a6, 0xffffffff, 0x00140013,<br>
> 0x24a7, 0xffffffff, 0x00170016,<br>
> - 0x2454, 0xffffffff, 0x96940200,<br>
> - 0x21c2, 0xffffffff, 0x00900100,<br>
> - 0x311e, 0xffffffff, 0x00000080,<br>
> - 0x3101, 0xffffffff, 0x0020003f,<br>
> + mmCGTS_SM_CTRL_REG, 0xffffffff, 0x96940200,<br>
> + mmCP_RB_WPTR_POLL_CNTL, 0xffffffff, 0x00900100,<br>
> + mmRLC_GCPM_GENERAL_3, 0xffffffff, 0x00000080,<br>
> + mmRLC_CGCG_CGLS_CTRL, 0xffffffff, 0x0020003f,<br>
> 0x000c, 0xffffffff, 0x0000001c,<br>
> 0x000d, 0x000f0000, 0x000f0000,<br>
> 0x0583, 0xffffffff, 0x00000100,<br>
> - 0x0409, 0xffffffff, 0x00000100,<br>
> - 0x040b, 0x00000101, 0x00000000,<br>
> - 0x082a, 0xffffffff, 0x00000104,<br>
> - 0x0993, 0x000c0000, 0x000c0000,<br>
> - 0x0992, 0x000c0000, 0x000c0000,<br>
> - 0x1579, 0xff000fff, 0x00000100,<br>
> + mmXDMA_CLOCK_GATING_CNTL, 0xffffffff, 0x00000100,<br>
> + mmXDMA_MEM_POWER_CNTL, 0x00000101, 0x00000000,<br>
> + mmMC_MEM_POWER_LS, 0xffffffff, 0x00000104,<br>
> + mmMC_CITF_MISC_WR_CG, 0x000c0000, 0x000c0000,<br>
> + mmMC_CITF_MISC_RD_CG, 0x000c0000, 0x000c0000,<br>
> + mmCGTT_DRM_CLK_CTRL0, 0xff000fff, 0x00000100,<br>
> 0x157a, 0x00000001, 0x00000001,<br>
> - 0x0bd4, 0x00000001, 0x00000001,<br>
> - 0x0c33, 0xc0000fff, 0x00000104,<br>
> - 0x3079, 0x00000001, 0x00000001,<br>
> + mmHDP_MEM_POWER_LS, 0x00000001, 0x00000001,<br>
> + mmHDP_XDP_CGTT_BLK_CTRL, 0xc0000fff, 0x00000104,<br>
> + mmCP_MEM_SLP_CNTL, 0x00000001, 0x00000001,<br>
> 0x3430, 0xfffffff0, 0x00000100,<br>
> - 0x3630, 0xfffffff0, 0x00000100<br>
> + 0x3630, 0xfffffff0, 0x00000100,<br>
> };<br>
> static const u32 pitcairn_mgcg_cgcg_init[] =<br>
> {<br>
> - 0x3100, 0xffffffff, 0xfffffffc,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> - 0x2698, 0xffffffff, 0x00000100,<br>
> - 0x24a9, 0xffffffff, 0x00000100,<br>
> - 0x3059, 0xffffffff, 0x00000100,<br>
> - 0x25dd, 0xffffffff, 0x00000100,<br>
> - 0x2261, 0xffffffff, 0x06000100,<br>
> - 0x2286, 0xffffffff, 0x00000100,<br>
> - 0x24a8, 0xffffffff, 0x00000100,<br>
> - 0x30e0, 0xffffffff, 0x00000100,<br>
> - 0x22ca, 0xffffffff, 0x00000100,<br>
> - 0x2451, 0xffffffff, 0x00000100,<br>
> - 0x2362, 0xffffffff, 0x00000100,<br>
> - 0x2363, 0xffffffff, 0x00000100,<br>
> - 0x240c, 0xffffffff, 0x00000100,<br>
> - 0x240d, 0xffffffff, 0x00000100,<br>
> - 0x240e, 0xffffffff, 0x00000100,<br>
> - 0x240f, 0xffffffff, 0x00000100,<br>
> - 0x2b60, 0xffffffff, 0x00000100,<br>
> - 0x2b15, 0xffffffff, 0x00000100,<br>
> - 0x225f, 0xffffffff, 0x06000100,<br>
> - 0x261a, 0xffffffff, 0x00000100,<br>
> - 0x2544, 0xffffffff, 0x00000100,<br>
> - 0x2bc1, 0xffffffff, 0x00000100,<br>
> - 0x2b81, 0xffffffff, 0x00000100,<br>
> - 0x2527, 0xffffffff, 0x00000100,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> + mmRLC_CGTT_MGCG_OVERRIDE, 0xffffffff, 0xfffffffc,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> + mmCB_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_BCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_CP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_GDS_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_IA_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmCGTT_PA_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_PC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_RLC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SPI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQ_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQG_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL0, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL1, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL2, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL3, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_VGT_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmDB_CGTT_CLK_CTRL_0, 0xffffffff, 0x00000100,<br>
> + mmTA_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCA_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCC_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTD_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> 0x2458, 0xffffffff, 0x00010000,<br>
> 0x2459, 0xffffffff, 0x00030002,<br>
> 0x245a, 0xffffffff, 0x00040007,<br>
> @@ -615,53 +621,54 @@ static const u32 pitcairn_mgcg_cgcg_init[] =<br>
> 0x2496, 0xffffffff, 0x00100013,<br>
> 0x2497, 0xffffffff, 0x00120011,<br>
> 0x2498, 0xffffffff, 0x00150014,<br>
> - 0x2454, 0xffffffff, 0x96940200,<br>
> - 0x21c2, 0xffffffff, 0x00900100,<br>
> - 0x311e, 0xffffffff, 0x00000080,<br>
> - 0x3101, 0xffffffff, 0x0020003f,<br>
> + mmCGTS_SM_CTRL_REG, 0xffffffff, 0x96940200,<br>
> + mmCP_RB_WPTR_POLL_CNTL, 0xffffffff, 0x00900100,<br>
> + mmRLC_GCPM_GENERAL_3, 0xffffffff, 0x00000080,<br>
> + mmRLC_CGCG_CGLS_CTRL, 0xffffffff, 0x0020003f,<br>
> 0x000c, 0xffffffff, 0x0000001c,<br>
> 0x000d, 0x000f0000, 0x000f0000,<br>
> 0x0583, 0xffffffff, 0x00000100,<br>
> - 0x0409, 0xffffffff, 0x00000100,<br>
> - 0x040b, 0x00000101, 0x00000000,<br>
> - 0x082a, 0xffffffff, 0x00000104,<br>
> - 0x1579, 0xff000fff, 0x00000100,<br>
> + mmXDMA_CLOCK_GATING_CNTL, 0xffffffff, 0x00000100,<br>
> + mmXDMA_MEM_POWER_CNTL, 0x00000101, 0x00000000,<br>
> + mmMC_MEM_POWER_LS, 0xffffffff, 0x00000104,<br>
> + mmCGTT_DRM_CLK_CTRL0, 0xff000fff, 0x00000100,<br>
> 0x157a, 0x00000001, 0x00000001,<br>
> - 0x0bd4, 0x00000001, 0x00000001,<br>
> - 0x0c33, 0xc0000fff, 0x00000104,<br>
> - 0x3079, 0x00000001, 0x00000001,<br>
> + mmHDP_MEM_POWER_LS, 0x00000001, 0x00000001,<br>
> + mmHDP_XDP_CGTT_BLK_CTRL, 0xc0000fff, 0x00000104,<br>
> + mmCP_MEM_SLP_CNTL, 0x00000001, 0x00000001,<br>
> 0x3430, 0xfffffff0, 0x00000100,<br>
> - 0x3630, 0xfffffff0, 0x00000100<br>
> + 0x3630, 0xfffffff0, 0x00000100,<br>
> };<br>
> +<br>
> static const u32 verde_mgcg_cgcg_init[] =<br>
> {<br>
> - 0x3100, 0xffffffff, 0xfffffffc,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> - 0x2698, 0xffffffff, 0x00000100,<br>
> - 0x24a9, 0xffffffff, 0x00000100,<br>
> - 0x3059, 0xffffffff, 0x00000100,<br>
> - 0x25dd, 0xffffffff, 0x00000100,<br>
> - 0x2261, 0xffffffff, 0x06000100,<br>
> - 0x2286, 0xffffffff, 0x00000100,<br>
> - 0x24a8, 0xffffffff, 0x00000100,<br>
> - 0x30e0, 0xffffffff, 0x00000100,<br>
> - 0x22ca, 0xffffffff, 0x00000100,<br>
> - 0x2451, 0xffffffff, 0x00000100,<br>
> - 0x2362, 0xffffffff, 0x00000100,<br>
> - 0x2363, 0xffffffff, 0x00000100,<br>
> - 0x240c, 0xffffffff, 0x00000100,<br>
> - 0x240d, 0xffffffff, 0x00000100,<br>
> - 0x240e, 0xffffffff, 0x00000100,<br>
> - 0x240f, 0xffffffff, 0x00000100,<br>
> - 0x2b60, 0xffffffff, 0x00000100,<br>
> - 0x2b15, 0xffffffff, 0x00000100,<br>
> - 0x225f, 0xffffffff, 0x06000100,<br>
> - 0x261a, 0xffffffff, 0x00000100,<br>
> - 0x2544, 0xffffffff, 0x00000100,<br>
> - 0x2bc1, 0xffffffff, 0x00000100,<br>
> - 0x2b81, 0xffffffff, 0x00000100,<br>
> - 0x2527, 0xffffffff, 0x00000100,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> + mmRLC_CGTT_MGCG_OVERRIDE, 0xffffffff, 0xfffffffc,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> + mmCB_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_BCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_CP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_GDS_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_IA_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmCGTT_PA_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_PC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_RLC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SPI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQ_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQG_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL0, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL1, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL2, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL3, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_VGT_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmDB_CGTT_CLK_CTRL_0, 0xffffffff, 0x00000100,<br>
> + mmTA_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCA_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCC_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTD_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> 0x2458, 0xffffffff, 0x00010000,<br>
> 0x2459, 0xffffffff, 0x00030002,<br>
> 0x245a, 0xffffffff, 0x00040007,<br>
> @@ -712,55 +719,56 @@ static const u32 verde_mgcg_cgcg_init[] =<br>
> 0x2496, 0xffffffff, 0x00100013,<br>
> 0x2497, 0xffffffff, 0x00120011,<br>
> 0x2498, 0xffffffff, 0x00150014,<br>
> - 0x2454, 0xffffffff, 0x96940200,<br>
> - 0x21c2, 0xffffffff, 0x00900100,<br>
> - 0x311e, 0xffffffff, 0x00000080,<br>
> - 0x3101, 0xffffffff, 0x0020003f,<br>
> + mmCGTS_SM_CTRL_REG, 0xffffffff, 0x96940200,<br>
> + mmCP_RB_WPTR_POLL_CNTL, 0xffffffff, 0x00900100,<br>
> + mmRLC_GCPM_GENERAL_3, 0xffffffff, 0x00000080,<br>
> + mmRLC_CGCG_CGLS_CTRL, 0xffffffff, 0x0020003f,<br>
> 0x000c, 0xffffffff, 0x0000001c,<br>
> 0x000d, 0x000f0000, 0x000f0000,<br>
> 0x0583, 0xffffffff, 0x00000100,<br>
> - 0x0409, 0xffffffff, 0x00000100,<br>
> - 0x040b, 0x00000101, 0x00000000,<br>
> - 0x082a, 0xffffffff, 0x00000104,<br>
> - 0x0993, 0x000c0000, 0x000c0000,<br>
> - 0x0992, 0x000c0000, 0x000c0000,<br>
> - 0x1579, 0xff000fff, 0x00000100,<br>
> + mmXDMA_CLOCK_GATING_CNTL, 0xffffffff, 0x00000100,<br>
> + mmXDMA_MEM_POWER_CNTL, 0x00000101, 0x00000000,<br>
> + mmMC_MEM_POWER_LS, 0xffffffff, 0x00000104,<br>
> + mmMC_CITF_MISC_WR_CG, 0x000c0000, 0x000c0000,<br>
> + mmMC_CITF_MISC_RD_CG, 0x000c0000, 0x000c0000,<br>
> + mmCGTT_DRM_CLK_CTRL0, 0xff000fff, 0x00000100,<br>
> 0x157a, 0x00000001, 0x00000001,<br>
> - 0x0bd4, 0x00000001, 0x00000001,<br>
> - 0x0c33, 0xc0000fff, 0x00000104,<br>
> - 0x3079, 0x00000001, 0x00000001,<br>
> + mmHDP_MEM_POWER_LS, 0x00000001, 0x00000001,<br>
> + mmHDP_XDP_CGTT_BLK_CTRL, 0xc0000fff, 0x00000104,<br>
> + mmCP_MEM_SLP_CNTL, 0x00000001, 0x00000001,<br>
> 0x3430, 0xfffffff0, 0x00000100,<br>
> - 0x3630, 0xfffffff0, 0x00000100<br>
> + 0x3630, 0xfffffff0, 0x00000100,<br>
> };<br>
> +<br>
> static const u32 oland_mgcg_cgcg_init[] =<br>
> {<br>
> - 0x3100, 0xffffffff, 0xfffffffc,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> - 0x2698, 0xffffffff, 0x00000100,<br>
> - 0x24a9, 0xffffffff, 0x00000100,<br>
> - 0x3059, 0xffffffff, 0x00000100,<br>
> - 0x25dd, 0xffffffff, 0x00000100,<br>
> - 0x2261, 0xffffffff, 0x06000100,<br>
> - 0x2286, 0xffffffff, 0x00000100,<br>
> - 0x24a8, 0xffffffff, 0x00000100,<br>
> - 0x30e0, 0xffffffff, 0x00000100,<br>
> - 0x22ca, 0xffffffff, 0x00000100,<br>
> - 0x2451, 0xffffffff, 0x00000100,<br>
> - 0x2362, 0xffffffff, 0x00000100,<br>
> - 0x2363, 0xffffffff, 0x00000100,<br>
> - 0x240c, 0xffffffff, 0x00000100,<br>
> - 0x240d, 0xffffffff, 0x00000100,<br>
> - 0x240e, 0xffffffff, 0x00000100,<br>
> - 0x240f, 0xffffffff, 0x00000100,<br>
> - 0x2b60, 0xffffffff, 0x00000100,<br>
> - 0x2b15, 0xffffffff, 0x00000100,<br>
> - 0x225f, 0xffffffff, 0x06000100,<br>
> - 0x261a, 0xffffffff, 0x00000100,<br>
> - 0x2544, 0xffffffff, 0x00000100,<br>
> - 0x2bc1, 0xffffffff, 0x00000100,<br>
> - 0x2b81, 0xffffffff, 0x00000100,<br>
> - 0x2527, 0xffffffff, 0x00000100,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> + mmRLC_CGTT_MGCG_OVERRIDE, 0xffffffff, 0xfffffffc,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> + mmCB_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_BCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_CP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_GDS_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_IA_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmCGTT_PA_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_PC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_RLC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SPI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQ_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQG_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL0, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL1, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL2, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL3, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_VGT_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmDB_CGTT_CLK_CTRL_0, 0xffffffff, 0x00000100,<br>
> + mmTA_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCA_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCC_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTD_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> 0x2458, 0xffffffff, 0x00010000,<br>
> 0x2459, 0xffffffff, 0x00030002,<br>
> 0x245a, 0xffffffff, 0x00040007,<br>
> @@ -791,55 +799,56 @@ static const u32 oland_mgcg_cgcg_init[] =<br>
> 0x2473, 0xffffffff, 0x0000000b,<br>
> 0x2474, 0xffffffff, 0x000a0009,<br>
> 0x2475, 0xffffffff, 0x000d000c,<br>
> - 0x2454, 0xffffffff, 0x96940200,<br>
> - 0x21c2, 0xffffffff, 0x00900100,<br>
> - 0x311e, 0xffffffff, 0x00000080,<br>
> - 0x3101, 0xffffffff, 0x0020003f,<br>
> + mmCGTS_SM_CTRL_REG, 0xffffffff, 0x96940200,<br>
> + mmCP_RB_WPTR_POLL_CNTL, 0xffffffff, 0x00900100,<br>
> + mmRLC_GCPM_GENERAL_3, 0xffffffff, 0x00000080,<br>
> + mmRLC_CGCG_CGLS_CTRL, 0xffffffff, 0x0020003f,<br>
> 0x000c, 0xffffffff, 0x0000001c,<br>
> 0x000d, 0x000f0000, 0x000f0000,<br>
> 0x0583, 0xffffffff, 0x00000100,<br>
> - 0x0409, 0xffffffff, 0x00000100,<br>
> - 0x040b, 0x00000101, 0x00000000,<br>
> - 0x082a, 0xffffffff, 0x00000104,<br>
> - 0x0993, 0x000c0000, 0x000c0000,<br>
> - 0x0992, 0x000c0000, 0x000c0000,<br>
> - 0x1579, 0xff000fff, 0x00000100,<br>
> + mmXDMA_CLOCK_GATING_CNTL, 0xffffffff, 0x00000100,<br>
> + mmXDMA_MEM_POWER_CNTL, 0x00000101, 0x00000000,<br>
> + mmMC_MEM_POWER_LS, 0xffffffff, 0x00000104,<br>
> + mmMC_CITF_MISC_WR_CG, 0x000c0000, 0x000c0000,<br>
> + mmMC_CITF_MISC_RD_CG, 0x000c0000, 0x000c0000,<br>
> + mmCGTT_DRM_CLK_CTRL0, 0xff000fff, 0x00000100,<br>
> 0x157a, 0x00000001, 0x00000001,<br>
> - 0x0bd4, 0x00000001, 0x00000001,<br>
> - 0x0c33, 0xc0000fff, 0x00000104,<br>
> - 0x3079, 0x00000001, 0x00000001,<br>
> + mmHDP_MEM_POWER_LS, 0x00000001, 0x00000001,<br>
> + mmHDP_XDP_CGTT_BLK_CTRL, 0xc0000fff, 0x00000104,<br>
> + mmCP_MEM_SLP_CNTL, 0x00000001, 0x00000001,<br>
> 0x3430, 0xfffffff0, 0x00000100,<br>
> - 0x3630, 0xfffffff0, 0x00000100<br>
> + 0x3630, 0xfffffff0, 0x00000100,<br>
> };<br>
> +<br>
> static const u32 hainan_mgcg_cgcg_init[] =<br>
> {<br>
> - 0x3100, 0xffffffff, 0xfffffffc,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> - 0x2698, 0xffffffff, 0x00000100,<br>
> - 0x24a9, 0xffffffff, 0x00000100,<br>
> - 0x3059, 0xffffffff, 0x00000100,<br>
> - 0x25dd, 0xffffffff, 0x00000100,<br>
> - 0x2261, 0xffffffff, 0x06000100,<br>
> - 0x2286, 0xffffffff, 0x00000100,<br>
> - 0x24a8, 0xffffffff, 0x00000100,<br>
> - 0x30e0, 0xffffffff, 0x00000100,<br>
> - 0x22ca, 0xffffffff, 0x00000100,<br>
> - 0x2451, 0xffffffff, 0x00000100,<br>
> - 0x2362, 0xffffffff, 0x00000100,<br>
> - 0x2363, 0xffffffff, 0x00000100,<br>
> - 0x240c, 0xffffffff, 0x00000100,<br>
> - 0x240d, 0xffffffff, 0x00000100,<br>
> - 0x240e, 0xffffffff, 0x00000100,<br>
> - 0x240f, 0xffffffff, 0x00000100,<br>
> - 0x2b60, 0xffffffff, 0x00000100,<br>
> - 0x2b15, 0xffffffff, 0x00000100,<br>
> - 0x225f, 0xffffffff, 0x06000100,<br>
> - 0x261a, 0xffffffff, 0x00000100,<br>
> - 0x2544, 0xffffffff, 0x00000100,<br>
> - 0x2bc1, 0xffffffff, 0x00000100,<br>
> - 0x2b81, 0xffffffff, 0x00000100,<br>
> - 0x2527, 0xffffffff, 0x00000100,<br>
> - 0x200b, 0xffffffff, 0xe0000000,<br>
> + mmRLC_CGTT_MGCG_OVERRIDE, 0xffffffff, 0xfffffffc,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> + mmCB_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_BCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_CP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_GDS_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_IA_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmCGTT_PA_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_PC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_RLC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SC_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SPI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQ_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SQG_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL0, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL1, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL2, 0xffffffff, 0x00000100,<br>
> + mmCGTT_SX_CLK_CTRL3, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCI_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_TCP_CLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmCGTT_VGT_CLK_CTRL, 0xffffffff, 0x06000100,<br>
> + mmDB_CGTT_CLK_CTRL_0, 0xffffffff, 0x00000100,<br>
> + mmTA_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCA_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTCC_CGTT_SCLK_CTRL, 0xffffffff, 0x00000100,<br>
> + mmTD_CGTT_CTRL, 0xffffffff, 0x00000100,<br>
> + mmGRBM_GFX_INDEX, 0xffffffff, 0xe0000000,<br>
> 0x2458, 0xffffffff, 0x00010000,<br>
> 0x2459, 0xffffffff, 0x00030002,<br>
> 0x245a, 0xffffffff, 0x00040007,<br>
> @@ -870,22 +879,22 @@ static const u32 hainan_mgcg_cgcg_init[] =<br>
> 0x2473, 0xffffffff, 0x0000000b,<br>
> 0x2474, 0xffffffff, 0x000a0009,<br>
> 0x2475, 0xffffffff, 0x000d000c,<br>
> - 0x2454, 0xffffffff, 0x96940200,<br>
> - 0x21c2, 0xffffffff, 0x00900100,<br>
> - 0x311e, 0xffffffff, 0x00000080,<br>
> - 0x3101, 0xffffffff, 0x0020003f,<br>
> + mmCGTS_SM_CTRL_REG, 0xffffffff, 0x96940200,<br>
> + mmCP_RB_WPTR_POLL_CNTL, 0xffffffff, 0x00900100,<br>
> + mmRLC_GCPM_GENERAL_3, 0xffffffff, 0x00000080,<br>
> + mmRLC_CGCG_CGLS_CTRL, 0xffffffff, 0x0020003f,<br>
> 0x000c, 0xffffffff, 0x0000001c,<br>
> 0x000d, 0x000f0000, 0x000f0000,<br>
> 0x0583, 0xffffffff, 0x00000100,<br>
> 0x0409, 0xffffffff, 0x00000100,<br>
> - 0x082a, 0xffffffff, 0x00000104,<br>
> - 0x0993, 0x000c0000, 0x000c0000,<br>
> - 0x0992, 0x000c0000, 0x000c0000,<br>
> - 0x0bd4, 0x00000001, 0x00000001,<br>
> - 0x0c33, 0xc0000fff, 0x00000104,<br>
> - 0x3079, 0x00000001, 0x00000001,<br>
> + mmMC_MEM_POWER_LS, 0xffffffff, 0x00000104,<br>
> + mmMC_CITF_MISC_WR_CG, 0x000c0000, 0x000c0000,<br>
> + mmMC_CITF_MISC_RD_CG, 0x000c0000, 0x000c0000,<br>
> + mmHDP_MEM_POWER_LS, 0x00000001, 0x00000001,<br>
> + mmHDP_XDP_CGTT_BLK_CTRL, 0xc0000fff, 0x00000104,<br>
> + mmCP_MEM_SLP_CNTL, 0x00000001, 0x00000001,<br>
> 0x3430, 0xfffffff0, 0x00000100,<br>
> - 0x3630, 0xfffffff0, 0x00000100<br>
> + 0x3630, 0xfffffff0, 0x00000100,<br>
> };<br>
><br>
> static u32 si_pcie_rreg(struct amdgpu_device *adev, u32 reg)<br>
><br>
</div>
</span></font></div>
</div>
</body>
</html>