]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Fix pipe A enable as default for vgpu
authorXiaolin Zhang <xiaolin.zhang@intel.com>
Tue, 5 Dec 2017 06:45:32 +0000 (14:45 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 22 Dec 2017 08:33:00 +0000 (16:33 +0800)
commitb56a457160b9bc306ab939c01e039ab2f778786c
tree2a0153c0b2cb561970bb0284e22b2e50a2be560f
parentf75d1f2f92ea299e56af88a8141a46ab0154cfc0
drm/i915/gvt: Fix pipe A enable as default for vgpu

observed igt drv_module_reload test case failure on 4.15.0
rc2 kernel with panic due to no active pipe available.

the gpu will reset during unload/load and make pipe config reg
lost which can cause kernel panic issue happen.

this patch is to move pipe enabling to emulate_mointor_status_chagne
to handle vgpu reset case as well.

Fixes: 437ad45d6b50 ("drm/i915/gvt: enabled pipe A default on creating vgpu")
Signed-off-by: Xiaolin Zhang <xiaolin.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
(cherry picked from commit e84be34a9997c1e2ba6b38663006fcdf51a3cfdc)
drivers/gpu/drm/i915/gvt/display.c