]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Keep PSR disabled after a driver reload after a PSR error
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 21 Nov 2018 22:54:40 +0000 (14:54 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 22 Nov 2018 21:51:19 +0000 (13:51 -0800)
commit522132114ff1b840ed3f42d6db8ba1113ae7e38c
tree0bfbc64aa3108d29415ccadc8cb85de7295abd01
parent27ea5719c8fe082c5a77614fe9ca279cc1f125b3
drm/i915: Keep PSR disabled after a driver reload after a PSR error

If a PSR error happened and the driver is reloaded, the EDP_PSR_IIR
will still keep the error set even after the reset done in the
irq_preinstall and irq_uninstall hooks.
And enabling in this situation cause the screen to freeze in the
first time that PSR HW tries to activate so lets keep PSR disabled
to avoid any rendering problems.

v5: rebased: using edp_psr_shift()

v4: Moved handling from intel_psr_compute_config() to
intel_psr_init() to avoid hardware access during compute(Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
squash
Link: https://patchwork.freedesktop.org/patch/msgid/20181121225441.18785-5-jose.souza@intel.com
drivers/gpu/drm/i915/intel_psr.c