AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexander.deucher@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Alex Deucher <alexander.deucher@amd.com>
Subject: [PATCH 1/4] drm/amdgpu: add SDMA process quantum settings
Date: Wed, 18 Mar 2026 10:10:09 -0400	[thread overview]
Message-ID: <20260318141012.583021-1-alexander.deucher@amd.com> (raw)

Will be used for programming the engine quantums.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
index 2bf365609775a..c0424e00ac591 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
@@ -28,6 +28,12 @@
 /* max number of IP instances */
 #define AMDGPU_MAX_SDMA_INSTANCES		16
 
+/* value * 100us */
+#define AMDGPU_SDMA_CONTEXT_QUANTUM 2
+#define AMDGPU_SDMA_FOCUS_QUANTUM 4
+#define AMDGPU_SDMA_NORMAL_QUANTUM 4
+#define AMDGPU_SDMA_PROCESS_QUANTUM 4
+
 enum amdgpu_sdma_irq {
 	AMDGPU_SDMA_IRQ_INSTANCE0  = 0,
 	AMDGPU_SDMA_IRQ_INSTANCE1,
-- 
2.53.0


             reply	other threads:[~2026-03-18 14:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-18 14:10 Alex Deucher [this message]
2026-03-18 14:10 ` [PATCH 2/4] drm/amdgpu/sdma6: program quantums Alex Deucher
2026-03-18 14:10 ` [PATCH 3/4] drm/amdgpu/sdma7: " Alex Deucher
2026-03-18 14:10 ` [PATCH 4/4] drm/amdgpu/sdma7.1: " Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260318141012.583021-1-alexander.deucher@amd.com \
    --to=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox