Initialize RRMT status from register.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
        struct amdgpu_ring *ring;
        int i, r, vcn_inst;
 
+       if (RREG32_SOC15(VCN, GET_INST(VCN, 0), regVCN_RRMT_CNTL) & 0x100)
+               adev->vcn.caps |= AMDGPU_VCN_CAPS(RRMT_ENABLED);
        for (i = 0; i < adev->vcn.num_vcn_inst; ++i) {
                vcn_inst = GET_INST(VCN, i);
                ring = &adev->vcn.inst[i].ring_enc[0];
 
 #ifndef __VCN_v5_0_1_H__
 #define __VCN_v5_0_1_H__
 
+#define regVCN_RRMT_CNTL                          0x0940
+#define regVCN_RRMT_CNTL_BASE_IDX                 1
+
 extern const struct amdgpu_ip_block_version vcn_v5_0_1_ip_block;
 
 #endif /* __VCN_v5_0_1_H__ */