]> 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)
commit0e9e990b77d70e452e8433dfad386a3ed4672db2
treefe21f3032137adc1228a32ad7d2845422a9cf0ea
parent29e4663e377bebc8fcaf0f758db2ded45c17a582
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