All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mdkfd: To flush tlb for MMHUB of GFX9 series
@ 2022-06-22  6:45 Ji, Ruili
  2022-06-22  6:57 ` Liu, Aaron
  2022-06-22 13:34 ` philip yang
  0 siblings, 2 replies; 3+ messages in thread
From: Ji, Ruili @ 2022-06-22  6:45 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher, Philip Yang, Ruili Ji, Aaron Liu

From: Ruili Ji <ruiliji2@amd.com>

amdgpu: [mmhub0] no-retry page fault (src_id:0 ring:40 vmid:8 pasid:32769, for process test_basic pid 3305 thread test_basic pid 3305)
amdgpu: in page starting at address 0x00007ff990003000 from IH client 0x12 (VMC)
amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00840051
amdgpu: Faulty UTCL2 client ID: MP1 (0x0)
amdgpu: MORE_FAULTS: 0x1
amdgpu: WALKER_ERROR: 0x0
amdgpu: PERMISSION_FAULTS: 0x5
amdgpu: MAPPING_ERROR: 0x0
amdgpu: RW: 0x1

When memory is allocated by kfd, no one triggers the tlb flush for MMHUB0.
There is page fault from MMHUB0.

v2:fix indentation

Signed-off-by: Ruili Ji <ruiliji2@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
index 1d0c9762ebfb..1dfd82d5d379 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
@@ -739,7 +739,8 @@ int amdgpu_amdkfd_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
 {
 	bool all_hub = false;
 
-	if (adev->family == AMDGPU_FAMILY_AI)
+	if (adev->family == AMDGPU_FAMILY_AI ||
+                 adev->family == AMDGPU_FAMILY_RV)
 		all_hub = true;
 
 	return amdgpu_gmc_flush_gpu_tlb_pasid(adev, pasid, flush_type, all_hub);
-- 
2.25.1


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

* RE: [PATCH v2] mdkfd: To flush tlb for MMHUB of GFX9 series
  2022-06-22  6:45 [PATCH v2] mdkfd: To flush tlb for MMHUB of GFX9 series Ji, Ruili
@ 2022-06-22  6:57 ` Liu, Aaron
  2022-06-22 13:34 ` philip yang
  1 sibling, 0 replies; 3+ messages in thread
From: Liu, Aaron @ 2022-06-22  6:57 UTC (permalink / raw)
  To: Ji, Ruili, amd-gfx; +Cc: Deucher, Alexander, Yang, Philip

[AMD Official Use Only - General]

Reviewed-by: Aaron Liu <aaron.liu@amd.com>

> -----Original Message-----
> From: Ji, Ruili <Ruili.Ji@amd.com>
> Sent: Wednesday, June 22, 2022 2:46 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: Liu, Aaron <Aaron.Liu@amd.com>; Ji, Ruili <Ruili.Ji@amd.com>; Yang,
> Philip <Philip.Yang@amd.com>; Deucher, Alexander
> <Alexander.Deucher@amd.com>
> Subject: [PATCH v2] mdkfd: To flush tlb for MMHUB of GFX9 series
> 
> From: Ruili Ji <ruiliji2@amd.com>
> 
> amdgpu: [mmhub0] no-retry page fault (src_id:0 ring:40 vmid:8 pasid:32769,
> for process test_basic pid 3305 thread test_basic pid 3305)
> amdgpu: in page starting at address 0x00007ff990003000 from IH client 0x12
> (VMC)
> amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00840051
> amdgpu: Faulty UTCL2 client ID: MP1 (0x0)
> amdgpu: MORE_FAULTS: 0x1
> amdgpu: WALKER_ERROR: 0x0
> amdgpu: PERMISSION_FAULTS: 0x5
> amdgpu: MAPPING_ERROR: 0x0
> amdgpu: RW: 0x1
> 
> When memory is allocated by kfd, no one triggers the tlb flush for MMHUB0.
> There is page fault from MMHUB0.
> 
> v2:fix indentation
> 
> Signed-off-by: Ruili Ji <ruiliji2@amd.com>
> Reviewed-by: Philip Yang <philip.yang@amd.com>
> Acked-by: Alex Deucher <alexander.deucher@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> index 1d0c9762ebfb..1dfd82d5d379 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> @@ -739,7 +739,8 @@ int amdgpu_amdkfd_flush_gpu_tlb_pasid(struct
> amdgpu_device *adev,  {
>  	bool all_hub = false;
> 
> -	if (adev->family == AMDGPU_FAMILY_AI)
> +	if (adev->family == AMDGPU_FAMILY_AI ||
> +                 adev->family == AMDGPU_FAMILY_RV)
>  		all_hub = true;
> 
>  	return amdgpu_gmc_flush_gpu_tlb_pasid(adev, pasid, flush_type,
> all_hub);
> --
> 2.25.1

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

* Re: [PATCH v2] mdkfd: To flush tlb for MMHUB of GFX9 series
  2022-06-22  6:45 [PATCH v2] mdkfd: To flush tlb for MMHUB of GFX9 series Ji, Ruili
  2022-06-22  6:57 ` Liu, Aaron
@ 2022-06-22 13:34 ` philip yang
  1 sibling, 0 replies; 3+ messages in thread
From: philip yang @ 2022-06-22 13:34 UTC (permalink / raw)
  To: Ji, Ruili, amd-gfx; +Cc: Alex Deucher, Philip Yang, Ruili Ji, Aaron Liu

[-- Attachment #1: Type: text/html, Size: 2518 bytes --]

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

end of thread, other threads:[~2022-06-22 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22  6:45 [PATCH v2] mdkfd: To flush tlb for MMHUB of GFX9 series Ji, Ruili
2022-06-22  6:57 ` Liu, Aaron
2022-06-22 13:34 ` philip yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.