summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_bw.c
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2021-05-11 21:21:41 -0700
committerMatt Roper <matthew.d.roper@intel.com>2021-05-12 16:56:49 -0700
commit0788abdef6d1103c3a1d41ddd1fa536ca26479d6 (patch)
treea997a5398ec7009abde4656f61215764372179b9 /drivers/gpu/drm/i915/display/intel_bw.c
parenta6922f4a01300efa0cccc0f337da4431dedf501c (diff)
downloadlinux-0788abdef6d1103c3a1d41ddd1fa536ca26479d6.tar.gz
linux-0788abdef6d1103c3a1d41ddd1fa536ca26479d6.tar.bz2
linux-0788abdef6d1103c3a1d41ddd1fa536ca26479d6.zip
drm/i915/xelpd: Required bandwidth increases when VT-d is active
If VT-d is active, the memory bandwidth usage of the display is 5% higher. Take this into account when determining whether we can support a display configuration. Bspec: 64631 Cc: Matt Atwood <matthew.s.atwood@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Anusha Srivatsa <anusha.srivatsa@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210512042144.2089071-5-matthew.d.roper@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_bw.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_bw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c
index 969169743630..a35435083b60 100644
--- a/drivers/gpu/drm/i915/display/intel_bw.c
+++ b/drivers/gpu/drm/i915/display/intel_bw.c
@@ -344,6 +344,9 @@ static unsigned int intel_bw_data_rate(struct drm_i915_private *dev_priv,
for_each_pipe(dev_priv, pipe)
data_rate += bw_state->data_rate[pipe];
+ if (DISPLAY_VER(dev_priv) >= 13 && intel_vtd_active())
+ data_rate = data_rate * 105 / 100;
+
return data_rate;
}