[PATCH 3/3] drm/i915/gvt: Enable vfio edid for all GVT supported platform

Hang Yuan hang.yuan at linux.intel.com
Sun Jan 19 07:51:37 UTC 2020


Thanks for the patch. It's just verified on CFL.

Reviewed-by: Hang Yuan <hang.yuan at linux.intel.com>

On 12/2/19 3:01 PM, Zhenyu Wang wrote:
> All GVT supported platform has virtual display which should be
> able to handle VFIO edid region. Enable this for all supported platform.
> 
> Cc: Hang Yuan <hang.yuan at linux.intel.com>
> Cc: Fred Gao <fred.gao at intel.com>
> Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
> ---
>   drivers/gpu/drm/i915/gvt/vgpu.c | 4 +---
>   1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c
> index 85bd9bf4f6ee..1e0865905136 100644
> --- a/drivers/gpu/drm/i915/gvt/vgpu.c
> +++ b/drivers/gpu/drm/i915/gvt/vgpu.c
> @@ -426,9 +426,7 @@ static struct intel_vgpu *__intel_gvt_create_vgpu(struct intel_gvt *gvt,
>   	if (ret)
>   		goto out_clean_sched_policy;
>   
> -	/*TODO: add more platforms support */
> -	if (IS_SKYLAKE(gvt->dev_priv) || IS_KABYLAKE(gvt->dev_priv))
> -		ret = intel_gvt_hypervisor_set_edid(vgpu, PORT_D);
> +	ret = intel_gvt_hypervisor_set_edid(vgpu, PORT_D);
>   	if (ret)
>   		goto out_clean_sched_policy;
>   
> 



More information about the intel-gvt-dev mailing list