drm/i915: Fix GVT-g PVINFO version compatibility check
authorZhenyu Wang <[email protected]>
Fri, 9 Jun 2017 07:48:05 +0000 (15:48 +0800)
committerJani Nikula <[email protected]>
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 <[email protected]>
Cc: Chuanxiao Dong <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: [email protected] # v4.10+
Signed-off-by: Zhenyu Wang <[email protected]>
Signed-off-by: Joonas Lahtinen <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 0c8792d00d38de85b6ceb1dd67d3ee009d7c8e42)
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/i915_pvinfo.h
drivers/gpu/drm/i915/i915_vgpu.c