]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/i915: Fix GVT-g PVINFO version compatibility check
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 9 Jun 2017 07:48:05 +0000 (15:48 +0800)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 12 Jun 2017 11:39:24 +0000 (14:39 +0300)
commit0c8792d00d38de85b6ceb1dd67d3ee009d7c8e42
treeb9a083fbffa32158461ce0bfc1e8bfd1eed6dad2
parent84cd843e715298bbfb17ed40c7d61d7db6854a70
drm/i915: Fix GVT-g PVINFO version compatibility check

Current it's strictly checked if PVINFO version matches 1.0
for GVT-g i915 guest which doesn't help for compatibility at
all and forces GVT-g host can't extend PVINFO easily with version
bump for real compatibility check.

This fixes that to check minimal required PVINFO version instead.

v2:
- drop unneeded version macro
- use only major version for sanity check

v3:
- fix up PVInfo value with kernel type
- one indent fix

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chuanxiao Dong <chuanxiao.dong@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: stable@vger.kernel.org # v4.10+
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170609074805.5101-1-zhenyuw@linux.intel.com
drivers/gpu/drm/i915/i915_pvinfo.h
drivers/gpu/drm/i915/i915_vgpu.c