mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
drm/amdgpu: Initialize RRMT status on VCN v5.0.1
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>
This commit is contained in:
parent
677ae51f49
commit
b5a3fc54e8
|
|
@ -194,6 +194,8 @@ static int vcn_v5_0_1_hw_init(struct amdgpu_ip_block *ip_block)
|
|||
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];
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
#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__ */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user