drm/i915/selftests: Do not try to sanitize mock HW

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
This commit is contained in:
Chris Wilson 2019-09-27 22:06:46 +01:00
parent a3f356b273
commit 42b899fb9a

View File

@ -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)