mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/amdkfd: enable kfd on RISCV systems
@ 2025-04-27  1:25 liu.song13
  2025-04-28 14:17 ` Felix Kuehling
  0 siblings, 1 reply; 3+ messages in thread
From: liu.song13 @ 2025-04-27  1:25 UTC (permalink / raw)
  To: felix.kuehling
  Cc: alexander.deucher, christian.koenig, airlied, simona, amd-gfx,
	dri-devel, linux-kernel, liu.xuemei1, jiang.xuexin, xue.zhihong

From: Xuemei Liu <liu.xuemei1@zte.com.cn>

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

Signed-off-by: Xuemei Liu <liu.xuemei1@zte.com.cn>
---
 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 d3c3d3ab7225..9d4a5f8ef43f 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)
+ depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || RISCV)
  select HMM_MIRROR
  select MMU_NOTIFIER
  select DRM_AMDGPU_USERPTR
-- 
2.25.1

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

* Re: [PATCH] drm/amdkfd: enable kfd on RISCV systems
  2025-04-27  1:25 [PATCH] drm/amdkfd: enable kfd on RISCV systems liu.song13
@ 2025-04-28 14:17 ` Felix Kuehling
  2025-04-29  9:29   ` liu.song13
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Kuehling @ 2025-04-28 14:17 UTC (permalink / raw)
  To: liu.song13
  Cc: alexander.deucher, christian.koenig, airlied, simona, amd-gfx,
	dri-devel, linux-kernel, liu.xuemei1, jiang.xuexin, xue.zhihong

On 2025-04-26 21:25, liu.song13@zte.com.cn wrote:
> From: Xuemei Liu <liu.xuemei1@zte.com.cn>
>
> KFD has been confirmed that can run on RISCV systems. It's necessary to
> support CONFIG_HSA_AMD on RISCV.

Is there a public user mode branch with any changes needed to make ROCm 
user mode work with RISCV?

One more question inline.


> Signed-off-by: Xuemei Liu <liu.xuemei1@zte.com.cn>
> ---
>   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 d3c3d3ab7225..9d4a5f8ef43f 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)
> + depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || RISCV)

The KFD memory model only works on 64-bit architectures. Is there a way 
to express that in the RISCV dependency?

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 RISCV systems
  2025-04-28 14:17 ` Felix Kuehling
@ 2025-04-29  9:29   ` liu.song13
  0 siblings, 0 replies; 3+ messages in thread
From: liu.song13 @ 2025-04-29  9:29 UTC (permalink / raw)
  To: felix.kuehling
  Cc: alexander.deucher, christian.koenig, airlied, simona, amd-gfx,
	dri-devel, linux-kernel, liu.xuemei1, jiang.xuexin, xue.zhihong

>> From: Xuemei Liu <liu.xuemei1@zte.com.cn>
>>
>> KFD has been confirmed that can run on RISCV systems. It's necessary to
>> support CONFIG_HSA_AMD on RISCV.
> 
> Is there a public user mode branch with any changes needed to make ROCm 
> user mode work with RISCV?
> 
> One more question inline.
> 
> 
>> Signed-off-by: Xuemei Liu <liu.xuemei1@zte.com.cn>
>> ---
>>   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 d3c3d3ab7225..9d4a5f8ef43f 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)
>> + depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64 || RISCV)
> 
> The KFD memory model only works on 64-bit architectures. Is there a way 
> to express that in the RISCV dependency?
> 
> Regards,
>   Felix

Dear Felix:

  Thanks for your feedback.
  Regarding the issues you've pointed out:
  1. The adaptation work of ROCm user mode work on RISCV was done by my collegue. He replied that he made no changes in ROCm code.
  2. I will send patch-v2 to satisfy KFD only work on 64-bit architectures.

Best regards,
  Xuemei

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

end of thread, other threads:[~2025-04-29 13:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-27  1:25 [PATCH] drm/amdkfd: enable kfd on RISCV systems liu.song13
2025-04-28 14:17 ` Felix Kuehling
2025-04-29  9:29   ` liu.song13

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®