amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: extend xnack limit page fault timeout
@ 2021-04-19 17:22 Alex Sierra
  2021-04-19 18:53 ` Felix Kuehling
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Sierra @ 2021-04-19 17:22 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Sierra

Extending this timeout will prevent IH from storm interrupts coming
from SDMA while a page fault is active. Currently, on Aldebaran,
handling that many interrupts can take a lot of CPU time
(up to 4 seconds).
This eventually causes timeouts in other tasks.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index 5715be6770ec..823a367990bf 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -1109,6 +1109,8 @@ static void sdma_v4_0_ctx_switch_enable(struct amdgpu_device *adev, bool enable)
 		if (adev->asic_type == CHIP_ARCTURUS &&
 		    adev->sdma.instance[i].fw_version >= 14)
 			WREG32_SDMA(i, mmSDMA0_PUB_DUMMY_REG2, enable);
+		/* Extend page fault timeout to avoid interrupt storm */
+		WREG32_SDMA(i, mmSDMA0_UTCL1_TIMEOUT, 0x00800080);
 	}
 
 }
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] drm/amdgpu: extend xnack limit page fault timeout
  2021-04-19 17:22 [PATCH] drm/amdgpu: extend xnack limit page fault timeout Alex Sierra
@ 2021-04-19 18:53 ` Felix Kuehling
  0 siblings, 0 replies; 2+ messages in thread
From: Felix Kuehling @ 2021-04-19 18:53 UTC (permalink / raw)
  To: Alex Sierra, amd-gfx


Am 2021-04-19 um 1:22 p.m. schrieb Alex Sierra:
> Extending this timeout will prevent IH from storm interrupts coming
> from SDMA while a page fault is active. Currently, on Aldebaran,
> handling that many interrupts can take a lot of CPU time
> (up to 4 seconds).
> This eventually causes timeouts in other tasks.
>
> Signed-off-by: Alex Sierra <alex.sierra@amd.com>

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>


> ---
>  drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> index 5715be6770ec..823a367990bf 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> @@ -1109,6 +1109,8 @@ static void sdma_v4_0_ctx_switch_enable(struct amdgpu_device *adev, bool enable)
>  		if (adev->asic_type == CHIP_ARCTURUS &&
>  		    adev->sdma.instance[i].fw_version >= 14)
>  			WREG32_SDMA(i, mmSDMA0_PUB_DUMMY_REG2, enable);
> +		/* Extend page fault timeout to avoid interrupt storm */
> +		WREG32_SDMA(i, mmSDMA0_UTCL1_TIMEOUT, 0x00800080);
>  	}
>  
>  }
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2021-04-19 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19 17:22 [PATCH] drm/amdgpu: extend xnack limit page fault timeout Alex Sierra
2021-04-19 18:53 ` Felix Kuehling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).