Skip to content

Commit 3ce8d49

Browse files
committed
Merge tag 'gvt-fixes-2020-11-17' of https://github.com/intel/gvt-linux into drm-intel-fixes
gvt-fixes-2020-11-17 - Temporarily disable VFIO edid on BXT/APL (Colin) - Fix emulated DPCD for version 1.2 (Tina) - Fix error return when failing to take module reference (Xiongfeng) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> From: Zhenyu Wang <zhenyuw@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201117023918.GB23899@zhen-hp.sh.intel.com
2 parents b4ca435 + 4ec2b69 commit 3ce8d49

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

drivers/gpu/drm/i915/gvt/display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static unsigned char virtual_dp_monitor_edid[GVT_EDID_NUM][EDID_SIZE] = {
164164

165165
/* let the virtual display supports DP1.2 */
166166
static u8 dpcd_fix_data[DPCD_HEADER_SIZE] = {
167-
0x12, 0x014, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
167+
0x12, 0x014, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
168168
};
169169

170170
static void emulate_monitor_status_change(struct intel_vgpu *vgpu)

drivers/gpu/drm/i915/gvt/kvmgt.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,10 @@ static int intel_vgpu_open(struct mdev_device *mdev)
829829
/* Take a module reference as mdev core doesn't take
830830
* a reference for vendor driver.
831831
*/
832-
if (!try_module_get(THIS_MODULE))
832+
if (!try_module_get(THIS_MODULE)) {
833+
ret = -ENODEV;
833834
goto undo_group;
835+
}
834836

835837
ret = kvmgt_guest_init(mdev);
836838
if (ret)

drivers/gpu/drm/i915/gvt/vgpu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ static struct intel_vgpu *__intel_gvt_create_vgpu(struct intel_gvt *gvt,
439439

440440
if (IS_BROADWELL(dev_priv))
441441
ret = intel_gvt_hypervisor_set_edid(vgpu, PORT_B);
442-
else
442+
/* FixMe: Re-enable APL/BXT once vfio_edid enabled */
443+
else if (!IS_BROXTON(dev_priv))
443444
ret = intel_gvt_hypervisor_set_edid(vgpu, PORT_D);
444445
if (ret)
445446
goto out_clean_sched_policy;

0 commit comments

Comments
 (0)