[PATCH] drm/amdkfd: Add dummy function for kgd2kfd_resume_iommu
Alex Deucher
alexdeucher at gmail.com
Mon Sep 13 16:59:52 UTC 2021
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
On Mon, Sep 13, 2021 at 12:56 PM Anson Jacob <Anson.Jacob at amd.com> wrote:
>
> Add dummy function when CONFIG_HSA_AMD is not enabled.
>
> Fixes: 433d2448d57c ("drm/amdkfd: separate kfd_iommu_resume from kfd_resume")
> Signed-off-by: Anson Jacob <Anson.Jacob at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
> index b40ed399d2cf..3bc52b2c604f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
> @@ -367,6 +367,11 @@ static inline void kgd2kfd_suspend(struct kfd_dev *kfd, bool run_pm)
> {
> }
>
> +static int __maybe_unused kgd2kfd_resume_iommu(struct kfd_dev *kfd)
> +{
> + return 0;
> +}
> +
> static inline int kgd2kfd_resume(struct kfd_dev *kfd, bool run_pm)
> {
> return 0;
> --
> 2.25.1
>
More information about the amd-gfx
mailing list