Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Gustavo Sousa <gustavo.sousa@intel.com>
To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: [PATCH 3/3] drm/i915/xe3lpd: Update bandwidth parameters
Date: Thu,  6 Feb 2025 16:21:30 -0300	[thread overview]
Message-ID: <20250206192148.53610-4-gustavo.sousa@intel.com> (raw)
In-Reply-To: <20250206192148.53610-1-gustavo.sousa@intel.com>

Bandwidth parameters for Xe3_LPD have been updated with respect to
previous display releases. Encode them into xe3lpd_sa_info and use that
new struct.

Bspec: 68859
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
---
 drivers/gpu/drm/i915/display/intel_bw.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c
index e52c66eca93d..9937fb10ebf3 100644
--- a/drivers/gpu/drm/i915/display/intel_bw.c
+++ b/drivers/gpu/drm/i915/display/intel_bw.c
@@ -404,6 +404,13 @@ static const struct intel_sa_info xe2_hpd_sa_info = {
 	/* Other values not used by simplified algorithm */
 };
 
+static const struct intel_sa_info xe3lpd_sa_info = {
+	.deburst = 32,
+	.deprogbwlimit = 65, /* GB/s */
+	.displayrtids = 256,
+	.derating = 10,
+};
+
 static int icl_get_bw_info(struct drm_i915_private *dev_priv, const struct intel_sa_info *sa)
 {
 	struct intel_display *display = &dev_priv->display;
@@ -759,7 +766,9 @@ void intel_bw_init_hw(struct drm_i915_private *dev_priv)
 	if (!HAS_DISPLAY(display))
 		return;
 
-	if (DISPLAY_VERx100(display) >= 1401 && display->platform.dgfx)
+	if (DISPLAY_VER(display) >= 30)
+		tgl_get_bw_info(dev_priv, &xe3lpd_sa_info);
+	else if (DISPLAY_VERx100(display) >= 1401 && display->platform.dgfx)
 		xe2_hpd_get_bw_info(dev_priv, &xe2_hpd_sa_info);
 	else if (DISPLAY_VER(display) >= 14)
 		tgl_get_bw_info(dev_priv, &mtl_sa_info);
-- 
2.48.1


  parent reply	other threads:[~2025-02-06 19:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-06 19:21 [PATCH 0/3] drm/i915/xe3lpd: Update bandwidth parameters Gustavo Sousa
2025-02-06 19:21 ` [PATCH 1/3] drm/i915/display: Use display variable in intel_bw.c Gustavo Sousa
2025-02-06 19:21 ` [PATCH 2/3] drm/i915/display: Use display-specific platform checks " Gustavo Sousa
2025-02-07 16:22   ` Gustavo Sousa
2025-02-06 19:21 ` Gustavo Sousa [this message]
2025-02-06 21:50 ` ✓ CI.Patch_applied: success for drm/i915/xe3lpd: Update bandwidth parameters Patchwork
2025-02-06 21:50 ` ✓ CI.checkpatch: " Patchwork
2025-02-06 21:51 ` ✓ CI.KUnit: " Patchwork
2025-02-06 22:08 ` ✓ CI.Build: " Patchwork
2025-02-06 22:10 ` ✓ CI.Hooks: " Patchwork
2025-02-06 22:12 ` ✓ CI.checksparse: " Patchwork
2025-02-07  4:35 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-10  7:07 ` ✗ Xe.CI.Full: failure " Patchwork

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=20250206192148.53610-4-gustavo.sousa@intel.com \
    --to=gustavo.sousa@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@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