Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <konstantin.meskhidze@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Konstantin Meskhidze and committed by
Alex Deucher
56ee5122 75818aff

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
··· 431 431 case AMDGPU_HW_IP_VCN_DEC: 432 432 type = AMD_IP_BLOCK_TYPE_VCN; 433 433 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)) 435 435 continue; 436 436 437 437 if (adev->vcn.inst[i].ring_dec.sched.ready) ··· 443 443 case AMDGPU_HW_IP_VCN_ENC: 444 444 type = AMD_IP_BLOCK_TYPE_VCN; 445 445 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)) 447 447 continue; 448 448 449 449 for (j = 0; j < adev->vcn.num_enc_rings; j++)