]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: use IP presence to free uvd and vce handles
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Sep 2018 18:51:25 +0000 (13:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Sep 2018 14:36:00 +0000 (09:36 -0500)
commite80943b3d05a2e8775617c621ce3addfb4ec1590
treebbe2074827d165851f5f6d3d3cf32b5b6b86dfe9
parent8eb2148594d2a727dec3d821c73d00342ec80b5a
drm/amdgpu: use IP presence to free uvd and vce handles

Rather than checking the asic type, check whether the UVD
or VCE IP blocks exist.  This way we don't have to update
the check with new asics that use VCN.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c