Skip to content

Commit f61018b

Browse files
Yu Zhangdanvet
authored andcommitted
drm/i915: Disable power management for i915 driver in VM
With Intel GVT-g, GPU power management is controlled by host driver, so there is no need to provide virtualized GPU PM support. In the future it might be useful to gather VM input for freq boost, but now let's disable it simply. v2: take Chris' comments: - do not special case this to gen6+ Signed-off-by: Yu Zhang <yu.c.zhang@linux.intel.com> Signed-off-by: Jike Song <jike.song@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent e21fd55 commit f61018b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/gpu/drm/i915/intel_pm.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5623,6 +5623,10 @@ void intel_enable_gt_powersave(struct drm_device *dev)
56235623
{
56245624
struct drm_i915_private *dev_priv = dev->dev_private;
56255625

5626+
/* Powersaving is controlled by the host when inside a VM */
5627+
if (intel_vgpu_active(dev))
5628+
return;
5629+
56265630
if (IS_IRONLAKE_M(dev)) {
56275631
mutex_lock(&dev->struct_mutex);
56285632
ironlake_enable_drps(dev);

0 commit comments

Comments
 (0)