drm/amdgpu: Add mp v14_0_7 ip headers v4
Subsystems (2)
Alex Deucher
maintainerPATCH 1/6 drm/amdgpu: Add mp v14_0_7 ip headers v4
From: Hawking Zhang <[email protected]>
Add header files for mp v14_0_7 register offsets
and shift masks
v2: Update mp v14_0_7 ip headers up to CL7337280
v3: Update mp v14_0_7 ip headers up to CL7749557
v4: Clean up registers (Alex)
--- .../include/asic_reg/mp/mp_14_0_7_offset.h | 776 ++++++++++++++++++ .../include/asic_reg/mp/mp_14_0_7_sh_mask.h | 616 ++++++++++++++ 2 files changed, 1392 insertions(+) create mode 100644 drivers/gpu/drm/amd/include/asic_reg/mp/mp_14_0_7_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/mp/mp_14_0_7_sh_mask.h
drivers/gpu/drm/amd/include/asic_reg/mp/mp_14_0_7_offset.h new file +776 -0
@@ -0,0 +1,776 @@ +/* +* Copyright 2025 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 _mp_14_0_7_OFFSET_HEADER +#define _mp_14_0_7_OFFSET_HEADER + + + +// addressBlock: mp_SmuMp1_SmnDec +// base address: 0x0 +#define regMP1_SMN_C2PMSG_0 0x0040 +#define regMP1_SMN_C2PMSG_0_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_1 0x0041 +#define regMP1_SMN_C2PMSG_1_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_2 0x0042 +#define regMP1_SMN_C2PMSG_2_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_3 0x0043 +#define regMP1_SMN_C2PMSG_3_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_4 0x0044 +#define regMP1_SMN_C2PMSG_4_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_5 0x0045 +#define regMP1_SMN_C2PMSG_5_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_6 0x0046 +#define regMP1_SMN_C2PMSG_6_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_7 0x0047 +#define regMP1_SMN_C2PMSG_7_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_8 0x0048 +#define regMP1_SMN_C2PMSG_8_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_9 0x0049 +#define regMP1_SMN_C2PMSG_9_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_10 0x004a +#define regMP1_SMN_C2PMSG_10_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_11 0x004b +#define regMP1_SMN_C2PMSG_11_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_12 0x004c +#define regMP1_SMN_C2PMSG_12_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_13 0x004d +#define regMP1_SMN_C2PMSG_13_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_14 0x004e +#define regMP1_SMN_C2PMSG_14_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_15 0x004f +#define regMP1_SMN_C2PMSG_15_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_16 0x0050 +#define regMP1_SMN_C2PMSG_16_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_17 0x0051 +#define regMP1_SMN_C2PMSG_17_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_18 0x0052 +#define regMP1_SMN_C2PMSG_18_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_19 0x0053 +#define regMP1_SMN_C2PMSG_19_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_20 0x0054 +#define regMP1_SMN_C2PMSG_20_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_21 0x0055 +#define regMP1_SMN_C2PMSG_21_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_22 0x0056 +#define regMP1_SMN_C2PMSG_22_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_23 0x0057 +#define regMP1_SMN_C2PMSG_23_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_24 0x0058 +#define regMP1_SMN_C2PMSG_24_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_25 0x0059 +#define regMP1_SMN_C2PMSG_25_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_26 0x005a +#define regMP1_SMN_C2PMSG_26_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_27 0x005b +#define regMP1_SMN_C2PMSG_27_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_28 0x005c +#define regMP1_SMN_C2PMSG_28_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_29 0x005d +#define regMP1_SMN_C2PMSG_29_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_30 0x005e +#define regMP1_SMN_C2PMSG_30_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_31 0x005f +#define regMP1_SMN_C2PMSG_31_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_32 0x0060 +#define regMP1_SMN_C2PMSG_32_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_33 0x0061 +#define regMP1_SMN_C2PMSG_33_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_34 0x0062 +#define regMP1_SMN_C2PMSG_34_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_35 0x0063 +#define regMP1_SMN_C2PMSG_35_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_36 0x0064 +#define regMP1_SMN_C2PMSG_36_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_37 0x0065 +#define regMP1_SMN_C2PMSG_37_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_38 0x0066 +#define regMP1_SMN_C2PMSG_38_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_39 0x0067 +#define regMP1_SMN_C2PMSG_39_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_40 0x0068 +#define regMP1_SMN_C2PMSG_40_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_41 0x0069 +#define regMP1_SMN_C2PMSG_41_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_42 0x006a +#define regMP1_SMN_C2PMSG_42_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_43 0x006b +#define regMP1_SMN_C2PMSG_43_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_44 0x006c +#define regMP1_SMN_C2PMSG_44_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_45 0x006d +#define regMP1_SMN_C2PMSG_45_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_46 0x006e +#define regMP1_SMN_C2PMSG_46_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_47 0x006f +#define regMP1_SMN_C2PMSG_47_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_48 0x0070 +#define regMP1_SMN_C2PMSG_48_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_49 0x0071 +#define regMP1_SMN_C2PMSG_49_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_50 0x0072 +#define regMP1_SMN_C2PMSG_50_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_51 0x0073 +#define regMP1_SMN_C2PMSG_51_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_52 0x0074 +#define regMP1_SMN_C2PMSG_52_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_53 0x0075 +#define regMP1_SMN_C2PMSG_53_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_54 0x0076 +#define regMP1_SMN_C2PMSG_54_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_55 0x0077 +#define regMP1_SMN_C2PMSG_55_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_56 0x0078 +#define regMP1_SMN_C2PMSG_56_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_57 0x0079 +#define regMP1_SMN_C2PMSG_57_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_58 0x007a +#define regMP1_SMN_C2PMSG_58_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_59 0x007b +#define regMP1_SMN_C2PMSG_59_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_60 0x007c +#define regMP1_SMN_C2PMSG_60_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_61 0x007d +#define regMP1_SMN_C2PMSG_61_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_62 0x007e +#define regMP1_SMN_C2PMSG_62_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_63 0x007f +#define regMP1_SMN_C2PMSG_63_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_64 0x0080 +#define regMP1_SMN_C2PMSG_64_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_65 0x0081 +#define regMP1_SMN_C2PMSG_65_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_66 0x0082 +#define regMP1_SMN_C2PMSG_66_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_67 0x0083 +#define regMP1_SMN_C2PMSG_67_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_68 0x0084 +#define regMP1_SMN_C2PMSG_68_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_69 0x0085 +#define regMP1_SMN_C2PMSG_69_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_70 0x0086 +#define regMP1_SMN_C2PMSG_70_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_71 0x0087 +#define regMP1_SMN_C2PMSG_71_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_72 0x0088 +#define regMP1_SMN_C2PMSG_72_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_73 0x0089 +#define regMP1_SMN_C2PMSG_73_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_74 0x008a +#define regMP1_SMN_C2PMSG_74_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_75 0x008b +#define regMP1_SMN_C2PMSG_75_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_76 0x008c +#define regMP1_SMN_C2PMSG_76_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_77 0x008d +#define regMP1_SMN_C2PMSG_77_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_78 0x008e +#define regMP1_SMN_C2PMSG_78_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_79 0x008f +#define regMP1_SMN_C2PMSG_79_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_80 0x0090 +#define regMP1_SMN_C2PMSG_80_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_81 0x0091 +#define regMP1_SMN_C2PMSG_81_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_82 0x0092 +#define regMP1_SMN_C2PMSG_82_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_83 0x0093 +#define regMP1_SMN_C2PMSG_83_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_84 0x0094 +#define regMP1_SMN_C2PMSG_84_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_85 0x0095 +#define regMP1_SMN_C2PMSG_85_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_86 0x0096 +#define regMP1_SMN_C2PMSG_86_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_87 0x0097 +#define regMP1_SMN_C2PMSG_87_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_88 0x0098 +#define regMP1_SMN_C2PMSG_88_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_89 0x0099 +#define regMP1_SMN_C2PMSG_89_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_90 0x009a +#define regMP1_SMN_C2PMSG_90_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_91 0x009b +#define regMP1_SMN_C2PMSG_91_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_92 0x009c +#define regMP1_SMN_C2PMSG_92_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_93 0x009d +#define regMP1_SMN_C2PMSG_93_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_94 0x009e +#define regMP1_SMN_C2PMSG_94_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_95 0x009f +#define regMP1_SMN_C2PMSG_95_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_96 0x00a0 +#define regMP1_SMN_C2PMSG_96_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_97 0x00a1 +#define regMP1_SMN_C2PMSG_97_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_98 0x00a2 +#define regMP1_SMN_C2PMSG_98_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_99 0x00a3 +#define regMP1_SMN_C2PMSG_99_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_100 0x00a4 +#define regMP1_SMN_C2PMSG_100_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_101 0x00a5 +#define regMP1_SMN_C2PMSG_101_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_102 0x00a6 +#define regMP1_SMN_C2PMSG_102_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_103 0x00a7 +#define regMP1_SMN_C2PMSG_103_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_104 0x00a8 +#define regMP1_SMN_C2PMSG_104_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_105 0x00a9 +#define regMP1_SMN_C2PMSG_105_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_106 0x00aa +#define regMP1_SMN_C2PMSG_106_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_107 0x00ab +#define regMP1_SMN_C2PMSG_107_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_108 0x00ac +#define regMP1_SMN_C2PMSG_108_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_109 0x00ad +#define regMP1_SMN_C2PMSG_109_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_110 0x00ae +#define regMP1_SMN_C2PMSG_110_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_111 0x00af +#define regMP1_SMN_C2PMSG_111_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_112 0x00b0 +#define regMP1_SMN_C2PMSG_112_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_113 0x00b1 +#define regMP1_SMN_C2PMSG_113_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_114 0x00b2 +#define regMP1_SMN_C2PMSG_114_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_115 0x00b3 +#define regMP1_SMN_C2PMSG_115_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_116 0x00b4 +#define regMP1_SMN_C2PMSG_116_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_117 0x00b5 +#define regMP1_SMN_C2PMSG_117_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_118 0x00b6 +#define regMP1_SMN_C2PMSG_118_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_119 0x00b7 +#define regMP1_SMN_C2PMSG_119_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_120 0x00b8 +#define regMP1_SMN_C2PMSG_120_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_121 0x00b9 +#define regMP1_SMN_C2PMSG_121_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_122 0x00ba +#define regMP1_SMN_C2PMSG_122_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_123 0x00bb +#define regMP1_SMN_C2PMSG_123_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_124 0x00bc +#define regMP1_SMN_C2PMSG_124_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_125 0x00bd +#define regMP1_SMN_C2PMSG_125_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_126 0x00be +#define regMP1_SMN_C2PMSG_126_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_127 0x00bf +#define regMP1_SMN_C2PMSG_127_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_128 0x00c0 +#define regMP1_SMN_C2PMSG_128_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_129 0x00c1 +#define regMP1_SMN_C2PMSG_129_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_130 0x00c2 +#define regMP1_SMN_C2PMSG_130_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_131 0x00c3 +#define regMP1_SMN_C2PMSG_131_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_132 0x00c4 +#define regMP1_SMN_C2PMSG_132_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_133 0x00c5 +#define regMP1_SMN_C2PMSG_133_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_134 0x00c6 +#define regMP1_SMN_C2PMSG_134_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_135 0x00c7 +#define regMP1_SMN_C2PMSG_135_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_136 0x00c8 +#define regMP1_SMN_C2PMSG_136_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_137 0x00c9 +#define regMP1_SMN_C2PMSG_137_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_138 0x00ca +#define regMP1_SMN_C2PMSG_138_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_139 0x00cb +#define regMP1_SMN_C2PMSG_139_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_140 0x00cc +#define regMP1_SMN_C2PMSG_140_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_141 0x00cd +#define regMP1_SMN_C2PMSG_141_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_142 0x00ce +#define regMP1_SMN_C2PMSG_142_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_143 0x00cf +#define regMP1_SMN_C2PMSG_143_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_144 0x00d0 +#define regMP1_SMN_C2PMSG_144_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_145 0x00d1 +#define regMP1_SMN_C2PMSG_145_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_146 0x00d2 +#define regMP1_SMN_C2PMSG_146_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_147 0x00d3 +#define regMP1_SMN_C2PMSG_147_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_148 0x00d4 +#define regMP1_SMN_C2PMSG_148_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_149 0x00d5 +#define regMP1_SMN_C2PMSG_149_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_150 0x00d6 +#define regMP1_SMN_C2PMSG_150_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_151 0x00d7 +#define regMP1_SMN_C2PMSG_151_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_152 0x00d8 +#define regMP1_SMN_C2PMSG_152_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_153 0x00d9 +#define regMP1_SMN_C2PMSG_153_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_154 0x00da +#define regMP1_SMN_C2PMSG_154_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_155 0x00db +#define regMP1_SMN_C2PMSG_155_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_156 0x00dc +#define regMP1_SMN_C2PMSG_156_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_157 0x00dd +#define regMP1_SMN_C2PMSG_157_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_158 0x00de +#define regMP1_SMN_C2PMSG_158_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_159 0x00df +#define regMP1_SMN_C2PMSG_159_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_160 0x00e0 +#define regMP1_SMN_C2PMSG_160_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_161 0x00e1 +#define regMP1_SMN_C2PMSG_161_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_162 0x00e2 +#define regMP1_SMN_C2PMSG_162_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_163 0x00e3 +#define regMP1_SMN_C2PMSG_163_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_164 0x00e4 +#define regMP1_SMN_C2PMSG_164_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_165 0x00e5 +#define regMP1_SMN_C2PMSG_165_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_166 0x00e6 +#define regMP1_SMN_C2PMSG_166_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_167 0x00e7 +#define regMP1_SMN_C2PMSG_167_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_168 0x00e8 +#define regMP1_SMN_C2PMSG_168_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_169 0x00e9 +#define regMP1_SMN_C2PMSG_169_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_170 0x00ea +#define regMP1_SMN_C2PMSG_170_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_171 0x00eb +#define regMP1_SMN_C2PMSG_171_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_172 0x00ec +#define regMP1_SMN_C2PMSG_172_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_173 0x00ed +#define regMP1_SMN_C2PMSG_173_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_174 0x00ee +#define regMP1_SMN_C2PMSG_174_BASE_IDX 2 +#define regMP1_SMN_C2PMSG_175 0x00ef +#define regMP1_SMN_C2PMSG_175_BASE_IDX 2 +#define regMP1_SMN_IH_CREDIT 0x0140 +#define regMP1_SMN_IH_CREDIT_BASE_IDX 2 +#define regMP1_SMN_IH_SW_INT 0x0141 +#define regMP1_SMN_IH_SW_INT_BASE_IDX 2 +#define regMP1_SMN_IH_SW_INT_CTRL 0x0142 +#define regMP1_SMN_IH_SW_INT_CTRL_BASE_IDX 2 +#define regMP1_SMN_FPS_CNT 0x0143 +#define regMP1_SMN_FPS_CNT_BASE_IDX 2 +#define regMP1_SMN_PUB_CTRL 0x0144 +#define regMP1_SMN_PUB_CTRL_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH0 0x01c0 +#define regMP1_SMN_EXT_SCRATCH0_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH1 0x01c1 +#define regMP1_SMN_EXT_SCRATCH1_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH2 0x01c2 +#define regMP1_SMN_EXT_SCRATCH2_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH3 0x01c3 +#define regMP1_SMN_EXT_SCRATCH3_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH4 0x01c4 +#define regMP1_SMN_EXT_SCRATCH4_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH5 0x01c5 +#define regMP1_SMN_EXT_SCRATCH5_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH6 0x01c6 +#define regMP1_SMN_EXT_SCRATCH6_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH7 0x01c7 +#define regMP1_SMN_EXT_SCRATCH7_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH8 0x01c8 +#define regMP1_SMN_EXT_SCRATCH8_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH9 0x01c9 +#define regMP1_SMN_EXT_SCRATCH9_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH10 0x01ca +#define regMP1_SMN_EXT_SCRATCH10_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH11 0x01cb +#define regMP1_SMN_EXT_SCRATCH11_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH12 0x01cc +#define regMP1_SMN_EXT_SCRATCH12_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH13 0x01cd +#define regMP1_SMN_EXT_SCRATCH13_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH14 0x01ce +#define regMP1_SMN_EXT_SCRATCH14_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH15 0x01cf +#define regMP1_SMN_EXT_SCRATCH15_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH16 0x01d0 +#define regMP1_SMN_EXT_SCRATCH16_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH17 0x01d1 +#define regMP1_SMN_EXT_SCRATCH17_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH18 0x01d2 +#define regMP1_SMN_EXT_SCRATCH18_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH19 0x01d3 +#define regMP1_SMN_EXT_SCRATCH19_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH20 0x01d4 +#define regMP1_SMN_EXT_SCRATCH20_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH21 0x01d5 +#define regMP1_SMN_EXT_SCRATCH21_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH22 0x01d6 +#define regMP1_SMN_EXT_SCRATCH22_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH23 0x01d7 +#define regMP1_SMN_EXT_SCRATCH23_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH24 0x01d8 +#define regMP1_SMN_EXT_SCRATCH24_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH25 0x01d9 +#define regMP1_SMN_EXT_SCRATCH25_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH26 0x01da +#define regMP1_SMN_EXT_SCRATCH26_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH27 0x01db +#define regMP1_SMN_EXT_SCRATCH27_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH28 0x01dc +#define regMP1_SMN_EXT_SCRATCH28_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH29 0x01dd +#define regMP1_SMN_EXT_SCRATCH29_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH30 0x01de +#define regMP1_SMN_EXT_SCRATCH30_BASE_IDX 2 +#define regMP1_SMN_EXT_SCRATCH31 0x01df +#define regMP1_SMN_EXT_SCRATCH31_BASE_IDX 2 + + +// addressBlock: mp_SmuMpASP_SmnDec +// base address: 0x0 +#define regMPASP_SMN_C2PMSG_8 0x0048 +#define regMPASP_SMN_C2PMSG_8_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_9 0x0049 +#define regMPASP_SMN_C2PMSG_9_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_10 0x004a +#define regMPASP_SMN_C2PMSG_10_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_11 0x004b +#define regMPASP_SMN_C2PMSG_11_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_12 0x004c +#define regMPASP_SMN_C2PMSG_12_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_13 0x004d +#define regMPASP_SMN_C2PMSG_13_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_14 0x004e +#define regMPASP_SMN_C2PMSG_14_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_15 0x004f +#define regMPASP_SMN_C2PMSG_15_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_16 0x0050 +#define regMPASP_SMN_C2PMSG_16_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_17 0x0051 +#define regMPASP_SMN_C2PMSG_17_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_18 0x0052 +#define regMPASP_SMN_C2PMSG_18_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_19 0x0053 +#define regMPASP_SMN_C2PMSG_19_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_20 0x0054 +#define regMPASP_SMN_C2PMSG_20_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_21 0x0055 +#define regMPASP_SMN_C2PMSG_21_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_22 0x0056 +#define regMPASP_SMN_C2PMSG_22_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_23 0x0057 +#define regMPASP_SMN_C2PMSG_23_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_24 0x0058 +#define regMPASP_SMN_C2PMSG_24_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_25 0x0059 +#define regMPASP_SMN_C2PMSG_25_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_26 0x005a +#define regMPASP_SMN_C2PMSG_26_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_27 0x005b +#define regMPASP_SMN_C2PMSG_27_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_28 0x005c +#define regMPASP_SMN_C2PMSG_28_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_29 0x005d +#define regMPASP_SMN_C2PMSG_29_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_30 0x005e +#define regMPASP_SMN_C2PMSG_30_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_31 0x005f +#define regMPASP_SMN_C2PMSG_31_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_32 0x0060 +#define regMPASP_SMN_C2PMSG_32_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_33 0x0061 +#define regMPASP_SMN_C2PMSG_33_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_34 0x0062 +#define regMPASP_SMN_C2PMSG_34_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_35 0x0063 +#define regMPASP_SMN_C2PMSG_35_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_36 0x0064 +#define regMPASP_SMN_C2PMSG_36_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_37 0x0065 +#define regMPASP_SMN_C2PMSG_37_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_38 0x0066 +#define regMPASP_SMN_C2PMSG_38_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_39 0x0067 +#define regMPASP_SMN_C2PMSG_39_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_56 0x0078 +#define regMPASP_SMN_C2PMSG_56_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_57 0x0079 +#define regMPASP_SMN_C2PMSG_57_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_58 0x007a +#define regMPASP_SMN_C2PMSG_58_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_59 0x007b +#define regMPASP_SMN_C2PMSG_59_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_60 0x007c +#define regMPASP_SMN_C2PMSG_60_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_61 0x007d +#define regMPASP_SMN_C2PMSG_61_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_62 0x007e +#define regMPASP_SMN_C2PMSG_62_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_64 0x0080 +#define regMPASP_SMN_C2PMSG_64_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_65 0x0081 +#define regMPASP_SMN_C2PMSG_65_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_66 0x0082 +#define regMPASP_SMN_C2PMSG_66_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_67 0x0083 +#define regMPASP_SMN_C2PMSG_67_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_68 0x0084 +#define regMPASP_SMN_C2PMSG_68_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_69 0x0085 +#define regMPASP_SMN_C2PMSG_69_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_70 0x0086 +#define regMPASP_SMN_C2PMSG_70_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_71 0x0087 +#define regMPASP_SMN_C2PMSG_71_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_72 0x0088 +#define regMPASP_SMN_C2PMSG_72_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_73 0x0089 +#define regMPASP_SMN_C2PMSG_73_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_74 0x008a +#define regMPASP_SMN_C2PMSG_74_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_75 0x008b +#define regMPASP_SMN_C2PMSG_75_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_76 0x008c +#define regMPASP_SMN_C2PMSG_76_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_77 0x008d +#define regMPASP_SMN_C2PMSG_77_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_78 0x008e +#define regMPASP_SMN_C2PMSG_78_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_79 0x008f +#define regMPASP_SMN_C2PMSG_79_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_80 0x0090 +#define regMPASP_SMN_C2PMSG_80_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_81 0x0091 +#define regMPASP_SMN_C2PMSG_81_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_82 0x0092 +#define regMPASP_SMN_C2PMSG_82_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_83 0x0093 +#define regMPASP_SMN_C2PMSG_83_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_84 0x0094 +#define regMPASP_SMN_C2PMSG_84_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_85 0x0095 +#define regMPASP_SMN_C2PMSG_85_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_86 0x0096 +#define regMPASP_SMN_C2PMSG_86_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_87 0x0097 +#define regMPASP_SMN_C2PMSG_87_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_88 0x0098 +#define regMPASP_SMN_C2PMSG_88_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_89 0x0099 +#define regMPASP_SMN_C2PMSG_89_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_90 0x009a +#define regMPASP_SMN_C2PMSG_90_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_91 0x009b +#define regMPASP_SMN_C2PMSG_91_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_92 0x009c +#define regMPASP_SMN_C2PMSG_92_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_93 0x009d +#define regMPASP_SMN_C2PMSG_93_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_94 0x009e +#define regMPASP_SMN_C2PMSG_94_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_95 0x009f +#define regMPASP_SMN_C2PMSG_95_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_96 0x00a0 +#define regMPASP_SMN_C2PMSG_96_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_97 0x00a1 +#define regMPASP_SMN_C2PMSG_97_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_98 0x00a2 +#define regMPASP_SMN_C2PMSG_98_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_99 0x00a3 +#define regMPASP_SMN_C2PMSG_99_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_100 0x00a4 +#define regMPASP_SMN_C2PMSG_100_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_101 0x00a5 +#define regMPASP_SMN_C2PMSG_101_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_102 0x00a6 +#define regMPASP_SMN_C2PMSG_102_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_103 0x00a7 +#define regMPASP_SMN_C2PMSG_103_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_104 0x00a8 +#define regMPASP_SMN_C2PMSG_104_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_105 0x00a9 +#define regMPASP_SMN_C2PMSG_105_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_106 0x00aa +#define regMPASP_SMN_C2PMSG_106_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_107 0x00ab +#define regMPASP_SMN_C2PMSG_107_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_108 0x00ac +#define regMPASP_SMN_C2PMSG_108_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_109 0x00ad +#define regMPASP_SMN_C2PMSG_109_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_110 0x00ae +#define regMPASP_SMN_C2PMSG_110_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_111 0x00af +#define regMPASP_SMN_C2PMSG_111_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_115 0x00b3 +#define regMPASP_SMN_C2PMSG_115_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_116 0x00b4 +#define regMPASP_SMN_C2PMSG_116_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_119 0x00b7 +#define regMPASP_SMN_C2PMSG_119_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_120 0x00b8 +#define regMPASP_SMN_C2PMSG_120_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_126 0x00be +#define regMPASP_SMN_C2PMSG_126_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_127 0x00bf +#define regMPASP_SMN_C2PMSG_127_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_128 0x00c0 +#define regMPASP_SMN_C2PMSG_128_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_129 0x00c1 +#define regMPASP_SMN_C2PMSG_129_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_130 0x00c2 +#define regMPASP_SMN_C2PMSG_130_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_131 0x00c3 +#define regMPASP_SMN_C2PMSG_131_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_132 0x00c4 +#define regMPASP_SMN_C2PMSG_132_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_133 0x00c5 +#define regMPASP_SMN_C2PMSG_133_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_134 0x00c6 +#define regMPASP_SMN_C2PMSG_134_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_135 0x00c7 +#define regMPASP_SMN_C2PMSG_135_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_136 0x00c8 +#define regMPASP_SMN_C2PMSG_136_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_137 0x00c9 +#define regMPASP_SMN_C2PMSG_137_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_138 0x00ca +#define regMPASP_SMN_C2PMSG_138_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_139 0x00cb +#define regMPASP_SMN_C2PMSG_139_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_140 0x00cc +#define regMPASP_SMN_C2PMSG_140_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_152 0x00d8 +#define regMPASP_SMN_C2PMSG_152_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_153 0x00d9 +#define regMPASP_SMN_C2PMSG_153_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_154 0x00da +#define regMPASP_SMN_C2PMSG_154_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_155 0x00db +#define regMPASP_SMN_C2PMSG_155_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_156 0x00dc +#define regMPASP_SMN_C2PMSG_156_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_157 0x00dd +#define regMPASP_SMN_C2PMSG_157_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_158 0x00de +#define regMPASP_SMN_C2PMSG_158_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_159 0x00df +#define regMPASP_SMN_C2PMSG_159_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_160 0x00e0 +#define regMPASP_SMN_C2PMSG_160_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_161 0x00e1 +#define regMPASP_SMN_C2PMSG_161_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_162 0x00e2 +#define regMPASP_SMN_C2PMSG_162_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_163 0x00e3 +#define regMPASP_SMN_C2PMSG_163_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_164 0x00e4 +#define regMPASP_SMN_C2PMSG_164_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_165 0x00e5 +#define regMPASP_SMN_C2PMSG_165_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_166 0x00e6 +#define regMPASP_SMN_C2PMSG_166_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_167 0x00e7 +#define regMPASP_SMN_C2PMSG_167_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_168 0x00e8 +#define regMPASP_SMN_C2PMSG_168_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_169 0x00e9 +#define regMPASP_SMN_C2PMSG_169_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_170 0x00ea +#define regMPASP_SMN_C2PMSG_170_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_171 0x00eb +#define regMPASP_SMN_C2PMSG_171_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_172 0x00ec +#define regMPASP_SMN_C2PMSG_172_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_173 0x00ed +#define regMPASP_SMN_C2PMSG_173_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_174 0x00ee +#define regMPASP_SMN_C2PMSG_174_BASE_IDX 1 +#define regMPASP_SMN_C2PMSG_175 0x00ef +#define regMPASP_SMN_C2PMSG_175_BASE_IDX 1 +#define regMPASP_SMN_IH_CREDIT 0x0140 +#define regMPASP_SMN_IH_CREDIT_BASE_IDX 1 +#define regMPASP_SMN_IH_SW_INT 0x0141 +#define regMPASP_SMN_IH_SW_INT_BASE_IDX 1 +#define regMPASP_SMN_IH_SW_INT_CTRL 0x0142 +#define regMPASP_SMN_IH_SW_INT_CTRL_BASE_IDX 1 + + +// addressBlock: mp_SmuMpRASPub_CruDec +// base address: 0x0 +#define regMPRAS_CRU0_MPRAS_FIRMWARE_FLAGS 0xbeb009 +#define regMPRAS_CRU0_MPRAS_FIRMWARE_FLAGS_BASE_IDX 3 + + +// addressBlock: mp_SmuMpIFOEPub_CruDec +// base address: 0x0 +#define regMPIFOE_CRU0_MPIFOE_FIRMWARE_FLAGS 0xbeb009 +#define regMPIFOE_CRU0_MPIFOE_FIRMWARE_FLAGS_BASE_IDX 3 + + +// addressBlock: mp_SmuMp1Pub_CruDec +// base address: 0x0 +#define regMP1_CRU0_MP1_FIRMWARE_FLAGS 0xbeb009 +#define regMP1_CRU0_MP1_FIRMWARE_FLAGS_BASE_IDX 3 + + +// addressBlock: mp_SmuMpIOPub_CruDec +// base address: 0x0 +#define regMPIO_CRU0_MPIO_FIRMWARE_FLAGS 0xbeb009 +#define regMPIO_CRU0_MPIO_FIRMWARE_FLAGS_BASE_IDX 3 + + +// addressBlock: MpRASMmioPublic_SmuMpRASPub_CruDec +// base address: 0x3e00000 +#define regMPRAS_CRU1_MPRAS_FIRMWARE_FLAGS 0x4009 +#define regMPRAS_CRU1_MPRAS_FIRMWARE_FLAGS_BASE_IDX 9 + + +// addressBlock: MpIFoEMmioPublic_SmuMpIFOEPub_CruDec +// base address: 0x49d00000 +#define regMPIFOE_CRU1_MPIFOE_FIRMWARE_FLAGS 0x4009 +#define regMPIFOE_CRU1_MPIFOE_FIRMWARE_FLAGS_BASE_IDX 26 + + +// addressBlock: Mp1MmioPublic_SmuMp1Pub_CruDec +// base address: 0x3b00000 +#define regMP1_CRU1_MP1_FIRMWARE_FLAGS 0x4009 +#define regMP1_CRU1_MP1_FIRMWARE_FLAGS_BASE_IDX 6 + + +// addressBlock: MpIOMmioPublic_SmuMpIOPub_CruDec +// base address: 0xc900000 +#define regMPIO_CRU1_MPIO_FIRMWARE_FLAGS 0x4009 +#define regMPIO_CRU1_MPIO_FIRMWARE_FLAGS_BASE_IDX 23 + + +#endif
drivers/gpu/drm/amd/include/asic_reg/mp/mp_14_0_7_sh_mask.h new file +616 -0
616 lines not on this page · raw message
Signature · 1 line
2.51.0
Alex Deucher
maintainerPATCH 2/6 drm/amdgpu: add support for psp 14.0.7
From: Feifei Xu <[email protected]>
Add support for MP0 and MP1 14.0.7
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +4 -1
@@ -901,6 +901,7 @@ static bool psp_skip_tmr(struct psp_context *psp)case IP_VERSION (13 ,0 ,10 ):case IP_VERSION (13 ,0 ,12 ):case IP_VERSION (13 ,0 ,14 ): +case IP_VERSION (14 ,0 ,7 ):return true;default :return false;
@@ -3065,7 +3066,9 @@ static int psp_load_non_psp_fw(struct psp_context *psp)amdgpu_ip_version (adev,MP0_HWIP ,0 ) ==IP_VERSION (11 ,0 ,11 ) ||amdgpu_ip_version (adev,MP0_HWIP ,0 ) == - IP_VERSION(11, 0, 12)) && +IP_VERSION (11 ,0 ,12 ) || +amdgpu_ip_version (adev,MP0_HWIP ,0 ) == + IP_VERSION(14, 0, 7)) && (ucode->ucode_id ==AMDGPU_UCODE_ID_SDMA1 || ucode->ucode_id ==AMDGPU_UCODE_ID_SDMA2 || ucode->ucode_id == AMDGPU_UCODE_ID_SDMA3))
Signature · 1 line
2.51.0
Alex Deucher
maintainerPATCH 3/6 drm/amdgpu: Add psp v14.0.7 ip block
In reply to Alex DeucherFrom: Le Ma <[email protected]>
Add psp_v14_0_7.c for MPASP 14.0.7
v2: drop memory training intf as they are only necessary for GDDR memory
--- drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 8 + drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 1 + drivers/gpu/drm/amd/amdgpu/psp_v14_0_7.c | 202 +++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/psp_v14_0_7.h | 30 ++++ 5 files changed, 243 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/psp_v14_0_7.c create mode 100644 drivers/gpu/drm/amd/amdgpu/psp_v14_0_7.h
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
@@ -134,7 +134,8 @@ amdgpu-y += \ psp_v12_0.o \ psp_v13_0.o \ psp_v13_0_4.o \ - psp_v14_0.o + psp_v14_0.o \ + psp_v14_0_7.o # add DCE block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +8 -0
@@ -4522,3 +4522,11 @@ const struct amdgpu_ip_block_version psp_v14_0_ip_block = { .rev = 0, .funcs = &psp_ip_funcs, }; + +const struct amdgpu_ip_block_version psp_v14_0_7_ip_block = { + .type =AMD_IP_BLOCK_TYPE_PSP , + .major =14 , + .minor =0 , + .rev =7 , + .funcs = &psp_ip_funcs, +};
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +1 -0
@@ -534,6 +534,7 @@ extern const struct amdgpu_ip_block_version psp_v12_0_ip_block;extern const struct amdgpu_ip_block_version psp_v13_0_ip_block;extern const struct amdgpu_ip_block_version psp_v13_0_4_ip_block;extern const struct amdgpu_ip_block_version psp_v14_0_ip_block; +extern const struct amdgpu_ip_block_version psp_v14_0_7_ip_block;int psp_wait_for (struct psp_context *psp,uint32_t reg_index,uint32_t field_val,uint32_t mask,uint32_t flags);
drivers/gpu/drm/amd/amdgpu/psp_v14_0_7.c new file +202 -0
202 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/psp_v14_0_7.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* Copyright 2025 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 __PSP_V14_0_7_H__ +#define __PSP_V14_0_7_H__ + +#include "amdgpu_psp.h" + +void psp_v14_0_7_set_psp_funcs (struct psp_context *psp); + +#endif
Signature · 1 line
2.51.0
Alex Deucher
maintainerPATCH 4/6 drm/amdgpu: Add rlcv firmware for frontdoor loading.
In reply to Alex DeucherFrom: Feifei Xu <[email protected]>
Rlcv is required to be loaded for frontdoor.
1. Add 2 rlcv ucode ids:
AMDGPU_UCODE_RLC_IRAM_1 and AMDGPU_UCODE_RLC_DRAM_1
2. Add rlc_firmware_header_v2_5 for above 2 rlcv headers.
3. Add 2 types in psp_fw_gfx_if interface interacting with asp:
GFX_FW_TYPE_RLX6_UCODE_CORE1 - RLCV IRAM GFX_FW_TYPE_RLX6_DRAM_BOOT_CORE1 - RLCV DRAM BOOT
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 8 +++++ drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c | 37 ++++++++++++++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h | 4 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 34 +++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 12 ++++++++ drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h | 2 ++ 6 files changed, 96 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +8 -0
@@ -2708,6 +2708,12 @@ static int psp_get_fw_type(struct amdgpu_firmware_info *ucode,case AMDGPU_UCODE_ID_RLC_DRAM : *type =GFX_FW_TYPE_RLC_DRAM_BOOT ;break ; +case AMDGPU_UCODE_ID_RLC_IRAM_1 : + *type =GFX_FW_TYPE_RLX6_UCODE_CORE1 ; +break ; +case AMDGPU_UCODE_ID_RLC_DRAM_1 : + *type =GFX_FW_TYPE_RLX6_DRAM_BOOT_CORE1 ; +break ;case AMDGPU_UCODE_ID_GLOBAL_TAP_DELAYS : *type =GFX_FW_TYPE_GLOBAL_TAP_DELAYS ;break ;
@@ -2876,6 +2882,8 @@ static void psp_print_fw_hdr(struct psp_context *psp,amdgpu_ucode_print_gfx_hdr (hdr);break ;case AMDGPU_UCODE_ID_RLC_G : +case AMDGPU_UCODE_ID_RLC_DRAM_1 : +case AMDGPU_UCODE_ID_RLC_IRAM_1 : hdr = (struct common_firmware_header *)adev->gfx.rlc_fw->data;amdgpu_ucode_print_rlc_hdr (hdr);break ;
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c +36 -1
@@ -515,6 +515,40 @@ static void amdgpu_gfx_rlc_init_microcode_v2_4(struct amdgpu_device *adev) } } +static void amdgpu_gfx_rlc_init_microcode_v2_5 (struct amdgpu_device *adev) +{ +const struct rlc_firmware_header_v2_5 *rlc_hdr; +struct amdgpu_firmware_info *info; + + rlc_hdr = (const struct rlc_firmware_header_v2_5 *)adev->gfx.rlc_fw->data; + adev->gfx.rlc.rlc_1_iram_ucode_size_bytes = +le32_to_cpu (rlc_hdr->rlc_1_iram_ucode_size_bytes); + adev->gfx.rlc.rlc_1_iram_ucode = (u8 *)rlc_hdr + +le32_to_cpu (rlc_hdr->rlc_1_iram_ucode_offset_bytes); + adev->gfx.rlc.rlc_1_dram_ucode_size_bytes = +le32_to_cpu (rlc_hdr->rlc_1_dram_ucode_size_bytes); + adev->gfx.rlc.rlc_1_dram_ucode = (u8 *)rlc_hdr + +le32_to_cpu (rlc_hdr->rlc_1_dram_ucode_offset_bytes); + +if (adev->firmware.load_type ==AMDGPU_FW_LOAD_PSP ) { +if (adev->gfx.rlc.rlc_1_iram_ucode_size_bytes) { + info = &adev->firmware.ucode[AMDGPU_UCODE_ID_RLC_IRAM_1 ]; + info->ucode_id =AMDGPU_UCODE_ID_RLC_IRAM_1 ; + info->fw = adev->gfx.rlc_fw; + adev->firmware.fw_size += +ALIGN (adev->gfx.rlc.rlc_1_iram_ucode_size_bytes,PAGE_SIZE ); + } + +if (adev->gfx.rlc.rlc_1_dram_ucode_size_bytes) { + info = &adev->firmware.ucode[AMDGPU_UCODE_ID_RLC_DRAM_1 ]; + info->ucode_id =AMDGPU_UCODE_ID_RLC_DRAM_1 ; + info->fw = adev->gfx.rlc_fw; + adev->firmware.fw_size += +ALIGN (adev->gfx.rlc.rlc_1_dram_ucode_size_bytes,PAGE_SIZE ); + } + } +} +int amdgpu_gfx_rlc_init_microcode (struct amdgpu_device *adev,uint16_t version_major,uint16_t version_minor)
@@ -545,6 +579,7 @@ int amdgpu_gfx_rlc_init_microcode(struct amdgpu_device *adev,amdgpu_gfx_rlc_init_microcode_v2_3 (adev);if (version_minor ==4 )amdgpu_gfx_rlc_init_microcode_v2_4 (adev); - +if (version_minor ==5 ) +amdgpu_gfx_rlc_init_microcode_v2_5 (adev);return 0 ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h +4 -0
@@ -311,6 +311,8 @@ struct amdgpu_rlc {u32 save_restore_list_srm_size_bytes;u32 rlc_iram_ucode_size_bytes;u32 rlc_dram_ucode_size_bytes; +u32 rlc_1_iram_ucode_size_bytes; +u32 rlc_1_dram_ucode_size_bytes;u32 rlcp_ucode_size_bytes;u32 rlcv_ucode_size_bytes;u32 global_tap_delays_ucode_size_bytes;
@@ -326,6 +328,8 @@ struct amdgpu_rlc {u8 *save_restore_list_srm;u8 *rlc_iram_ucode;u8 *rlc_dram_ucode; +u8 *rlc_1_iram_ucode; +u8 *rlc_1_dram_ucode;u8 *rlcp_ucode;u8 *rlcv_ucode;u8 *global_tap_delays_ucode;
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +34 -0
@@ -166,6 +166,8 @@ void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr) container_of(rlc_hdr_v2_2, struct rlc_firmware_header_v2_3, v2_2);const struct rlc_firmware_header_v2_4 *rlc_hdr_v2_4 = container_of(rlc_hdr_v2_3, struct rlc_firmware_header_v2_4, v2_3); +const struct rlc_firmware_header_v2_5 *rlc_hdr_v2_5 = + container_of(rlc_hdr_v2_2, struct rlc_firmware_header_v2_5, v2_2);switch (version_minor) {case 0 :
@@ -287,6 +289,26 @@ void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)DRM_DEBUG ("se3_tap_delays_ucode_offset_bytes: %u\n" ,le32_to_cpu (rlc_hdr_v2_4->se3_tap_delays_ucode_offset_bytes));break ; +case 5 : +/* rlc_hdr v2_5 */ +DRM_INFO ("rlc_iram_ucode_size_bytes: %u\n" , +le32_to_cpu (rlc_hdr_v2_5->v2_2.rlc_iram_ucode_size_bytes)); +DRM_INFO ("rlc_iram_ucode_offset_bytes: %u\n" , +le32_to_cpu (rlc_hdr_v2_5->v2_2.rlc_iram_ucode_offset_bytes)); +DRM_INFO ("rlc_dram_ucode_size_bytes: %u\n" , +le32_to_cpu (rlc_hdr_v2_5->v2_2.rlc_dram_ucode_size_bytes)); +DRM_INFO ("rlc_dram_ucode_offset_bytes: %u\n" , +le32_to_cpu (rlc_hdr_v2_5->v2_2.rlc_dram_ucode_offset_bytes)); +/* rlc_hdr v2_5 */ +DRM_INFO ("rlc_1_iram_ucode_size_bytes: %u\n" , +le32_to_cpu (rlc_hdr_v2_5->rlc_1_iram_ucode_size_bytes)); +DRM_INFO ("rlc_1_iram_ucode_offset_bytes: %u\n" , +le32_to_cpu (rlc_hdr_v2_5->rlc_1_iram_ucode_offset_bytes)); +DRM_INFO ("rlc_1_dram_ucode_size_bytes: %u\n" , +le32_to_cpu (rlc_hdr_v2_5->rlc_1_dram_ucode_size_bytes)); +DRM_INFO ("rlc_1_dram_ucode_offset_bytes: %u\n" , +le32_to_cpu (rlc_hdr_v2_5->rlc_1_dram_ucode_offset_bytes)); +break ;default :DRM_ERROR ("Unknown RLC v2 ucode: v2.%u\n" , version_minor);break ;
@@ -631,6 +653,10 @@ const char *amdgpu_ucode_name(enum AMDGPU_UCODE_ID ucode_id)return "RLC_IRAM" ;case AMDGPU_UCODE_ID_RLC_DRAM :return "RLC_DRAM" ; +case AMDGPU_UCODE_ID_RLC_IRAM_1 : +return "RLC_IRAM_1" ; +case AMDGPU_UCODE_ID_RLC_DRAM_1 : +return "RLC_DRAM_1" ;case AMDGPU_UCODE_ID_RLC_G :return "RLC_G" ;case AMDGPU_UCODE_ID_RLC_P :
@@ -911,6 +937,14 @@ static int amdgpu_ucode_init_single_fw(struct amdgpu_device *adev, ucode->ucode_size = adev->gfx.rlc.rlc_dram_ucode_size_bytes; ucode_addr = adev->gfx.rlc.rlc_dram_ucode;break ; +case AMDGPU_UCODE_ID_RLC_IRAM_1 : + ucode->ucode_size = adev->gfx.rlc.rlc_1_iram_ucode_size_bytes; + ucode_addr = adev->gfx.rlc.rlc_1_iram_ucode; +break ; +case AMDGPU_UCODE_ID_RLC_DRAM_1 : + ucode->ucode_size = adev->gfx.rlc.rlc_1_dram_ucode_size_bytes; + ucode_addr = adev->gfx.rlc.rlc_1_dram_ucode; +break ;case AMDGPU_UCODE_ID_RLC_P : ucode->ucode_size = adev->gfx.rlc.rlcp_ucode_size_bytes; ucode_addr = adev->gfx.rlc.rlcp_ucode;
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h +12 -0
@@ -300,6 +300,15 @@ struct rlc_firmware_header_v2_4 {uint32_t se3_tap_delays_ucode_offset_bytes; }; +/* version_major=2, version_minor=5 */ +struct rlc_firmware_header_v2_5 { +struct rlc_firmware_header_v2_2 v2_2; +uint32_t rlc_1_iram_ucode_size_bytes; +uint32_t rlc_1_iram_ucode_offset_bytes; +uint32_t rlc_1_dram_ucode_size_bytes; +uint32_t rlc_1_dram_ucode_offset_bytes; +}; +/* version_major=1, version_minor=0 */ struct sdma_firmware_header_v1_0 {struct common_firmware_header header;
@@ -449,6 +458,7 @@ union amdgpu_firmware_header {struct rlc_firmware_header_v2_2 rlc_v2_2;struct rlc_firmware_header_v2_3 rlc_v2_3;struct rlc_firmware_header_v2_4 rlc_v2_4; +struct rlc_firmware_header_v2_5 rlc_v2_5;struct sdma_firmware_header_v1_0 sdma;struct sdma_firmware_header_v1_1 sdma_v1_1;struct sdma_firmware_header_v2_0 sdma_v2_0;
@@ -512,6 +522,8 @@ enum AMDGPU_UCODE_ID {AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM ,AMDGPU_UCODE_ID_RLC_IRAM ,AMDGPU_UCODE_ID_RLC_DRAM , +AMDGPU_UCODE_ID_RLC_IRAM_1 , +AMDGPU_UCODE_ID_RLC_DRAM_1 ,AMDGPU_UCODE_ID_RLC_P ,AMDGPU_UCODE_ID_RLC_V , AMDGPU_UCODE_ID_RLC_G,
drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h +2 -0
@@ -299,6 +299,8 @@ enum psp_gfx_fw_type {GFX_FW_TYPE_RS64_MEC_P1_STACK =95 ,/* RS64 MEC stack P1 SOC21 */ GFX_FW_TYPE_RS64_MEC_P2_STACK =96 ,/* RS64 MEC stack P2 SOC21 */ GFX_FW_TYPE_RS64_MEC_P3_STACK =97 ,/* RS64 MEC stack P3 SOC21 */ +GFX_FW_TYPE_RLX6_UCODE_CORE1 =98 ,/* RLCV_IRAM MI */ +GFX_FW_TYPE_RLX6_DRAM_BOOT_CORE1 =99 ,/* RLCV DRAM BOOT MI */ GFX_FW_TYPE_VPEC_FW1 =100 ,/* VPEC FW1 To Save VPE */ GFX_FW_TYPE_VPEC_FW2 =101 ,/* VPEC FW2 To Save VPE */ GFX_FW_TYPE_VPE = 102,
Signature · 1 line
2.51.0
Alex Deucher
maintainerPATCH 5/6 drm/amdgpu: update psp_get_fw_type() function
In reply to Alex DeucherFrom: Feifei Xu <[email protected]>
In psp 14.0.7, mes and sdma GFX_FW_TYPE have been changed.
Define a psp common function: psp_get_fw_type().
Hide the GFX_FW_TYPE Changes in each ip's psp->funcs_get_fw_type callback. (like psp_v14_0_7_get_fw_type()).
If no GFX_FW_TYPE change, reuse the amdgpu_psp_get_fw_type().
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 8 ++ drivers/gpu/drm/amd/amdgpu/psp_v14_0_7.c | 140 +++++++++++++++++++++++ 3 files changed, 150 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +2 -3
@@ -2620,7 +2620,7 @@ static int psp_hw_start(struct psp_context *psp)return 0 ; } -static int psp_get_fw_type (struct amdgpu_firmware_info *ucode, +int amdgpu_psp_get_fw_type (struct amdgpu_firmware_info *ucode,enum psp_gfx_fw_type *type) {switch (ucode->ucode_id) {
@@ -2908,10 +2908,9 @@ static int psp_prep_load_ip_fw_cmd_buf(struct psp_context *psp, cmd->cmd.cmd_load_ip_fw.fw_phy_addr_hi =upper_32_bits (fw_mem_mc_addr); cmd->cmd.cmd_load_ip_fw.fw_size = ucode->ucode_size; - ret =psp_get_fw_type (ucode, &cmd->cmd.cmd_load_ip_fw.fw_type); + ret =psp_get_fw_type (psp, ucode, &cmd->cmd.cmd_load_ip_fw.fw_type);if (ret)dev_err (psp->adev->dev,"Unknown firmware type\n" ); -return ret; }
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +8 -0
@@ -172,6 +172,8 @@ struct psp_funcs {bool (*is_reload_needed)(struct psp_context *psp);int (*reg_program_no_ring)(struct psp_context *psp,uint32_t val,enum psp_reg_prog_id id); +int (*get_fw_type)(struct amdgpu_firmware_info *ucode, +enum psp_gfx_fw_type *type); };struct ta_funcs {
@@ -524,6 +526,10 @@ struct amdgpu_psp_funcs { ((psp)->funcs->reg_program_no_ring ? \ (psp)->funcs->reg_program_no_ring((psp), val, id) : -EINVAL) +#define psp_get_fw_type (psp, ucode, type) \ + ((psp)->funcs->get_fw_type ? \ + (psp)->funcs->get_fw_type(ucode, type):amdgpu_psp_get_fw_type(ucode, type)) +extern const struct amd_ip_funcs psp_ip_funcs;extern const struct amdgpu_ip_block_version psp_v3_1_ip_block;
@@ -622,6 +628,8 @@ bool amdgpu_psp_tos_reload_needed(struct amdgpu_device *adev);int amdgpu_psp_reg_program_no_ring (struct psp_context *psp,uint32_t val,enum psp_reg_prog_id id);void amdgpu_psp_debugfs_init (struct amdgpu_device *adev); +int amdgpu_psp_get_fw_type (struct amdgpu_firmware_info *ucode, +enum psp_gfx_fw_type *type);#endif
drivers/gpu/drm/amd/amdgpu/psp_v14_0_7.c +140 -0
152 lines not on this page · raw message
Signature · 1 line
2.51.0
Alex Deucher
maintainerPATCH 6/6 drm/amdgpu: set psp ip block and funcs for MP0 14.0.7
In reply to Alex DeucherFrom: Le Ma <[email protected]>
Set psp ip block and funcs for MP0 14.0.7
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 ++++ 2 files changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +3 -0
@@ -2154,6 +2154,9 @@ static int amdgpu_discovery_set_psp_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (14 ,0 ,5 ):amdgpu_device_ip_block_add (adev, &psp_v14_0_ip_block);break ; +case IP_VERSION (14 ,0 ,7 ): +amdgpu_device_ip_block_add (adev, &psp_v14_0_7_ip_block); +break ;default : dev_err(adev->dev, "Failed to add psp ip block(MP0_HWIP:0x%x)\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +4 -0
@@ -39,6 +39,7 @@#include "psp_v13_0.h" #include "psp_v13_0_4.h" #include "psp_v14_0.h" +#include "psp_v14_0_7.h" #include "amdgpu_ras.h" #include "amdgpu_securedisplay.h"
@@ -259,6 +260,9 @@ static int psp_early_init(struct amdgpu_ip_block *ip_block)psp_v14_0_set_psp_funcs (psp); psp->boot_time_tmr = false;break ; +case IP_VERSION (14 ,0 ,7 ): +psp_v14_0_7_set_psp_funcs (psp); +break ;default :return -EINVAL ; }
Signature · 1 line
2.51.0