libhsakmt: implement the method that using flag which exposed by kfd to configure is_dgpu

KFD already implemented the fallback path for APU. Thunk will use flag
which exposed by kfd to configure is_dgpu instead of hardcode before.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Change-Id: I445f6cf668f9484dd06cd9ae1bb3cfe7428ec7eb
This commit is contained in:
Huang Rui
2020-07-30 10:22:23 +08:00
parent 3d3b28b670
commit 12813691a2
4 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ static void get_doorbell_map_info(uint16_t dev_id,
* GPUVM doorbell on Tonga requires a workaround for VM TLB ACTIVE bit
* lookup bug. Remove ASIC check when this is implemented in amdgpu.
*/
doorbell->use_gpuvm = (topology_is_dgpu(dev_id) &&
doorbell->use_gpuvm = (is_dgpu &&
dev_info->asic_family != CHIP_TONGA);
doorbell->size = DOORBELLS_PAGE_SIZE(dev_info->doorbell_size);
}