drm/i915: Fix GVT-g PVINFO version compatibility check
authorZhenyu Wang <[email protected]>
Fri, 9 Jun 2017 07:48:05 +0000 (15:48 +0800)
committerJoonas Lahtinen <[email protected]>
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 <[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]
drivers/gpu/drm/i915/i915_pvinfo.h
drivers/gpu/drm/i915/i915_vgpu.c