Skip to content

Commit

Permalink
drm/i915/selftests: Do not try to sanitize mock HW
Browse files Browse the repository at this point in the history
If we are mocking the device, skip trying to sanitize the pm HW state.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190927210646.29664-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Sep 27, 2019
1 parent a3f356b commit 42b899f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/gt/intel_gt_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ void intel_gt_sanitize(struct intel_gt *gt, bool force)

void intel_gt_pm_disable(struct intel_gt *gt)
{
intel_sanitize_gt_powersave(gt->i915);
if (!is_mock_gt(gt))
intel_sanitize_gt_powersave(gt->i915);
}

void intel_gt_pm_fini(struct intel_gt *gt)
Expand Down

0 comments on commit 42b899f

Please sign in to comment.