]> 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)
commit6ed7328f7404b9dc1f21fba5d1d74c696a8e5fbf
treec25e074c084fbe96936588899180b3d7af900296
parent7198794b4bf11d055cb817cd74a557e80bc3707c
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