drm/amd/amdgpu: Use IP discovery data to determine VCN enablement instead of MMSCH
authorBokun Zhang <Bokun.Zhang@amd.com>
Tue, 5 Jan 2021 21:15:57 +0000 (16:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Jun 2021 21:14:01 +0000 (17:14 -0400)
commit376002f4b028504a07868f7ee96ad41e0f69ae09
treeffa1ce512447b3d19c9c4437e41723c07eb0e9c2
parent942ab769c51d1a0447d080fcb91c1217f7c0c0c4
drm/amd/amdgpu: Use IP discovery data to determine VCN enablement instead of MMSCH

In the past, we use MMSCH to determine whether a VCN is enabled or not.
This is not reliable since after a FLR, MMSCH may report junk data.

It is better to use IP discovery data.

Signed-off-by: Bokun Zhang <Bokun.Zhang@amd.com>
Signed-off-by: Peng Ju Zhou <PengJu.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c