]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/gvt: Mark i915.enable_gvt as false if loading fails
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Jun 2016 11:04:21 +0000 (12:04 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Jun 2016 11:40:13 +0000 (12:40 +0100)
commit7822492fd21a44eeb3568082b0ab915df7388061
tree1357da4d492361c39d3c35d934ffc254478bd476
parent77ca04ccf0c9dc00104da8336024a6593b6305a6
drm/i915/gvt: Mark i915.enable_gvt as false if loading fails

If we update the value of i915.enable_gvt should we fail to load GVT,
userspace can easily detect when it fails to load as requested.

Testcase: igt/gvt_basic
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466507234-23242-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_gvt.c