]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Recovery vcn instance iterate.
authorPeng Ju Zhou <PengJu.Zhou@amd.com>
Mon, 12 Jul 2021 02:45:41 +0000 (10:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Aug 2021 01:17:59 +0000 (21:17 -0400)
commit564e3dcf79628d0b61a6c354efcdcf3a9e68c35f
treec25e074c084fbe96936588899180b3d7af900296
parent4b296527549853eae8f1f0e010eaaea511ab00d7
drm/amd/amdgpu: Recovery vcn instance iterate.

The previous logic is recording the amount of valid vcn instances
to use them on SRIOV, it is a hard task due to the vcn accessment is
based on the index of the vcn instance.

Check if the vcn instance enabled before do instance init.

Signed-off-by: Peng Ju Zhou <PengJu.Zhou@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c