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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user