]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 25 Jun 2017 15:36:28 +0000 (10:36 -0500)
commitc57ed2f4e35556917680619acc5294304882acdf
treee80479a3154e0ce2bc7e4ed685f6da1be92fddaf
parentd740a27da8c5389e23a42644f5044ab674777529
drm/i915: Fix GVT-g PVINFO version compatibility check

BugLink: http://bugs.launchpad.net/bugs/1700372
commit c380f681245d7ae57f17d9ebbbe8f8f1557ee1fb upstream.

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>
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
(cherry picked from commit 0c8792d00d38de85b6ceb1dd67d3ee009d7c8e42)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/gpu/drm/i915/i915_pvinfo.h
drivers/gpu/drm/i915/i915_vgpu.c