forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/amd/include/asic_reg/vcn/vcn_1_0_sh_mask.h
....@@ -87,6 +87,26 @@
8787 //CC_UVD_HARVESTING
8888 #define CC_UVD_HARVESTING__UVD_DISABLE__SHIFT 0x1
8989 #define CC_UVD_HARVESTING__UVD_DISABLE_MASK 0x00000002L
90
+//UVD_DPG_LMA_CTL
91
+#define UVD_DPG_LMA_CTL__READ_WRITE__SHIFT 0x0
92
+#define UVD_DPG_LMA_CTL__MASK_EN__SHIFT 0x1
93
+#define UVD_DPG_LMA_CTL__ADDR_AUTO_INCREMENT__SHIFT 0x2
94
+#define UVD_DPG_LMA_CTL__SRAM_SEL__SHIFT 0x4
95
+#define UVD_DPG_LMA_CTL__READ_WRITE_ADDR__SHIFT 0x10
96
+#define UVD_DPG_LMA_CTL__READ_WRITE_MASK 0x00000001L
97
+#define UVD_DPG_LMA_CTL__MASK_EN_MASK 0x00000002L
98
+#define UVD_DPG_LMA_CTL__ADDR_AUTO_INCREMENT_MASK 0x00000004L
99
+#define UVD_DPG_LMA_CTL__SRAM_SEL_MASK 0x00000010L
100
+#define UVD_DPG_LMA_CTL__READ_WRITE_ADDR_MASK 0xFFFF0000L
101
+//UVD_DPG_PAUSE
102
+#define UVD_DPG_PAUSE__JPEG_PAUSE_DPG_REQ__SHIFT 0x0
103
+#define UVD_DPG_PAUSE__JPEG_PAUSE_DPG_ACK__SHIFT 0x1
104
+#define UVD_DPG_PAUSE__NJ_PAUSE_DPG_REQ__SHIFT 0x2
105
+#define UVD_DPG_PAUSE__NJ_PAUSE_DPG_ACK__SHIFT 0x3
106
+#define UVD_DPG_PAUSE__JPEG_PAUSE_DPG_REQ_MASK 0x00000001L
107
+#define UVD_DPG_PAUSE__JPEG_PAUSE_DPG_ACK_MASK 0x00000002L
108
+#define UVD_DPG_PAUSE__NJ_PAUSE_DPG_REQ_MASK 0x00000004L
109
+#define UVD_DPG_PAUSE__NJ_PAUSE_DPG_ACK_MASK 0x00000008L
90110 //UVD_SCRATCH1
91111 #define UVD_SCRATCH1__SCRATCH1_DATA__SHIFT 0x0
92112 #define UVD_SCRATCH1__SCRATCH1_DATA_MASK 0xFFFFFFFFL
....@@ -292,6 +312,11 @@
292312 //UVD_GPCOM_VCPU_DATA1
293313 #define UVD_GPCOM_VCPU_DATA1__DATA1__SHIFT 0x0
294314 #define UVD_GPCOM_VCPU_DATA1__DATA1_MASK 0xFFFFFFFFL
315
+//UVD_ENGINE_CNTL
316
+#define UVD_ENGINE_CNTL__ENGINE_START_MASK 0x1
317
+#define UVD_ENGINE_CNTL__ENGINE_START__SHIFT 0x0
318
+#define UVD_ENGINE_CNTL__ENGINE_START_MODE_MASK 0x2
319
+#define UVD_ENGINE_CNTL__ENGINE_START_MODE__SHIFT 0x1
295320 //UVD_UDEC_DBW_UV_ADDR_CONFIG
296321 #define UVD_UDEC_DBW_UV_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
297322 #define UVD_UDEC_DBW_UV_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x3
....@@ -965,6 +990,7 @@
965990 #define UVD_LMI_CTRL2__STALL_ARB_UMC__SHIFT 0x8
966991 #define UVD_LMI_CTRL2__MC_READ_ID_SEL__SHIFT 0x9
967992 #define UVD_LMI_CTRL2__MC_WRITE_ID_SEL__SHIFT 0xb
993
+#define UVD_LMI_CTRL2__RE_OFLD_MIF_WR_REQ_NUM__SHIFT 0x11
968994 #define UVD_LMI_CTRL2__SPH_DIS_MASK 0x00000001L
969995 #define UVD_LMI_CTRL2__STALL_ARB_MASK 0x00000002L
970996 #define UVD_LMI_CTRL2__ASSERT_UMC_URGENT_MASK 0x00000004L
....@@ -973,6 +999,7 @@
973999 #define UVD_LMI_CTRL2__STALL_ARB_UMC_MASK 0x00000100L
9741000 #define UVD_LMI_CTRL2__MC_READ_ID_SEL_MASK 0x00000600L
9751001 #define UVD_LMI_CTRL2__MC_WRITE_ID_SEL_MASK 0x00001800L
1002
+#define UVD_LMI_CTRL2__RE_OFLD_MIF_WR_REQ_NUM_MASK 0x01FE0000L
9761003 //UVD_MASTINT_EN
9771004 #define UVD_MASTINT_EN__OVERRUN_RST__SHIFT 0x0
9781005 #define UVD_MASTINT_EN__VCPU_EN__SHIFT 0x1
....@@ -982,6 +1009,9 @@
9821009 #define UVD_MASTINT_EN__VCPU_EN_MASK 0x00000002L
9831010 #define UVD_MASTINT_EN__SYS_EN_MASK 0x00000004L
9841011 #define UVD_MASTINT_EN__INT_OVERRUN_MASK 0x007FFFF0L
1012
+//UVD_SYS_INT_EN
1013
+#define UVD_SYS_INT_EN__UVD_JRBC_EN__SHIFT 0x4
1014
+#define UVD_SYS_INT_EN__UVD_JRBC_EN_MASK 0x00000010L
9851015 //JPEG_CGC_CTRL
9861016 #define JPEG_CGC_CTRL__DYN_CLOCK_MODE__SHIFT 0x0
9871017 #define JPEG_CGC_CTRL__JPEG2_MODE__SHIFT 0x1
....@@ -1022,6 +1052,19 @@
10221052 #define UVD_LMI_CTRL__DB_IT_DATA_COHERENCY_EN_MASK 0x01000000L
10231053 #define UVD_LMI_CTRL__IT_IT_DATA_COHERENCY_EN_MASK 0x02000000L
10241054 #define UVD_LMI_CTRL__RFU_MASK 0xF8000000L
1055
+//UVD_LMI_STATUS
1056
+#define UVD_LMI_STATUS__READ_CLEAN__SHIFT 0x0
1057
+#define UVD_LMI_STATUS__WRITE_CLEAN__SHIFT 0x1
1058
+#define UVD_LMI_STATUS__WRITE_CLEAN_RAW__SHIFT 0x2
1059
+#define UVD_LMI_STATUS__VCPU_LMI_WRITE_CLEAN__SHIFT 0x3
1060
+#define UVD_LMI_STATUS__UMC_WRITE_CLEAN_RAW__SHIFT 0x6
1061
+#define UVD_LMI_STATUS__UMC_READ_CLEAN_RAW__SHIFT 0x9
1062
+#define UVD_LMI_STATUS__READ_CLEAN_MASK 0x00000001L
1063
+#define UVD_LMI_STATUS__WRITE_CLEAN_MASK 0x00000002L
1064
+#define UVD_LMI_STATUS__WRITE_CLEAN_RAW_MASK 0x00000004L
1065
+#define UVD_LMI_STATUS__VCPU_LMI_WRITE_CLEAN_MASK 0x00000008L
1066
+#define UVD_LMI_STATUS__UMC_WRITE_CLEAN_RAW_MASK 0x00000040L
1067
+#define UVD_LMI_STATUS__UMC_READ_CLEAN_RAW_MASK 0x00000200L
10251068 //UVD_LMI_SWAP_CNTL
10261069 #define UVD_LMI_SWAP_CNTL__RB_MC_SWAP__SHIFT 0x0
10271070 #define UVD_LMI_SWAP_CNTL__IB_MC_SWAP__SHIFT 0x2
....@@ -1055,6 +1098,9 @@
10551098 #define UVD_LMI_SWAP_CNTL__RB_WR_MC_SWAP_MASK 0x0C000000L
10561099 #define UVD_LMI_SWAP_CNTL__RE_MC_SWAP_MASK 0x30000000L
10571100 #define UVD_LMI_SWAP_CNTL__MP_MC_SWAP_MASK 0xC0000000L
1101
+//UVD_MPC_CNTL
1102
+#define UVD_MPC_CNTL__REPLACEMENT_MODE__SHIFT 0x3
1103
+#define UVD_MPC_CNTL__REPLACEMENT_MODE_MASK 0x00000038L
10581104 //UVD_MPC_SET_MUXA0
10591105 #define UVD_MPC_SET_MUXA0__VARA_0__SHIFT 0x0
10601106 #define UVD_MPC_SET_MUXA0__VARA_1__SHIFT 0x6
....@@ -1136,7 +1182,11 @@
11361182 #define UVD_VCPU_CACHE_SIZE2__CACHE_SIZE2_MASK 0x001FFFFFL
11371183 //UVD_VCPU_CNTL
11381184 #define UVD_VCPU_CNTL__CLK_EN__SHIFT 0x9
1185
+#define UVD_VCPU_CNTL__MIF_WR_LOW_THRESHOLD_BP__SHIFT 0x11
1186
+#define UVD_VCPU_CNTL__PRB_TIMEOUT_VAL__SHIFT 0x14
11391187 #define UVD_VCPU_CNTL__CLK_EN_MASK 0x00000200L
1188
+#define UVD_VCPU_CNTL__MIF_WR_LOW_THRESHOLD_BP_MASK 0x00020000L
1189
+#define UVD_VCPU_CNTL__PRB_TIMEOUT_VAL_MASK 0x0FF00000L
11401190 //UVD_SOFT_RESET
11411191 #define UVD_SOFT_RESET__RBC_SOFT_RESET__SHIFT 0x0
11421192 #define UVD_SOFT_RESET__LBSI_SOFT_RESET__SHIFT 0x1