drm/amd/display: update dcn21 hubbub registers
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Thu, 3 Oct 2019 17:38:57 +0000 (13:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 20:28:51 +0000 (16:28 -0400)
use dcn20 common regs define to share some regs with dcn20

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.h

index 698c470cc0f6b8e213e2f21ae428bad3af491891..c4840dfb1fa51f3f8517692c5de4a787294fc66b 100644 (file)
        SR(DCHUBBUB_ARB_FRAC_URG_BW_FLIP_B),\
        SR(DCHUBBUB_ARB_FRAC_URG_BW_FLIP_C),\
        SR(DCHUBBUB_ARB_FRAC_URG_BW_FLIP_D),\
+       SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_A),\
+       SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_B),\
+       SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_C),\
+       SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_D),\
        SR(DCHUBBUB_ARB_HOSTVM_CNTL), \
        SR(DCHVM_CTRL0), \
        SR(DCHVM_MEM_CTRL), \
        SR(DCHVM_RIOMMU_STAT0)
 
 #define HUBBUB_REG_LIST_DCN21()\
-       HUBBUB_REG_LIST_DCN_COMMON(), \
+       HUBBUB_REG_LIST_DCN20_COMMON(), \
        HUBBUB_SR_WATERMARK_REG_LIST(), \
-       HUBBUB_HVM_REG_LIST(), \
-       SR(DCHUBBUB_CRC_CTRL), \
-       SR(DCN_VM_FB_LOCATION_BASE),\
-       SR(DCN_VM_FB_LOCATION_TOP),\
-       SR(DCN_VM_FB_OFFSET),\
-       SR(DCN_VM_AGP_BOT),\
-       SR(DCN_VM_AGP_TOP),\
-       SR(DCN_VM_AGP_BASE)
+       HUBBUB_HVM_REG_LIST()
 
 #define HUBBUB_MASK_SH_LIST_HVM(mask_sh) \
        HUBBUB_SF(DCHUBBUB_ARB_DF_REQ_OUTSTAND, DCHUBBUB_ARB_MIN_REQ_OUTSTAND_COMMIT_THRESHOLD, mask_sh), \
        HUBBUB_SF(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_D, DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_D, mask_sh)
 
 #define HUBBUB_MASK_SH_LIST_DCN21(mask_sh)\
-       HUBBUB_MASK_SH_LIST_HVM(mask_sh),\
+       HUBBUB_MASK_SH_LIST_HVM(mask_sh), \
        HUBBUB_MASK_SH_LIST_DCN_COMMON(mask_sh), \
        HUBBUB_MASK_SH_LIST_STUTTER(mask_sh), \
        HUBBUB_SF(DCHUBBUB_GLOBAL_TIMER_CNTL, DCHUBBUB_GLOBAL_TIMER_REFDIV, mask_sh), \