]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display: Handle lost primary_port across suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Jul 2019 14:09:50 +0000 (15:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 09:09:58 +0000 (10:09 +0100)
commit5542449f711535c06172f8b518944e7ff3b649a4
tree7745a5fdeeb71b4702896107a80289dc39b380a9
parent3962fbda8d4e787e4bc5945cd15cb35cd0c6f653
drm/i915/display: Handle lost primary_port across suspend

icl-dsi is dying on suspend/resume at

RIP: 0010:icl_update_active_dpll+0x2c/0xa0 [i915]

which appears due to the loss of the time primary_port across suspend.
Protect against the potential NULL dereference by assuming
ICL_PORT_DPLL_DEFAULT unless the port is actively specified otherwise.

Fixes: 976788759593 ("drm/i915: Keep the TypeC port mode fixed when the port is active")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190702140950.7069-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/display/intel_dpll_mgr.c