All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: reduce the full access time by about 50ms
@ 2020-12-24  6:04 pengzhou
  2020-12-24 22:44 ` Paul Menzel
  2020-12-25  4:20 ` Deng, Emily
  0 siblings, 2 replies; 6+ messages in thread
From: pengzhou @ 2020-12-24  6:04 UTC (permalink / raw)
  To: amd-gfx

The function msleep(1) can be delay to 10+ ms sometimes,
which contributes a big delay during the full access time.

Changing msleep(1) to usleep_range(10, 100)
and it can reduce about 50ms delay during full access time.

Signed-off-by: pengzhou <PengJu.Zhou@amd.com>
Change-Id: I151a07c55068d5c429553ef0e6668f024c0c0f3d
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 523d22db094b..ef69051681cf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -282,7 +282,7 @@ psp_cmd_submit_buf(struct psp_context *psp,
 		ras_intr = amdgpu_ras_intr_triggered();
 		if (ras_intr)
 			break;
-		msleep(1);
+		usleep_range(10, 100);
 		amdgpu_asic_invalidate_hdp(psp->adev, NULL);
 	}
 
-- 
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] 6+ messages in thread

end of thread, other threads:[~2020-12-31  5:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-24  6:04 [PATCH] drm/amdgpu: reduce the full access time by about 50ms pengzhou
2020-12-24 22:44 ` Paul Menzel
2020-12-25  6:34   ` Zhou, Peng Ju
2020-12-25 10:53     ` Paul Menzel
2020-12-31  5:15       ` Zhou, Peng Ju
2020-12-25  4:20 ` Deng, Emily

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.