RE: [PATCH] drm/amdkfd: set coherent host access capability flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - General]

CC: Rajneesh

> -----Original Message-----
> From: Sierra Guiza, Alejandro (Alex) <Alex.Sierra@xxxxxxx>
> Sent: Thursday, June 15, 2023 5:55 PM
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx; Kuehling, Felix <Felix.Kuehling@xxxxxxx>
> Cc: Yat Sin, David <David.YatSin@xxxxxxx>; Sierra Guiza, Alejandro (Alex)
> <Alex.Sierra@xxxxxxx>
> Subject: [PATCH] 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@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
> b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
> index 90b86a6ac7bd..7ede3de4f7fb 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
> @@ -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);
> --
> 2.32.0





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux