]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9848a36caa1e9b3ea958a1971c340de73e779f80
treefe21f3032137adc1228a32ad7d2845422a9cf0ea
parent2448107b48a915fc3069899f3513430da9c7dcaf
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