projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dadb4a
)
drm/i915/wm: warn about ilk_wm_sanitize() on display ver 9+
author
Jani Nikula
<jani.nikula@intel.com>
Wed, 15 Feb 2023 14:19:07 +0000
(16:19 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Thu, 16 Feb 2023 14:46:35 +0000
(16:46 +0200)
The sanitization should be limited to PCH split platforms up to display
version 8. Warn and bail out otherwise.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230215141910.433043-2-jani.nikula@intel.com
drivers/gpu/drm/i915/display/i9xx_wm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/display/i9xx_wm.c
b/drivers/gpu/drm/i915/display/i9xx_wm.c
index f76ac64ebd714dff439799708004e077e834df80..50cdfe11192e7d994471858abe95e0f3e0cf8b5e 100644
(file)
--- a/
drivers/gpu/drm/i915/display/i9xx_wm.c
+++ b/
drivers/gpu/drm/i915/display/i9xx_wm.c
@@
-3437,6
+3437,9
@@
void ilk_wm_sanitize(struct drm_i915_private *dev_priv)
if (!dev_priv->display.funcs.wm->optimize_watermarks)
return;
+ if (drm_WARN_ON(&dev_priv->drm, DISPLAY_VER(dev_priv) >= 9))
+ return;
+
state = drm_atomic_state_alloc(&dev_priv->drm);
if (drm_WARN_ON(&dev_priv->drm, !state))
return;