]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/psr: Mask PSR irq bits when re-enabling interrupts.
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Tue, 21 Aug 2018 22:11:56 +0000 (15:11 -0700)
committerDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Wed, 22 Aug 2018 00:55:11 +0000 (17:55 -0700)
commit1aeb1b5fa069f7d7a0de3ac8a33547014613fc7a
tree2f027e6767af89738f6b43627910b52a36b5fe6e
parent9844d4bf3eb46778f46390d7beee5add650d5fc0
drm/i915/psr: Mask PSR irq bits when re-enabling interrupts.

gen8_de_irq_postinstall() wasn't masking the IRQ bit before passing the
debug flag to psr_irq_control(). This check was missed when new debug bits
were defined in  'commit c44301fce614 ("drm/i915: Allow control of PSR at
runtime through debugfs, v6")'. Instead of ANDing the irq bit in all the
callers, move it to the callee.

v2: Rebased.

Fixes: c44301fce614 ("drm/i915: Allow control of PSR at runtime through
debugfs, v6")
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180821221156.2442-3-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_psr.c