[PATCH] drm/i915/gvt: Fix dma-buf display blur issue on CFL

Zhenyu Wang zhenyuw at linux.intel.com
Thu Feb 27 09:45:09 UTC 2020


On 2020.02.27 09:00:41 +0800, Tina Zhang wrote:
> Commit c3b5a8430daad ("drm/i915/gvt: Enable gfx virtualiztion for CFL")
> added the support on CFL. The vgpu emulation hotplug support on CFL was
> supposed to be included in that patch. Without the vgpu emulation
> hotplug support, the dma-buf based display gives us a blur face.
> 
> So fix this issue by adding the vgpu emulation hotplug support on CFL.
> 
> Fixes: c3b5a8430daad ("drm/i915/gvt: Enable gfx virtualiztion for CFL")
> Signed-off-by: Tina Zhang <tina.zhang at intel.com>
> ---
>  drivers/gpu/drm/i915/gvt/display.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/display.c b/drivers/gpu/drm/i915/gvt/display.c
> index 9bfc0ae30157..14e139e66e45 100644
> --- a/drivers/gpu/drm/i915/gvt/display.c
> +++ b/drivers/gpu/drm/i915/gvt/display.c
> @@ -459,7 +459,8 @@ void intel_vgpu_emulate_hotplug(struct intel_vgpu *vgpu, bool connected)
>  	struct drm_i915_private *dev_priv = vgpu->gvt->dev_priv;
>  
>  	/* TODO: add more platforms support */
> -	if (IS_SKYLAKE(dev_priv) || IS_KABYLAKE(dev_priv)) {
> +	if (IS_SKYLAKE(dev_priv) || IS_KABYLAKE(dev_priv) ||
> +		IS_COFFEELAKE(dev_priv)) {
>  		if (connected) {
>  			vgpu_vreg_t(vgpu, SFUSE_STRAP) |=
>  				SFUSE_STRAP_DDID_DETECTED;

Maybe more clean way is to check platform only when enable VFIO edid
so we don't need to add extra hw check in edid handling, so won't bring
extra step to miss sth, but can leave that later..

Acked-by: Zhenyu Wang <zhenyuw at linux.intel.com>

thanks

-- 
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/20200227/bfc203b4/attachment.sig>


More information about the intel-gvt-dev mailing list