Skip to content

Commit

Permalink
drm/msm/a6xx: Add missing regs for A7XX
Browse files Browse the repository at this point in the history
Add some missing definitions required for A7 support.

This may be substituted with a mesa header sync.

Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # sm8450
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/559282/
Signed-off-by: Rob Clark <robdclark@chromium.org>
  • Loading branch information
Konrad Dybcio authored and Rob Clark committed Oct 9, 2023
1 parent 103f3d2 commit 23eeae6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/gpu/drm/msm/adreno/a6xx.xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,12 @@ enum a6xx_tex_type {
#define REG_A6XX_CP_MISC_CNTL 0x00000840

#define REG_A6XX_CP_APRIV_CNTL 0x00000844
#define A6XX_CP_APRIV_CNTL_CDWRITE 0x00000040
#define A6XX_CP_APRIV_CNTL_CDREAD 0x00000020
#define A6XX_CP_APRIV_CNTL_RBRPWB 0x00000008
#define A6XX_CP_APRIV_CNTL_RBPRIVLEVEL 0x00000004
#define A6XX_CP_APRIV_CNTL_RBFETCH 0x00000002
#define A6XX_CP_APRIV_CNTL_ICACHE 0x00000001

#define REG_A6XX_CP_PREEMPT_THRESHOLD 0x000008c0

Expand Down Expand Up @@ -1939,6 +1945,8 @@ static inline uint32_t REG_A6XX_RBBM_PERFCTR_RBBM_SEL(uint32_t i0) { return 0x00

#define REG_A6XX_RBBM_CLOCK_HYST_TEX_FCHE 0x00000122

#define REG_A7XX_RBBM_CLOCK_HYST2_VFD 0x0000012f

#define REG_A6XX_RBBM_LPAC_GBIF_CLIENT_QOS_CNTL 0x000005ff

#define REG_A6XX_DBGC_CFG_DBGBUS_SEL_A 0x00000600
Expand Down Expand Up @@ -8252,5 +8260,6 @@ static inline uint32_t A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_1_BYTEL15(uint32_t val)

#define REG_A6XX_CX_MISC_SYSTEM_CACHE_CNTL_1 0x00000002

#define REG_A7XX_CX_MISC_TCM_RET_CNTL 0x00000039

#endif /* A6XX_XML */
8 changes: 8 additions & 0 deletions drivers/gpu/drm/msm/adreno/a6xx_gmu.xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,12 @@ static inline uint32_t A6XX_GMU_GPU_NAP_CTRL_SID(uint32_t val)

#define REG_A6XX_GMU_GENERAL_7 0x000051cc

#define REG_A6XX_GMU_GENERAL_8 0x000051cd

#define REG_A6XX_GMU_GENERAL_9 0x000051ce

#define REG_A6XX_GMU_GENERAL_10 0x000051cf

#define REG_A6XX_GMU_ISENSE_CTRL 0x0000515d

#define REG_A6XX_GPU_CS_ENABLE_REG 0x00008920
Expand Down Expand Up @@ -471,6 +477,8 @@ static inline uint32_t A6XX_GMU_GPU_NAP_CTRL_SID(uint32_t val)

#define REG_A6XX_RSCC_SEQ_BUSY_DRV0 0x00000101

#define REG_A7XX_RSCC_SEQ_MEM_0_DRV0_A740 0x00000154

#define REG_A6XX_RSCC_SEQ_MEM_0_DRV0 0x00000180

#define REG_A6XX_RSCC_TCS0_DRV0_STATUS 0x00000346
Expand Down

0 comments on commit 23eeae6

Please sign in to comment.