Skip to content

Commit 56ee512

Browse files
BoardzMasteralexdeucher
authored andcommitted
drm/amdgpu: Fix logic error
This commit fixes logic error in function 'amdgpu_hw_ip_info': - value 'uvd' might be 'vcn'. Signed-off-by: Konstantin Meskhidze <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 75818af commit 56ee512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ static int amdgpu_hw_ip_info(struct amdgpu_device *adev,
431431
case AMDGPU_HW_IP_VCN_DEC:
432432
type = AMD_IP_BLOCK_TYPE_VCN;
433433
for (i = 0; i < adev->vcn.num_vcn_inst; i++) {
434-
if (adev->uvd.harvest_config & (1 << i))
434+
if (adev->vcn.harvest_config & (1 << i))
435435
continue;
436436

437437
if (adev->vcn.inst[i].ring_dec.sched.ready)
@@ -443,7 +443,7 @@ static int amdgpu_hw_ip_info(struct amdgpu_device *adev,
443443
case AMDGPU_HW_IP_VCN_ENC:
444444
type = AMD_IP_BLOCK_TYPE_VCN;
445445
for (i = 0; i < adev->vcn.num_vcn_inst; i++) {
446-
if (adev->uvd.harvest_config & (1 << i))
446+
if (adev->vcn.harvest_config & (1 << i))
447447
continue;
448448

449449
for (j = 0; j < adev->vcn.num_enc_rings; j++)

0 commit comments

Comments
 (0)