]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Don't read ADPA_CRT_HOTPLUG_MONITOR from host
authorXiong Zhang <xiong.y.zhang@intel.com>
Tue, 27 Jun 2017 18:03:16 +0000 (02:03 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 27 Jun 2017 09:29:25 +0000 (17:29 +0800)
commita85e69e5d812aa12b3c6c8d84b80bbe25dba21fa
tree31f4cdcf54a1f07ef220bbfec3ce60d74acfc314
parent91718a5991aa75cd3747475c583bfeed4475f688
drm/i915/gvt: Don't read ADPA_CRT_HOTPLUG_MONITOR from host

When host connects a crt screen, linux guest will detect two
screens: crt and dp. This is wrong as linux guest has only
one dp.

In order to avoid guest get host crt screen, we should set
ADPA_CRT_HOTPLUG_MONITOR to none. But MMIO_RO(PCH_ADPA) prevent
from that. So MMIO_DH should be used instead of MMIO_RO.

v2: Clear its staus to none at initialize, so guest don't
    get host crt.(Zhangyu)
v3: SKL doesn't have this register, limit it to pre_skl.(xiong)

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/handlers.c