]> 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)
commit4947e573474ae7a753a5552cbff0777eca961c1a
treec25e074c084fbe96936588899180b3d7af900296
parent80528740c3b9a3eed8aa0c28345bc9617e94efc8
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