]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: noop forcewake get/put when vgpu activated
authorWeinan Li <weinan.z.li@intel.com>
Thu, 26 Jan 2017 05:20:13 +0000 (13:20 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Jan 2017 10:03:48 +0000 (10:03 +0000)
commit517f188c6be5bcc71f92c049d91a26539482a6f8
tree62062953172295e5ef2a24ae192e2acd27dae573
parent4fa6053efdc7a30720fffddb9df353b0273ce17f
drm/i915: noop forcewake get/put when vgpu activated

For a virtualized GPU, the host maintains the forcewake state on the real
device. As we don't control forcewake ourselves, we can simply set
force_wake_get() and force_wake_put() to be no-ops. By setting the vfuncs,
we adjust both the manual control of forcewake and around the mmio
accessors (making our vgpu specific mmio routines redundant and to be
removed in the next patch).

Signed-off-by: Weinan Li <weinan.z.li@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1485408013-12780-1-git-send-email-weinan.z.li@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_uncore.c