Skip to contentSkip to conversation

Vega20 support

PATCH In review Alex Deucher 3 participants 66 messages May 15, 2018 – May 17, 2018 7 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Vega20 support

This patch set adds initial support for vega20.

Alex Deucher (6):
drm/amdgpu/atomfirmware: add new gfx_info data table v2.4 (v2) drm/amdgpu/atomfirmware: add parser for gfx_info table drm/amdgpu/vg20: fallback to vbios table if gpu info fw is not
available (v2)
drm/amdgpu: drop gpu_info firmware for vega20 drm/amdgpu: add df 3.6 headers
drm/amdgpu: flag Vega20 as experimental

Evan Quan (1):
drm/amd/powerplay: update vega20 cg flags

Feifei Xu (35):
drm/amd: Add vega20_ip_offset.h headerfile for vega20. drm/amdgpu: Add vega20 to asic_type enum. drm/amdgpu: Add gpu_info firmware for vega20. drm/amdgpu: set asic family for vega20. drm/amdgpu: Add smu firmware support for vega20 drm/amdgpu/powerplay: Add initial vega20 support v2 drm/amdgpu/psp: Add initial psp support for vega20 drm/amdgpu: Add vega20 ucode loading method drm/amdgpu: Specify vega20 uvd firmware drm/amdgpu: Specify vega20 vce firmware drm/amdgpu/virtual_dce: Add vega20 support drm/amdgpu/gmc9: Add vega20 support drm/amdgpu/mmhub: Add clockgating support for vega20 drm/amdgpu/sdma4: Specify vega20 firmware drm/amdgpu/sdma4: Add vega20 golden settings (v3) drm/amdgpu/sdma4: Add clockgating support for vega20 drm/amdgpu/gfx9: Add support for vega20 firmware drm/amdgpu/gfx9: Add vega20 golden settings (v3) drm/amdgpu/gfx9: Add gfx config for vega20. (v3) drm/amdgpu/gfx9: Add support for vega20 drm/amdgpu/gfx9: Add clockgatting support for vega20 drm/amdgpu/soc15:Add vega20 soc15_common_early_init support drm/amdgpu/soc15: Set common clockgating for vega20. drm/amdgpu/soc15: dynamic initialize ip offset for vega20 drm/amdgpu/soc15: Add ip blocks for vega20 (v2) drm/amdgpu: Add nbio support for vega20 (v2) drm/amd/display/dm: Add vega20 support drm/amdgpu: Add vega20 to dc support check drm/amd/display: Remove COMBO_DISPLAY_PLL0 from Vega20 drm/amdgpu: Set vega20 load_type to AMDGPU_FW_LOAD_DIRECT. drm/include: Fix MP1_BASE address for vega20 drm/amdgpu: Disable ip modules that are not ready yet drm/amdgpu/df: implement df v3_6 callback functions (v2) drm/amdgpu: Switch to use df_v3_6_funcs for vega20 (v2) drm/amdgpu: Add vega20 pci ids

James Zhu (10):
drm/amd/include/vg20: adjust VCE_BASE to reuse vce 4.0 header files drm/amdgpu/vg20:Restruct uvd to support multiple uvds drm/amdgpu/vg20:Restruct uvd.inst to support multiple instances drm/amdgpu/vg20:Restruct uvd.idle_work to support multiple instance

    (v2)

drm/amdgpu/vg20:increase 3 rings for AMDGPU_MAX_RINGS drm/amdgpu/vg20:Enable the 2nd instance for uvd drm/amdgpu/vg20:Add IH client ID for the 2nd UVD drm/amdgpu/vg20:Enable the 2nd instance IRQ for uvd 7.2 drm/amdgpu/vg20:Enable 2nd instance queue maping for uvd 7.2 drm/amdgpu/vg20:Enable UVD/VCE for Vega20

Jerry (Fangzhi) Zuo (3):
drm/amd/display: Add Vega20 config. support drm/amd/display: Add BIOS smu_info v3_3 support for Vega20 drm/amd/display: Add harvest IP support for Vega20

Roman Li (1):
drm/amd: Add dce-12.1 gpio aux registers

Shaoyun Liu (1):
drm/amdgpu: Add vega20 soc init sequence on emulator (v3)

 drivers/gpu/drm/amd/amdgpu/Makefile                |     6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c   |    46 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h   |     1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c            |     3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c         |     4 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c            |     7 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c          |     6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c            |    12 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c            |     1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c      |    14 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c           |     1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h           |     2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c          |     2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c            |   283 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h            |    26 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c            |     5 +
 drivers/gpu/drm/amd/amdgpu/dce_virtual.c           |     1 +
 drivers/gpu/drm/amd/amdgpu/df_v3_6.c               |   116 +
 drivers/gpu/drm/amd/amdgpu/df_v3_6.h               |    40 +
 drivers/gpu/drm/amd/amdgpu/emu_soc.c               | 10091 +++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c              |    60 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c              |     3 +
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c            |     1 +
 drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c             |    18 +-
 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c              |     3 +
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c             |    33 +
 drivers/gpu/drm/amd/amdgpu/soc15.c                 |    43 +-
 drivers/gpu/drm/amd/amdgpu/soc15.h                 |     1 +
 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c              |    27 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c              |    25 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c              |    77 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c              |  1050 +-
 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c       |    53 +
 drivers/gpu/drm/amd/display/Kconfig                |     9 +
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |     4 +
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c |     5 +
 drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c    |    11 +-
 .../drm/amd/display/dc/dce120/dce120_resource.c    |   208 +
 drivers/gpu/drm/amd/display/include/dal_asic_id.h  |     6 +
 .../drm/amd/include/asic_reg/dce/dce_12_0_offset.h |    12 +
 .../amd/include/asic_reg/dce/dce_12_0_sh_mask.h    |   152 +
 .../drm/amd/include/asic_reg/df/df_3_6_default.h   |    26 +
 .../drm/amd/include/asic_reg/df/df_3_6_offset.h    |    33 +
 .../drm/amd/include/asic_reg/df/df_3_6_sh_mask.h   |    48 +
 drivers/gpu/drm/amd/include/atomfirmware.h         |    34 +
 drivers/gpu/drm/amd/include/soc15_ih_clientid.h    |     1 +
 drivers/gpu/drm/amd/include/vega20_ip_offset.h     |  1051 ++
 drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c        |     1 +
 drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c      |     1 +
 include/drm/amd_asic_type.h                        |     1 +
 50 files changed, 12949 insertions(+), 715 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/df_v3_6.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/df_v3_6.h
 create mode 100644 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c
 mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_offset.h
 mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_sh_mask.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_default.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_offset.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_sh_mask.h
 create mode 100644 drivers/gpu/drm/amd/include/vega20_ip_offset.h
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180515145933.12063-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#2 lore raw

PATCH 1/57 drm/amd: Add vega20_ip_offset.h headerfile for vega20.

From: Feifei Xu <[email protected]>

This headerfile contains vega20's ip base addresses.

---
 drivers/gpu/drm/amd/include/vega20_ip_offset.h | 1050 ++++++++++++++++++++++++
 1 file changed, 1050 insertions(+)
 create mode 100644 drivers/gpu/drm/amd/include/vega20_ip_offset.h
drivers/gpu/drm/amd/include/vega20_ip_offset.h new file +1050 -0
new file mode 100644
index 000000000000..2da2d9790bac
@@ -0,0 +1,1050 @@
+/*
+ * Copyright (C) 2018  Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _vega20_ip_offset_HEADER
+#define _vega20_ip_offset_HEADER
+
+#define MAX_INSTANCE                                       6
+#define MAX_SEGMENT                                        6
+
+
+struct IP_BASE_INSTANCE
+{
+    unsigned int segment[MAX_SEGMENT];
+};
+
+struct IP_BASE
+{
+    struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
+};
+
+
+static const struct IP_BASE ATHUB_BASE            ={ { { { 0x00000C20, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE CLK_BASE            ={ { { { 0x00016C00, 0x00016E00, 0x00017000, 0x00017200, 0x0001B000, 0x0001B200 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE DCE_BASE            ={ { { { 0x00000012, 0x000000C0, 0x000034C0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE DF_BASE            ={ { { { 0x00007000, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE FUSE_BASE            ={ { { { 0x00017400, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE GC_BASE            ={ { { { 0x00002000, 0x0000A000, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE HDP_BASE            ={ { { { 0x00000F20, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE MMHUB_BASE            ={ { { { 0x0001A000, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE MP0_BASE            ={ { { { 0x00016000, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE MP1_BASE            ={ { { { 0x00016200, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE NBIO_BASE            ={ { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE OSSSYS_BASE            ={ { { { 0x000010A0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE SDMA0_BASE            ={ { { { 0x00001260, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE SDMA1_BASE            ={ { { { 0x00001860, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE SMUIO_BASE            ={ { { { 0x00016800, 0x00016A00, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE THM_BASE            ={ { { { 0x00016600, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE UMC_BASE            ={ { { { 0x00014000, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE UVD_BASE            ={ { { { 0x00007800, 0x00007E00, 0, 0, 0, 0 } },
+                                        { { 0, 0x00009000, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE VCE_BASE            ={ { { { 0x00008800, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE XDMA_BASE            ={ { { { 0x00003400, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+static const struct IP_BASE RSMU_BASE            ={ { { { 0x00012000, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } },
+                                        { { 0, 0, 0, 0, 0, 0 } } } };
+
+
+#define ATHUB_BASE__INST0_SEG0                     0x00000C20
+#define ATHUB_BASE__INST0_SEG1                     0
+#define ATHUB_BASE__INST0_SEG2                     0
+#define ATHUB_BASE__INST0_SEG3                     0
+#define ATHUB_BASE__INST0_SEG4                     0
+#define ATHUB_BASE__INST0_SEG5                     0
+
+#define ATHUB_BASE__INST1_SEG0                     0
+#define ATHUB_BASE__INST1_SEG1                     0
+#define ATHUB_BASE__INST1_SEG2                     0
+#define ATHUB_BASE__INST1_SEG3                     0
+#define ATHUB_BASE__INST1_SEG4                     0
+#define ATHUB_BASE__INST1_SEG5                     0
+
+#define ATHUB_BASE__INST2_SEG0                     0
+#define ATHUB_BASE__INST2_SEG1                     0
+#define ATHUB_BASE__INST2_SEG2                     0
+#define ATHUB_BASE__INST2_SEG3                     0
+#define ATHUB_BASE__INST2_SEG4                     0
+#define ATHUB_BASE__INST2_SEG5                     0
+
+#define ATHUB_BASE__INST3_SEG0                     0
+#define ATHUB_BASE__INST3_SEG1                     0
+#define ATHUB_BASE__INST3_SEG2                     0
+#define ATHUB_BASE__INST3_SEG3                     0
+#define ATHUB_BASE__INST3_SEG4                     0
+#define ATHUB_BASE__INST3_SEG5                     0
+
+#define ATHUB_BASE__INST4_SEG0                     0
+#define ATHUB_BASE__INST4_SEG1                     0
+#define ATHUB_BASE__INST4_SEG2                     0
+#define ATHUB_BASE__INST4_SEG3                     0
+#define ATHUB_BASE__INST4_SEG4                     0
+#define ATHUB_BASE__INST4_SEG5                     0
+
+#define ATHUB_BASE__INST5_SEG0                     0
+#define ATHUB_BASE__INST5_SEG1                     0
+#define ATHUB_BASE__INST5_SEG2                     0
+#define ATHUB_BASE__INST5_SEG3                     0
+#define ATHUB_BASE__INST5_SEG4                     0
+#define ATHUB_BASE__INST5_SEG5                     0
+
+#define CLK_BASE__INST0_SEG0                       0x00016C00
+#define CLK_BASE__INST0_SEG1                       0x00016E00
+#define CLK_BASE__INST0_SEG2                       0x00017000
+#define CLK_BASE__INST0_SEG3                       0x00017200
+#define CLK_BASE__INST0_SEG4                       0x0001B000
+#define CLK_BASE__INST0_SEG5                       0x0001B200
+
+#define CLK_BASE__INST1_SEG0                       0
+#define CLK_BASE__INST1_SEG1                       0
+#define CLK_BASE__INST1_SEG2                       0
+#define CLK_BASE__INST1_SEG3                       0
+#define CLK_BASE__INST1_SEG4                       0
+#define CLK_BASE__INST1_SEG5                       0
+
+#define CLK_BASE__INST2_SEG0                       0
+#define CLK_BASE__INST2_SEG1                       0
+#define CLK_BASE__INST2_SEG2                       0
+#define CLK_BASE__INST2_SEG3                       0
+#define CLK_BASE__INST2_SEG4                       0
+#define CLK_BASE__INST2_SEG5                       0
+
+#define CLK_BASE__INST3_SEG0                       0
+#define CLK_BASE__INST3_SEG1                       0
+#define CLK_BASE__INST3_SEG2                       0
+#define CLK_BASE__INST3_SEG3                       0
+#define CLK_BASE__INST3_SEG4                       0
+#define CLK_BASE__INST3_SEG5                       0
+
+#define CLK_BASE__INST4_SEG0                       0
+#define CLK_BASE__INST4_SEG1                       0
+#define CLK_BASE__INST4_SEG2                       0
+#define CLK_BASE__INST4_SEG3                       0
+#define CLK_BASE__INST4_SEG4                       0
+#define CLK_BASE__INST4_SEG5                       0
+
+#define CLK_BASE__INST5_SEG0                       0
+#define CLK_BASE__INST5_SEG1                       0
+#define CLK_BASE__INST5_SEG2                       0
+#define CLK_BASE__INST5_SEG3                       0
+#define CLK_BASE__INST5_SEG4                       0
+#define CLK_BASE__INST5_SEG5                       0
+
+#define DCE_BASE__INST0_SEG0                       0x00000012
+#define DCE_BASE__INST0_SEG1                       0x000000C0
+#define DCE_BASE__INST0_SEG2                       0x000034C0
+#define DCE_BASE__INST0_SEG3                       0
+#define DCE_BASE__INST0_SEG4                       0
+#define DCE_BASE__INST0_SEG5                       0
+
+#define DCE_BASE__INST1_SEG0                       0
+#define DCE_BASE__INST1_SEG1                       0
+#define DCE_BASE__INST1_SEG2                       0
+#define DCE_BASE__INST1_SEG3                       0
+#define DCE_BASE__INST1_SEG4                       0
+#define DCE_BASE__INST1_SEG5                       0
+
+#define DCE_BASE__INST2_SEG0                       0
+#define DCE_BASE__INST2_SEG1                       0
+#define DCE_BASE__INST2_SEG2                       0
+#define DCE_BASE__INST2_SEG3                       0
+#define DCE_BASE__INST2_SEG4                       0
+#define DCE_BASE__INST2_SEG5                       0
+
+#define DCE_BASE__INST3_SEG0                       0
+#define DCE_BASE__INST3_SEG1                       0
+#define DCE_BASE__INST3_SEG2                       0
+#define DCE_BASE__INST3_SEG3                       0
+#define DCE_BASE__INST3_SEG4                       0
+#define DCE_BASE__INST3_SEG5                       0
+
+#define DCE_BASE__INST4_SEG0                       0
+#define DCE_BASE__INST4_SEG1                       0
+#define DCE_BASE__INST4_SEG2                       0
+#define DCE_BASE__INST4_SEG3                       0
+#define DCE_BASE__INST4_SEG4                       0
+#define DCE_BASE__INST4_SEG5                       0
+
+#define DCE_BASE__INST5_SEG0                       0
+#define DCE_BASE__INST5_SEG1                       0
+#define DCE_BASE__INST5_SEG2                       0
+#define DCE_BASE__INST5_SEG3                       0
+#define DCE_BASE__INST5_SEG4                       0
+#define DCE_BASE__INST5_SEG5                       0
+
+#define DF_BASE__INST0_SEG0                        0x00007000
+#define DF_BASE__INST0_SEG1                        0
+#define DF_BASE__INST0_SEG2                        0
+#define DF_BASE__INST0_SEG3                        0
+#define DF_BASE__INST0_SEG4                        0
+#define DF_BASE__INST0_SEG5                        0
+
+#define DF_BASE__INST1_SEG0                        0
+#define DF_BASE__INST1_SEG1                        0
+#define DF_BASE__INST1_SEG2                        0
+#define DF_BASE__INST1_SEG3                        0
+#define DF_BASE__INST1_SEG4                        0
+#define DF_BASE__INST1_SEG5                        0
+
+#define DF_BASE__INST2_SEG0                        0
+#define DF_BASE__INST2_SEG1                        0
+#define DF_BASE__INST2_SEG2                        0
+#define DF_BASE__INST2_SEG3                        0
+#define DF_BASE__INST2_SEG4                        0
+#define DF_BASE__INST2_SEG5                        0
+
+#define DF_BASE__INST3_SEG0                        0
+#define DF_BASE__INST3_SEG1                        0
+#define DF_BASE__INST3_SEG2                        0
+#define DF_BASE__INST3_SEG3                        0
+#define DF_BASE__INST3_SEG4                        0
+#define DF_BASE__INST3_SEG5                        0
+
+#define DF_BASE__INST4_SEG0                        0
+#define DF_BASE__INST4_SEG1                        0
+#define DF_BASE__INST4_SEG2                        0
+#define DF_BASE__INST4_SEG3                        0
+#define DF_BASE__INST4_SEG4                        0
+#define DF_BASE__INST4_SEG5                        0
+
+#define DF_BASE__INST5_SEG0                        0
+#define DF_BASE__INST5_SEG1                        0
+#define DF_BASE__INST5_SEG2                        0
+#define DF_BASE__INST5_SEG3                        0
+#define DF_BASE__INST5_SEG4                        0
+#define DF_BASE__INST5_SEG5                        0
+
+#define FUSE_BASE__INST0_SEG0                      0x00017400
+#define FUSE_BASE__INST0_SEG1                      0
+#define FUSE_BASE__INST0_SEG2                      0
+#define FUSE_BASE__INST0_SEG3                      0
+#define FUSE_BASE__INST0_SEG4                      0
+#define FUSE_BASE__INST0_SEG5                      0
+
+#define FUSE_BASE__INST1_SEG0                      0
+#define FUSE_BASE__INST1_SEG1                      0
+#define FUSE_BASE__INST1_SEG2                      0
+#define FUSE_BASE__INST1_SEG3                      0
+#define FUSE_BASE__INST1_SEG4                      0
+#define FUSE_BASE__INST1_SEG5                      0
+
+#define FUSE_BASE__INST2_SEG0                      0
+#define FUSE_BASE__INST2_SEG1                      0
+#define FUSE_BASE__INST2_SEG2                      0
+#define FUSE_BASE__INST2_SEG3                      0
+#define FUSE_BASE__INST2_SEG4                      0
+#define FUSE_BASE__INST2_SEG5                      0
+
+#define FUSE_BASE__INST3_SEG0                      0
+#define FUSE_BASE__INST3_SEG1                      0
+#define FUSE_BASE__INST3_SEG2                      0
+#define FUSE_BASE__INST3_SEG3                      0
+#define FUSE_BASE__INST3_SEG4                      0
+#define FUSE_BASE__INST3_SEG5                      0
+
+#define FUSE_BASE__INST4_SEG0                      0
+#define FUSE_BASE__INST4_SEG1                      0
+#define FUSE_BASE__INST4_SEG2                      0
+#define FUSE_BASE__INST4_SEG3                      0
+#define FUSE_BASE__INST4_SEG4                      0
+#define FUSE_BASE__INST4_SEG5                      0
+
+#define FUSE_BASE__INST5_SEG0                      0
+#define FUSE_BASE__INST5_SEG1                      0
+#define FUSE_BASE__INST5_SEG2                      0
+#define FUSE_BASE__INST5_SEG3                      0
+#define FUSE_BASE__INST5_SEG4                      0
+#define FUSE_BASE__INST5_SEG5                      0
+
+#define GC_BASE__INST0_SEG0                        0x00002000
+#define GC_BASE__INST0_SEG1                        0x0000A000
+#define GC_BASE__INST0_SEG2                        0
+#define GC_BASE__INST0_SEG3                        0
+#define GC_BASE__INST0_SEG4                        0
+#define GC_BASE__INST0_SEG5                        0
+
+#define GC_BASE__INST1_SEG0                        0
+#define GC_BASE__INST1_SEG1                        0
+#define GC_BASE__INST1_SEG2                        0
+#define GC_BASE__INST1_SEG3                        0
+#define GC_BASE__INST1_SEG4                        0
+#define GC_BASE__INST1_SEG5                        0
+
+#define GC_BASE__INST2_SEG0                        0
+#define GC_BASE__INST2_SEG1                        0
+#define GC_BASE__INST2_SEG2                        0
+#define GC_BASE__INST2_SEG3                        0
+#define GC_BASE__INST2_SEG4                        0
+#define GC_BASE__INST2_SEG5                        0
+
+#define GC_BASE__INST3_SEG0                        0
+#define GC_BASE__INST3_SEG1                        0
+#define GC_BASE__INST3_SEG2                        0
+#define GC_BASE__INST3_SEG3                        0
+#define GC_BASE__INST3_SEG4                        0
+#define GC_BASE__INST3_SEG5                        0
+
+#define GC_BASE__INST4_SEG0                        0
+#define GC_BASE__INST4_SEG1                        0
+#define GC_BASE__INST4_SEG2                        0
+#define GC_BASE__INST4_SEG3                        0
+#define GC_BASE__INST4_SEG4                        0
+#define GC_BASE__INST4_SEG5                        0
+
+#define GC_BASE__INST5_SEG0                        0
+#define GC_BASE__INST5_SEG1                        0
+#define GC_BASE__INST5_SEG2                        0
+#define GC_BASE__INST5_SEG3                        0
+#define GC_BASE__INST5_SEG4                        0
+#define GC_BASE__INST5_SEG5                        0
+
+#define HDP_BASE__INST0_SEG0                       0x00000F20
+#define HDP_BASE__INST0_SEG1                       0
+#define HDP_BASE__INST0_SEG2                       0
+#define HDP_BASE__INST0_SEG3                       0
+#define HDP_BASE__INST0_SEG4                       0
+#define HDP_BASE__INST0_SEG5                       0
+
+#define HDP_BASE__INST1_SEG0                       0
+#define HDP_BASE__INST1_SEG1                       0
+#define HDP_BASE__INST1_SEG2                       0
+#define HDP_BASE__INST1_SEG3                       0
+#define HDP_BASE__INST1_SEG4                       0
+#define HDP_BASE__INST1_SEG5                       0
+
+#define HDP_BASE__INST2_SEG0                       0
+#define HDP_BASE__INST2_SEG1                       0
+#define HDP_BASE__INST2_SEG2                       0
+#define HDP_BASE__INST2_SEG3                       0
+#define HDP_BASE__INST2_SEG4                       0
+#define HDP_BASE__INST2_SEG5                       0
+
+#define HDP_BASE__INST3_SEG0                       0
+#define HDP_BASE__INST3_SEG1                       0
+#define HDP_BASE__INST3_SEG2                       0
+#define HDP_BASE__INST3_SEG3                       0
+#define HDP_BASE__INST3_SEG4                       0
+#define HDP_BASE__INST3_SEG5                       0
+
+#define HDP_BASE__INST4_SEG0                       0
+#define HDP_BASE__INST4_SEG1                       0
+#define HDP_BASE__INST4_SEG2                       0
+#define HDP_BASE__INST4_SEG3                       0
+#define HDP_BASE__INST4_SEG4                       0
+#define HDP_BASE__INST4_SEG5                       0
+
+#define HDP_BASE__INST5_SEG0                       0
+#define HDP_BASE__INST5_SEG1                       0
+#define HDP_BASE__INST5_SEG2                       0
+#define HDP_BASE__INST5_SEG3                       0
+#define HDP_BASE__INST5_SEG4                       0
+#define HDP_BASE__INST5_SEG5                       0
+
+#define MMHUB_BASE__INST0_SEG0                     0x0001A000
+#define MMHUB_BASE__INST0_SEG1                     0
+#define MMHUB_BASE__INST0_SEG2                     0
+#define MMHUB_BASE__INST0_SEG3                     0
+#define MMHUB_BASE__INST0_SEG4                     0
+#define MMHUB_BASE__INST0_SEG5                     0
+
+#define MMHUB_BASE__INST1_SEG0                     0
+#define MMHUB_BASE__INST1_SEG1                     0
+#define MMHUB_BASE__INST1_SEG2                     0
+#define MMHUB_BASE__INST1_SEG3                     0
+#define MMHUB_BASE__INST1_SEG4                     0
+#define MMHUB_BASE__INST1_SEG5                     0
+
+#define MMHUB_BASE__INST2_SEG0                     0
+#define MMHUB_BASE__INST2_SEG1                     0
+#define MMHUB_BASE__INST2_SEG2                     0
+#define MMHUB_BASE__INST2_SEG3                     0
+#define MMHUB_BASE__INST2_SEG4                     0
+#define MMHUB_BASE__INST2_SEG5                     0
+
+#define MMHUB_BASE__INST3_SEG0                     0
+#define MMHUB_BASE__INST3_SEG1                     0
+#define MMHUB_BASE__INST3_SEG2                     0
+#define MMHUB_BASE__INST3_SEG3                     0
+#define MMHUB_BASE__INST3_SEG4                     0
+#define MMHUB_BASE__INST3_SEG5                     0
+
+#define MMHUB_BASE__INST4_SEG0                     0
+#define MMHUB_BASE__INST4_SEG1                     0
+#define MMHUB_BASE__INST4_SEG2                     0
+#define MMHUB_BASE__INST4_SEG3                     0
+#define MMHUB_BASE__INST4_SEG4                     0
+#define MMHUB_BASE__INST4_SEG5                     0
+
+#define MMHUB_BASE__INST5_SEG0                     0
+#define MMHUB_BASE__INST5_SEG1                     0
+#define MMHUB_BASE__INST5_SEG2                     0
+#define MMHUB_BASE__INST5_SEG3                     0
+#define MMHUB_BASE__INST5_SEG4                     0
+#define MMHUB_BASE__INST5_SEG5                     0
+
+#define MP0_BASE__INST0_SEG0                       0x00016000
+#define MP0_BASE__INST0_SEG1                       0
+#define MP0_BASE__INST0_SEG2                       0
+#define MP0_BASE__INST0_SEG3                       0
+#define MP0_BASE__INST0_SEG4                       0
+#define MP0_BASE__INST0_SEG5                       0
+
+#define MP0_BASE__INST1_SEG0                       0
+#define MP0_BASE__INST1_SEG1                       0
+#define MP0_BASE__INST1_SEG2                       0
+#define MP0_BASE__INST1_SEG3                       0
+#define MP0_BASE__INST1_SEG4                       0
+#define MP0_BASE__INST1_SEG5                       0
+
+#define MP0_BASE__INST2_SEG0                       0
+#define MP0_BASE__INST2_SEG1                       0
+#define MP0_BASE__INST2_SEG2                       0
+#define MP0_BASE__INST2_SEG3                       0
+#define MP0_BASE__INST2_SEG4                       0
+#define MP0_BASE__INST2_SEG5                       0
+
+#define MP0_BASE__INST3_SEG0                       0
+#define MP0_BASE__INST3_SEG1                       0
+#define MP0_BASE__INST3_SEG2                       0
+#define MP0_BASE__INST3_SEG3                       0
+#define MP0_BASE__INST3_SEG4                       0
+#define MP0_BASE__INST3_SEG5                       0
+
+#define MP0_BASE__INST4_SEG0                       0
+#define MP0_BASE__INST4_SEG1                       0
+#define MP0_BASE__INST4_SEG2                       0
+#define MP0_BASE__INST4_SEG3                       0
+#define MP0_BASE__INST4_SEG4                       0
+#define MP0_BASE__INST4_SEG5                       0
+
+#define MP0_BASE__INST5_SEG0                       0
+#define MP0_BASE__INST5_SEG1                       0
+#define MP0_BASE__INST5_SEG2                       0
+#define MP0_BASE__INST5_SEG3                       0
+#define MP0_BASE__INST5_SEG4                       0
+#define MP0_BASE__INST5_SEG5                       0
+
+#define MP1_BASE__INST0_SEG0                       0x00016200
+#define MP1_BASE__INST0_SEG1                       0
+#define MP1_BASE__INST0_SEG2                       0
+#define MP1_BASE__INST0_SEG3                       0
+#define MP1_BASE__INST0_SEG4                       0
+#define MP1_BASE__INST0_SEG5                       0
+
+#define MP1_BASE__INST1_SEG0                       0
+#define MP1_BASE__INST1_SEG1                       0
+#define MP1_BASE__INST1_SEG2                       0
+#define MP1_BASE__INST1_SEG3                       0
+#define MP1_BASE__INST1_SEG4                       0
+#define MP1_BASE__INST1_SEG5                       0
+
+#define MP1_BASE__INST2_SEG0                       0
+#define MP1_BASE__INST2_SEG1                       0
+#define MP1_BASE__INST2_SEG2                       0
+#define MP1_BASE__INST2_SEG3                       0
+#define MP1_BASE__INST2_SEG4                       0
+#define MP1_BASE__INST2_SEG5                       0
+
+#define MP1_BASE__INST3_SEG0                       0
+#define MP1_BASE__INST3_SEG1                       0
+#define MP1_BASE__INST3_SEG2                       0
+#define MP1_BASE__INST3_SEG3                       0
+#define MP1_BASE__INST3_SEG4                       0
+#define MP1_BASE__INST3_SEG5                       0
+
+#define MP1_BASE__INST4_SEG0                       0
+#define MP1_BASE__INST4_SEG1                       0
+#define MP1_BASE__INST4_SEG2                       0
+#define MP1_BASE__INST4_SEG3                       0
+#define MP1_BASE__INST4_SEG4                       0
+#define MP1_BASE__INST4_SEG5                       0
+
+#define MP1_BASE__INST5_SEG0                       0
+#define MP1_BASE__INST5_SEG1                       0
+#define MP1_BASE__INST5_SEG2                       0
+#define MP1_BASE__INST5_SEG3                       0
+#define MP1_BASE__INST5_SEG4                       0
+#define MP1_BASE__INST5_SEG5                       0
+
+#define NBIO_BASE__INST0_SEG0                      0x00000000
+#define NBIO_BASE__INST0_SEG1                      0x00000014
+#define NBIO_BASE__INST0_SEG2                      0x00000D20
+#define NBIO_BASE__INST0_SEG3                      0x00010400
+#define NBIO_BASE__INST0_SEG4                      0
+#define NBIO_BASE__INST0_SEG5                      0
+
+#define NBIO_BASE__INST1_SEG0                      0
+#define NBIO_BASE__INST1_SEG1                      0
+#define NBIO_BASE__INST1_SEG2                      0
+#define NBIO_BASE__INST1_SEG3                      0
+#define NBIO_BASE__INST1_SEG4                      0
+#define NBIO_BASE__INST1_SEG5                      0
+
+#define NBIO_BASE__INST2_SEG0                      0
+#define NBIO_BASE__INST2_SEG1                      0
+#define NBIO_BASE__INST2_SEG2                      0
+#define NBIO_BASE__INST2_SEG3                      0
+#define NBIO_BASE__INST2_SEG4                      0
+#define NBIO_BASE__INST2_SEG5                      0
+
+#define NBIO_BASE__INST3_SEG0                      0
+#define NBIO_BASE__INST3_SEG1                      0
+#define NBIO_BASE__INST3_SEG2                      0
+#define NBIO_BASE__INST3_SEG3                      0
+#define NBIO_BASE__INST3_SEG4                      0
+#define NBIO_BASE__INST3_SEG5                      0
+
+#define NBIO_BASE__INST4_SEG0                      0
+#define NBIO_BASE__INST4_SEG1                      0
+#define NBIO_BASE__INST4_SEG2                      0
+#define NBIO_BASE__INST4_SEG3                      0
+#define NBIO_BASE__INST4_SEG4                      0
+#define NBIO_BASE__INST4_SEG5                      0
+
+#define NBIO_BASE__INST5_SEG0                      0
+#define NBIO_BASE__INST5_SEG1                      0
+#define NBIO_BASE__INST5_SEG2                      0
+#define NBIO_BASE__INST5_SEG3                      0
+#define NBIO_BASE__INST5_SEG4                      0
+#define NBIO_BASE__INST5_SEG5                      0
+
+#define OSSSYS_BASE__INST0_SEG0                    0x000010A0
+#define OSSSYS_BASE__INST0_SEG1                    0
+#define OSSSYS_BASE__INST0_SEG2                    0
+#define OSSSYS_BASE__INST0_SEG3                    0
+#define OSSSYS_BASE__INST0_SEG4                    0
+#define OSSSYS_BASE__INST0_SEG5                    0
+
+#define OSSSYS_BASE__INST1_SEG0                    0
+#define OSSSYS_BASE__INST1_SEG1                    0
+#define OSSSYS_BASE__INST1_SEG2                    0
+#define OSSSYS_BASE__INST1_SEG3                    0
+#define OSSSYS_BASE__INST1_SEG4                    0
+#define OSSSYS_BASE__INST1_SEG5                    0
+
+#define OSSSYS_BASE__INST2_SEG0                    0
+#define OSSSYS_BASE__INST2_SEG1                    0
+#define OSSSYS_BASE__INST2_SEG2                    0
+#define OSSSYS_BASE__INST2_SEG3                    0
+#define OSSSYS_BASE__INST2_SEG4                    0
+#define OSSSYS_BASE__INST2_SEG5                    0
+
+#define OSSSYS_BASE__INST3_SEG0                    0
+#define OSSSYS_BASE__INST3_SEG1                    0
+#define OSSSYS_BASE__INST3_SEG2                    0
+#define OSSSYS_BASE__INST3_SEG3                    0
+#define OSSSYS_BASE__INST3_SEG4                    0
+#define OSSSYS_BASE__INST3_SEG5                    0
+
+#define OSSSYS_BASE__INST4_SEG0                    0
+#define OSSSYS_BASE__INST4_SEG1                    0
+#define OSSSYS_BASE__INST4_SEG2                    0
+#define OSSSYS_BASE__INST4_SEG3                    0
+#define OSSSYS_BASE__INST4_SEG4                    0
+#define OSSSYS_BASE__INST4_SEG5                    0
+
+#define OSSSYS_BASE__INST5_SEG0                    0
+#define OSSSYS_BASE__INST5_SEG1                    0
+#define OSSSYS_BASE__INST5_SEG2                    0
+#define OSSSYS_BASE__INST5_SEG3                    0
+#define OSSSYS_BASE__INST5_SEG4                    0
+#define OSSSYS_BASE__INST5_SEG5                    0
+
+#define SDMA0_BASE__INST0_SEG0                     0x00001260
+#define SDMA0_BASE__INST0_SEG1                     0
+#define SDMA0_BASE__INST0_SEG2                     0
+#define SDMA0_BASE__INST0_SEG3                     0
+#define SDMA0_BASE__INST0_SEG4                     0
+#define SDMA0_BASE__INST0_SEG5                     0
+
+#define SDMA0_BASE__INST1_SEG0                     0
+#define SDMA0_BASE__INST1_SEG1                     0
+#define SDMA0_BASE__INST1_SEG2                     0
+#define SDMA0_BASE__INST1_SEG3                     0
+#define SDMA0_BASE__INST1_SEG4                     0
+#define SDMA0_BASE__INST1_SEG5                     0
+
+#define SDMA0_BASE__INST2_SEG0                     0
+#define SDMA0_BASE__INST2_SEG1                     0
+#define SDMA0_BASE__INST2_SEG2                     0
+#define SDMA0_BASE__INST2_SEG3                     0
+#define SDMA0_BASE__INST2_SEG4                     0
+#define SDMA0_BASE__INST2_SEG5                     0
+
+#define SDMA0_BASE__INST3_SEG0                     0
+#define SDMA0_BASE__INST3_SEG1                     0
+#define SDMA0_BASE__INST3_SEG2                     0
+#define SDMA0_BASE__INST3_SEG3                     0
+#define SDMA0_BASE__INST3_SEG4                     0
+#define SDMA0_BASE__INST3_SEG5                     0
+
+#define SDMA0_BASE__INST4_SEG0                     0
+#define SDMA0_BASE__INST4_SEG1                     0
+#define SDMA0_BASE__INST4_SEG2                     0
+#define SDMA0_BASE__INST4_SEG3                     0
+#define SDMA0_BASE__INST4_SEG4                     0
+#define SDMA0_BASE__INST4_SEG5                     0
+
+#define SDMA0_BASE__INST5_SEG0                     0
+#define SDMA0_BASE__INST5_SEG1                     0
+#define SDMA0_BASE__INST5_SEG2                     0
+#define SDMA0_BASE__INST5_SEG3                     0
+#define SDMA0_BASE__INST5_SEG4                     0
+#define SDMA0_BASE__INST5_SEG5                     0
+
+#define SDMA1_BASE__INST0_SEG0                     0x00001860
+#define SDMA1_BASE__INST0_SEG1                     0
+#define SDMA1_BASE__INST0_SEG2                     0
+#define SDMA1_BASE__INST0_SEG3                     0
+#define SDMA1_BASE__INST0_SEG4                     0
+#define SDMA1_BASE__INST0_SEG5                     0
+
+#define SDMA1_BASE__INST1_SEG0                     0
+#define SDMA1_BASE__INST1_SEG1                     0
+#define SDMA1_BASE__INST1_SEG2                     0
+#define SDMA1_BASE__INST1_SEG3                     0
+#define SDMA1_BASE__INST1_SEG4                     0
+#define SDMA1_BASE__INST1_SEG5                     0
+
+#define SDMA1_BASE__INST2_SEG0                     0
+#define SDMA1_BASE__INST2_SEG1                     0
+#define SDMA1_BASE__INST2_SEG2                     0
+#define SDMA1_BASE__INST2_SEG3                     0
+#define SDMA1_BASE__INST2_SEG4                     0
+#define SDMA1_BASE__INST2_SEG5                     0
+
+#define SDMA1_BASE__INST3_SEG0                     0
+#define SDMA1_BASE__INST3_SEG1                     0
+#define SDMA1_BASE__INST3_SEG2                     0
+#define SDMA1_BASE__INST3_SEG3                     0
+#define SDMA1_BASE__INST3_SEG4                     0
+#define SDMA1_BASE__INST3_SEG5                     0
+
+#define SDMA1_BASE__INST4_SEG0                     0
+#define SDMA1_BASE__INST4_SEG1                     0
+#define SDMA1_BASE__INST4_SEG2                     0
+#define SDMA1_BASE__INST4_SEG3                     0
+#define SDMA1_BASE__INST4_SEG4                     0
+#define SDMA1_BASE__INST4_SEG5                     0
+
+#define SDMA1_BASE__INST5_SEG0                     0
+#define SDMA1_BASE__INST5_SEG1                     0
+#define SDMA1_BASE__INST5_SEG2                     0
+#define SDMA1_BASE__INST5_SEG3                     0
+#define SDMA1_BASE__INST5_SEG4                     0
+#define SDMA1_BASE__INST5_SEG5                     0
+
+#define SMUIO_BASE__INST0_SEG0                     0x00016800
+#define SMUIO_BASE__INST0_SEG1                     0x00016A00
+#define SMUIO_BASE__INST0_SEG2                     0
+#define SMUIO_BASE__INST0_SEG3                     0
+#define SMUIO_BASE__INST0_SEG4                     0
+#define SMUIO_BASE__INST0_SEG5                     0
+
+#define SMUIO_BASE__INST1_SEG0                     0
+#define SMUIO_BASE__INST1_SEG1                     0
+#define SMUIO_BASE__INST1_SEG2                     0
+#define SMUIO_BASE__INST1_SEG3                     0
+#define SMUIO_BASE__INST1_SEG4                     0
+#define SMUIO_BASE__INST1_SEG5                     0
+
+#define SMUIO_BASE__INST2_SEG0                     0
+#define SMUIO_BASE__INST2_SEG1                     0
+#define SMUIO_BASE__INST2_SEG2                     0
+#define SMUIO_BASE__INST2_SEG3                     0
+#define SMUIO_BASE__INST2_SEG4                     0
+#define SMUIO_BASE__INST2_SEG5                     0
+
+#define SMUIO_BASE__INST3_SEG0                     0
+#define SMUIO_BASE__INST3_SEG1                     0
+#define SMUIO_BASE__INST3_SEG2                     0
+#define SMUIO_BASE__INST3_SEG3                     0
+#define SMUIO_BASE__INST3_SEG4                     0
+#define SMUIO_BASE__INST3_SEG5                     0
+
+#define SMUIO_BASE__INST4_SEG0                     0
+#define SMUIO_BASE__INST4_SEG1                     0
+#define SMUIO_BASE__INST4_SEG2                     0
+#define SMUIO_BASE__INST4_SEG3                     0
+#define SMUIO_BASE__INST4_SEG4                     0
+#define SMUIO_BASE__INST4_SEG5                     0
+
+#define SMUIO_BASE__INST5_SEG0                     0
+#define SMUIO_BASE__INST5_SEG1                     0
+#define SMUIO_BASE__INST5_SEG2                     0
+#define SMUIO_BASE__INST5_SEG3                     0
+#define SMUIO_BASE__INST5_SEG4                     0
+#define SMUIO_BASE__INST5_SEG5                     0
+
+#define THM_BASE__INST0_SEG0                       0x00016600
+#define THM_BASE__INST0_SEG1                       0
+#define THM_BASE__INST0_SEG2                       0
+#define THM_BASE__INST0_SEG3                       0
+#define THM_BASE__INST0_SEG4                       0
+#define THM_BASE__INST0_SEG5                       0
+
+#define THM_BASE__INST1_SEG0                       0
+#define THM_BASE__INST1_SEG1                       0
+#define THM_BASE__INST1_SEG2                       0
+#define THM_BASE__INST1_SEG3                       0
+#define THM_BASE__INST1_SEG4                       0
+#define THM_BASE__INST1_SEG5                       0
+
+#define THM_BASE__INST2_SEG0                       0
+#define THM_BASE__INST2_SEG1                       0
+#define THM_BASE__INST2_SEG2                       0
+#define THM_BASE__INST2_SEG3                       0
+#define THM_BASE__INST2_SEG4                       0
+#define THM_BASE__INST2_SEG5                       0
+
+#define THM_BASE__INST3_SEG0                       0
+#define THM_BASE__INST3_SEG1                       0
+#define THM_BASE__INST3_SEG2                       0
+#define THM_BASE__INST3_SEG3                       0
+#define THM_BASE__INST3_SEG4                       0
+#define THM_BASE__INST3_SEG5                       0
+
+#define THM_BASE__INST4_SEG0                       0
+#define THM_BASE__INST4_SEG1                       0
+#define THM_BASE__INST4_SEG2                       0
+#define THM_BASE__INST4_SEG3                       0
+#define THM_BASE__INST4_SEG4                       0
+#define THM_BASE__INST4_SEG5                       0
+
+#define THM_BASE__INST5_SEG0                       0
+#define THM_BASE__INST5_SEG1                       0
+#define THM_BASE__INST5_SEG2                       0
+#define THM_BASE__INST5_SEG3                       0
+#define THM_BASE__INST5_SEG4                       0
+#define THM_BASE__INST5_SEG5                       0
+
+#define UMC_BASE__INST0_SEG0                       0x00014000
+#define UMC_BASE__INST0_SEG1                       0
+#define UMC_BASE__INST0_SEG2                       0
+#define UMC_BASE__INST0_SEG3                       0
+#define UMC_BASE__INST0_SEG4                       0
+#define UMC_BASE__INST0_SEG5                       0
+
+#define UMC_BASE__INST1_SEG0                       0
+#define UMC_BASE__INST1_SEG1                       0
+#define UMC_BASE__INST1_SEG2                       0
+#define UMC_BASE__INST1_SEG3                       0
+#define UMC_BASE__INST1_SEG4                       0
+#define UMC_BASE__INST1_SEG5                       0
+
+#define UMC_BASE__INST2_SEG0                       0
+#define UMC_BASE__INST2_SEG1                       0
+#define UMC_BASE__INST2_SEG2                       0
+#define UMC_BASE__INST2_SEG3                       0
+#define UMC_BASE__INST2_SEG4                       0
+#define UMC_BASE__INST2_SEG5                       0
+
+#define UMC_BASE__INST3_SEG0                       0
+#define UMC_BASE__INST3_SEG1                       0
+#define UMC_BASE__INST3_SEG2                       0
+#define UMC_BASE__INST3_SEG3                       0
+#define UMC_BASE__INST3_SEG4                       0
+#define UMC_BASE__INST3_SEG5                       0
+
+#define UMC_BASE__INST4_SEG0                       0
+#define UMC_BASE__INST4_SEG1                       0
+#define UMC_BASE__INST4_SEG2                       0
+#define UMC_BASE__INST4_SEG3                       0
+#define UMC_BASE__INST4_SEG4                       0
+#define UMC_BASE__INST4_SEG5                       0
+
+#define UMC_BASE__INST5_SEG0                       0
+#define UMC_BASE__INST5_SEG1                       0
+#define UMC_BASE__INST5_SEG2                       0
+#define UMC_BASE__INST5_SEG3                       0
+#define UMC_BASE__INST5_SEG4                       0
+#define UMC_BASE__INST5_SEG5                       0
+
+#define UVD_BASE__INST0_SEG0                       0x00007800
+#define UVD_BASE__INST0_SEG1                       0x00007E00
+#define UVD_BASE__INST0_SEG2                       0
+#define UVD_BASE__INST0_SEG3                       0
+#define UVD_BASE__INST0_SEG4                       0
+#define UVD_BASE__INST0_SEG5                       0
+
+#define UVD_BASE__INST1_SEG0                       0
+#define UVD_BASE__INST1_SEG1                       0x00009000
+#define UVD_BASE__INST1_SEG2                       0
+#define UVD_BASE__INST1_SEG3                       0
+#define UVD_BASE__INST1_SEG4                       0
+#define UVD_BASE__INST1_SEG5                       0
+
+#define UVD_BASE__INST2_SEG0                       0
+#define UVD_BASE__INST2_SEG1                       0
+#define UVD_BASE__INST2_SEG2                       0
+#define UVD_BASE__INST2_SEG3                       0
+#define UVD_BASE__INST2_SEG4                       0
+#define UVD_BASE__INST2_SEG5                       0
+
+#define UVD_BASE__INST3_SEG0                       0
+#define UVD_BASE__INST3_SEG1                       0
+#define UVD_BASE__INST3_SEG2                       0
+#define UVD_BASE__INST3_SEG3                       0
+#define UVD_BASE__INST3_SEG4                       0
+#define UVD_BASE__INST3_SEG5                       0
+
+#define UVD_BASE__INST4_SEG0                       0
+#define UVD_BASE__INST4_SEG1                       0
+#define UVD_BASE__INST4_SEG2                       0
+#define UVD_BASE__INST4_SEG3                       0
+#define UVD_BASE__INST4_SEG4                       0
+#define UVD_BASE__INST4_SEG5                       0
+
+#define UVD_BASE__INST5_SEG0                       0
+#define UVD_BASE__INST5_SEG1                       0
+#define UVD_BASE__INST5_SEG2                       0
+#define UVD_BASE__INST5_SEG3                       0
+#define UVD_BASE__INST5_SEG4                       0
+#define UVD_BASE__INST5_SEG5                       0
+
+#define VCE_BASE__INST0_SEG0                       0x00008800
+#define VCE_BASE__INST0_SEG1                       0
+#define VCE_BASE__INST0_SEG2                       0
+#define VCE_BASE__INST0_SEG3                       0
+#define VCE_BASE__INST0_SEG4                       0
+#define VCE_BASE__INST0_SEG5                       0
+
+#define VCE_BASE__INST1_SEG0                       0
+#define VCE_BASE__INST1_SEG1                       0
+#define VCE_BASE__INST1_SEG2                       0
+#define VCE_BASE__INST1_SEG3                       0
+#define VCE_BASE__INST1_SEG4                       0
+#define VCE_BASE__INST1_SEG5                       0
+
+#define VCE_BASE__INST2_SEG0                       0
+#define VCE_BASE__INST2_SEG1                       0
+#define VCE_BASE__INST2_SEG2                       0
+#define VCE_BASE__INST2_SEG3                       0
+#define VCE_BASE__INST2_SEG4                       0
+#define VCE_BASE__INST2_SEG5                       0
+
+#define VCE_BASE__INST3_SEG0                       0
+#define VCE_BASE__INST3_SEG1                       0
+#define VCE_BASE__INST3_SEG2                       0
+#define VCE_BASE__INST3_SEG3                       0
+#define VCE_BASE__INST3_SEG4                       0
+#define VCE_BASE__INST3_SEG5                       0
+
+#define VCE_BASE__INST4_SEG0                       0
+#define VCE_BASE__INST4_SEG1                       0
+#define VCE_BASE__INST4_SEG2                       0
+#define VCE_BASE__INST4_SEG3                       0
+#define VCE_BASE__INST4_SEG4                       0
+#define VCE_BASE__INST4_SEG5                       0
+
+#define VCE_BASE__INST5_SEG0                       0
+#define VCE_BASE__INST5_SEG1                       0
+#define VCE_BASE__INST5_SEG2                       0
+#define VCE_BASE__INST5_SEG3                       0
+#define VCE_BASE__INST5_SEG4                       0
+#define VCE_BASE__INST5_SEG5                       0
+
+#define XDMA_BASE__INST0_SEG0                      0x00003400
+#define XDMA_BASE__INST0_SEG1                      0
+#define XDMA_BASE__INST0_SEG2                      0
+#define XDMA_BASE__INST0_SEG3                      0
+#define XDMA_BASE__INST0_SEG4                      0
+#define XDMA_BASE__INST0_SEG5                      0
+
+#define XDMA_BASE__INST1_SEG0                      0
+#define XDMA_BASE__INST1_SEG1                      0
+#define XDMA_BASE__INST1_SEG2                      0
+#define XDMA_BASE__INST1_SEG3                      0
+#define XDMA_BASE__INST1_SEG4                      0
+#define XDMA_BASE__INST1_SEG5                      0
+
+#define XDMA_BASE__INST2_SEG0                      0
+#define XDMA_BASE__INST2_SEG1                      0
+#define XDMA_BASE__INST2_SEG2                      0
+#define XDMA_BASE__INST2_SEG3                      0
+#define XDMA_BASE__INST2_SEG4                      0
+#define XDMA_BASE__INST2_SEG5                      0
+
+#define XDMA_BASE__INST3_SEG0                      0
+#define XDMA_BASE__INST3_SEG1                      0
+#define XDMA_BASE__INST3_SEG2                      0
+#define XDMA_BASE__INST3_SEG3                      0
+#define XDMA_BASE__INST3_SEG4                      0
+#define XDMA_BASE__INST3_SEG5                      0
+
+#define XDMA_BASE__INST4_SEG0                      0
+#define XDMA_BASE__INST4_SEG1                      0
+#define XDMA_BASE__INST4_SEG2                      0
+#define XDMA_BASE__INST4_SEG3                      0
+#define XDMA_BASE__INST4_SEG4                      0
+#define XDMA_BASE__INST4_SEG5                      0
+
+#define XDMA_BASE__INST5_SEG0                      0
+#define XDMA_BASE__INST5_SEG1                      0
+#define XDMA_BASE__INST5_SEG2                      0
+#define XDMA_BASE__INST5_SEG3                      0
+#define XDMA_BASE__INST5_SEG4                      0
+#define XDMA_BASE__INST5_SEG5                      0
+
+#define RSMU_BASE__INST0_SEG0                      0x00012000
+#define RSMU_BASE__INST0_SEG1                      0
+#define RSMU_BASE__INST0_SEG2                      0
+#define RSMU_BASE__INST0_SEG3                      0
+#define RSMU_BASE__INST0_SEG4                      0
+#define RSMU_BASE__INST0_SEG5                      0
+
+#define RSMU_BASE__INST1_SEG0                      0
+#define RSMU_BASE__INST1_SEG1                      0
+#define RSMU_BASE__INST1_SEG2                      0
+#define RSMU_BASE__INST1_SEG3                      0
+#define RSMU_BASE__INST1_SEG4                      0
+#define RSMU_BASE__INST1_SEG5                      0
+
+#define RSMU_BASE__INST2_SEG0                      0
+#define RSMU_BASE__INST2_SEG1                      0
+#define RSMU_BASE__INST2_SEG2                      0
+#define RSMU_BASE__INST2_SEG3                      0
+#define RSMU_BASE__INST2_SEG4                      0
+#define RSMU_BASE__INST2_SEG5                      0
+
+#define RSMU_BASE__INST3_SEG0                      0
+#define RSMU_BASE__INST3_SEG1                      0
+#define RSMU_BASE__INST3_SEG2                      0
+#define RSMU_BASE__INST3_SEG3                      0
+#define RSMU_BASE__INST3_SEG4                      0
+#define RSMU_BASE__INST3_SEG5                      0
+
+#define RSMU_BASE__INST4_SEG0                      0
+#define RSMU_BASE__INST4_SEG1                      0
+#define RSMU_BASE__INST4_SEG2                      0
+#define RSMU_BASE__INST4_SEG3                      0
+#define RSMU_BASE__INST4_SEG4                      0
+#define RSMU_BASE__INST4_SEG5                      0
+
+#define RSMU_BASE__INST5_SEG0                      0
+#define RSMU_BASE__INST5_SEG1                      0
+#define RSMU_BASE__INST5_SEG2                      0
+#define RSMU_BASE__INST5_SEG3                      0
+#define RSMU_BASE__INST5_SEG4                      0
+#define RSMU_BASE__INST5_SEG5                      0
+
+#endif
+
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#3 lore raw

PATCH 2/57 drm/amdgpu: Add vega20 to asic_type enum.

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Add vega20 to amd_asic_type enum and amdgpu_asic_name[].

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
 include/drm/amd_asic_type.h                | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
index b175178345aa..b78c1b9b182c 100644
@@ -86,6 +86,7 @@ static const char *amdgpu_asic_name[] = {
 	"VEGAM",
 	"VEGA10",
 	"VEGA12",
+	"VEGA20",
 	"RAVEN",
 	"LAST",
 };
include/drm/amd_asic_type.h +1 -0
index 695bde7eb055..dd63d08cc54e 100644
@@ -47,6 +47,7 @@ enum amd_asic_type {
 	CHIP_VEGAM,
 	CHIP_VEGA10,
 	CHIP_VEGA12,
+	CHIP_VEGA20,
 	CHIP_RAVEN,
 	CHIP_LAST,
 };
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#4 lore raw

PATCH 3/57 drm/amdgpu: Add gpu_info firmware for vega20.

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

vega20_gpu_info firmware stores gpu configuration for vega20.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -0
index b78c1b9b182c..c0510a6b79c6 100644
@@ -60,6 +60,7 @@
 
 MODULE_FIRMWARE("amdgpu/vega10_gpu_info.bin");
 MODULE_FIRMWARE("amdgpu/vega12_gpu_info.bin");
+MODULE_FIRMWARE("amdgpu/vega20_gpu_info.bin");
 MODULE_FIRMWARE("amdgpu/raven_gpu_info.bin");
 
 #define AMDGPU_RESUME_MS		2000
@@ -1405,6 +1406,9 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)
 	case CHIP_VEGA12:
 		chip_name = "vega12";
 		break;
+	case CHIP_VEGA20:
+		chip_name = "vega20";
+		break;
 	case CHIP_RAVEN:
 		chip_name = "raven";
 		break;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#5 lore raw

PATCH 4/57 drm/amdgpu: set asic family for vega20.

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
index c0510a6b79c6..9c9be878aeb5 100644
@@ -1535,6 +1535,7 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
 #endif
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		if (adev->asic_type == CHIP_RAVEN)
 			adev->family = AMDGPU_FAMILY_RV;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#6 lore raw

PATCH 5/57 drm/amdgpu: Add smu firmware support for vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c       | 3 +++
 drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 +
 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +3 -0
index 5b3d3bf5b599..e950730f1933 100644
@@ -400,6 +400,9 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
 			case CHIP_VEGA12:
 				strcpy(fw_name, "amdgpu/vega12_smc.bin");
 				break;
+			case CHIP_VEGA20:
+				strcpy(fw_name, "amdgpu/vega20_smc.bin");
+				break;
 			default:
 				DRM_ERROR("SMC firmware not supported\n");
 				return -EINVAL;
drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c +1 -0
index ee236dfbf1d6..c9837935f0f5 100644
@@ -45,6 +45,7 @@ MODULE_FIRMWARE("amdgpu/vegam_smc.bin");
 MODULE_FIRMWARE("amdgpu/vega10_smc.bin");
 MODULE_FIRMWARE("amdgpu/vega10_acg_smc.bin");
 MODULE_FIRMWARE("amdgpu/vega12_smc.bin");
+MODULE_FIRMWARE("amdgpu/vega20_smc.bin");
 
 int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr)
 {
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#7 lore raw

PATCH 6/57 drm/amdgpu/powerplay: Add initial vega20 support v2

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Initial powerplay support the same as vega10 for now.

---
 drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +1 -0
index 71b42331f185..e63bc47dc715 100644
@@ -151,6 +151,7 @@ int hwmgr_early_init(struct pp_hwmgr *hwmgr)
 		hwmgr->feature_mask &= ~PP_GFXOFF_MASK;
 		switch (hwmgr->chip_id) {
 		case CHIP_VEGA10:
+		case CHIP_VEGA20:
 			hwmgr->smumgr_funcs = &vega10_smu_funcs;
 			vega10_hwmgr_init(hwmgr);
 			break;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#8 lore raw

PATCH 7/57 drm/amdgpu/psp: Add initial psp support for vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

The same as vega10 for now.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 +
 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c   | 3 +++
 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -0
index c7d43e064fc7..9f1a5bd39ae8 100644
@@ -52,6 +52,7 @@ static int psp_sw_init(void *handle)
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 		psp_v3_1_set_psp_funcs(psp);
 		break;
 	case CHIP_RAVEN:
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +3 -0
index 196e75def1f2..0c768e388ace 100644
@@ -41,6 +41,9 @@ MODULE_FIRMWARE("amdgpu/vega10_sos.bin");
 MODULE_FIRMWARE("amdgpu/vega10_asd.bin");
 MODULE_FIRMWARE("amdgpu/vega12_sos.bin");
 MODULE_FIRMWARE("amdgpu/vega12_asd.bin");
+MODULE_FIRMWARE("amdgpu/vega20_sos.bin");
+MODULE_FIRMWARE("amdgpu/vega20_asd.bin");
+
 
 #define smnMP1_FIRMWARE_FLAGS 0x3010028
 
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#9 lore raw

PATCH 8/57 drm/amdgpu: Add vega20 ucode loading method

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

The same as vega10.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1 -0
index ee71c40b3920..63e29969dbf6 100644
@@ -303,6 +303,7 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
 	case CHIP_VEGA10:
 	case CHIP_RAVEN:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 		if (!load_type)
 			return AMDGPU_FW_LOAD_DIRECT;
 		else
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#10 lore raw

PATCH 9/57 drm/amdgpu: Specify vega20 uvd firmware

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +5 -0
index d8dd4028c2bb..869c909a96f9 100644
@@ -70,6 +70,7 @@
 
 #define FIRMWARE_VEGA10		"amdgpu/vega10_uvd.bin"
 #define FIRMWARE_VEGA12		"amdgpu/vega12_uvd.bin"
+#define FIRMWARE_VEGA20		"amdgpu/vega20_uvd.bin"
 
 #define mmUVD_GPCOM_VCPU_DATA0_VEGA10 (0x03c4 + 0x7e00)
 #define mmUVD_GPCOM_VCPU_DATA1_VEGA10 (0x03c5 + 0x7e00)
@@ -114,6 +115,7 @@ MODULE_FIRMWARE(FIRMWARE_VEGAM);
 
 MODULE_FIRMWARE(FIRMWARE_VEGA10);
 MODULE_FIRMWARE(FIRMWARE_VEGA12);
+MODULE_FIRMWARE(FIRMWARE_VEGA20);
 
 static void amdgpu_uvd_idle_work_handler(struct work_struct *work);
 
@@ -177,6 +179,9 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)
 	case CHIP_VEGAM:
 		fw_name = FIRMWARE_VEGAM;
 		break;
+	case CHIP_VEGA20:
+		fw_name = FIRMWARE_VEGA20;
+		break;
 	default:
 		return -EINVAL;
 	}
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#11 lore raw

PATCH 10/57 drm/amdgpu: Specify vega20 vce firmware

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +5 -0
index e2186eda3271..1b1d8e198a6b 100644
@@ -57,6 +57,7 @@
 
 #define FIRMWARE_VEGA10		"amdgpu/vega10_vce.bin"
 #define FIRMWARE_VEGA12		"amdgpu/vega12_vce.bin"
+#define FIRMWARE_VEGA20		"amdgpu/vega20_vce.bin"
 
 #ifdef CONFIG_DRM_AMDGPU_CIK
 MODULE_FIRMWARE(FIRMWARE_BONAIRE);
@@ -76,6 +77,7 @@ MODULE_FIRMWARE(FIRMWARE_VEGAM);
 
 MODULE_FIRMWARE(FIRMWARE_VEGA10);
 MODULE_FIRMWARE(FIRMWARE_VEGA12);
+MODULE_FIRMWARE(FIRMWARE_VEGA20);
 
 static void amdgpu_vce_idle_work_handler(struct work_struct *work);
 
@@ -143,6 +145,9 @@ int amdgpu_vce_sw_init(struct amdgpu_device *adev, unsigned long size)
 	case CHIP_VEGA12:
 		fw_name = FIRMWARE_VEGA12;
 		break;
+	case CHIP_VEGA20:
+		fw_name = FIRMWARE_VEGA20;
+		break;
 
 	default:
 		return -EINVAL;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#12 lore raw

PATCH 11/57 drm/amdgpu/virtual_dce: Add vega20 support

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -0
index de7be3de0f41..dbf2ccd0c744 100644
@@ -473,6 +473,7 @@ static int dce_virtual_hw_init(void *handle)
 		break;
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 		break;
 	default:
 		DRM_ERROR("Virtual display unsupported ASIC type: 0x%X\n", adev->asic_type);
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#13 lore raw

PATCH 12/57 drm/amdgpu/gmc9: Add vega20 support

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
index 780a8fdb7369..e3ca62e409ce 100644
@@ -773,6 +773,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)
 		switch (adev->asic_type) {
 		case CHIP_VEGA10:  /* all engines support GPUVM */
 		case CHIP_VEGA12:  /* all engines support GPUVM */
+		case CHIP_VEGA20:
 		default:
 			adev->gmc.gart_size = 512ULL << 20;
 			break;
@@ -878,6 +879,7 @@ static int gmc_v9_0_sw_init(void *handle)
 		break;
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 		/*
 		 * To fulfill 4-level page support,
 		 * vm size is 256TB (48bit), maximum size of Vega10,
@@ -995,6 +997,7 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev)
 
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
+	case CHIP_VEGA20:
 		soc15_program_register_sequence(adev,
 						golden_settings_mmhub_1_0_0,
 						ARRAY_SIZE(golden_settings_mmhub_1_0_0));
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#14 lore raw

PATCH 13/57 drm/amdgpu/mmhub: Add clockgating support for vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c +1 -0
index 2721403f1452..b7731d3438dc 100644
@@ -752,6 +752,7 @@ int mmhub_v1_0_set_clockgating(struct amdgpu_device *adev,
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		mmhub_v1_0_update_medium_grain_clock_gating(adev,
 				state == AMD_CG_STATE_GATE ? true : false);
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#15 lore raw

PATCH 14/57 drm/amdgpu/sdma4: Specify vega20 firmware

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +5 -0
index 03a36cbe7557..79b3a45b5715 100644
@@ -42,6 +42,8 @@ MODULE_FIRMWARE("amdgpu/vega10_sdma.bin");
 MODULE_FIRMWARE("amdgpu/vega10_sdma1.bin");
 MODULE_FIRMWARE("amdgpu/vega12_sdma.bin");
 MODULE_FIRMWARE("amdgpu/vega12_sdma1.bin");
+MODULE_FIRMWARE("amdgpu/vega20_sdma.bin");
+MODULE_FIRMWARE("amdgpu/vega20_sdma1.bin");
 MODULE_FIRMWARE("amdgpu/raven_sdma.bin");
 
 #define SDMA0_POWER_CNTL__ON_OFF_CONDITION_HOLD_TIME_MASK  0x000000F8L
@@ -182,6 +184,9 @@ static int sdma_v4_0_init_microcode(struct amdgpu_device *adev)
 	case CHIP_VEGA12:
 		chip_name = "vega12";
 		break;
+	case CHIP_VEGA20:
+		chip_name = "vega20";
+		break;
 	case CHIP_RAVEN:
 		chip_name = "raven";
 		break;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#16 lore raw

PATCH 15/57 drm/amdgpu/sdma4: Add vega20 golden settings (v3)

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

v2: squash in updates (Alex)
v3: squash in more updates (Alex)

---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +27 -0
index 79b3a45b5715..dc12c365a886 100644
@@ -109,6 +109,28 @@ static const struct soc15_reg_golden golden_settings_sdma_4_1[] =
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE, 0x000003ff, 0x000003c0)
 };
 
+static const struct soc15_reg_golden golden_settings_sdma_4_2[] =
+{
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_CHICKEN_BITS, 0xfe931f07, 0x02831d07),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_CLK_CTRL, 0xffffffff, 0x3f000100),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_GB_ADDR_CONFIG, 0x0000773f, 0x00004002),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_GB_ADDR_CONFIG_READ, 0x0000773f, 0x00004002),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_GFX_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_PAGE_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC0_RB_WPTR_POLL_CNTL, 0xfffffff0, 0x00403000),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC1_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE, 0x000003ff, 0x000003c0),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_CHICKEN_BITS, 0xfe931f07, 0x02831d07),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_CLK_CTRL, 0xffffffff, 0x3f000100),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_GB_ADDR_CONFIG, 0x0000773f, 0x00004002),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_GB_ADDR_CONFIG_READ, 0x0000773f, 0x00004002),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_GFX_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_PAGE_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_RLC0_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_RLC1_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
+	SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_UTCL1_PAGE, 0x000003ff, 0x000003c0)
+};
+
 static const struct soc15_reg_golden golden_settings_sdma_rv1[] =
 {
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_GB_ADDR_CONFIG, 0x0018773f, 0x00000002),
@@ -141,6 +163,11 @@ static void sdma_v4_0_init_golden_registers(struct amdgpu_device *adev)
 						golden_settings_sdma_vg12,
 						ARRAY_SIZE(golden_settings_sdma_vg12));
 		break;
+	case CHIP_VEGA20:
+		soc15_program_register_sequence(adev,
+						golden_settings_sdma_4_2,
+						ARRAY_SIZE(golden_settings_sdma_4_2));
+		break;
 	case CHIP_RAVEN:
 		soc15_program_register_sequence(adev,
 						 golden_settings_sdma_4_1,
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#17 lore raw

PATCH 16/57 drm/amdgpu/sdma4: Add clockgating support for vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1 -0
index dc12c365a886..ca53b3fba422 100644
@@ -1548,6 +1548,7 @@ static int sdma_v4_0_set_clockgating_state(void *handle,
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		sdma_v4_0_update_medium_grain_clock_gating(adev,
 				state == AMD_CG_STATE_GATE ? true : false);
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#18 lore raw

PATCH 17/57 drm/amdgpu/gfx9: Add support for vega20 firmware

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +10 -0
index 2d9679076c47..bc3d2ed5cc81 100644
@@ -63,6 +63,13 @@ MODULE_FIRMWARE("amdgpu/vega12_mec.bin");
 MODULE_FIRMWARE("amdgpu/vega12_mec2.bin");
 MODULE_FIRMWARE("amdgpu/vega12_rlc.bin");
 
+MODULE_FIRMWARE("amdgpu/vega20_ce.bin");
+MODULE_FIRMWARE("amdgpu/vega20_pfp.bin");
+MODULE_FIRMWARE("amdgpu/vega20_me.bin");
+MODULE_FIRMWARE("amdgpu/vega20_mec.bin");
+MODULE_FIRMWARE("amdgpu/vega20_mec2.bin");
+MODULE_FIRMWARE("amdgpu/vega20_rlc.bin");
+
 MODULE_FIRMWARE("amdgpu/raven_ce.bin");
 MODULE_FIRMWARE("amdgpu/raven_pfp.bin");
 MODULE_FIRMWARE("amdgpu/raven_me.bin");
@@ -461,6 +468,9 @@ static int gfx_v9_0_init_microcode(struct amdgpu_device *adev)
 	case CHIP_VEGA12:
 		chip_name = "vega12";
 		break;
+	case CHIP_VEGA20:
+		chip_name = "vega20";
+		break;
 	case CHIP_RAVEN:
 		chip_name = "raven";
 		break;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#19 lore raw

PATCH 18/57 drm/amdgpu/gfx9: Add vega20 golden settings (v3)

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

v2: squash in updates (Alex)
v3: squash in more updates (Alex)

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +22 -0
index bc3d2ed5cc81..9fd5afa8c745 100644
@@ -108,6 +108,20 @@ static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] =
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTD_CNTL, 0x00001800, 0x00000800)
 };
 
+static const struct soc15_reg_golden golden_settings_gc_9_0_vg20[] =
+{
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL_2, 0x0f000000, 0x0a000000),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL_3, 0x30000000, 0x10000000),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG, 0xf3e777ff, 0x22014042),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG_READ, 0xf3e777ff, 0x22014042),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG2, 0x00003e00, 0x00000400),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmPA_SC_ENHANCE_1, 0xff840000, 0x04040000),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmRMI_UTCL1_CNTL2, 0x00030000, 0x00030000),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmSPI_CONFIG_CNTL_1, 0xffff010f, 0x01000107),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTA_CNTL_AUX, 0x000b0000, 0x000b0000),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTD_CNTL, 0x01000000, 0x01000000)
+};
+
 static const struct soc15_reg_golden golden_settings_gc_9_1[] =
 {
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL, 0xfffdf3cf, 0x00014104),
@@ -241,6 +255,14 @@ static void gfx_v9_0_init_golden_registers(struct amdgpu_device *adev)
 						golden_settings_gc_9_2_1_vg12,
 						ARRAY_SIZE(golden_settings_gc_9_2_1_vg12));
 		break;
+	case CHIP_VEGA20:
+		soc15_program_register_sequence(adev,
+						golden_settings_gc_9_0,
+						ARRAY_SIZE(golden_settings_gc_9_0));
+		soc15_program_register_sequence(adev,
+						golden_settings_gc_9_0_vg20,
+						ARRAY_SIZE(golden_settings_gc_9_0_vg20));
+		break;
 	case CHIP_RAVEN:
 		soc15_program_register_sequence(adev,
 						 golden_settings_gc_9_1,
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#20 lore raw

PATCH 19/57 drm/amdgpu/gfx9: Add gfx config for vega20. (v3)

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

v2: clean up (Alex)
v3: additional cleanups (Alex)

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +11 -0
index 9fd5afa8c745..681b3da2c6be 100644
@@ -1137,6 +1137,17 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
 		gb_addr_config = VEGA12_GB_ADDR_CONFIG_GOLDEN;
 		DRM_INFO("fix gfx.config for vega12\n");
 		break;
+	case CHIP_VEGA20:
+		adev->gfx.config.max_hw_contexts = 8;
+		adev->gfx.config.sc_prim_fifo_size_frontend = 0x20;
+		adev->gfx.config.sc_prim_fifo_size_backend = 0x100;
+		adev->gfx.config.sc_hiz_tile_fifo_size = 0x30;
+		adev->gfx.config.sc_earlyz_tile_fifo_size = 0x4C0;
+		//TODO: Need to update this for vega20
+		gb_addr_config = RREG32_SOC15(GC, 0, mmGB_ADDR_CONFIG);
+		gb_addr_config &= ~0xf3e777ff;
+		gb_addr_config |= 0x22014042;
+		break;
 	case CHIP_RAVEN:
 		adev->gfx.config.max_hw_contexts = 8;
 		adev->gfx.config.sc_prim_fifo_size_frontend = 0x20;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#21 lore raw

PATCH 20/57 drm/amdgpu/gfx9: Add support for vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +2 -0
index 681b3da2c6be..630727863794 100644
@@ -1430,6 +1430,7 @@ static int gfx_v9_0_sw_init(void *handle)
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		adev->gfx.mec.num_mec = 2;
 		break;
@@ -4716,6 +4717,7 @@ static void gfx_v9_0_set_rlc_funcs(struct amdgpu_device *adev)
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		adev->gfx.rlc.funcs = &gfx_v9_0_rlc_funcs;
 		break;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#22 lore raw

PATCH 21/57 drm/amdgpu/gfx9: Add clockgatting support for vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
index 630727863794..9d55f6e24bc5 100644
@@ -3725,6 +3725,7 @@ static int gfx_v9_0_set_clockgating_state(void *handle,
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		gfx_v9_0_update_gfx_clock_gating(adev,
 						 state == AMD_CG_STATE_GATE ? true : false);
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#23 lore raw

PATCH 22/57 drm/amdgpu/soc15:Add vega20 soc15_common_early_init support

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Set external_rev_id and disable cg,pg for now.

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +5 -0
index f31df18fcb81..f45bea84a73e 100644
@@ -658,6 +658,11 @@ static int soc15_common_early_init(void *handle)
 		adev->pg_flags = 0;
 		adev->external_rev_id = adev->rev_id + 0x14;
 		break;
+	case CHIP_VEGA20:
+		adev->cg_flags = 0;
+		adev->pg_flags = 0;
+		adev->external_rev_id = adev->rev_id + 0x28;
+		break;
 	case CHIP_RAVEN:
 		adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
 			AMD_CG_SUPPORT_GFX_MGLS |
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#24 lore raw

PATCH 23/57 drm/amdgpu/soc15: Set common clockgating for vega20.

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Same as vega10 for now.

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +1 -0
index f45bea84a73e..1fd75f5aa22b 100644
@@ -875,6 +875,7 @@ static int soc15_common_set_clockgating_state(void *handle,
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 		adev->nbio_funcs->update_medium_grain_clock_gating(adev,
 				state == AMD_CG_STATE_GATE ? true : false);
 		adev->nbio_funcs->update_medium_grain_light_sleep(adev,
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#25 lore raw

PATCH 24/57 drm/amdgpu/soc15: dynamic initialize ip offset for vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Vega20 need a seperate vega20_reg_init.c due to ip base offset difference.

---
 drivers/gpu/drm/amd/amdgpu/Makefile          |  3 +-
 drivers/gpu/drm/amd/amdgpu/soc15.c           |  3 ++
 drivers/gpu/drm/amd/amdgpu/soc15.h           |  1 +
 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c | 53 ++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
index 2fe4a0bf98c8..1dd740b76d41 100644
@@ -62,7 +62,8 @@ amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o cik_ih.o kv_smc.o kv_dpm.o \
 amdgpu-$(CONFIG_DRM_AMDGPU_SI)+= si.o gmc_v6_0.o gfx_v6_0.o si_ih.o si_dma.o dce_v6_0.o si_dpm.o si_smc.o
 
 amdgpu-y += \
-	vi.o mxgpu_vi.o nbio_v6_1.o soc15.o emu_soc.o mxgpu_ai.o nbio_v7_0.o vega10_reg_init.o
+	vi.o mxgpu_vi.o nbio_v6_1.o soc15.o emu_soc.o mxgpu_ai.o nbio_v7_0.o vega10_reg_init.o \
+	vega20_reg_init.o
 
 # add DF block
 amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/soc15.c +3 -0
index 1fd75f5aa22b..c3133d16de77 100644
@@ -487,6 +487,9 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
 	case CHIP_RAVEN:
 		vega10_reg_base_init(adev);
 		break;
+	case CHIP_VEGA20:
+		vega20_reg_base_init(adev);
+		break;
 	default:
 		return -EINVAL;
 	}
drivers/gpu/drm/amd/amdgpu/soc15.h +1 -0
index f70da8a29f86..1f714b7af520 100644
@@ -55,5 +55,6 @@ void soc15_program_register_sequence(struct amdgpu_device *adev,
 					     const u32 array_size);
 
 int vega10_reg_base_init(struct amdgpu_device *adev);
+int vega20_reg_base_init(struct amdgpu_device *adev);
 
 #endif
drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c new file +53 -0

53 lines not on this page · raw message

Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#26 lore raw

PATCH 25/57 drm/amdgpu/soc15: Add ip blocks for vega20 (v2)

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Same as vega10 now.

v2: squash in typo fix

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +1 -0
index c3133d16de77..10337fb3fc1f 100644
@@ -508,6 +508,7 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 		amdgpu_device_ip_block_add(adev, &vega10_common_ip_block);
 		amdgpu_device_ip_block_add(adev, &gmc_v9_0_ip_block);
 		amdgpu_device_ip_block_add(adev, &vega10_ih_ip_block);
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#27 lore raw

PATCH 26/57 drm/amdgpu: Add nbio support for vega20 (v2)

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Some register offset in nbio v7.4 are different with v7.0.

v2: Use nbio7.0 for now.

TODO: add a new nbio 7.4 module (Alex)

---
 drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c | 18 +++++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/soc15.c     |  2 ++
 2 files changed, 19 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c +17 -1
index df34dc79d444..365517c0121e 100644
@@ -34,10 +34,19 @@
 #define smnCPM_CONTROL                                                                                  0x11180460
 #define smnPCIE_CNTL2                                                                                   0x11180070
 
+/* vega20 */
+#define mmRCC_DEV0_EPF0_STRAP0_VG20                                                                         0x0011
+#define mmRCC_DEV0_EPF0_STRAP0_VG20_BASE_IDX                                                                2
+
 static u32 nbio_v7_0_get_rev_id(struct amdgpu_device *adev)
 {
         u32 tmp = RREG32_SOC15(NBIO, 0, mmRCC_DEV0_EPF0_STRAP0);
 
+	if (adev->asic_type == CHIP_VEGA20)
+		tmp = RREG32_SOC15(NBIO, 0, mmRCC_DEV0_EPF0_STRAP0_VG20);
+	else
+		tmp = RREG32_SOC15(NBIO, 0, mmRCC_DEV0_EPF0_STRAP0);
+
 	tmp &= RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0_MASK;
 	tmp >>= RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0__SHIFT;
 
@@ -75,10 +84,14 @@ static void nbio_v7_0_sdma_doorbell_range(struct amdgpu_device *adev, int instan
 			SOC15_REG_OFFSET(NBIO, 0, mmBIF_SDMA1_DOORBELL_RANGE);
 
 	u32 doorbell_range = RREG32(reg);
+	u32 range = 2;
+
+	if (adev->asic_type == CHIP_VEGA20)
+		range = 8;
 
 	if (use_doorbell) {
 		doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, OFFSET, doorbell_index);
-		doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, 2);
+		doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, range);
 	} else
 		doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, 0);
 
@@ -133,6 +146,9 @@ static void nbio_v7_0_update_medium_grain_clock_gating(struct amdgpu_device *ade
 {
 	uint32_t def, data;
 
+	if (adev->asic_type == CHIP_VEGA20)
+		return;
+
 	/* NBIF_MGCG_CTRL_LCLK */
 	def = data = RREG32_PCIE(smnNBIF_MGCG_CTRL_LCLK);
 
drivers/gpu/drm/amd/amdgpu/soc15.c +2 -0
index 10337fb3fc1f..4e065c68b86c 100644
@@ -496,6 +496,8 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
 
 	if (adev->flags & AMD_IS_APU)
 		adev->nbio_funcs = &nbio_v7_0_funcs;
+	else if (adev->asic_type == CHIP_VEGA20)
+		adev->nbio_funcs = &nbio_v7_0_funcs;
 	else
 		adev->nbio_funcs = &nbio_v6_1_funcs;
 
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#28 lore raw

PATCH 27/57 drm/amdgpu: Add vega20 soc init sequence on emulator (v3)

In reply to a message not in the archive

From: Shaoyun Liu <[email protected]>

v2: cleanups (Alex)
v3: make it vega20 only (Alex)

---
 drivers/gpu/drm/amd/amdgpu/emu_soc.c | 10091 +++++++++++++++++++++++++++++++++
 1 file changed, 10091 insertions(+)
drivers/gpu/drm/amd/amdgpu/emu_soc.c +10091 -0
index d72c25c1b987..91f00fbe550a 100644
@@ -26,8 +26,10099 @@
 #include "soc15_common.h"
 #include "soc15_hw_ip.h"
 
+static void wreg32_idx_byteoffset(struct amdgpu_device *adev, u32 offset, u32 value) {
+
+	static u32 maxoffset = 0;
+	static int count = 0;
+
+	WREG32(0xc, offset);
+	RREG32(0xc);
+	WREG32(0xd, value);
+	RREG32(0xd);
+
+	if (offset > maxoffset)
+		maxoffset = offset;
+
+	count++;
+	if (count % 100 == 0) {
+		DRM_INFO("%5d registers written, max offset %08x\n", count, maxoffset);
+		msleep(1);
+	}
+
+}
+
+static void vg20_lsd_soc_init_with_umc(struct amdgpu_device *adev)
+{
+
+		wreg32_idx_byteoffset(adev, 0x10131800, 0x40a40);
+		wreg32_idx_byteoffset(adev, 0x10141010, 0x10000000);
+		wreg32_idx_byteoffset(adev, 0x10134008, 0xfa042021);
+		wreg32_idx_byteoffset(adev, 0x387C, 0x3);
+		wreg32_idx_byteoffset(adev, 0x381C, 0x30000);
+		wreg32_idx_byteoffset(adev, 0x101237A4, 0x8000100f);
+		wreg32_idx_byteoffset(adev, 0x101237A8, 0x140f);
+		wreg32_idx_byteoffset(adev, 0x3780, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1403BC0, 0x100040);
+		wreg32_idx_byteoffset(adev, 0x1403BC4, 0x100140);
+		wreg32_idx_byteoffset(adev, 0x1403BC8, 0x100240);
+		wreg32_idx_byteoffset(adev, 0x1403BCC, 0x100300);
+		/* End nbio_init_sequence on GPU 0 */
+
+		wreg32_idx_byteoffset(adev, 0x11100060, 0x2830);
+		wreg32_idx_byteoffset(adev, 0x3780, 0x1);
+		/* Done with NBIO Init on GPU 0 */
+
+		/* Start with DF Init on GPU 0*/
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C668, 0x31a1b74);
+		wreg32_idx_byteoffset(adev, 0x1C66C, 0x36666332);
+		wreg32_idx_byteoffset(adev, 0x1C7F8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C72C, 0xffffffff);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x460001);
+		wreg32_idx_byteoffset(adev, 0x1CE94, 0xaf);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x470001);
+		wreg32_idx_byteoffset(adev, 0x1CE94, 0xaf);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C730, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C600, 0x1000001);
+		wreg32_idx_byteoffset(adev, 0x1C604, 0x2001);
+		wreg32_idx_byteoffset(adev, 0x1C608, 0x380007f);
+		wreg32_idx_byteoffset(adev, 0x1C60C, 0x7000007);
+		wreg32_idx_byteoffset(adev, 0x1C4A8, 0x40);
+		wreg32_idx_byteoffset(adev, 0x1C73C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C598, 0x138);
+		wreg32_idx_byteoffset(adev, 0x1C59C, 0x44041);
+		wreg32_idx_byteoffset(adev, 0x1C594, 0x40);
+		wreg32_idx_byteoffset(adev, 0x1C584, 0x138);
+		wreg32_idx_byteoffset(adev, 0x1C588, 0x44041);
+		wreg32_idx_byteoffset(adev, 0x1C58C, 0x30);
+		wreg32_idx_byteoffset(adev, 0x1C590, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C5F0, 0x90);
+		wreg32_idx_byteoffset(adev, 0x1C5F4, 0x8000);
+		wreg32_idx_byteoffset(adev, 0x1C5F8, 0x8e);
+		wreg32_idx_byteoffset(adev, 0x1C5FC, 0x8000);
+		wreg32_idx_byteoffset(adev, 0x1C4AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C5EC, 0x4090c);
+		wreg32_idx_byteoffset(adev, 0x1C490, 0xbe);
+		wreg32_idx_byteoffset(adev, 0x1C494, 0x8000);
+		wreg32_idx_byteoffset(adev, 0x1C498, 0xac);
+		wreg32_idx_byteoffset(adev, 0x1C49C, 0x8000);
+		wreg32_idx_byteoffset(adev, 0x1C488, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C48C, 0x540980c);
+		wreg32_idx_byteoffset(adev, 0x1C4B0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4B4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4B8, 0x8);
+		wreg32_idx_byteoffset(adev, 0x1C4BC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4C0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4C4, 0x6fc81);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x480001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x490001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4a0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4b0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4c0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4d0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4e0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4f0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x500001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x510001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x520001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x530001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x540001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x550001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x560001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x570001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x580001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x590001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5a0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5b0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5c0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5d0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5e0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5f0001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x600001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x610001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x620001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x630001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x640001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x650001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x660001);
+		wreg32_idx_byteoffset(adev, 0x1DDA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x480001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x4000003);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1001818);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1018);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0xc12);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x60606);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x80808);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x5020000);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x6040000);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x5);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x6);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7cfffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x490001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x24107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4a0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x84107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4b0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x4000003);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x74107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1001818);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1018);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0xc12);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x60606);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x80808);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x5020000);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x6040000);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x5);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x6);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7cfffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4c0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x44107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4d0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xb4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4e0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x44107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x4f0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x84107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x500001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x4000003);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x54107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1001818);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1018);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0xc12);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x60606);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x80808);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x5020000);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x6040000);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x5);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x6);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7cfffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x510001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x34107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x520001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x44107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x530001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x4000003);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x64107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1001818);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40a11);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1018);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0xc12);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x60606);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x80808);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x5020000);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x6040000);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x5);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x6);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7cfffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x540001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x84107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x550001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x560001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x84107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x570001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000007);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xf4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1003031);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x142209);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x161c);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1015);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x6060603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8080804);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x2000004);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x4000006);
+		wreg32_idx_byteoffset(adev, 0x1DD3C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD2C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD4C, 0x505);
+		wreg32_idx_byteoffset(adev, 0x1DD34, 0x606);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x8400);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC50, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC70, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC90, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC54, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC74, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC94, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCB4, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x580001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x2000001);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xd4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030001);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1c0f);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1e11);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x1001);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0xe01);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x618);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x616);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffe7ff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x42000);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x400000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x48400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x400000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x3);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x590001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x8000003);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x94107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x10a0003);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0xc0201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0xc0201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0xc0201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1c1f);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1621);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x18000603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x16000603);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x9000904);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0xa000c06);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x21000);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x200000);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x20400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x200000);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x4);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5a0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x2000001);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xf4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1060001);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1e1f);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1618);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xc0903);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x100c03);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0xc0604);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x100806);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffe7ff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5b0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xd4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030000);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x2020);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1212);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xc06);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x160a);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0xc06);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x160a);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5c0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x2000001);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x64107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030001);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1c0f);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1e11);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x1001);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0xe01);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x618);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x616);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffe7ff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x42000);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x400000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x48400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x400000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x3);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5d0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x4000003);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x74107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1060003);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1c1f);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1621);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x180603);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x160603);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x90904);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0xa0c06);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7cfffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x21000);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x200000);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x20400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x200000);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x4);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5e0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x2000001);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x14107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1060001);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1e1f);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1618);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xc0903);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x100c03);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0xc0604);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x100806);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffe7ff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x10800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x10400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x110000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x5f0001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x2000000);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x24107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030000);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x2020);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1212);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xc06);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x160a);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0xc06);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x160a);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x600001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xa4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1050000);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x2020);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1a1a);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xa0808);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0xc0a0a);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0xa0808);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0xc0a0a);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x610001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x1000000);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xd4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1050000);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x2020);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1a1a);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xa0808);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0xc0a0a);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0xa0808);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0xc0a0a);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x620001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x2000001);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x4);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xc4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030001);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1819);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1915);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xe0601);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0xe0a01);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x910);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0xa0e);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x31800);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x300000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x30400);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x300000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x630001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x2000001);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0xb4107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030001);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1e14);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x2218);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xc0c);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0xa0a);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0xa0c0c);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0xa0a0a);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x200000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x200000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x640001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x2000001);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x5);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x54107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030001);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x40201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x2022);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x2115);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xe0106);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0xe0a0a);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x1809);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x160a);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x200000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x200000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x42000);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x4);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x40400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x650001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x4000003);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x84107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030003);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0xc0201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0xc0201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0xc0201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x1a23);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1819);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0x118);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x8040116);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0x1008);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x20e0a);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7fffff3);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x400000);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x400000);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x31800);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x300000);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x30400);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x300000);
+		wreg32_idx_byteoffset(adev, 0x1DC48, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC68, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC88, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC4C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC6C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC8C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCAC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x660001);
+		wreg32_idx_byteoffset(adev, 0x1DDF0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DDF8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1DD14, 0x24107800);
+		wreg32_idx_byteoffset(adev, 0x1DD18, 0x1030000);
+		wreg32_idx_byteoffset(adev, 0x1DD1C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1DD08, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD0C, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD04, 0x201);
+		wreg32_idx_byteoffset(adev, 0x1DD20, 0x2020);
+		wreg32_idx_byteoffset(adev, 0x1DD24, 0x1818);
+		wreg32_idx_byteoffset(adev, 0x1DD38, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DD40, 0xc0c);
+		wreg32_idx_byteoffset(adev, 0x1DD28, 0x1010);
+		wreg32_idx_byteoffset(adev, 0x1DD48, 0xc0c);
+		wreg32_idx_byteoffset(adev, 0x1DD30, 0x1010);
+		wreg32_idx_byteoffset(adev, 0x1C510, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C51C, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C514, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1C520, 0x7ffffff);
+		wreg32_idx_byteoffset(adev, 0x1DC40, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC60, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC80, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC44, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC64, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DC84, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1DCA4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C840, 0x800000);
+		wreg32_idx_byteoffset(adev, 0x1C844, 0xec404206);
+		wreg32_idx_byteoffset(adev, 0x1C848, 0x220201f6);
+		wreg32_idx_byteoffset(adev, 0x1C84C, 0xd);
+		wreg32_idx_byteoffset(adev, 0x1C850, 0x83e4e08);
+		wreg32_idx_byteoffset(adev, 0x1C894, 0x1450001);
+		wreg32_idx_byteoffset(adev, 0x1D9F8, 0xffffffff);
+		wreg32_idx_byteoffset(adev, 0x1D9FC, 0xffffffff);
+		wreg32_idx_byteoffset(adev, 0x1D0F0, 0xfe861ee0);
+		wreg32_idx_byteoffset(adev, 0x1D0FC, 0x2f);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x20001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x30001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x40001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x50001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x60001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x70001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x80001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x90001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0xa0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0xb0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0xc0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0xd0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0xe0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0xf0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x100001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x110001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x120001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x130001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x140001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x150001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x160001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x170001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x180001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x190001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x1a0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x1b0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x1c0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x1d0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x1e0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x1f0001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C4A0, 0x42424202);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1001011);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x20);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9C8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9DC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9CC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9EC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C9F0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x200001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x210001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x220001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x230001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x240001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x250001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x260001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x270001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x280001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x290001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x2a0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x2b0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x2c0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x2d0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x2e0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x2f0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x300001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x310001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x320001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x330001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x340001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x350001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x360001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x370001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x380001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x390001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x3a0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x3b0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x3c0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x3d0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x3e0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x3f0001);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x86);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x2);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x21818);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff0173);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x80000);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x400001);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x6);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x2020);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff01ff);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x410001);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x6);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x2020);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff01ff);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x420001);
+		wreg32_idx_byteoffset(adev, 0x1C468, 0x43);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1CE00, 0xa2000);
+		wreg32_idx_byteoffset(adev, 0x1CE0C, 0x16);
+		wreg32_idx_byteoffset(adev, 0x1C460, 0x450045);
+		wreg32_idx_byteoffset(adev, 0x1C464, 0x430043);
+		wreg32_idx_byteoffset(adev, 0x1C4E0, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E4, 0x10);
+		wreg32_idx_byteoffset(adev, 0x1C4E8, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C4D0, 0x18);
+		wreg32_idx_byteoffset(adev, 0x1C4A4, 0x1ff01ff);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C67C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D0D0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1D0D4, 0xc);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x460001);
+		wreg32_idx_byteoffset(adev, 0x1CE98, 0x3);
+		wreg32_idx_byteoffset(adev, 0x1CE80, 0x4f);
+		wreg32_idx_byteoffset(adev, 0x1CE84, 0x9f);
+		wreg32_idx_byteoffset(adev, 0x1CE9C, 0x25243888);
+		wreg32_idx_byteoffset(adev, 0x1CEA4, 0x11282894);
+		wreg32_idx_byteoffset(adev, 0x1CEA8, 0xe0000f);
+		wreg32_idx_byteoffset(adev, 0x1CE90, 0x40640010);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C618, 0x2000);
+		wreg32_idx_byteoffset(adev, 0x1C6E0, 0x7e6a14e9);
+		wreg32_idx_byteoffset(adev, 0x1C6E4, 0x94a0c408);
+		wreg32_idx_byteoffset(adev, 0x1C6E8, 0xc1a9625a);
+		wreg32_idx_byteoffset(adev, 0x1C6EC, 0xe43ee220);
+		wreg32_idx_byteoffset(adev, 0x1C6F0, 0x60316b41);
+		wreg32_idx_byteoffset(adev, 0x1C6F4, 0xd5b85760);
+		wreg32_idx_byteoffset(adev, 0x1C6F8, 0x2b589527);
+		wreg32_idx_byteoffset(adev, 0x1C6FC, 0xc7a447aa);
+		wreg32_idx_byteoffset(adev, 0x1C6D0, 0x83103ba1);
+		wreg32_idx_byteoffset(adev, 0x1C6D4, 0x668446d5);
+		wreg32_idx_byteoffset(adev, 0x1C6D8, 0xf6592b5f);
+		wreg32_idx_byteoffset(adev, 0x1C6DC, 0xfce059a);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x5614351);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1CE88, 0x37e20000);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x470001);
+		wreg32_idx_byteoffset(adev, 0x1CE98, 0x3);
+		wreg32_idx_byteoffset(adev, 0x1CE80, 0x4f);
+		wreg32_idx_byteoffset(adev, 0x1CE84, 0x9f);
+		wreg32_idx_byteoffset(adev, 0x1CE9C, 0x25243888);
+		wreg32_idx_byteoffset(adev, 0x1CEA4, 0x11282894);
+		wreg32_idx_byteoffset(adev, 0x1CEA8, 0x60000f);
+		wreg32_idx_byteoffset(adev, 0x1CE90, 0x9d000010);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C618, 0x2000);
+		wreg32_idx_byteoffset(adev, 0x1C6E0, 0x62c06669);
+		wreg32_idx_byteoffset(adev, 0x1C6E4, 0xa1b42b58);
+		wreg32_idx_byteoffset(adev, 0x1C6E8, 0x75f0e8fd);
+		wreg32_idx_byteoffset(adev, 0x1C6EC, 0xa73b2946);
+		wreg32_idx_byteoffset(adev, 0x1C6F0, 0xa30106a);
+		wreg32_idx_byteoffset(adev, 0x1C6F4, 0x44235d43);
+		wreg32_idx_byteoffset(adev, 0x1C6F8, 0xe83784c5);
+		wreg32_idx_byteoffset(adev, 0x1C6FC, 0xaee1454);
+		wreg32_idx_byteoffset(adev, 0x1C6D0, 0x778df19d);
+		wreg32_idx_byteoffset(adev, 0x1C6D4, 0x6e622afe);
+		wreg32_idx_byteoffset(adev, 0x1C6D8, 0xb2daede3);
+		wreg32_idx_byteoffset(adev, 0x1C6DC, 0x445cc41e);
+		wreg32_idx_byteoffset(adev, 0x1C678, 0x6224542);
+		wreg32_idx_byteoffset(adev, 0x1C5AC, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1CE88, 0x2eb20000);
+		wreg32_idx_byteoffset(adev, 0x1C08C, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x430001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C574, 0x410000e);
+		wreg32_idx_byteoffset(adev, 0x1C578, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C57C, 0x410000e);
+		wreg32_idx_byteoffset(adev, 0x1C580, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C560, 0x1010);
+		wreg32_idx_byteoffset(adev, 0x1C564, 0x410007f);
+		wreg32_idx_byteoffset(adev, 0x1C568, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C56C, 0x410007f);
+		wreg32_idx_byteoffset(adev, 0x1C570, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1CBF8, 0x4a2a400);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x440001);
+		wreg32_idx_byteoffset(adev, 0x1C3F0, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C574, 0x4);
+		wreg32_idx_byteoffset(adev, 0x1C578, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C57C, 0x4);
+		wreg32_idx_byteoffset(adev, 0x1C580, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C560, 0x808);
+		wreg32_idx_byteoffset(adev, 0x1C564, 0x410417f);
+		wreg32_idx_byteoffset(adev, 0x1C568, 0x1041041);
+		wreg32_idx_byteoffset(adev, 0x1C56C, 0x410417f);
+		wreg32_idx_byteoffset(adev, 0x1C570, 0x1041041);
+		wreg32_idx_byteoffset(adev, 0x1CBF8, 0x4a2a400);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C3F8, 0x6650c);
+		wreg32_idx_byteoffset(adev, 0x1C350, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C354, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C358, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C35C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C360, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C364, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C114, 0x7f000);
+		wreg32_idx_byteoffset(adev, 0x1C110, 0x21);
+		wreg32_idx_byteoffset(adev, 0x1C11C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C118, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C124, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C120, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C12C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C128, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C134, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C130, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C13C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C138, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C144, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C140, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C14C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C148, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x1);
+		wreg32_idx_byteoffset(adev, 0x1C114, 0x7f000);
+		wreg32_idx_byteoffset(adev, 0x1C110, 0x21);
+		wreg32_idx_byteoffset(adev, 0x1C11C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C118, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C1B4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C304, 0x7ff00);
+		wreg32_idx_byteoffset(adev, 0x1C308, 0x7ff3c);
+		wreg32_idx_byteoffset(adev, 0x1C30C, 0x3ff801);
+		wreg32_idx_byteoffset(adev, 0x1C300, 0xc0401);
+		wreg32_idx_byteoffset(adev, 0x1C314, 0x7ff40);
+		wreg32_idx_byteoffset(adev, 0x1C318, 0x7ffbc);
+		wreg32_idx_byteoffset(adev, 0x1C31C, 0x3ffa01);
+		wreg32_idx_byteoffset(adev, 0x1C310, 0x80401);
+		wreg32_idx_byteoffset(adev, 0x1C324, 0x7ffc0);
+		wreg32_idx_byteoffset(adev, 0x1C328, 0x7ffcc);
+		wreg32_idx_byteoffset(adev, 0x1C32C, 0x3ffe01);
+		wreg32_idx_byteoffset(adev, 0x1C320, 0x40401);
+		wreg32_idx_byteoffset(adev, 0x1C334, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C338, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C33C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C330, 0x400);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x10001);
+		wreg32_idx_byteoffset(adev, 0x1C114, 0x7f000);
+		wreg32_idx_byteoffset(adev, 0x1C110, 0x21);
+		wreg32_idx_byteoffset(adev, 0x1C11C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C118, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C1B4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C304, 0x7ff00);
+		wreg32_idx_byteoffset(adev, 0x1C308, 0x7ff3c);
+		wreg32_idx_byteoffset(adev, 0x1C30C, 0x3ff801);
+		wreg32_idx_byteoffset(adev, 0x1C300, 0xc0401);
+		wreg32_idx_byteoffset(adev, 0x1C314, 0x7ff40);
+		wreg32_idx_byteoffset(adev, 0x1C318, 0x7ffbc);
+		wreg32_idx_byteoffset(adev, 0x1C31C, 0x3ffa01);
+		wreg32_idx_byteoffset(adev, 0x1C310, 0x80401);
+		wreg32_idx_byteoffset(adev, 0x1C324, 0x7ffc0);
+		wreg32_idx_byteoffset(adev, 0x1C328, 0x7ffcc);
+		wreg32_idx_byteoffset(adev, 0x1C32C, 0x3ffe01);
+		wreg32_idx_byteoffset(adev, 0x1C320, 0x40401);
+		wreg32_idx_byteoffset(adev, 0x1C334, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C338, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C33C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C330, 0x400);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x20001);
+		wreg32_idx_byteoffset(adev, 0x1C114, 0x7f000);
+		wreg32_idx_byteoffset(adev, 0x1C110, 0x21);
+		wreg32_idx_byteoffset(adev, 0x1C11C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C118, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C1B4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C304, 0x7ff00);
+		wreg32_idx_byteoffset(adev, 0x1C308, 0x7ff3c);
+		wreg32_idx_byteoffset(adev, 0x1C30C, 0x3ff801);
+		wreg32_idx_byteoffset(adev, 0x1C300, 0xc0401);
+		wreg32_idx_byteoffset(adev, 0x1C314, 0x7ff40);
+		wreg32_idx_byteoffset(adev, 0x1C318, 0x7ffbc);
+		wreg32_idx_byteoffset(adev, 0x1C31C, 0x3ffa01);
+		wreg32_idx_byteoffset(adev, 0x1C310, 0x80401);
+		wreg32_idx_byteoffset(adev, 0x1C324, 0x7ffc0);
+		wreg32_idx_byteoffset(adev, 0x1C328, 0x7ffcc);
+		wreg32_idx_byteoffset(adev, 0x1C32C, 0x3ffe01);
+		wreg32_idx_byteoffset(adev, 0x1C320, 0x40401);
+		wreg32_idx_byteoffset(adev, 0x1C334, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C338, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C33C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C330, 0x400);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x30001);
+		wreg32_idx_byteoffset(adev, 0x1C114, 0x7f000);
+		wreg32_idx_byteoffset(adev, 0x1C110, 0x21);
+		wreg32_idx_byteoffset(adev, 0x1C11C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C118, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C1B4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C304, 0x7ff00);
+		wreg32_idx_byteoffset(adev, 0x1C308, 0x7ff3c);
+		wreg32_idx_byteoffset(adev, 0x1C30C, 0x3ff801);
+		wreg32_idx_byteoffset(adev, 0x1C300, 0xc0401);
+		wreg32_idx_byteoffset(adev, 0x1C314, 0x7ff40);
+		wreg32_idx_byteoffset(adev, 0x1C318, 0x7ffbc);
+		wreg32_idx_byteoffset(adev, 0x1C31C, 0x3ffa01);
+		wreg32_idx_byteoffset(adev, 0x1C310, 0x80401);
+		wreg32_idx_byteoffset(adev, 0x1C324, 0x7ffc0);
+		wreg32_idx_byteoffset(adev, 0x1C328, 0x7ffcc);
+		wreg32_idx_byteoffset(adev, 0x1C32C, 0x3ffe01);
+		wreg32_idx_byteoffset(adev, 0x1C320, 0x40401);
+		wreg32_idx_byteoffset(adev, 0x1C334, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C338, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C33C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C330, 0x400);
+		wreg32_idx_byteoffset(adev, 0x1D040, 0x40001);
+		wreg32_idx_byteoffset(adev, 0x1C114, 0x7f000);
+		wreg32_idx_byteoffset(adev, 0x1C110, 0x21);
+		wreg32_idx_byteoffset(adev, 0x1C11C, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C118, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C1B4, 0x0);
+		wreg32_idx_byteoffset(adev, 0x1C304, 0x7ff00);
+		wreg32_idx_byteoffset(adev, 0x1C308, 0x7ff3c);
+		wreg32_idx_byteoffset(adev, 0x1C30C, 0x3ff801);
+		wreg32_idx_byteoffset(adev, 0x1C300, 0xc0401);
+		wreg32_idx_byteoffset(adev, 0x1C314, 0x7ff40);
+		wreg32_idx_byteoffset(adev, 0x1C318, 0x7ffbc);
+		wreg32_idx_byteoffset(adev, 0x1C31C, 0x3ffa01);
+		wreg32_idx_byteoffset(adev, 0x1C310, 0x80401);
+		wreg32_idx_byteoffset(adev, 0x1C324, 0x7ffc0);
+		wreg32_idx_byteoffset(adev, 0x1C328, 0x7ffcc);
+		wreg32_idx_byteoffset(adev, 0x1C32C, 0x3ffe01);
+		wreg32_idx_byteoffset(adev, 0x1C320, 0x40401);
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Part of the diff is not shown here. View the raw message.

A message that is not in the archive (sent off-list or not yet received): 20180515145933.12063-28-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#30 lore raw

Re: [PATCH 27/57] drm/amdgpu: Add vega20 soc init sequence on emulator (v3)

Quoted 38 lines · Alex Deucher

From: Shaoyun Liu <[email protected]>

v2: cleanups (Alex)
v3: make it vega20 only (Alex)

---
 drivers/gpu/drm/amd/amdgpu/emu_soc.c | 10091 +++++++++++++++++++++++++++++++++
 1 file changed, 10091 insertions(+)
drivers/gpu/drm/amd/amdgpu/emu_soc.c +18 -0
index d72c25c1b987..91f00fbe550a 100644
@@ -26,8 +26,10099 @@
 #include "soc15_common.h"
 #include "soc15_hw_ip.h"
 
+static void wreg32_idx_byteoffset(struct amdgpu_device *adev, u32 offset, u32 value) {
+
+       static u32 maxoffset = 0;
+       static int count = 0;
+
+       WREG32(0xc, offset);
+       RREG32(0xc);
+       WREG32(0xd, value);
+       RREG32(0xd);
+
+       if (offset > maxoffset)
+               maxoffset = offset;
+
+       count++;
+       if (count % 100 == 0) {
+               DRM_INFO("%5d registers written, max offset %08x\n", count, maxoffset);
+               msleep(1);
+       }

drivers/gpu/drm/amd/amdgpu/emu_soc.c line 56

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/emu_soc.c +10 -0
+
+}
+
+static void vg20_lsd_soc_init_with_umc(struct amdgpu_device *adev)
+{
+
+               wreg32_idx_byteoffset(adev, 0x10131800, 0x40a40);
+               wreg32_idx_byteoffset(adev, 0x10141010, 0x10000000);
+               wreg32_idx_byteoffset(adev, 0x10134008, 0xfa042021);
+               wreg32_idx_byteoffset(adev, 0x387C, 0x3);

Indentation (double tabs).
Could this be done in a similar way as amdgpu_device_program_register_sequence() instead of thousands of function calls?

drivers/gpu/drm/amd/amdgpu/emu_soc.c line 10118

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/emu_soc.c +6 -0
+
 int emu_soc_asic_init(struct amdgpu_device *adev)
 {
+       if (adev->asic_type == CHIP_VEGA20) {
+               vg20_lsd_soc_init_with_umc(adev);
+
+               amdgpu_device_program_register_sequence(adev,
+                                                       (const u32 *)vega20_golden_init,

Unneeded cast.

Gražvydas
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#31 lore raw

Re: [PATCH 27/57] drm/amdgpu: Add vega20 soc init sequence on emulator (v3)

Quoted 46 lines · Grazvydas Ignotas
Quoted 45 lines · Alex Deucher

From: Shaoyun Liu <[email protected]>

v2: cleanups (Alex)
v3: make it vega20 only (Alex)

---
 drivers/gpu/drm/amd/amdgpu/emu_soc.c | 10091 +++++++++++++++++++++++++++++++++
 1 file changed, 10091 insertions(+)
drivers/gpu/drm/amd/amdgpu/emu_soc.c +25 -0
index d72c25c1b987..91f00fbe550a 100644
@@ -26,8 +26,10099 @@
 #include "soc15_common.h"
 #include "soc15_hw_ip.h"
 
+static void wreg32_idx_byteoffset(struct amdgpu_device *adev, u32 offset, u32 value) {
+
+       static u32 maxoffset = 0;
+       static int count = 0;
+
+       WREG32(0xc, offset);
+       RREG32(0xc);
+       WREG32(0xd, value);
+       RREG32(0xd);
+
+       if (offset > maxoffset)
+               maxoffset = offset;
+
+       count++;
+       if (count % 100 == 0) {
+               DRM_INFO("%5d registers written, max offset %08x\n", count, maxoffset);
+               msleep(1);
+       }
+
+}
+
+static void vg20_lsd_soc_init_with_umc(struct amdgpu_device *adev)
+{
+
+               wreg32_idx_byteoffset(adev, 0x10131800, 0x40a40);
Quoted 8 lines

drivers/gpu/drm/amd/amdgpu/emu_soc.c line 56

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/emu_soc.c +3 -0
+               wreg32_idx_byteoffset(adev, 0x10141010, 0x10000000);
+               wreg32_idx_byteoffset(adev, 0x10134008, 0xfa042021);
+               wreg32_idx_byteoffset(adev, 0x387C, 0x3);

Indentation (double tabs).
Could this be done in a similar way as amdgpu_device_program_register_sequence() instead of thousands of function calls?

Actually this will bloat the amdgpu module for everyone, while almost nobody needs this, perhaps hide this under Kconfig option at least?

Gražvydas
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): CANOLnOOhG86EuKrDyF7VZauHPgKPhmrLMCSDykHeKYOruMconw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#33 lore raw

Re: [PATCH 27/57] drm/amdgpu: Add vega20 soc init sequence on emulator (v3)

Quoted 56 lines · Grazvydas Ignotas
Quoted 46 lines · Grazvydas Ignotas
Quoted 45 lines · Alex Deucher

From: Shaoyun Liu <[email protected]>

v2: cleanups (Alex)
v3: make it vega20 only (Alex)

---
 drivers/gpu/drm/amd/amdgpu/emu_soc.c | 10091 +++++++++++++++++++++++++++++++++
 1 file changed, 10091 insertions(+)
drivers/gpu/drm/amd/amdgpu/emu_soc.c +25 -0
index d72c25c1b987..91f00fbe550a 100644
@@ -26,8 +26,10099 @@
 #include "soc15_common.h"
 #include "soc15_hw_ip.h"
 
+static void wreg32_idx_byteoffset(struct amdgpu_device *adev, u32 offset, u32 value) {
+
+       static u32 maxoffset = 0;
+       static int count = 0;
+
+       WREG32(0xc, offset);
+       RREG32(0xc);
+       WREG32(0xd, value);
+       RREG32(0xd);
+
+       if (offset > maxoffset)
+               maxoffset = offset;
+
+       count++;
+       if (count % 100 == 0) {
+               DRM_INFO("%5d registers written, max offset %08x\n", count, maxoffset);
+               msleep(1);
+       }
+
+}
+
+static void vg20_lsd_soc_init_with_umc(struct amdgpu_device *adev)
+{
+
+               wreg32_idx_byteoffset(adev, 0x10131800, 0x40a40);
Quoted 8 lines

drivers/gpu/drm/amd/amdgpu/emu_soc.c line 56

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/emu_soc.c +3 -0
+               wreg32_idx_byteoffset(adev, 0x10141010, 0x10000000);
+               wreg32_idx_byteoffset(adev, 0x10134008, 0xfa042021);
+               wreg32_idx_byteoffset(adev, 0x387C, 0x3);

Indentation (double tabs).
Could this be done in a similar way as amdgpu_device_program_register_sequence() instead of thousands of function calls?

Quoted 3 lines

Actually this will bloat the amdgpu module for everyone, while almost nobody needs this, perhaps hide this under Kconfig option at least?

Dropped the patch for upstream.

Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#34 lore raw

PATCH 28/57 drm/amd/display/dm: Add vega20 support

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +4 -0
index a48587c47aae..148ea9d4196f 100644
@@ -1111,6 +1111,7 @@ static int dce110_register_irq_handlers(struct amdgpu_device *adev)
 
 	if (adev->asic_type == CHIP_VEGA10 ||
 	    adev->asic_type == CHIP_VEGA12 ||
+	    adev->asic_type == CHIP_VEGA20 ||
 	    adev->asic_type == CHIP_RAVEN)
 		client_id = SOC15_IH_CLIENTID_DCE;
 
@@ -1514,6 +1515,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
 #endif
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 		if (dce110_register_irq_handlers(dm->adev)) {
 			DRM_ERROR("DM: Failed to initialize IRQ\n");
 			goto fail;
@@ -1760,6 +1762,7 @@ static int dm_early_init(void *handle)
 		break;
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+	case CHIP_VEGA20:
 		adev->mode_info.num_crtc = 6;
 		adev->mode_info.num_hpd = 6;
 		adev->mode_info.num_dig = 6;
@@ -2008,6 +2011,7 @@ static int fill_plane_attributes_from_fb(struct amdgpu_device *adev,
 
 	if (adev->asic_type == CHIP_VEGA10 ||
 	    adev->asic_type == CHIP_VEGA12 ||
+	    adev->asic_type == CHIP_VEGA20 ||
 	    adev->asic_type == CHIP_RAVEN) {
 		/* Fill GFX9 params */
 		plane_state->tiling_info.gfx9.num_pipes =
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#35 lore raw

PATCH 29/57 drm/amdgpu: Add vega20 to dc support check

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
index 9c9be878aeb5..5aa3b1d69cfe 100644
@@ -2170,6 +2170,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
 	case CHIP_FIJI:
 	case CHIP_VEGA10:
 	case CHIP_VEGA12:
+    case CHIP_VEGA20:
 #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 	case CHIP_RAVEN:
 #endif
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180515145933.12063-30-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#37 lore raw

Re: [PATCH 29/57] drm/amdgpu: Add vega20 to dc support check

Quoted 15 lines · Alex Deucher

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -0
index 9c9be878aeb5..5aa3b1d69cfe 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type) · line 2173

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -2170,6 +2170,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
        case CHIP_FIJI:
        case CHIP_VEGA10:
        case CHIP_VEGA12:
+    case CHIP_VEGA20:

Inconsistent style (tab vs spaces).

Gražvydas
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): CANOLnONH=Miqj-vgd3XTMjfsDGP2SAFgqyyA5Co1fUGwYTfzwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#39 lore raw

Re: [PATCH 29/57] drm/amdgpu: Add vega20 to dc support check

Quoted 11 lines · Grazvydas Ignotas
Quoted 10 lines · Alex Deucher

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type) · line 2173

Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
index 9c9be878aeb5..5aa3b1d69cfe 100644
@@ -2170,6 +2170,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
        case CHIP_FIJI:
        case CHIP_VEGA10:
        case CHIP_VEGA12:
+    case CHIP_VEGA20:

Inconsistent style (tab vs spaces).

Fixed. thanks.

Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#40 lore raw

PATCH 30/57 drm/amd: Add dce-12.1 gpio aux registers

In reply to a message not in the archive

From: Roman Li <[email protected]>

Updating dce12 register headers by adding dc registers required for potential DP LTTPR support.

---
 .../drm/amd/include/asic_reg/dce/dce_12_0_offset.h |  12 ++
 .../amd/include/asic_reg/dce/dce_12_0_sh_mask.h    | 152 +++++++++++++++++++++
 2 files changed, 164 insertions(+)
 mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_offset.h
 mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_sh_mask.h
drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_offset.h +12 -0
old mode 100644
new mode 100755
index f730d0629020..b6f74bf4af02
@@ -2095,6 +2095,18 @@
 #define mmDC_GPIO_AUX_CTRL_2_BASE_IDX                                                                  2
 #define mmDC_GPIO_RXEN                                                                                 0x212f
 #define mmDC_GPIO_RXEN_BASE_IDX                                                                        2
+#define mmDC_GPIO_AUX_CTRL_3                                                                           0x2130
+#define mmDC_GPIO_AUX_CTRL_3_BASE_IDX                                                                  2
+#define mmDC_GPIO_AUX_CTRL_4                                                                           0x2131
+#define mmDC_GPIO_AUX_CTRL_4_BASE_IDX                                                                  2
+#define mmDC_GPIO_AUX_CTRL_5                                                                           0x2132
+#define mmDC_GPIO_AUX_CTRL_5_BASE_IDX                                                                  2
+#define mmAUXI2C_PAD_ALL_PWR_OK                                                                        0x2133
+#define mmAUXI2C_PAD_ALL_PWR_OK_BASE_IDX                                                               2
+#define mmDC_GPIO_PULLUPEN                                                                             0x2134
+#define mmDC_GPIO_PULLUPEN_BASE_IDX                                                                    2
+#define mmDC_GPIO_AUX_CTRL_6                                                                           0x2135
+#define mmDC_GPIO_AUX_CTRL_6_BASE_IDX                                                                  2
 #define mmBPHYC_DAC_MACRO_CNTL                                                                         0x2136
 #define mmBPHYC_DAC_MACRO_CNTL_BASE_IDX                                                                2
 #define mmDAC_MACRO_CNTL_RESERVED0                                                                     0x2136
drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_sh_mask.h +152 -0

158 lines not on this page · raw message

Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180515145933.12063-31-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#42 lore raw

Re: [PATCH 30/57] drm/amd: Add dce-12.1 gpio aux registers

Quoted 8 lines · Alex Deucher

From: Roman Li <[email protected]>

Updating dce12 register headers by adding dc registers required for potential DP LTTPR support.

Quoted 6 lines
---
 .../drm/amd/include/asic_reg/dce/dce_12_0_offset.h |  12 ++
 .../amd/include/asic_reg/dce/dce_12_0_sh_mask.h    | 152 +++++++++++++++++++++
 2 files changed, 164 insertions(+)
 mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_offset.h
 mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_sh_mask.h

Unwanted mode change.

Gražvydas
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): CANOLnOPyBNwdmZEeK+K_2b70PULzZoGDO_B4-a3bCY1569wWCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#44 lore raw

Re: [PATCH 30/57] drm/amd: Add dce-12.1 gpio aux registers

Quoted 16 lines · Grazvydas Ignotas
Quoted 8 lines · Alex Deucher

From: Roman Li <[email protected]>

Updating dce12 register headers by adding dc registers required for potential DP LTTPR support.

Quoted 6 lines
---
 .../drm/amd/include/asic_reg/dce/dce_12_0_offset.h |  12 ++
 .../amd/include/asic_reg/dce/dce_12_0_sh_mask.h    | 152 +++++++++++++++++++++
 2 files changed, 164 insertions(+)
 mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_offset.h
 mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_sh_mask.h
Quoted 1 line

Unwanted mode change.

Fixed. thanks.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#45 lore raw

PATCH 31/57 drm/amd/display: Add Vega20 config. support

In reply to a message not in the archive

From: "Jerry (Fangzhi) Zuo" <[email protected]>

---
 drivers/gpu/drm/amd/display/Kconfig | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/display/Kconfig +9 -0
index e6ca72c0d347..6dcec9c9126b 100644
@@ -40,4 +40,13 @@ config DRM_AMD_DC_VEGAM
         help
          Choose this option if you want to have
          VEGAM support for display engine
+
+config DRM_AMD_DC_VG20
+	bool "Vega20 support"
+	depends on DRM_AMD_DC
+	help
+		Choose this option if you want to have
+		Vega20 support for display engine
+
+
 endmenu
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#46 lore raw

PATCH 32/57 drm/amd/display: Remove COMBO_DISPLAY_PLL0 from Vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c   | 11 ++++++++++-
 drivers/gpu/drm/amd/display/include/dal_asic_id.h |  6 ++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c +10 -1
index 78e6beb6cf26..aa4cf3095235 100644
@@ -35,7 +35,7 @@
 #endif
 #include "core_types.h"
 #include "dc_types.h"
-
+#include "dal_asic_id.h"
 
 #define TO_DCE_CLOCKS(clocks)\
 	container_of(clocks, struct dce_disp_clk, base)
@@ -413,9 +413,18 @@ static int dce112_set_clock(
 	/*VBIOS will determine DPREFCLK frequency, so we don't set it*/
 	dce_clk_params.target_clock_frequency = 0;
 	dce_clk_params.clock_type = DCECLOCK_TYPE_DPREFCLK;
+#ifndef CONFIG_DRM_AMD_DC_VG20
 	dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK =
 			(dce_clk_params.pll_id ==
 					CLOCK_SOURCE_COMBO_DISPLAY_PLL0);
+#else
+	if (!ASICREV_IS_VEGA20_P(clk->ctx->asic_id.hw_internal_rev))
+		dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK =
+			(dce_clk_params.pll_id ==
+					CLOCK_SOURCE_COMBO_DISPLAY_PLL0);
+	else
+		dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK = false;
+#endif
 
 	bp->funcs->set_dce_clock(bp, &dce_clk_params);
 
drivers/gpu/drm/amd/display/include/dal_asic_id.h +6 -0
index 1b987b6a347d..77d2856be9f6 100644
@@ -117,6 +117,12 @@
 	((rev >= STONEY_A0) && (rev < CZ_UNKNOWN))
 
 /* DCE12 */
+#define AI_UNKNOWN 0xFF
+
+#ifdef CONFIG_DRM_AMD_DC_VG20
+#define AI_VEGA20_P_A0 40
+#define ASICREV_IS_VEGA20_P(eChipRev) ((eChipRev >= AI_VEGA20_P_A0) && (eChipRev < AI_UNKNOWN))
+#endif
 
 #define AI_GREENLAND_P_A0 1
 #define AI_GREENLAND_P_A1 2
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#47 lore raw

PATCH 33/57 drm/amd/display: Add BIOS smu_info v3_3 support for Vega20

In reply to a message not in the archive

From: "Jerry (Fangzhi) Zuo" <[email protected]>

---
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +5 -0
index 10a5807a7e8b..4561673a0fe6 100644
@@ -1330,6 +1330,11 @@ static enum bp_result bios_parser_get_firmware_info(
 			case 2:
 				result = get_firmware_info_v3_2(bp, info);
 				break;
+			case 3:
+#ifdef CONFIG_DRM_AMD_DC_VG20
+				result = get_firmware_info_v3_2(bp, info);
+#endif
+				break;
 			default:
 				break;
 			}
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#48 lore raw

PATCH 34/57 drm/amd/display: Add harvest IP support for Vega20

In reply to a message not in the archive

From: "Jerry (Fangzhi) Zuo" <[email protected]>

Retrieve fuses to determine the availability of pipes, and eliminate pipes that cannot be used.

---
 .../drm/amd/display/dc/dce120/dce120_resource.c    | 208 +++++++++++++++++++++
 1 file changed, 208 insertions(+)
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +208 -0
index fda01574d1ba..545f35f0821f 100644
@@ -814,6 +814,213 @@ static void bw_calcs_data_update_from_pplib(struct dc *dc)
 	dm_pp_notify_wm_clock_changes(dc->ctx, &clk_ranges);
 }
 
+#ifdef CONFIG_DRM_AMD_DC_VG20
+static uint32_t read_pipe_fuses(struct dc_context *ctx)
+{
+	uint32_t value = dm_read_reg_soc15(ctx, mmCC_DC_PIPE_DIS, 0);
+	/* VG20 support max 6 pipes */
+	value = value & 0x3f;
+	return value;
+}
+
+static bool construct(
+	uint8_t num_virtual_links,
+	struct dc *dc,
+	struct dce110_resource_pool *pool)
+{
+	unsigned int i;
+	int j;
+	struct dc_context *ctx = dc->ctx;
+	struct irq_service_init_data irq_init_data;
+	bool harvest_enabled = ASICREV_IS_VEGA20_P(ctx->asic_id.hw_internal_rev);
+	uint32_t pipe_fuses;
+
+	ctx->dc_bios->regs = &bios_regs;
+
+	pool->base.res_cap = &res_cap;
+	pool->base.funcs = &dce120_res_pool_funcs;
+
+	/* TODO: Fill more data from GreenlandAsicCapability.cpp */
+	pool->base.pipe_count = res_cap.num_timing_generator;
+	pool->base.timing_generator_count = pool->base.res_cap->num_timing_generator;
+	pool->base.underlay_pipe_index = NO_UNDERLAY_PIPE;
+
+	dc->caps.max_downscale_ratio = 200;
+	dc->caps.i2c_speed_in_khz = 100;
+	dc->caps.max_cursor_size = 128;
+	dc->caps.dual_link_dvi = true;
+
+	dc->debug = debug_defaults;
+
+	/*************************************************
+	 *  Create resources                             *
+	 *************************************************/
+
+	pool->base.clock_sources[DCE120_CLK_SRC_PLL0] =
+			dce120_clock_source_create(ctx, ctx->dc_bios,
+				CLOCK_SOURCE_COMBO_PHY_PLL0,
+				&clk_src_regs[0], false);
+	pool->base.clock_sources[DCE120_CLK_SRC_PLL1] =
+			dce120_clock_source_create(ctx, ctx->dc_bios,
+				CLOCK_SOURCE_COMBO_PHY_PLL1,
+				&clk_src_regs[1], false);
+	pool->base.clock_sources[DCE120_CLK_SRC_PLL2] =
+			dce120_clock_source_create(ctx, ctx->dc_bios,
+				CLOCK_SOURCE_COMBO_PHY_PLL2,
+				&clk_src_regs[2], false);
+	pool->base.clock_sources[DCE120_CLK_SRC_PLL3] =
+			dce120_clock_source_create(ctx, ctx->dc_bios,
+				CLOCK_SOURCE_COMBO_PHY_PLL3,
+				&clk_src_regs[3], false);
+	pool->base.clock_sources[DCE120_CLK_SRC_PLL4] =
+			dce120_clock_source_create(ctx, ctx->dc_bios,
+				CLOCK_SOURCE_COMBO_PHY_PLL4,
+				&clk_src_regs[4], false);
+	pool->base.clock_sources[DCE120_CLK_SRC_PLL5] =
+			dce120_clock_source_create(ctx, ctx->dc_bios,
+				CLOCK_SOURCE_COMBO_PHY_PLL5,
+				&clk_src_regs[5], false);
+	pool->base.clk_src_count = DCE120_CLK_SRC_TOTAL;
+
+	pool->base.dp_clock_source =
+			dce120_clock_source_create(ctx, ctx->dc_bios,
+				CLOCK_SOURCE_ID_DP_DTO,
+				&clk_src_regs[0], true);
+
+	for (i = 0; i < pool->base.clk_src_count; i++) {
+		if (pool->base.clock_sources[i] == NULL) {
+			dm_error("DC: failed to create clock sources!\n");
+			BREAK_TO_DEBUGGER();
+			goto clk_src_create_fail;
+		}
+	}
+
+	pool->base.display_clock = dce120_disp_clk_create(ctx);
+	if (pool->base.display_clock == NULL) {
+		dm_error("DC: failed to create display clock!\n");
+		BREAK_TO_DEBUGGER();
+		goto disp_clk_create_fail;
+	}
+
+	pool->base.dmcu = dce_dmcu_create(ctx,
+			&dmcu_regs,
+			&dmcu_shift,
+			&dmcu_mask);
+	if (pool->base.dmcu == NULL) {
+		dm_error("DC: failed to create dmcu!\n");
+		BREAK_TO_DEBUGGER();
+		goto res_create_fail;
+	}
+
+	pool->base.abm = dce_abm_create(ctx,
+			&abm_regs,
+			&abm_shift,
+			&abm_mask);
+	if (pool->base.abm == NULL) {
+		dm_error("DC: failed to create abm!\n");
+		BREAK_TO_DEBUGGER();
+		goto res_create_fail;
+	}
+
+	irq_init_data.ctx = dc->ctx;
+	pool->base.irqs = dal_irq_service_dce120_create(&irq_init_data);
+	if (!pool->base.irqs)
+		goto irqs_create_fail;
+
+	/* retrieve valid pipe fuses */
+	if (harvest_enabled)
+		pipe_fuses = read_pipe_fuses(ctx);
+
+	/* index to valid pipe resource */
+	j = 0;
+	for (i = 0; i < pool->base.pipe_count; i++) {
+		if (harvest_enabled) {
+			if ((pipe_fuses & (1 << i)) != 0) {
+				dm_error("DC: skip invalid pipe %d!\n", i);
+				continue;
+			}
+		}
+
+		pool->base.timing_generators[j] =
+				dce120_timing_generator_create(
+					ctx,
+					i,
+					&dce120_tg_offsets[i]);
+		if (pool->base.timing_generators[j] == NULL) {
+			BREAK_TO_DEBUGGER();
+			dm_error("DC: failed to create tg!\n");
+			goto controller_create_fail;
+		}
+
+		pool->base.mis[j] = dce120_mem_input_create(ctx, i);
+
+		if (pool->base.mis[j] == NULL) {
+			BREAK_TO_DEBUGGER();
+			dm_error(
+				"DC: failed to create memory input!\n");
+			goto controller_create_fail;
+		}
+
+		pool->base.ipps[j] = dce120_ipp_create(ctx, i);
+		if (pool->base.ipps[i] == NULL) {
+			BREAK_TO_DEBUGGER();
+			dm_error(
+				"DC: failed to create input pixel processor!\n");
+			goto controller_create_fail;
+		}
+
+		pool->base.transforms[j] = dce120_transform_create(ctx, i);
+		if (pool->base.transforms[i] == NULL) {
+			BREAK_TO_DEBUGGER();
+			dm_error(
+				"DC: failed to create transform!\n");
+			goto res_create_fail;
+		}
+
+		pool->base.opps[j] = dce120_opp_create(
+			ctx,
+			i);
+		if (pool->base.opps[j] == NULL) {
+			BREAK_TO_DEBUGGER();
+			dm_error(
+				"DC: failed to create output pixel processor!\n");
+		}
+
+		/* check next valid pipe */
+		j++;
+	}
+
+	/* valid pipe num */
+	pool->base.pipe_count = j;
+	pool->base.timing_generator_count = j;
+
+	if (!resource_construct(num_virtual_links, dc, &pool->base,
+			 &res_create_funcs))
+		goto res_create_fail;
+
+	/* Create hardware sequencer */
+	if (!dce120_hw_sequencer_create(dc))
+		goto controller_create_fail;
+
+	dc->caps.max_planes =  pool->base.pipe_count;
+
+	bw_calcs_init(dc->bw_dceip, dc->bw_vbios, dc->ctx->asic_id);
+
+	bw_calcs_data_update_from_pplib(dc);
+
+	return true;
+
+irqs_create_fail:
+controller_create_fail:
+disp_clk_create_fail:
+clk_src_create_fail:
+res_create_fail:
+
+	destruct(pool);
+
+	return false;
+}
+#else
 static bool construct(
 	uint8_t num_virtual_links,
 	struct dc *dc,
@@ -988,6 +1195,7 @@ static bool construct(
 
 	return false;
 }
+#endif
 
 struct resource_pool *dce120_create_resource_pool(
 	uint8_t num_virtual_links,
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#49 lore raw

PATCH 35/57 drm/amdgpu/atomfirmware: add new gfx_info data table v2.4 (v2)

In reply to a message not in the archive

Adds additional gfx configuration data.

v2: fix typo

Reviewed-by Hawking Zhang <Hawking.Zhang>
---
 drivers/gpu/drm/amd/include/atomfirmware.h | 34 ++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
drivers/gpu/drm/amd/include/atomfirmware.h +34 -0
index de177ce8ca80..fd5e80c92ed0 100644
@@ -1219,6 +1219,40 @@ struct  atom_gfx_info_v2_3 {
   uint32_t rm21_sram_vmin_value;
 };
 
+struct  atom_gfx_info_v2_4 {
+  struct  atom_common_table_header  table_header;
+  uint8_t gfxip_min_ver;
+  uint8_t gfxip_max_ver;
+  uint8_t gc_num_se;
+  uint8_t max_tile_pipes;
+  uint8_t gc_num_cu_per_sh;
+  uint8_t gc_num_sh_per_se;
+  uint8_t gc_num_rb_per_se;
+  uint8_t gc_num_tccs;
+  uint32_t regaddr_cp_dma_src_addr;
+  uint32_t regaddr_cp_dma_src_addr_hi;
+  uint32_t regaddr_cp_dma_dst_addr;
+  uint32_t regaddr_cp_dma_dst_addr_hi;
+  uint32_t regaddr_cp_dma_command;
+  uint32_t regaddr_cp_status;
+  uint32_t regaddr_rlc_gpu_clock_32;
+  uint32_t rlc_gpu_timer_refclk;
+  uint8_t active_cu_per_sh;
+  uint8_t active_rb_per_se;
+  uint16_t gcgoldenoffset;
+  uint32_t rm21_sram_vmin_value;
+  uint16_t gc_num_gprs;
+  uint16_t gc_gsprim_buff_depth;
+  uint16_t gc_parameter_cache_depth;
+  uint16_t gc_wave_size;
+  uint16_t gc_max_waves_per_simd;
+  uint16_t gc_lds_size;
+  uint8_t gc_num_max_gs_thds;
+  uint8_t gc_gs_table_depth;
+  uint8_t gc_double_offchip_lds_buffer;
+  uint8_t gc_max_scratch_slots_per_cu;
+};
+
 /* 
   ***************************************************************************
     Data Table smu_info  structure
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#50 lore raw

PATCH 36/57 drm/amdgpu/atomfirmware: add parser for gfx_info table

In reply to a message not in the archive

Add support for the gfx_info table on boards that use atomfirmware.

Reviewed-by Hawking Zhang <Hawking.Zhang>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 46 ++++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h |  1 +
 2 files changed, 47 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +46 -0
index a0f48cb9b8f0..7014d5875d5b 100644
@@ -322,3 +322,49 @@ int amdgpu_atomfirmware_get_clock_info(struct amdgpu_device *adev)
 
 	return ret;
 }
+
+union gfx_info {
+	struct  atom_gfx_info_v2_4 v24;
+};
+
+int amdgpu_atomfirmware_get_gfx_info(struct amdgpu_device *adev)
+{
+	struct amdgpu_mode_info *mode_info = &adev->mode_info;
+	int index;
+	uint8_t frev, crev;
+	uint16_t data_offset;
+
+	index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
+					    gfx_info);
+	if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL,
+				   &frev, &crev, &data_offset)) {
+		union gfx_info *gfx_info = (union gfx_info *)
+			(mode_info->atom_context->bios + data_offset);
+		switch (crev) {
+		case 4:
+			adev->gfx.config.max_shader_engines = gfx_info->v24.gc_num_se;
+			adev->gfx.config.max_cu_per_sh = gfx_info->v24.gc_num_cu_per_sh;
+			adev->gfx.config.max_sh_per_se = gfx_info->v24.gc_num_sh_per_se;
+			adev->gfx.config.max_backends_per_se = gfx_info->v24.gc_num_rb_per_se;
+			adev->gfx.config.max_texture_channel_caches = gfx_info->v24.gc_num_tccs;
+			adev->gfx.config.max_gprs = le16_to_cpu(gfx_info->v24.gc_num_gprs);
+			adev->gfx.config.max_gs_threads = gfx_info->v24.gc_num_max_gs_thds;
+			adev->gfx.config.gs_vgt_table_depth = gfx_info->v24.gc_gs_table_depth;
+			adev->gfx.config.gs_prim_buffer_depth =
+				le16_to_cpu(gfx_info->v24.gc_gsprim_buff_depth);
+			adev->gfx.config.double_offchip_lds_buf =
+				gfx_info->v24.gc_double_offchip_lds_buffer;
+			adev->gfx.cu_info.wave_front_size = gfx_info->v24.gc_wave_size;
+			adev->gfx.cu_info.max_waves_per_simd =
+				le16_to_cpu(gfx_info->v24.gc_max_waves_per_simd);
+			adev->gfx.cu_info.max_scratch_slots_per_cu =
+				gfx_info->v24.gc_max_scratch_slots_per_cu;
+			adev->gfx.cu_info.lds_size = le16_to_cpu(gfx_info->v24.gc_lds_size);
+			return 0;
+		default:
+			return -EINVAL;
+		}
+
+	}
+	return -EINVAL;
+}
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h +1 -0
index 7689c961c4ef..20f158fd3b76 100644
@@ -30,5 +30,6 @@ int amdgpu_atomfirmware_allocate_fb_scratch(struct amdgpu_device *adev);
 int amdgpu_atomfirmware_get_vram_width(struct amdgpu_device *adev);
 int amdgpu_atomfirmware_get_vram_type(struct amdgpu_device *adev);
 int amdgpu_atomfirmware_get_clock_info(struct amdgpu_device *adev);
+int amdgpu_atomfirmware_get_gfx_info(struct amdgpu_device *adev);
 
 #endif
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#51 lore raw

PATCH 37/57 drm/amdgpu/vg20: fallback to vbios table if gpu info fw is not available (v2)

In reply to a message not in the archive

First try and fetch the gpu info firmware and then fall back to the vbios table if the gpu info firmware is not available.

v2: warning fix (Alex)

Reviewed-by Hawking Zhang <Hawking.Zhang>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  3 +++
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c      | 16 ++++++++++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -0
index 5aa3b1d69cfe..a8a5d6e0eccf 100644
@@ -1467,6 +1467,9 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)
 		goto out;
 	}
 out:
+	/* fall back to vbios tables for vega20 */
+	if (adev->asic_type == CHIP_VEGA20)
+		return 0;
 	return err;
 }
 
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +14 -2
index 9d55f6e24bc5..c92b95a7d9a0 100644
@@ -27,6 +27,7 @@
 #include "amdgpu_gfx.h"
 #include "soc15.h"
 #include "soc15d.h"
+#include "amdgpu_atomfirmware.h"
 
 #include "gc/gc_9_0_offset.h"
 #include "gc/gc_9_0_sh_mask.h"
@@ -1113,9 +1114,10 @@ static const struct amdgpu_gfx_funcs gfx_v9_0_gfx_funcs = {
 	.select_me_pipe_q = &gfx_v9_0_select_me_pipe_q
 };
 
-static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
+static int gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
 {
 	u32 gb_addr_config;
+	int err;
 
 	adev->gfx.funcs = &gfx_v9_0_gfx_funcs;
 
@@ -1147,6 +1149,12 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
 		gb_addr_config = RREG32_SOC15(GC, 0, mmGB_ADDR_CONFIG);
 		gb_addr_config &= ~0xf3e777ff;
 		gb_addr_config |= 0x22014042;
+		/* check vbios table if gpu info is not available */
+		if (!adev->gfx.config.max_shader_engines) {
+			err = amdgpu_atomfirmware_get_gfx_info(adev);
+			if (err)
+				return err;
+		}
 		break;
 	case CHIP_RAVEN:
 		adev->gfx.config.max_hw_contexts = 8;
@@ -1197,6 +1205,8 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
 					adev->gfx.config.gb_addr_config,
 					GB_ADDR_CONFIG,
 					PIPE_INTERLEAVE_SIZE));
+
+	return 0;
 }
 
 static int gfx_v9_0_ngg_create_buf(struct amdgpu_device *adev,
@@ -1558,7 +1568,9 @@ static int gfx_v9_0_sw_init(void *handle)
 
 	adev->gfx.ce_ram_size = 0x8000;
 
-	gfx_v9_0_gpu_early_init(adev);
+	r = gfx_v9_0_gpu_early_init(adev);
+	if (r)
+		return r;
 
 	r = gfx_v9_0_ngg_init(adev);
 	if (r)
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#52 lore raw

PATCH 38/57 drm/amdgpu: drop gpu_info firmware for vega20

In reply to a message not in the archive

No longer required.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 +-------
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c      | 8 +++-----
 2 files changed, 4 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -7
index a8a5d6e0eccf..e730f480a876 100644
@@ -60,7 +60,6 @@
 
 MODULE_FIRMWARE("amdgpu/vega10_gpu_info.bin");
 MODULE_FIRMWARE("amdgpu/vega12_gpu_info.bin");
-MODULE_FIRMWARE("amdgpu/vega20_gpu_info.bin");
 MODULE_FIRMWARE("amdgpu/raven_gpu_info.bin");
 
 #define AMDGPU_RESUME_MS		2000
@@ -1398,6 +1397,7 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)
 	case CHIP_KABINI:
 	case CHIP_MULLINS:
 #endif
+    case CHIP_VEGA20:
 	default:
 		return 0;
 	case CHIP_VEGA10:
@@ -1406,9 +1406,6 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)
 	case CHIP_VEGA12:
 		chip_name = "vega12";
 		break;
-	case CHIP_VEGA20:
-		chip_name = "vega20";
-		break;
 	case CHIP_RAVEN:
 		chip_name = "raven";
 		break;
@@ -1467,9 +1464,6 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)
 		goto out;
 	}
 out:
-	/* fall back to vbios tables for vega20 */
-	if (adev->asic_type == CHIP_VEGA20)
-		return 0;
 	return err;
 }
 
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +3 -5
index c92b95a7d9a0..7c5a85087d4e 100644
@@ -1150,11 +1150,9 @@ static int gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
 		gb_addr_config &= ~0xf3e777ff;
 		gb_addr_config |= 0x22014042;
 		/* check vbios table if gpu info is not available */
-		if (!adev->gfx.config.max_shader_engines) {
-			err = amdgpu_atomfirmware_get_gfx_info(adev);
-			if (err)
-				return err;
-		}
+		err = amdgpu_atomfirmware_get_gfx_info(adev);
+		if (err)
+			return err;
 		break;
 	case CHIP_RAVEN:
 		adev->gfx.config.max_hw_contexts = 8;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#53 lore raw

PATCH 39/57 drm/amdgpu: Set vega20 load_type to AMDGPU_FW_LOAD_DIRECT.

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Please revert this patch when psp load fw is enabled.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +2 -1
index 63e29969dbf6..abcc163300d9 100644
@@ -303,11 +303,12 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
 	case CHIP_VEGA10:
 	case CHIP_RAVEN:
 	case CHIP_VEGA12:
-	case CHIP_VEGA20:
 		if (!load_type)
 			return AMDGPU_FW_LOAD_DIRECT;
 		else
 			return AMDGPU_FW_LOAD_PSP;
+	case CHIP_VEGA20:
+		return AMDGPU_FW_LOAD_DIRECT;
 	default:
 		DRM_ERROR("Unknow firmware load type\n");
 	}
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#54 lore raw

PATCH 40/57 drm/amd/powerplay: update vega20 cg flags

In reply to a message not in the archive

From: Evan Quan <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +18 -1
index 4e065c68b86c..91d87f83a830 100644
@@ -665,7 +665,24 @@ static int soc15_common_early_init(void *handle)
 		adev->external_rev_id = adev->rev_id + 0x14;
 		break;
 	case CHIP_VEGA20:
-		adev->cg_flags = 0;
+		adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
+			AMD_CG_SUPPORT_GFX_MGLS |
+			AMD_CG_SUPPORT_GFX_CGCG |
+			AMD_CG_SUPPORT_GFX_CGLS |
+			AMD_CG_SUPPORT_GFX_3D_CGCG |
+			AMD_CG_SUPPORT_GFX_3D_CGLS |
+			AMD_CG_SUPPORT_GFX_CP_LS |
+			AMD_CG_SUPPORT_MC_LS |
+			AMD_CG_SUPPORT_MC_MGCG |
+			AMD_CG_SUPPORT_SDMA_MGCG |
+			AMD_CG_SUPPORT_SDMA_LS |
+			AMD_CG_SUPPORT_BIF_MGCG |
+			AMD_CG_SUPPORT_BIF_LS |
+			AMD_CG_SUPPORT_HDP_MGCG |
+			AMD_CG_SUPPORT_BIF_LS |
+			AMD_CG_SUPPORT_ROM_MGCG |
+			AMD_CG_SUPPORT_VCE_MGCG |
+			AMD_CG_SUPPORT_UVD_MGCG;
 		adev->pg_flags = 0;
 		adev->external_rev_id = adev->rev_id + 0x28;
 		break;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#55 lore raw

PATCH 41/57 drm/include: Fix MP1_BASE address for vega20

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/include/vega20_ip_offset.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/include/vega20_ip_offset.h +2 -2
index 2da2d9790bac..97db93ceba4b 100644
@@ -90,7 +90,7 @@ static const struct IP_BASE MP0_BASE            ={ { { { 0x00016000, 0, 0, 0, 0,
                                         { { 0, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } } } };
-static const struct IP_BASE MP1_BASE            ={ { { { 0x00016200, 0, 0, 0, 0, 0 } },
+static const struct IP_BASE MP1_BASE            ={ { { { 0x00016000, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } },
@@ -542,7 +542,7 @@ static const struct IP_BASE RSMU_BASE            ={ { { { 0x00012000, 0, 0, 0, 0
 #define MP0_BASE__INST5_SEG4                       0
 #define MP0_BASE__INST5_SEG5                       0
 
-#define MP1_BASE__INST0_SEG0                       0x00016200
+#define MP1_BASE__INST0_SEG0                       0x00016000
 #define MP1_BASE__INST0_SEG1                       0
 #define MP1_BASE__INST0_SEG2                       0
 #define MP1_BASE__INST0_SEG3                       0
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#56 lore raw

PATCH 42/57 drm/amd/include/vg20: adjust VCE_BASE to reuse vce 4.0 header files

In reply to a message not in the archive

From: James Zhu <[email protected]>

Vega20 uses vce 4.1 engine, all the registers have the same absolute offset with vce 4.0. By adjusting vega20 VCE_BASE, vce 4.1 can reuse vce 4.0 header files.

---
 drivers/gpu/drm/amd/include/vega20_ip_offset.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/include/vega20_ip_offset.h +2 -1
index 97db93ceba4b..2a2a9cc8bedb 100644
@@ -144,7 +144,8 @@ static const struct IP_BASE UVD_BASE            ={ { { { 0x00007800, 0x00007E00,
                                         { { 0, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } } } };
-static const struct IP_BASE VCE_BASE            ={ { { { 0x00008800, 0, 0, 0, 0, 0 } },
+/* Adjust VCE_BASE to make vce_4_1 use vce_4_0 offset header files*/
+static const struct IP_BASE VCE_BASE            ={ { { { 0x00007E00/* 0x00008800 */, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } },
                                         { { 0, 0, 0, 0, 0, 0 } },
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#57 lore raw

PATCH 43/57 drm/amdgpu: Disable ip modules that are not ready yet

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

Please enable above ips on soc15.c when they're available.

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +9 -5
index 91d87f83a830..8d0d0540ebfd 100644
@@ -514,9 +514,11 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
 		amdgpu_device_ip_block_add(adev, &vega10_common_ip_block);
 		amdgpu_device_ip_block_add(adev, &gmc_v9_0_ip_block);
 		amdgpu_device_ip_block_add(adev, &vega10_ih_ip_block);
-		amdgpu_device_ip_block_add(adev, &psp_v3_1_ip_block);
-		if (!amdgpu_sriov_vf(adev))
-			amdgpu_device_ip_block_add(adev, &pp_smu_ip_block);
+		if (adev->asic_type != CHIP_VEGA20) {
+			amdgpu_device_ip_block_add(adev, &psp_v3_1_ip_block);
+			if (!amdgpu_sriov_vf(adev))
+				amdgpu_device_ip_block_add(adev, &pp_smu_ip_block);
+		}
 		if (adev->enable_virtual_display || amdgpu_sriov_vf(adev))
 			amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);
 #if defined(CONFIG_DRM_AMD_DC)
@@ -527,8 +529,10 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
 #endif
 		amdgpu_device_ip_block_add(adev, &gfx_v9_0_ip_block);
 		amdgpu_device_ip_block_add(adev, &sdma_v4_0_ip_block);
-		amdgpu_device_ip_block_add(adev, &uvd_v7_0_ip_block);
-		amdgpu_device_ip_block_add(adev, &vce_v4_0_ip_block);
+		if (adev->asic_type != CHIP_VEGA20) {
+			amdgpu_device_ip_block_add(adev, &uvd_v7_0_ip_block);
+			amdgpu_device_ip_block_add(adev, &vce_v4_0_ip_block);
+		}
 		break;
 	case CHIP_RAVEN:
 		amdgpu_device_ip_block_add(adev, &vega10_common_ip_block);
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#58 lore raw

PATCH 44/57 drm/amdgpu/vg20:Restruct uvd to support multiple uvds

In reply to a message not in the archive

From: James Zhu <[email protected]>

Vega20 has dual-UVD. Need Restruct amdgpu_device::uvd to support multiple uvds. There are no any logical changes here.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c     |   6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c       |   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c |   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c       | 102 +++++++++----------
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h       |  19 ++--
 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c         |  27 +++---
 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c         |  25 ++---
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c         |  77 +++++++--------
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c         | 135 +++++++++++++-------------
 9 files changed, 205 insertions(+), 194 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +3 -3
index d09fcab2398f..1070f4042cbb 100644
@@ -376,14 +376,14 @@ int amdgpu_fence_driver_start_ring(struct amdgpu_ring *ring,
 	struct amdgpu_device *adev = ring->adev;
 	uint64_t index;
 
-	if (ring != &adev->uvd.ring) {
+	if (ring != &adev->uvd.inst->ring) {
 		ring->fence_drv.cpu_addr = &adev->wb.wb[ring->fence_offs];
 		ring->fence_drv.gpu_addr = adev->wb.gpu_addr + (ring->fence_offs * 4);
 	} else {
 		/* put fence directly behind firmware */
 		index = ALIGN(adev->uvd.fw->size, 8);
-		ring->fence_drv.cpu_addr = adev->uvd.cpu_addr + index;
-		ring->fence_drv.gpu_addr = adev->uvd.gpu_addr + index;
+		ring->fence_drv.cpu_addr = adev->uvd.inst->cpu_addr + index;
+		ring->fence_drv.gpu_addr = adev->uvd.inst->gpu_addr + index;
 	}
 	amdgpu_fence_write(ring, atomic_read(&ring->fence_drv.last_seq));
 	amdgpu_irq_get(adev, irq_src, irq_type);
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +2 -2
index 6d55caed4b98..1a2a0e93b290 100644
@@ -348,7 +348,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
 			break;
 		case AMDGPU_HW_IP_UVD:
 			type = AMD_IP_BLOCK_TYPE_UVD;
-			ring_mask = adev->uvd.ring.ready ? 1 : 0;
+			ring_mask = adev->uvd.inst->ring.ready ? 1 : 0;
 			ib_start_alignment = AMDGPU_GPU_PAGE_SIZE;
 			ib_size_alignment = 16;
 			break;
@@ -362,7 +362,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
 		case AMDGPU_HW_IP_UVD_ENC:
 			type = AMD_IP_BLOCK_TYPE_UVD;
 			for (i = 0; i < adev->uvd.num_enc_rings; i++)
-				ring_mask |= ((adev->uvd.ring_enc[i].ready ? 1 : 0) << i);
+				ring_mask |= ((adev->uvd.inst->ring_enc[i].ready ? 1 : 0) << i);
 			ib_start_alignment = AMDGPU_GPU_PAGE_SIZE;
 			ib_size_alignment = 1;
 			break;
drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c +2 -2
index 262c1267249e..2458d385e55a 100644
@@ -77,13 +77,13 @@ static int amdgpu_identity_map(struct amdgpu_device *adev,
 		*out_ring = &adev->sdma.instance[ring].ring;
 		break;
 	case AMDGPU_HW_IP_UVD:
-		*out_ring = &adev->uvd.ring;
+		*out_ring = &adev->uvd.inst->ring;
 		break;
 	case AMDGPU_HW_IP_VCE:
 		*out_ring = &adev->vce.ring[ring];
 		break;
 	case AMDGPU_HW_IP_UVD_ENC:
-		*out_ring = &adev->uvd.ring_enc[ring];
+		*out_ring = &adev->uvd.inst->ring_enc[ring];
 		break;
 	case AMDGPU_HW_IP_VCN_DEC:
 		*out_ring = &adev->vcn.ring_dec;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +51 -51

264 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h +13 -6
index 32ea20b99e53..b1579fba134c 100644
@@ -31,30 +31,37 @@
 #define AMDGPU_UVD_SESSION_SIZE		(50*1024)
 #define AMDGPU_UVD_FIRMWARE_OFFSET	256
 
+#define AMDGPU_MAX_UVD_INSTANCES			2
+
 #define AMDGPU_UVD_FIRMWARE_SIZE(adev)    \
 	(AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(((const struct common_firmware_header *)(adev)->uvd.fw->data)->ucode_size_bytes) + \
 			       8) - AMDGPU_UVD_FIRMWARE_OFFSET)
 
-struct amdgpu_uvd {
+struct amdgpu_uvd_inst {
 	struct amdgpu_bo	*vcpu_bo;
 	void			*cpu_addr;
 	uint64_t		gpu_addr;
-	unsigned		fw_version;
 	void			*saved_bo;
-	unsigned		max_handles;
 	atomic_t		handles[AMDGPU_MAX_UVD_HANDLES];
 	struct drm_file		*filp[AMDGPU_MAX_UVD_HANDLES];
 	struct delayed_work	idle_work;
-	const struct firmware	*fw;	/* UVD firmware */
 	struct amdgpu_ring	ring;
 	struct amdgpu_ring	ring_enc[AMDGPU_MAX_UVD_ENC_RINGS];
 	struct amdgpu_irq_src	irq;
-	bool			address_64_bit;
-	bool			use_ctx_buf;
 	struct drm_sched_entity entity;
 	struct drm_sched_entity entity_enc;
 	uint32_t                srbm_soft_reset;
+};
+
+struct amdgpu_uvd {
+	const struct firmware	*fw;	/* UVD firmware */
+	unsigned		fw_version;
+	unsigned		max_handles;
 	unsigned		num_enc_rings;
+	uint8_t		num_uvd_inst;
+	bool			address_64_bit;
+	bool			use_ctx_buf;
+	struct amdgpu_uvd_inst		inst[AMDGPU_MAX_UVD_INSTANCES];
 };
 
 int amdgpu_uvd_sw_init(struct amdgpu_device *adev);
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +14 -13
index 87cbb142dd0b..5f22135de77f 100644
@@ -93,6 +93,7 @@ static void uvd_v4_2_ring_set_wptr(struct amdgpu_ring *ring)
 static int uvd_v4_2_early_init(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+	adev->uvd.num_uvd_inst = 1;
 
 	uvd_v4_2_set_ring_funcs(adev);
 	uvd_v4_2_set_irq_funcs(adev);
@@ -107,7 +108,7 @@ static int uvd_v4_2_sw_init(void *handle)
 	int r;
 
 	/* UVD TRAP */
-	r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, 124, &adev->uvd.irq);
+	r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, 124, &adev->uvd.inst->irq);
 	if (r)
 		return r;
 
@@ -119,9 +120,9 @@ static int uvd_v4_2_sw_init(void *handle)
 	if (r)
 		return r;
 
-	ring = &adev->uvd.ring;
+	ring = &adev->uvd.inst->ring;
 	sprintf(ring->name, "uvd");
-	r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.irq, 0);
+	r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0);
 
 	return r;
 }
@@ -150,7 +151,7 @@ static void uvd_v4_2_enable_mgcg(struct amdgpu_device *adev,
 static int uvd_v4_2_hw_init(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	struct amdgpu_ring *ring = &adev->uvd.ring;
+	struct amdgpu_ring *ring = &adev->uvd.inst->ring;
 	uint32_t tmp;
 	int r;
 
@@ -208,7 +209,7 @@ static int uvd_v4_2_hw_init(void *handle)
 static int uvd_v4_2_hw_fini(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	struct amdgpu_ring *ring = &adev->uvd.ring;
+	struct amdgpu_ring *ring = &adev->uvd.inst->ring;
 
 	if (RREG32(mmUVD_STATUS) != 0)
 		uvd_v4_2_stop(adev);
@@ -251,7 +252,7 @@ static int uvd_v4_2_resume(void *handle)
  */
 static int uvd_v4_2_start(struct amdgpu_device *adev)
 {
-	struct amdgpu_ring *ring = &adev->uvd.ring;
+	struct amdgpu_ring *ring = &adev->uvd.inst->ring;
 	uint32_t rb_bufsz;
 	int i, j, r;
 	u32 tmp;
@@ -536,7 +537,7 @@ static void uvd_v4_2_mc_resume(struct amdgpu_device *adev)
 	uint32_t size;
 
 	/* programm the VCPU memory controller bits 0-27 */
-	addr = (adev->uvd.gpu_addr + AMDGPU_UVD_FIRMWARE_OFFSET) >> 3;
+	addr = (adev->uvd.inst->gpu_addr + AMDGPU_UVD_FIRMWARE_OFFSET) >> 3;
 	size = AMDGPU_UVD_FIRMWARE_SIZE(adev) >> 3;
 	WREG32(mmUVD_VCPU_CACHE_OFFSET0, addr);
 	WREG32(mmUVD_VCPU_CACHE_SIZE0, size);
@@ -553,11 +554,11 @@ static void uvd_v4_2_mc_resume(struct amdgpu_device *adev)
 	WREG32(mmUVD_VCPU_CACHE_SIZE2, size);
 
 	/* bits 28-31 */
-	addr = (adev->uvd.gpu_addr >> 28) & 0xF;
+	addr = (adev->uvd.inst->gpu_addr >> 28) & 0xF;
 	WREG32(mmUVD_LMI_ADDR_EXT, (addr << 12) | (addr << 0));
 
 	/* bits 32-39 */
-	addr = (adev->uvd.gpu_addr >> 32) & 0xFF;
+	addr = (adev->uvd.inst->gpu_addr >> 32) & 0xFF;
 	WREG32(mmUVD_LMI_EXT40_ADDR, addr | (0x9 << 16) | (0x1 << 31));
 
 	WREG32(mmUVD_UDEC_ADDR_CONFIG, adev->gfx.config.gb_addr_config);
@@ -664,7 +665,7 @@ static int uvd_v4_2_process_interrupt(struct amdgpu_device *adev,
 				      struct amdgpu_iv_entry *entry)
 {
 	DRM_DEBUG("IH: UVD TRAP\n");
-	amdgpu_fence_process(&adev->uvd.ring);
+	amdgpu_fence_process(&adev->uvd.inst->ring);
 	return 0;
 }
 
@@ -753,7 +754,7 @@ static const struct amdgpu_ring_funcs uvd_v4_2_ring_funcs = {
 
 static void uvd_v4_2_set_ring_funcs(struct amdgpu_device *adev)
 {
-	adev->uvd.ring.funcs = &uvd_v4_2_ring_funcs;
+	adev->uvd.inst->ring.funcs = &uvd_v4_2_ring_funcs;
 }
 
 static const struct amdgpu_irq_src_funcs uvd_v4_2_irq_funcs = {
@@ -763,8 +764,8 @@ static const struct amdgpu_irq_src_funcs uvd_v4_2_irq_funcs = {
 
 static void uvd_v4_2_set_irq_funcs(struct amdgpu_device *adev)
 {
-	adev->uvd.irq.num_types = 1;
-	adev->uvd.irq.funcs = &uvd_v4_2_irq_funcs;
+	adev->uvd.inst->irq.num_types = 1;
+	adev->uvd.inst->irq.funcs = &uvd_v4_2_irq_funcs;
 }
 
 const struct amdgpu_ip_block_version uvd_v4_2_ip_block =
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c +13 -12
index 6445d55e7d5a..f5d074a887fc 100644
@@ -89,6 +89,7 @@ static void uvd_v5_0_ring_set_wptr(struct amdgpu_ring *ring)
 static int uvd_v5_0_early_init(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+	adev->uvd.num_uvd_inst = 1;
 
 	uvd_v5_0_set_ring_funcs(adev);
 	uvd_v5_0_set_irq_funcs(adev);
@@ -103,7 +104,7 @@ static int uvd_v5_0_sw_init(void *handle)
 	int r;
 
 	/* UVD TRAP */
-	r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, 124, &adev->uvd.irq);
+	r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, 124, &adev->uvd.inst->irq);
 	if (r)
 		return r;
 
@@ -115,9 +116,9 @@ static int uvd_v5_0_sw_init(void *handle)
 	if (r)
 		return r;
 
-	ring = &adev->uvd.ring;
+	ring = &adev->uvd.inst->ring;
 	sprintf(ring->name, "uvd");
-	r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.irq, 0);
+	r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0);
 
 	return r;
 }
@@ -144,7 +145,7 @@ static int uvd_v5_0_sw_fini(void *handle)
 static int uvd_v5_0_hw_init(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	struct amdgpu_ring *ring = &adev->uvd.ring;
+	struct amdgpu_ring *ring = &adev->uvd.inst->ring;
 	uint32_t tmp;
 	int r;
 
@@ -204,7 +205,7 @@ static int uvd_v5_0_hw_init(void *handle)
 static int uvd_v5_0_hw_fini(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	struct amdgpu_ring *ring = &adev->uvd.ring;
+	struct amdgpu_ring *ring = &adev->uvd.inst->ring;
 
 	if (RREG32(mmUVD_STATUS) != 0)
 		uvd_v5_0_stop(adev);
@@ -253,9 +254,9 @@ static void uvd_v5_0_mc_resume(struct amdgpu_device *adev)
 
 	/* programm memory controller bits 0-27 */
 	WREG32(mmUVD_LMI_VCPU_CACHE_64BIT_BAR_LOW,
-			lower_32_bits(adev->uvd.gpu_addr));
+			lower_32_bits(adev->uvd.inst->gpu_addr));
 	WREG32(mmUVD_LMI_VCPU_CACHE_64BIT_BAR_HIGH,
-			upper_32_bits(adev->uvd.gpu_addr));
+			upper_32_bits(adev->uvd.inst->gpu_addr));
 
 	offset = AMDGPU_UVD_FIRMWARE_OFFSET;
 	size = AMDGPU_UVD_FIRMWARE_SIZE(adev);
@@ -287,7 +288,7 @@ static void uvd_v5_0_mc_resume(struct amdgpu_device *adev)
  */
 static int uvd_v5_0_start(struct amdgpu_device *adev)
 {
-	struct amdgpu_ring *ring = &adev->uvd.ring;
+	struct amdgpu_ring *ring = &adev->uvd.inst->ring;
 	uint32_t rb_bufsz, tmp;
 	uint32_t lmi_swap_cntl;
 	uint32_t mp_swap_cntl;
@@ -586,7 +587,7 @@ static int uvd_v5_0_process_interrupt(struct amdgpu_device *adev,
 				      struct amdgpu_iv_entry *entry)
 {
 	DRM_DEBUG("IH: UVD TRAP\n");
-	amdgpu_fence_process(&adev->uvd.ring);
+	amdgpu_fence_process(&adev->uvd.inst->ring);
 	return 0;
 }
 
@@ -861,7 +862,7 @@ static const struct amdgpu_ring_funcs uvd_v5_0_ring_funcs = {
 
 static void uvd_v5_0_set_ring_funcs(struct amdgpu_device *adev)
 {
-	adev->uvd.ring.funcs = &uvd_v5_0_ring_funcs;
+	adev->uvd.inst->ring.funcs = &uvd_v5_0_ring_funcs;
 }
 
 static const struct amdgpu_irq_src_funcs uvd_v5_0_irq_funcs = {
@@ -871,8 +872,8 @@ static const struct amdgpu_irq_src_funcs uvd_v5_0_irq_funcs = {
 
 static void uvd_v5_0_set_irq_funcs(struct amdgpu_device *adev)
 {
-	adev->uvd.irq.num_types = 1;
-	adev->uvd.irq.funcs = &uvd_v5_0_irq_funcs;
+	adev->uvd.inst->irq.num_types = 1;
+	adev->uvd.inst->irq.funcs = &uvd_v5_0_irq_funcs;
 }
 
 const struct amdgpu_ip_block_version uvd_v5_0_ip_block =
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +39 -38

253 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c +68 -67

396 lines not on this page · raw message

Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#59 lore raw

PATCH 45/57 drm/amdgpu/vg20:Restruct uvd.inst to support multiple instances

In reply to a message not in the archive

From: James Zhu <[email protected]>

Vega20 has dual-UVD. Need add multiple instances support for uvd. Restruct uvd.inst, using uvd.inst[0] to replace uvd.inst->. Repurpose amdgpu_ring::me for instance index, and initialize to 0. There are no any logical changes here.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c |    6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c   |   12 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c  |    1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c   |  229 +++----
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c     | 1002 +++++++++++++++--------------
 5 files changed, 660 insertions(+), 590 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +3 -3
index 1070f4042cbb..39ec6b8890a1 100644
@@ -376,14 +376,14 @@ int amdgpu_fence_driver_start_ring(struct amdgpu_ring *ring,
 	struct amdgpu_device *adev = ring->adev;
 	uint64_t index;
 
-	if (ring != &adev->uvd.inst->ring) {
+	if (ring != &adev->uvd.inst[ring->me].ring) {
 		ring->fence_drv.cpu_addr = &adev->wb.wb[ring->fence_offs];
 		ring->fence_drv.gpu_addr = adev->wb.gpu_addr + (ring->fence_offs * 4);
 	} else {
 		/* put fence directly behind firmware */
 		index = ALIGN(adev->uvd.fw->size, 8);
-		ring->fence_drv.cpu_addr = adev->uvd.inst->cpu_addr + index;
-		ring->fence_drv.gpu_addr = adev->uvd.inst->gpu_addr + index;
+		ring->fence_drv.cpu_addr = adev->uvd.inst[ring->me].cpu_addr + index;
+		ring->fence_drv.gpu_addr = adev->uvd.inst[ring->me].gpu_addr + index;
 	}
 	amdgpu_fence_write(ring, atomic_read(&ring->fence_drv.last_seq));
 	amdgpu_irq_get(adev, irq_src, irq_type);
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +8 -4
index 1a2a0e93b290..ca215490a881 100644
@@ -286,7 +286,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
 	struct drm_crtc *crtc;
 	uint32_t ui32 = 0;
 	uint64_t ui64 = 0;
-	int i, found;
+	int i, j, found;
 	int ui32_size = sizeof(ui32);
 
 	if (!info->return_size || !info->return_pointer)
@@ -348,7 +348,8 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
 			break;
 		case AMDGPU_HW_IP_UVD:
 			type = AMD_IP_BLOCK_TYPE_UVD;
-			ring_mask = adev->uvd.inst->ring.ready ? 1 : 0;
+			for (i = 0; i < adev->uvd.num_uvd_inst; i++)
+				ring_mask |= ((adev->uvd.inst[i].ring.ready ? 1 : 0) << i);
 			ib_start_alignment = AMDGPU_GPU_PAGE_SIZE;
 			ib_size_alignment = 16;
 			break;
@@ -361,8 +362,11 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
 			break;
 		case AMDGPU_HW_IP_UVD_ENC:
 			type = AMD_IP_BLOCK_TYPE_UVD;
-			for (i = 0; i < adev->uvd.num_enc_rings; i++)
-				ring_mask |= ((adev->uvd.inst->ring_enc[i].ready ? 1 : 0) << i);
+			for (i = 0; i < adev->uvd.num_uvd_inst; i++)
+				for (j = 0; j < adev->uvd.num_enc_rings; j++)
+					ring_mask |=
+					((adev->uvd.inst[i].ring_enc[j].ready ? 1 : 0) <<
+					(j + i * adev->uvd.num_enc_rings));
 			ib_start_alignment = AMDGPU_GPU_PAGE_SIZE;
 			ib_size_alignment = 1;
 			break;
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +1 -0
index 49cad08b5c16..c6850b629d0e 100644
@@ -362,6 +362,7 @@ void amdgpu_ring_fini(struct amdgpu_ring *ring)
 
 	dma_fence_put(ring->vmid_wait);
 	ring->vmid_wait = NULL;
+	ring->me = 0;
 
 	ring->adev->rings[ring->idx] = NULL;
 }
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +121 -108

368 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c +527 -475

1,349 lines not on this page · raw message

Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#60 lore raw

PATCH 46/57 drm/amdgpu/vg20:Restruct uvd.idle_work to support multiple instance (v2)

In reply to a message not in the archive

From: James Zhu <[email protected]>

Vega20 dual-UVD Hardware need two idle_works, restruct to support multiple instance.

v2: squash in indentation fix

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 17 +++++++++--------
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h |  7 ++++++-
 2 files changed, 15 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +9 -8
index 083e3bdb54e1..575e8d111211 100644
@@ -129,8 +129,6 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)
 	unsigned version_major, version_minor, family_id;
 	int i, j, r;
 
-	INIT_DELAYED_WORK(&adev->uvd.inst->idle_work, amdgpu_uvd_idle_work_handler);
-
 	switch (adev->asic_type) {
 #ifdef CONFIG_DRM_AMDGPU_CIK
 	case CHIP_BONAIRE:
@@ -237,6 +235,8 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)
 		bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
 
 	for (j = 0; j < adev->uvd.num_uvd_inst; j++) {
+		adev->uvd.inst[j].delayed_work.ip_instance = j;
+		INIT_DELAYED_WORK(&adev->uvd.inst[j].delayed_work.idle_work, amdgpu_uvd_idle_work_handler);
 
 		r = amdgpu_bo_create_kernel(adev, bo_size, PAGE_SIZE,
 					    AMDGPU_GEM_DOMAIN_VRAM, &adev->uvd.inst[j].vcpu_bo,
@@ -317,7 +317,7 @@ int amdgpu_uvd_suspend(struct amdgpu_device *adev)
 		if (adev->uvd.inst[j].vcpu_bo == NULL)
 			continue;
 
-		cancel_delayed_work_sync(&adev->uvd.inst[j].idle_work);
+		cancel_delayed_work_sync(&adev->uvd.inst[j].delayed_work.idle_work);
 
 		/* only valid for physical mode */
 		if (adev->asic_type < CHIP_POLARIS10) {
@@ -1142,9 +1142,10 @@ int amdgpu_uvd_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
 
 static void amdgpu_uvd_idle_work_handler(struct work_struct *work)
 {
+	struct amdgpu_delayed_work *my_work = (struct amdgpu_delayed_work *)work;
 	struct amdgpu_device *adev =
-		container_of(work, struct amdgpu_device, uvd.inst->idle_work.work);
-	unsigned fences = amdgpu_fence_count_emitted(&adev->uvd.inst->ring);
+		container_of(work, struct amdgpu_device, uvd.inst[my_work->ip_instance].delayed_work.idle_work.work);
+	unsigned fences = amdgpu_fence_count_emitted(&adev->uvd.inst[my_work->ip_instance].ring);
 
 	if (fences == 0) {
 		if (adev->pm.dpm_enabled) {
@@ -1158,7 +1159,7 @@ static void amdgpu_uvd_idle_work_handler(struct work_struct *work)
 							       AMD_CG_STATE_GATE);
 		}
 	} else {
-		schedule_delayed_work(&adev->uvd.inst->idle_work, UVD_IDLE_TIMEOUT);
+		schedule_delayed_work(&adev->uvd.inst[my_work->ip_instance].delayed_work.idle_work, UVD_IDLE_TIMEOUT);
 	}
 }
 
@@ -1170,7 +1171,7 @@ void amdgpu_uvd_ring_begin_use(struct amdgpu_ring *ring)
 	if (amdgpu_sriov_vf(adev))
 		return;
 
-	set_clocks = !cancel_delayed_work_sync(&adev->uvd.inst->idle_work);
+	set_clocks = !cancel_delayed_work_sync(&adev->uvd.inst[ring->me].delayed_work.idle_work);
 	if (set_clocks) {
 		if (adev->pm.dpm_enabled) {
 			amdgpu_dpm_enable_uvd(adev, true);
@@ -1187,7 +1188,7 @@ void amdgpu_uvd_ring_begin_use(struct amdgpu_ring *ring)
 void amdgpu_uvd_ring_end_use(struct amdgpu_ring *ring)
 {
 	if (!amdgpu_sriov_vf(ring->adev))
-		schedule_delayed_work(&ring->adev->uvd.inst->idle_work, UVD_IDLE_TIMEOUT);
+		schedule_delayed_work(&ring->adev->uvd.inst[ring->me].delayed_work.idle_work, UVD_IDLE_TIMEOUT);
 }
 
 /**
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h +6 -1
index b1579fba134c..7801eb8d4199 100644
@@ -37,6 +37,11 @@
 	(AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(((const struct common_firmware_header *)(adev)->uvd.fw->data)->ucode_size_bytes) + \
 			       8) - AMDGPU_UVD_FIRMWARE_OFFSET)
 
+struct amdgpu_delayed_work{
+	struct delayed_work idle_work;
+	unsigned ip_instance;
+};
+
 struct amdgpu_uvd_inst {
 	struct amdgpu_bo	*vcpu_bo;
 	void			*cpu_addr;
@@ -44,12 +49,12 @@ struct amdgpu_uvd_inst {
 	void			*saved_bo;
 	atomic_t		handles[AMDGPU_MAX_UVD_HANDLES];
 	struct drm_file		*filp[AMDGPU_MAX_UVD_HANDLES];
-	struct delayed_work	idle_work;
 	struct amdgpu_ring	ring;
 	struct amdgpu_ring	ring_enc[AMDGPU_MAX_UVD_ENC_RINGS];
 	struct amdgpu_irq_src	irq;
 	struct drm_sched_entity entity;
 	struct drm_sched_entity entity_enc;
+	struct amdgpu_delayed_work	delayed_work;
 	uint32_t                srbm_soft_reset;
 };
 
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#61 lore raw

PATCH 47/57 drm/amdgpu/vg20:increase 3 rings for AMDGPU_MAX_RINGS

In reply to a message not in the archive

From: James Zhu <[email protected]>

For Vega20, there are two UVD Hardware. One more UVD hardware adds one decode ring and two encode rings. So AMDGPU_MAX_RINGS need increase by 3.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h +1 -1
index 4f8dac2d36a5..1513124c5659 100644
@@ -29,7 +29,7 @@
 #include <drm/drm_print.h>
 
 /* max number of rings */
-#define AMDGPU_MAX_RINGS		18
+#define AMDGPU_MAX_RINGS		21
 #define AMDGPU_MAX_GFX_RINGS		1
 #define AMDGPU_MAX_COMPUTE_RINGS	8
 #define AMDGPU_MAX_VCE_RINGS		3
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#62 lore raw

PATCH 48/57 drm/amdgpu/vg20:Enable the 2nd instance for uvd

In reply to a message not in the archive

From: James Zhu <[email protected]>

For Vega20, set num of uvd instance to 2, to enble 2nd instance. The IB test build-in registers need update for vega20 2nd instance.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 30 ++++++++++++++++--------------
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c   |  7 ++++++-
 2 files changed, 22 insertions(+), 15 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +16 -14
index 575e8d111211..f8abbfb2df79 100644
@@ -72,11 +72,12 @@
 #define FIRMWARE_VEGA12		"amdgpu/vega12_uvd.bin"
 #define FIRMWARE_VEGA20		"amdgpu/vega20_uvd.bin"
 
-#define mmUVD_GPCOM_VCPU_DATA0_VEGA10 (0x03c4 + 0x7e00)
-#define mmUVD_GPCOM_VCPU_DATA1_VEGA10 (0x03c5 + 0x7e00)
-#define mmUVD_GPCOM_VCPU_CMD_VEGA10 (0x03c3 + 0x7e00)
-#define mmUVD_NO_OP_VEGA10 (0x03ff + 0x7e00)
-#define mmUVD_ENGINE_CNTL_VEGA10 (0x03c6 + 0x7e00)
+/* These are common relative offsets for all asics, from uvd_7_0_offset.h,  */
+#define UVD_GPCOM_VCPU_CMD		0x03c3
+#define UVD_GPCOM_VCPU_DATA0	0x03c4
+#define UVD_GPCOM_VCPU_DATA1	0x03c5
+#define UVD_NO_OP				0x03ff
+#define UVD_BASE_SI				0x3800
 
 /**
  * amdgpu_uvd_cs_ctx - Command submission parser context
@@ -990,6 +991,8 @@ static int amdgpu_uvd_send_msg(struct amdgpu_ring *ring, struct amdgpu_bo *bo,
 	uint64_t addr;
 	long r;
 	int i;
+	unsigned offset_idx = 0;
+	unsigned offset[3] = { UVD_BASE_SI, 0, 0 };
 
 	amdgpu_bo_kunmap(bo);
 	amdgpu_bo_unpin(bo);
@@ -1009,17 +1012,16 @@ static int amdgpu_uvd_send_msg(struct amdgpu_ring *ring, struct amdgpu_bo *bo,
 		goto err;
 
 	if (adev->asic_type >= CHIP_VEGA10) {
-		data[0] = PACKET0(mmUVD_GPCOM_VCPU_DATA0_VEGA10, 0);
-		data[1] = PACKET0(mmUVD_GPCOM_VCPU_DATA1_VEGA10, 0);
-		data[2] = PACKET0(mmUVD_GPCOM_VCPU_CMD_VEGA10, 0);
-		data[3] = PACKET0(mmUVD_NO_OP_VEGA10, 0);
-	} else {
-		data[0] = PACKET0(mmUVD_GPCOM_VCPU_DATA0, 0);
-		data[1] = PACKET0(mmUVD_GPCOM_VCPU_DATA1, 0);
-		data[2] = PACKET0(mmUVD_GPCOM_VCPU_CMD, 0);
-		data[3] = PACKET0(mmUVD_NO_OP, 0);
+		offset_idx = 1 + ring->me;
+		offset[1] = adev->reg_offset[UVD_HWIP][0][1];
+		offset[2] = adev->reg_offset[UVD_HWIP][1][1];
 	}
 
+	data[0] = PACKET0(offset[offset_idx] + UVD_GPCOM_VCPU_DATA0, 0);
+	data[1] = PACKET0(offset[offset_idx] + UVD_GPCOM_VCPU_DATA1, 0);
+	data[2] = PACKET0(offset[offset_idx] + UVD_GPCOM_VCPU_CMD, 0);
+	data[3] = PACKET0(offset[offset_idx] + UVD_NO_OP, 0);
+
 	ib = &job->ibs[0];
 	addr = amdgpu_bo_gpu_offset(bo);
 	ib->ptr[0] = data[0];
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c +6 -1
index 8ec98b0bb42d..6e371c0f2428 100644
@@ -40,6 +40,8 @@
 #include "mmhub/mmhub_1_0_offset.h"
 #include "mmhub/mmhub_1_0_sh_mask.h"
 
+#define UVD7_MAX_HW_INSTANCES_VEGA20			2
+
 static void uvd_v7_0_set_ring_funcs(struct amdgpu_device *adev);
 static void uvd_v7_0_set_enc_ring_funcs(struct amdgpu_device *adev);
 static void uvd_v7_0_set_irq_funcs(struct amdgpu_device *adev);
@@ -370,7 +372,10 @@ static int uvd_v7_0_enc_ring_test_ib(struct amdgpu_ring *ring, long timeout)
 static int uvd_v7_0_early_init(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	adev->uvd.num_uvd_inst = 1;
+	if (adev->asic_type == CHIP_VEGA20)
+		adev->uvd.num_uvd_inst = UVD7_MAX_HW_INSTANCES_VEGA20;
+	else
+		adev->uvd.num_uvd_inst = 1;
 
 	if (amdgpu_sriov_vf(adev))
 		adev->uvd.num_enc_rings = 1;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#63 lore raw

PATCH 49/57 drm/amdgpu/vg20:Add IH client ID for the 2nd UVD

In reply to a message not in the archive

From: James Zhu <[email protected]>

For Vega20, there are two UVD hardware. Need add the 2nd IH client ID for the 2nd UVD Hardware.

---
 drivers/gpu/drm/amd/include/soc15_ih_clientid.h | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/include/soc15_ih_clientid.h +1 -0
index a12d4f27cfa4..12e196c15bbe 100644
@@ -43,6 +43,7 @@ enum soc15_ih_clientid {
 	SOC15_IH_CLIENTID_SE2SH		= 0x0c,
 	SOC15_IH_CLIENTID_SE3SH		= 0x0d,
 	SOC15_IH_CLIENTID_SYSHUB	= 0x0e,
+	SOC15_IH_CLIENTID_UVD1		= 0x0e,
 	SOC15_IH_CLIENTID_THM		= 0x0f,
 	SOC15_IH_CLIENTID_UVD		= 0x10,
 	SOC15_IH_CLIENTID_VCE0		= 0x11,
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#64 lore raw

PATCH 50/57 drm/amdgpu/vg20:Enable the 2nd instance IRQ for uvd 7.2

In reply to a message not in the archive

From: James Zhu <[email protected]>

For Vega20, the 2nd instance uvd IRQ using different client id. Enable the 2nd instance IRQ for uvd 7.2

---
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c +10 -2
index 6e371c0f2428..61650afd0570 100644
@@ -49,6 +49,11 @@ static int uvd_v7_0_start(struct amdgpu_device *adev);
 static void uvd_v7_0_stop(struct amdgpu_device *adev);
 static int uvd_v7_0_sriov_start(struct amdgpu_device *adev);
 
+static int amdgpu_ih_clientid_uvds[] = {
+	SOC15_IH_CLIENTID_UVD,
+	SOC15_IH_CLIENTID_UVD1
+};
+
 /**
  * uvd_v7_0_ring_get_rptr - get read pointer
  *
@@ -397,13 +402,13 @@ static int uvd_v7_0_sw_init(void *handle)
 
 	for (j = 0; j < adev->uvd.num_uvd_inst; j++) {
 		/* UVD TRAP */
-		r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_UVD, 124, &adev->uvd.inst[j].irq);
+		r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_uvds[j], 124, &adev->uvd.inst[j].irq);
 		if (r)
 			return r;
 
 		/* UVD ENC TRAP */
 		for (i = 0; i < adev->uvd.num_enc_rings; ++i) {
-			r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_UVD, i + 119, &adev->uvd.inst[j].irq);
+			r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_uvds[j], i + 119, &adev->uvd.inst[j].irq);
 			if (r)
 				return r;
 		}
@@ -1480,6 +1485,9 @@ static int uvd_v7_0_process_interrupt(struct amdgpu_device *adev,
 	case SOC15_IH_CLIENTID_UVD:
 		ip_instance = 0;
 		break;
+	case SOC15_IH_CLIENTID_UVD1:
+		ip_instance = 1;
+		break;
 	default:
 		DRM_ERROR("Unhandled client id: %d\n", entry->client_id);
 		return 0;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#65 lore raw

PATCH 51/57 drm/amdgpu/vg20:Enable 2nd instance queue maping for uvd 7.2

In reply to a message not in the archive

From: James Zhu <[email protected]>

Enable 2nd instance uvd queue maping for uvd 7.2. For user, only one UVD instance presents. there is two rings for uvd decode, and
4 rings for uvd encode.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c +10 -4
index 2458d385e55a..8af16e81c7d4 100644
@@ -66,6 +66,8 @@ static int amdgpu_identity_map(struct amdgpu_device *adev,
 			       u32 ring,
 			       struct amdgpu_ring **out_ring)
 {
+	u32 instance;
+
 	switch (mapper->hw_ip) {
 	case AMDGPU_HW_IP_GFX:
 		*out_ring = &adev->gfx.gfx_ring[ring];
@@ -77,13 +79,16 @@ static int amdgpu_identity_map(struct amdgpu_device *adev,
 		*out_ring = &adev->sdma.instance[ring].ring;
 		break;
 	case AMDGPU_HW_IP_UVD:
-		*out_ring = &adev->uvd.inst->ring;
+		instance = ring;
+		*out_ring = &adev->uvd.inst[instance].ring;
 		break;
 	case AMDGPU_HW_IP_VCE:
 		*out_ring = &adev->vce.ring[ring];
 		break;
 	case AMDGPU_HW_IP_UVD_ENC:
-		*out_ring = &adev->uvd.inst->ring_enc[ring];
+		instance = ring / adev->uvd.num_enc_rings;
+		*out_ring =
+		&adev->uvd.inst[instance].ring_enc[ring%adev->uvd.num_enc_rings];
 		break;
 	case AMDGPU_HW_IP_VCN_DEC:
 		*out_ring = &adev->vcn.ring_dec;
@@ -240,13 +245,14 @@ int amdgpu_queue_mgr_map(struct amdgpu_device *adev,
 		ip_num_rings = adev->sdma.num_instances;
 		break;
 	case AMDGPU_HW_IP_UVD:
-		ip_num_rings = 1;
+		ip_num_rings = adev->uvd.num_uvd_inst;
 		break;
 	case AMDGPU_HW_IP_VCE:
 		ip_num_rings = adev->vce.num_rings;
 		break;
 	case AMDGPU_HW_IP_UVD_ENC:
-		ip_num_rings = adev->uvd.num_enc_rings;
+		ip_num_rings =
+			adev->uvd.num_enc_rings * adev->uvd.num_uvd_inst;
 		break;
 	case AMDGPU_HW_IP_VCN_DEC:
 		ip_num_rings = 1;
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#66 lore raw

PATCH 52/57 drm/amdgpu/vg20:Enable UVD/VCE for Vega20

In reply to a message not in the archive

From: James Zhu <[email protected]>

Vega20 ucode load type is set to AMDGPU_FW_LOAD_DIRECT for default. So UVD/VCE needn't PSP IP block up. UVD/VCE for Vega20 can be enabled at this moment.

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +2 -4
index 8d0d0540ebfd..79354847f4c0 100644
@@ -529,10 +529,8 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
 #endif
 		amdgpu_device_ip_block_add(adev, &gfx_v9_0_ip_block);
 		amdgpu_device_ip_block_add(adev, &sdma_v4_0_ip_block);
-		if (adev->asic_type != CHIP_VEGA20) {
-			amdgpu_device_ip_block_add(adev, &uvd_v7_0_ip_block);
-			amdgpu_device_ip_block_add(adev, &vce_v4_0_ip_block);
-		}
+		amdgpu_device_ip_block_add(adev, &uvd_v7_0_ip_block);
+		amdgpu_device_ip_block_add(adev, &vce_v4_0_ip_block);
 		break;
 	case CHIP_RAVEN:
 		amdgpu_device_ip_block_add(adev, &vega10_common_ip_block);
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#67 lore raw

PATCH 53/57 drm/amdgpu: add df 3.6 headers

In reply to a message not in the archive

Needed for vega20.

---
 .../drm/amd/include/asic_reg/df/df_3_6_default.h   | 26 ++++++++++++
 .../drm/amd/include/asic_reg/df/df_3_6_offset.h    | 33 +++++++++++++++
 .../drm/amd/include/asic_reg/df/df_3_6_sh_mask.h   | 48 ++++++++++++++++++++++
 3 files changed, 107 insertions(+)
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_default.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_offset.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_sh_mask.h
drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_default.h new file +26 -0
new file mode 100644
index 000000000000..e58c207ac980
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2018  Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _df_3_6_DEFAULT_HEADER
+#define _df_3_6_DEFAULT_HEADER
+
+#define mmFabricConfigAccessControl_DEFAULT						0x00000000
+
+#endif
drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_offset.h new file +33 -0
new file mode 100644
index 000000000000..a9575db8d7aa
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2018  Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _df_3_6_OFFSET_HEADER
+#define _df_3_6_OFFSET_HEADER
+
+#define mmFabricConfigAccessControl									0x0410
+#define mmFabricConfigAccessControl_BASE_IDX								0
+
+#define mmDF_PIE_AON0_DfGlobalClkGater									0x00fc
+#define mmDF_PIE_AON0_DfGlobalClkGater_BASE_IDX								0
+
+#define mmDF_CS_UMC_AON0_DramBaseAddress0								0x0044
+#define mmDF_CS_UMC_AON0_DramBaseAddress0_BASE_IDX							0
+
+#endif
drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_sh_mask.h new file +48 -0

48 lines not on this page · raw message

Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#68 lore raw

PATCH 54/57 drm/amdgpu/df: implement df v3_6 callback functions (v2)

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

New df helpers for 3.6.

v2: switch to using df 3.5 headers.

---
 drivers/gpu/drm/amd/amdgpu/Makefile  |   3 +-
 drivers/gpu/drm/amd/amdgpu/df_v3_6.c | 116 +++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/df_v3_6.h |  40 ++++++++++++
 3 files changed, 158 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/df_v3_6.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/df_v3_6.h
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
index 1dd740b76d41..4ed943df2461 100644
@@ -67,7 +67,8 @@ amdgpu-y += \
 
 # add DF block
 amdgpu-y += \
-	df_v1_7.o
+	df_v1_7.o \
+	df_v3_6.o
 
 # add GMC block
 amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/df_v3_6.c new file +116 -0

116 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/df_v3_6.h new file +40 -0
new file mode 100644
index 000000000000..e79c58e5efcb
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2018 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ */
+
+#ifndef __DF_V3_6_H__
+#define __DF_V3_6_H__
+
+#include "soc15_common.h"
+
+enum DF_V3_6_MGCG {
+	DF_V3_6_MGCG_DISABLE = 0,
+	DF_V3_6_MGCG_ENABLE_00_CYCLE_DELAY = 1,
+	DF_V3_6_MGCG_ENABLE_01_CYCLE_DELAY = 2,
+	DF_V3_6_MGCG_ENABLE_15_CYCLE_DELAY = 13,
+	DF_V3_6_MGCG_ENABLE_31_CYCLE_DELAY = 14,
+	DF_V3_6_MGCG_ENABLE_63_CYCLE_DELAY = 15
+};
+
+extern const struct amdgpu_df_funcs df_v3_6_funcs;
+
+#endif
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#69 lore raw

PATCH 55/57 drm/amdgpu: Switch to use df_v3_6_funcs for vega20 (v2)

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

v2: fix whitespace (Alex)

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +5 -1
index 79354847f4c0..8ccbcf9885d1 100644
@@ -51,6 +51,7 @@
 #include "gfxhub_v1_0.h"
 #include "mmhub_v1_0.h"
 #include "df_v1_7.h"
+#include "df_v3_6.h"
 #include "vega10_ih.h"
 #include "sdma_v4_0.h"
 #include "uvd_v7_0.h"
@@ -501,7 +502,10 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
 	else
 		adev->nbio_funcs = &nbio_v6_1_funcs;
 
-	adev->df_funcs = &df_v1_7_funcs;
+	if (adev->asic_type == CHIP_VEGA20)
+		adev->df_funcs = &df_v3_6_funcs;
+	else
+		adev->df_funcs = &df_v1_7_funcs;
 	adev->nbio_funcs->detect_hw_virt(adev);
 
 	if (amdgpu_sriov_vf(adev))
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#70 lore raw

PATCH 56/57 drm/amdgpu: Add vega20 pci ids

In reply to a message not in the archive

From: Feifei Xu <[email protected]>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +7 -0
index a7a81ddab721..07319227d357 100644
@@ -564,6 +564,13 @@ static const struct pci_device_id pciidlist[] = {
 	{0x1002, 0x69A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12},
 	{0x1002, 0x69A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12},
 	{0x1002, 0x69AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12},
+	/* Vega 20 */
+	{0x1002, 0x66A0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
+	{0x1002, 0x66A1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
+	{0x1002, 0x66A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
+	{0x1002, 0x66A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
+	{0x1002, 0x66A7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
+	{0x1002, 0x66AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
 	/* Raven */
 	{0x1002, 0x15dd, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RAVEN|AMD_IS_APU},
 
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#71 lore raw

PATCH 57/57 drm/amdgpu: flag Vega20 as experimental

In reply to a message not in the archive

Must set amdgpu.exp_hw_support=1 on the kernel command line in grub to enable support.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +6 -6
index 07319227d357..cdc5182806bd 100644
@@ -565,12 +565,12 @@ static const struct pci_device_id pciidlist[] = {
 	{0x1002, 0x69A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12},
 	{0x1002, 0x69AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12},
 	/* Vega 20 */
-	{0x1002, 0x66A0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
-	{0x1002, 0x66A1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
-	{0x1002, 0x66A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
-	{0x1002, 0x66A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
-	{0x1002, 0x66A7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
-	{0x1002, 0x66AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20},
+	{0x1002, 0x66A0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT},
+	{0x1002, 0x66A1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT},
+	{0x1002, 0x66A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT},
+	{0x1002, 0x66A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT},
+	{0x1002, 0x66A7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT},
+	{0x1002, 0x66AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT},
 	/* Raven */
 	{0x1002, 0x15dd, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RAVEN|AMD_IS_APU},
 
Signature · 6 lines
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#72 lore raw
In reply to a message not in the archive

Patches #1, #15, #18, #30, #33-#36, #39, #53-#54, #56 are Acked-by: Christian König <[email protected]>.

Patches #2-#14, #16-#17, #20-#25, #28, #31, #40, #43, #55, #57 are Reviewed-by: Christian König <[email protected]>.

Patch #19 still has a "//TODO: Need to update this for vega20" comment in the middle of the code.

Should probably either be removed or fixed.

Patch #26:

Review

Quoted 4 lines
  	if (adev->flags & AMD_IS_APU)
  		adev->nbio_funcs = &nbio_v7_0_funcs;
(quoted diff) +2 -0
+	else if (adev->asic_type == CHIP_VEGA20)
+		adev->nbio_funcs = &nbio_v7_0_funcs;

Wouldn't it be better to write that as "adev->asic_type >= CHIP_VEGA20" now?

Patch #27: How about we push all those magic register values for emulation into firmware files?

Nobody outside of AMD is ever going to use this or be able to test it.

Patch #29: Looks like spaces instead of tabs for indentation.

Patch #32:

Review

Quoted 12 lines
(quoted diff) +9 -0
+#ifndef CONFIG_DRM_AMD_DC_VG20
  	dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK =
  			(dce_clk_params.pll_id ==
  					CLOCK_SOURCE_COMBO_DISPLAY_PLL0);
+#else
+	if (!ASICREV_IS_VEGA20_P(clk->ctx->asic_id.hw_internal_rev))
+		dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK =
+			(dce_clk_params.pll_id ==
+					CLOCK_SOURCE_COMBO_DISPLAY_PLL0);
+	else
+		dce_clk_params.flags.USE_GENLOCK_AS_SOURCE_FOR_DPREFCLK = false;
+#endif

That should certainly be cleaned up, looks like we can just keep the "#else" part.

Patch #37: Why not the other way around?

Patch #38: Well that explains patch #37 :) Should probably be squashed into the previous patches.

Patch #41: Should be squashed into the original patch adding the file.

Patch #42: That looks odd, what is the background?

Patches #44 - #52: Need to take a closer look later on.

Cheers,
Christian.

Am 15.05.2018 um 16:58 schrieb Alex Deucher:

Quoted 126 lines

This patch set adds initial support for vega20.

Alex Deucher (6):
drm/amdgpu/atomfirmware: add new gfx_info data table v2.4 (v2) drm/amdgpu/atomfirmware: add parser for gfx_info table drm/amdgpu/vg20: fallback to vbios table if gpu info fw is not
available (v2)
drm/amdgpu: drop gpu_info firmware for vega20 drm/amdgpu: add df 3.6 headers
drm/amdgpu: flag Vega20 as experimental

Evan Quan (1):
drm/amd/powerplay: update vega20 cg flags

Feifei Xu (35):
drm/amd: Add vega20_ip_offset.h headerfile for vega20. drm/amdgpu: Add vega20 to asic_type enum. drm/amdgpu: Add gpu_info firmware for vega20. drm/amdgpu: set asic family for vega20. drm/amdgpu: Add smu firmware support for vega20 drm/amdgpu/powerplay: Add initial vega20 support v2 drm/amdgpu/psp: Add initial psp support for vega20 drm/amdgpu: Add vega20 ucode loading method drm/amdgpu: Specify vega20 uvd firmware drm/amdgpu: Specify vega20 vce firmware drm/amdgpu/virtual_dce: Add vega20 support drm/amdgpu/gmc9: Add vega20 support drm/amdgpu/mmhub: Add clockgating support for vega20 drm/amdgpu/sdma4: Specify vega20 firmware drm/amdgpu/sdma4: Add vega20 golden settings (v3) drm/amdgpu/sdma4: Add clockgating support for vega20 drm/amdgpu/gfx9: Add support for vega20 firmware drm/amdgpu/gfx9: Add vega20 golden settings (v3) drm/amdgpu/gfx9: Add gfx config for vega20. (v3) drm/amdgpu/gfx9: Add support for vega20 drm/amdgpu/gfx9: Add clockgatting support for vega20 drm/amdgpu/soc15:Add vega20 soc15_common_early_init support drm/amdgpu/soc15: Set common clockgating for vega20. drm/amdgpu/soc15: dynamic initialize ip offset for vega20 drm/amdgpu/soc15: Add ip blocks for vega20 (v2) drm/amdgpu: Add nbio support for vega20 (v2) drm/amd/display/dm: Add vega20 support drm/amdgpu: Add vega20 to dc support check drm/amd/display: Remove COMBO_DISPLAY_PLL0 from Vega20 drm/amdgpu: Set vega20 load_type to AMDGPU_FW_LOAD_DIRECT. drm/include: Fix MP1_BASE address for vega20 drm/amdgpu: Disable ip modules that are not ready yet drm/amdgpu/df: implement df v3_6 callback functions (v2) drm/amdgpu: Switch to use df_v3_6_funcs for vega20 (v2) drm/amdgpu: Add vega20 pci ids

James Zhu (10):
drm/amd/include/vg20: adjust VCE_BASE to reuse vce 4.0 header files drm/amdgpu/vg20:Restruct uvd to support multiple uvds drm/amdgpu/vg20:Restruct uvd.inst to support multiple instances drm/amdgpu/vg20:Restruct uvd.idle_work to support multiple instance

     (v2)

drm/amdgpu/vg20:increase 3 rings for AMDGPU_MAX_RINGS drm/amdgpu/vg20:Enable the 2nd instance for uvd drm/amdgpu/vg20:Add IH client ID for the 2nd UVD drm/amdgpu/vg20:Enable the 2nd instance IRQ for uvd 7.2 drm/amdgpu/vg20:Enable 2nd instance queue maping for uvd 7.2 drm/amdgpu/vg20:Enable UVD/VCE for Vega20

Jerry (Fangzhi) Zuo (3):
drm/amd/display: Add Vega20 config. support drm/amd/display: Add BIOS smu_info v3_3 support for Vega20 drm/amd/display: Add harvest IP support for Vega20

Roman Li (1):
drm/amd: Add dce-12.1 gpio aux registers

Shaoyun Liu (1):
drm/amdgpu: Add vega20 soc init sequence on emulator (v3)

  drivers/gpu/drm/amd/amdgpu/Makefile                |     6 +-
  drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c   |    46 +
  drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h   |     1 +
  drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c            |     3 +
  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c         |     4 +
  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c            |     7 +
  drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c          |     6 +-
  drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c            |    12 +-
  drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c            |     1 +
  drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c      |    14 +-
  drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c           |     1 +
  drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h           |     2 +-
  drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c          |     2 +
  drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c            |   283 +-
  drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h            |    26 +-
  drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c            |     5 +
  drivers/gpu/drm/amd/amdgpu/dce_virtual.c           |     1 +
  drivers/gpu/drm/amd/amdgpu/df_v3_6.c               |   116 +
  drivers/gpu/drm/amd/amdgpu/df_v3_6.h               |    40 +
  drivers/gpu/drm/amd/amdgpu/emu_soc.c               | 10091 +++++++++++++++++++
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c              |    60 +-
  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c              |     3 +
  drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c            |     1 +
  drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c             |    18 +-
  drivers/gpu/drm/amd/amdgpu/psp_v3_1.c              |     3 +
  drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c             |    33 +
  drivers/gpu/drm/amd/amdgpu/soc15.c                 |    43 +-
  drivers/gpu/drm/amd/amdgpu/soc15.h                 |     1 +
  drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c              |    27 +-
  drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c              |    25 +-
  drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c              |    77 +-
  drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c              |  1050 +-
  drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c       |    53 +
  drivers/gpu/drm/amd/display/Kconfig                |     9 +
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |     4 +
  drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c |     5 +
  drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c    |    11 +-
  .../drm/amd/display/dc/dce120/dce120_resource.c    |   208 +
  drivers/gpu/drm/amd/display/include/dal_asic_id.h  |     6 +
  .../drm/amd/include/asic_reg/dce/dce_12_0_offset.h |    12 +
  .../amd/include/asic_reg/dce/dce_12_0_sh_mask.h    |   152 +
  .../drm/amd/include/asic_reg/df/df_3_6_default.h   |    26 +
  .../drm/amd/include/asic_reg/df/df_3_6_offset.h    |    33 +
  .../drm/amd/include/asic_reg/df/df_3_6_sh_mask.h   |    48 +
  drivers/gpu/drm/amd/include/atomfirmware.h         |    34 +
  drivers/gpu/drm/amd/include/soc15_ih_clientid.h    |     1 +
  drivers/gpu/drm/amd/include/vega20_ip_offset.h     |  1051 ++
  drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c        |     1 +
  drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c      |     1 +
  include/drm/amd_asic_type.h                        |     1 +
  50 files changed, 12949 insertions(+), 715 deletions(-)
Quoted 10 lines

create mode 100644 drivers/gpu/drm/amd/amdgpu/df_v3_6.c
create mode 100644 drivers/gpu/drm/amd/amdgpu/df_v3_6.h
create mode 100644 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c
mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_offset.h mode change 100644 => 100755 drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_sh_mask.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_default.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_sh_mask.h create mode 100644 drivers/gpu/drm/amd/include/vega20_ip_offset.h

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx