projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6922f4
)
drm/i915/xelpd: Required bandwidth increases when VT-d is active
author
Matt Roper
<matthew.d.roper@intel.com>
Wed, 12 May 2021 04:21:41 +0000
(21:21 -0700)
committer
Matt Roper
<matthew.d.roper@intel.com>
Wed, 12 May 2021 23:56:49 +0000
(16:56 -0700)
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
drivers/gpu/drm/i915/display/intel_bw.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/display/intel_bw.c
b/drivers/gpu/drm/i915/display/intel_bw.c
index 9691697436305f915c908e1afa6c47e77a59e8c4..a35435083b601a78a59adc4fa113101a83e5e10e 100644
(file)
--- 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;
}