[PATCH 2/2] drm/i915/gvt: Don't read ADPA_CRT_HOTPLUG_MONITOR from host

Zhenyu Wang zhenyuw at linux.intel.com
Fri Jun 23 07:45:15 UTC 2017


On 2017.06.20 11:37:23 +0800, Xiong Zhang wrote:
> When host connect 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 this. So MMIO_DH should be used instead of MMIO_RO.
> 
> Signed-off-by: Xiong Zhang <xiong.y.zhang at intel.com>
> ---
>  drivers/gpu/drm/i915/gvt/handlers.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
> index 973396b..89f2a9d 100644
> --- a/drivers/gpu/drm/i915/gvt/handlers.c
> +++ b/drivers/gpu/drm/i915/gvt/handlers.c
> @@ -1898,7 +1898,7 @@ static int init_generic_mmio_info(struct intel_gvt *gvt)
>  	MMIO_F(_PCH_DPD_AUX_CH_CTL, 6 * 4, 0, 0, 0, D_PRE_SKL, NULL,
>  		dp_aux_ch_ctl_mmio_write);
>  
> -	MMIO_RO(PCH_ADPA, D_ALL, 0, ADPA_CRT_HOTPLUG_MONITOR_MASK, NULL, pch_adpa_mmio_write);
> +	MMIO_DH(PCH_ADPA, D_ALL, NULL, pch_adpa_mmio_write);
>  

so this will still depend on whether host machine has vga connect or not?
We should force to return no vga whatever host has.

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170623/122f7aa0/attachment.sig>


More information about the intel-gvt-dev mailing list