drm/amd/include: add register define for VML2 and ATCL2

Add VML2 and ATCL2 ECC registers to support VEGA20 RAS

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Hawking Zhang <hawking.zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Dennis Li 2019-08-09 14:30:29 +08:00 committed by Alex Deucher
parent 13ba03442a
commit 87d92e1f90
2 changed files with 32 additions and 4 deletions

View File

@ -1146,7 +1146,14 @@
#define mmATC_L2_MEM_POWER_LS_BASE_IDX 0
#define mmATC_L2_CGTT_CLK_CTRL 0x080c
#define mmATC_L2_CGTT_CLK_CTRL_BASE_IDX 0
#define mmATC_L2_CACHE_4K_EDC_INDEX 0x080e
#define mmATC_L2_CACHE_4K_EDC_INDEX_BASE_IDX 0
#define mmATC_L2_CACHE_2M_EDC_INDEX 0x080f
#define mmATC_L2_CACHE_2M_EDC_INDEX_BASE_IDX 0
#define mmATC_L2_CACHE_4K_EDC_CNT 0x0810
#define mmATC_L2_CACHE_4K_EDC_CNT_BASE_IDX 0
#define mmATC_L2_CACHE_2M_EDC_CNT 0x0811
#define mmATC_L2_CACHE_2M_EDC_CNT_BASE_IDX 0
// addressBlock: gc_utcl2_vml2pfdec
// base address: 0xa100
@ -1206,7 +1213,14 @@
#define mmVM_L2_CACHE_PARITY_CNTL_BASE_IDX 0
#define mmVM_L2_CGTT_CLK_CTRL 0x085e
#define mmVM_L2_CGTT_CLK_CTRL_BASE_IDX 0
#define mmVM_L2_MEM_ECC_INDEX 0x0860
#define mmVM_L2_MEM_ECC_INDEX_BASE_IDX 0
#define mmVM_L2_WALKER_MEM_ECC_INDEX 0x0861
#define mmVM_L2_WALKER_MEM_ECC_INDEX_BASE_IDX 0
#define mmVM_L2_MEM_ECC_CNT 0x0862
#define mmVM_L2_MEM_ECC_CNT_BASE_IDX 0
#define mmVM_L2_WALKER_MEM_ECC_CNT 0x0863
#define mmVM_L2_WALKER_MEM_ECC_CNT_BASE_IDX 0
// addressBlock: gc_utcl2_vml2vcdec
// base address: 0xa200

View File

@ -6661,7 +6661,6 @@
#define ATC_L2_CGTT_CLK_CTRL__SOFT_STALL_OVERRIDE_MASK 0x00FF0000L
#define ATC_L2_CGTT_CLK_CTRL__SOFT_OVERRIDE_MASK 0xFF000000L
// addressBlock: gc_utcl2_vml2pfdec
//VM_L2_CNTL
#define VM_L2_CNTL__ENABLE_L2_CACHE__SHIFT 0x0
@ -6991,7 +6990,22 @@
#define VM_L2_CGTT_CLK_CTRL__MGLS_OVERRIDE_MASK 0x00008000L
#define VM_L2_CGTT_CLK_CTRL__SOFT_STALL_OVERRIDE_MASK 0x00FF0000L
#define VM_L2_CGTT_CLK_CTRL__SOFT_OVERRIDE_MASK 0xFF000000L
//VM_L2_MEM_ECC_INDEX
#define VM_L2_MEM_ECC_INDEX__INDEX__SHIFT 0x0
#define VM_L2_MEM_ECC_INDEX__INDEX_MASK 0x000000FFL
//VM_L2_WALKER_MEM_ECC_INDEX
#define VM_L2_WALKER_MEM_ECC_INDEX__INDEX__SHIFT 0x0
#define VM_L2_WALKER_MEM_ECC_INDEX__INDEX_MASK 0x000000FFL
//VM_L2_MEM_ECC_CNT
#define VM_L2_MEM_ECC_CNT__SEC_COUNT__SHIFT 0xc
#define VM_L2_MEM_ECC_CNT__DED_COUNT__SHIFT 0xe
#define VM_L2_MEM_ECC_CNT__SEC_COUNT_MASK 0x00003000L
#define VM_L2_MEM_ECC_CNT__DED_COUNT_MASK 0x0000C000L
//VM_L2_WALKER_MEM_ECC_CNT
#define VM_L2_WALKER_MEM_ECC_CNT__SEC_COUNT__SHIFT 0xc
#define VM_L2_WALKER_MEM_ECC_CNT__DED_COUNT__SHIFT 0xe
#define VM_L2_WALKER_MEM_ECC_CNT__SEC_COUNT_MASK 0x00003000L
#define VM_L2_WALKER_MEM_ECC_CNT__DED_COUNT_MASK 0x0000C000L
// addressBlock: gc_utcl2_vml2vcdec
//VM_CONTEXT0_CNTL