]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/i915/vgpu: Neuter forcewakes for VGPU more thoroughly
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 10 Mar 2017 09:57:47 +0000 (09:57 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 17 Mar 2017 09:52:57 +0000 (09:52 +0000)
commite3b1895fc1d29ebd8a8e3374fc076f138a1f8f4b
tree7d220721ed8946f42eac04648f45ba3b5cfc5356
parentfa7e8b55e939468c2988cd01f893348f5d36ed0a
drm/i915/vgpu: Neuter forcewakes for VGPU more thoroughly

If we avoid initializing forcewake domains when running as
a guest, and also use gen2 mmio accessors in that case, we
can avoid the timer traffic and any looping through the
forcewake code which is currently just so it can end up in
the no-op forcewake implementation.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Weinan Li <weinan.z.li@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Terrence Xu <terrence.xu@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170310095747.12258-1-tvrtko.ursulin@linux.intel.com
[tursulin: commit spelling fix]
drivers/gpu/drm/i915/intel_uncore.c