drm/i915/gvt: Init DPLL/DDI vreg for virtual display instead of inheritance.
authorColin Xu <colin.xu@intel.com>
Fri, 8 May 2020 06:05:06 +0000 (14:05 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Sat, 9 May 2020 02:24:17 +0000 (10:24 +0800)
commitf965b68188ab59a40a421ced1b05a2fea638465c
tree2819fffa7317a1dd4ab1c6504cb4ac3b02601ed6
parentec7301d5146c9abe8aaf6e16e420ea3951018503
drm/i915/gvt: Init DPLL/DDI vreg for virtual display instead of inheritance.

Init value of some display vregs rea inherited from host pregs. When
host display in different status, i.e. all monitors unpluged, different
display configurations, etc., GVT virtual display setup don't consistent
thus may lead to guest driver consider display goes malfunctional.

The added init vreg values are based on PRMs and fixed by calcuation
from current configuration (only PIPE_A) and the virtual EDID.

Fixes: 04d348ae3f0a ("drm/i915/gvt: vGPU display virtualization")
Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200508060506.216250-1-colin.xu@intel.com
drivers/gpu/drm/i915/gvt/display.c