[PATCH] drm/i915/gvt: Fix guest fail to read EDID leading to black guest console issue.

Zhenyu Wang zhenyuw at linux.intel.com
Tue Mar 21 02:51:17 UTC 2017


On 2017.03.21 10:00:59 +0800, Xu Han wrote:
> It appears missing slaves on the i2c should cause 0xff to be returned
> rather than 0. So, when the Windows driver tried to address a slave
> at 0x40 and got 0’s back rather than 0xff’s it must have confused it.
> 
> Signed-off-by: Paul Durrant <Paul.Durrant at citrix.com>
> Signed-off-by: Xu Han <xu.han at intel.com>
> ---

applied for fixes, thanks!

>  drivers/gpu/drm/i915/gvt/edid.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/edid.c b/drivers/gpu/drm/i915/gvt/edid.c
> index f1648fe..42cd09ec 100644
> --- a/drivers/gpu/drm/i915/gvt/edid.c
> +++ b/drivers/gpu/drm/i915/gvt/edid.c
> @@ -495,7 +495,8 @@ void intel_gvt_i2c_handle_aux_ch_write(struct intel_vgpu *vgpu,
>  			unsigned char val = edid_get_byte(vgpu);
>  
>  			aux_data_for_write = (val << 16);
> -		}
> +		} else
> +			aux_data_for_write = (0xff << 16);
>  	}
>  	/* write the return value in AUX_CH_DATA reg which includes:
>  	 * ACK of I2C_WRITE
> -- 
> 1.9.1
> 
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev

-- 
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: 163 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170321/9c22aa03/attachment.sig>


More information about the intel-gvt-dev mailing list