diff options
author | José Roberto de Souza <jose.souza@intel.com> | 2020-11-06 14:55:26 -0800 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2020-11-11 11:50:45 -0800 |
commit | 2c5688057f7011a0d75b2e1189695912e232b64c (patch) | |
tree | f1be196ce66fe2985cd05b7776a02b9d492d953a /drivers/gpu/drm/i915 | |
parent | e669ad6f1cef3f2b582ab7cab64cc90fd327348d (diff) | |
download | linux-2c5688057f7011a0d75b2e1189695912e232b64c.tar.bz2 |
drm/i915/display: Do not reset display when there is none
Display is always disabled and enabled when resetting any engine, but if
there is no display it should not do anything with display and only
reset the needed engines.
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201106225531.920641-3-lucas.demarchi@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_display.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 3e0b2849ec2a..3bf3088b0091 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -4858,6 +4858,9 @@ void intel_display_prepare_reset(struct drm_i915_private *dev_priv) struct drm_atomic_state *state; int ret; + if (!HAS_DISPLAY(dev_priv)) + return; + /* reset doesn't touch the display */ if (!dev_priv->params.force_reset_modeset_test && !gpu_reset_clobbers_display(dev_priv)) @@ -4918,6 +4921,9 @@ void intel_display_finish_reset(struct drm_i915_private *dev_priv) struct drm_atomic_state *state; int ret; + if (!HAS_DISPLAY(dev_priv)) + return; + /* reset doesn't touch the display */ if (!test_bit(I915_RESET_MODESET, &dev_priv->gt.reset.flags)) return; |