From: Vinod Govindapillai <vinod.govindapillai@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [Intel-gfx] [PATCH 1/1] drm/i915: Handle the DG2 max bw properly
Date: Tue, 22 Mar 2022 14:43:08 +0200 [thread overview]
Message-ID: <20220322124308.308300-2-vinod.govindapillai@intel.com> (raw)
In-Reply-To: <20220322124308.308300-1-vinod.govindapillai@intel.com>
Separate the max bw call for DG2 as it has a constant bandwidth
regardless of the number of planes enabled.
cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@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 395e48930b08..f1e1feb8db06 100644
--- a/drivers/gpu/drm/i915/display/intel_bw.c
+++ b/drivers/gpu/drm/i915/display/intel_bw.c
@@ -538,6 +538,13 @@ static unsigned int tgl_max_bw(struct drm_i915_private *dev_priv,
return dev_priv->max_bw[0].deratedbw[qgv_point];
}
+static unsigned int dg2_max_bw(struct drm_i915_private *i915)
+{
+ struct intel_bw_info *bi = &i915->max_bw[0];
+
+ return bi->deratedbw[0];
+}
+
static unsigned int adl_psf_bw(struct drm_i915_private *dev_priv,
int psf_gv_point)
{
@@ -931,7 +938,9 @@ int intel_bw_atomic_check(struct intel_atomic_state *state)
for (i = 0; i < num_qgv_points; i++) {
unsigned int max_data_rate;
- if (DISPLAY_VER(dev_priv) > 11)
+ if (IS_DG2(dev_priv))
+ max_data_rate = dg2_max_bw(dev_priv);
+ else if (DISPLAY_VER(dev_priv) > 11)
max_data_rate = tgl_max_bw(dev_priv, num_active_planes, i);
else
max_data_rate = icl_max_bw(dev_priv, num_active_planes, i);
--
2.25.1
next prev parent reply other threads:[~2022-03-22 12:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-22 12:43 [Intel-gfx] [PATCH 0/1] [PATCH 0/1] Handle the DG2 max bw properly Vinod Govindapillai
2022-03-22 12:43 ` Vinod Govindapillai [this message]
2022-03-24 8:39 ` [Intel-gfx] [PATCH 1/1] drm/i915: " Murthy, Arun R
2022-03-24 23:26 ` Govindapillai, Vinod
2022-03-22 13:47 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork
2022-03-22 14:12 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-03-22 20:18 ` [Intel-gfx] ✗ Fi.CI.IGT: 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=20220322124308.308300-2-vinod.govindapillai@intel.com \
--to=vinod.govindapillai@intel.com \
--cc=intel-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