mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 11:12:01 -04:00
drm/amdkfd: set coherent host access capability flag
This flag determines whether the host possesses coherent access to the memory of the device. Signed-off-by: Alex Sierra <alex.sierra@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
184d838482
commit
03d400e760
@@ -2107,6 +2107,10 @@ int kfd_topology_add_device(struct kfd_node *gpu)
|
||||
if (KFD_IS_SVM_API_SUPPORTED(dev->gpu->adev))
|
||||
dev->node_props.capability |= HSA_CAP_SVMAPI_SUPPORTED;
|
||||
|
||||
if (dev->gpu->adev->gmc.is_app_apu ||
|
||||
dev->gpu->adev->gmc.xgmi.connected_to_cpu)
|
||||
dev->node_props.capability |= HSA_CAP_FLAGS_COHERENTHOSTACCESS;
|
||||
|
||||
kfd_debug_print_topology();
|
||||
|
||||
kfd_notify_gpu_change(gpu_id, 1);
|
||||
|
||||
Reference in New Issue
Block a user