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)
committerJani Nikula <jani.nikula@intel.com>
Tue, 13 Jun 2017 08:19:22 +0000 (11:19 +0300)
commitc380f681245d7ae57f17d9ebbbe8f8f1557ee1fb
tree9f71164aceb4e5ba34746ff9ea023961ac194cd4
parent1c2d6bbf0433ddf7c978ac5f2bd582e9e7d34687
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
(cherry picked from commit 0c8792d00d38de85b6ceb1dd67d3ee009d7c8e42)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_pvinfo.h
drivers/gpu/drm/i915/i915_vgpu.c