mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/amdkfd: enable kfd on LoongArch systems
@ 2025-07-05  8:05 Han Gao
  2025-07-07 22:12 ` Felix Kuehling
  0 siblings, 1 reply; 3+ messages in thread
From: Han Gao @ 2025-07-05  8:05 UTC (permalink / raw)
  To: Felix Kuehling, Alex Deucher, Christian König, David Airlie,
	Simona Vetter, Han Gao
  Cc: amd-gfx, dri-devel, linux-kernel, loongarch

KFD has been confirmed that can run on LoongArch systems.
It's necessary to support CONFIG_HSA_AMD on LoongArch.

Signed-off-by: Han Gao <rabenda.cn@gmail.com>
---
 drivers/gpu/drm/amd/amdkfd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/Kconfig b/drivers/gpu/drm/amd/amdkfd/Kconfig
index 62e88e5362e9..b2387d529bf0 100644
--- a/drivers/gpu/drm/amd/amdkfd/Kconfig
+++ b/drivers/gpu/drm/amd/amdkfd/Kconfig
@@ -5,7 +5,7 @@
 
 config HSA_AMD
 	bool "HSA kernel driver for AMD GPU devices"
-	depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || (RISCV && 64BIT))
+	depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || (RISCV && 64BIT) || LOONGARCH)
 	select HMM_MIRROR
 	select MMU_NOTIFIER
 	select DRM_AMDGPU_USERPTR
-- 
2.47.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/amdkfd: enable kfd on LoongArch systems
  2025-07-05  8:05 [PATCH] drm/amdkfd: enable kfd on LoongArch systems Han Gao
@ 2025-07-07 22:12 ` Felix Kuehling
  2025-07-09  6:34   ` Han Gao
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Kuehling @ 2025-07-07 22:12 UTC (permalink / raw)
  To: Han Gao, Alex Deucher, Christian König, David Airlie, Simona Vetter
  Cc: amd-gfx, dri-devel, linux-kernel, loongarch

On 2025-07-05 04:05, Han Gao wrote:
> KFD has been confirmed that can run on LoongArch systems.
> It's necessary to support CONFIG_HSA_AMD on LoongArch.
>
> Signed-off-by: Han Gao <rabenda.cn@gmail.com>
> ---
>   drivers/gpu/drm/amd/amdkfd/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/Kconfig b/drivers/gpu/drm/amd/amdkfd/Kconfig
> index 62e88e5362e9..b2387d529bf0 100644
> --- a/drivers/gpu/drm/amd/amdkfd/Kconfig
> +++ b/drivers/gpu/drm/amd/amdkfd/Kconfig
> @@ -5,7 +5,7 @@
>   
>   config HSA_AMD
>   	bool "HSA kernel driver for AMD GPU devices"
> -	depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || (RISCV && 64BIT))
> +	depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || (RISCV && 64BIT) || LOONGARCH)

Is LOONGARCH always 64-bit? If not, please make this (LOONGARCH && 64BIT).

Other than that, I have no objections to applying this patch.

Regards,
   Felix


>   	select HMM_MIRROR
>   	select MMU_NOTIFIER
>   	select DRM_AMDGPU_USERPTR

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/amdkfd: enable kfd on LoongArch systems
  2025-07-07 22:12 ` Felix Kuehling
@ 2025-07-09  6:34   ` Han Gao
  0 siblings, 0 replies; 3+ messages in thread
From: Han Gao @ 2025-07-09  6:34 UTC (permalink / raw)
  To: Felix Kuehling
  Cc: Alex Deucher, Christian König, David Airlie, Simona Vetter,
	amd-gfx, dri-devel, linux-kernel, loongarch

On Tue, Jul 8, 2025 at 6:12 AM Felix Kuehling <felix.kuehling@amd.com> wrote:
>
> On 2025-07-05 04:05, Han Gao wrote:
> > KFD has been confirmed that can run on LoongArch systems.
> > It's necessary to support CONFIG_HSA_AMD on LoongArch.
> >
> > Signed-off-by: Han Gao <rabenda.cn@gmail.com>
> > ---
> >   drivers/gpu/drm/amd/amdkfd/Kconfig | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/amd/amdkfd/Kconfig b/drivers/gpu/drm/amd/amdkfd/Kconfig
> > index 62e88e5362e9..b2387d529bf0 100644
> > --- a/drivers/gpu/drm/amd/amdkfd/Kconfig
> > +++ b/drivers/gpu/drm/amd/amdkfd/Kconfig
> > @@ -5,7 +5,7 @@
> >
> >   config HSA_AMD
> >       bool "HSA kernel driver for AMD GPU devices"
> > -     depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || (RISCV && 64BIT))
> > +     depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || (RISCV && 64BIT) || LOONGARCH)
>
> Is LOONGARCH always 64-bit? If not, please make this (LOONGARCH && 64BIT).
Got it, will submit v2 later.
>
> Other than that, I have no objections to applying this patch.
>
> Regards,
>    Felix
>
>
> >       select HMM_MIRROR
> >       select MMU_NOTIFIER
> >       select DRM_AMDGPU_USERPTR

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-09  6:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-05  8:05 [PATCH] drm/amdkfd: enable kfd on LoongArch systems Han Gao
2025-07-07 22:12 ` Felix Kuehling
2025-07-09  6:34   ` Han Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®