OSDN Git Service

drm/amdkfd: Initialize HSA_CAP_ATS_PRESENT capability in topology codes
authorOak Zeng <Oak.Zeng@amd.com>
Mon, 10 Jun 2019 20:22:35 +0000 (15:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:57:25 +0000 (12:57 -0500)
commit1ae99eab34f90c3a5319c79a910e6b71313a9aab
treefe21f3032137adc1228a32ad7d2845422a9cf0ea
parentf77dac6cd62e5d4bcadd740620af1218bfb54cc6
drm/amdkfd: Initialize HSA_CAP_ATS_PRESENT capability in topology codes

Move HSA_CAP_ATS_PRESENT initialization logic from kfd iommu codes to
kfd topology codes. This removes kfd_iommu_device_init's dependency
on kfd_topology_add_device. Also remove duplicate code setting the
same.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_iommu.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.c