]> 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>
Mon, 11 Dec 2017 09:23:11 +0000 (17:23 +0800)
commitf5f00e7dcc4161f07b76ff1a854e8b1ea7a1ed41
tree23b9198b1ba88d266562a854242ff20241a5f3e8
parent11474e9091cf2002e948647fd9f63a7f027e488a
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: 7e6059020894 ("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>
drivers/gpu/drm/i915/gvt/display.c