From: Zhenyu Wang Date: Mon, 2 Dec 2019 07:01:09 +0000 (+0800) Subject: drm/i915/gvt: Enable vfio edid for all GVT supported platform X-Git-Tag: v5.7-rc1~136^2~11^2~192^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0178f4ce3c3be4d9784c88ed512816eb653a717b;p=thirdparty%2Fkernel%2Flinux.git drm/i915/gvt: Enable vfio edid for all GVT supported platform 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 Cc: Fred Gao Reviewed-by: Hang Yuan Signed-off-by: Zhenyu Wang Link: http://patchwork.freedesktop.org/patch/msgid/20191202070109.73924-3-zhenyuw@linux.intel.com --- diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c index d5a6e4e3d0fd7..79107e6300495 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;