29d88083d6
Push the hibernate pm routines next to the suspend pm routines in gem/i915_gem_pm.c. This has the side-effect of putting the wbinvd() abusers next to each other. Reported-by: Guenter Roeck <linux@roeck-us.net> Fixes: 30d2bfd09383 ("drm/i915/gem: Almagamate clflushes on freeze") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210123145543.10533-1-chris@chris-wilson.co.uk (cherry picked from commit 6d8f02207420e76db693a00ccb44792474e297fc) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
26 lines
576 B
C
26 lines
576 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __I915_GEM_PM_H__
|
|
#define __I915_GEM_PM_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_i915_private;
|
|
struct work_struct;
|
|
|
|
void i915_gem_resume(struct drm_i915_private *i915);
|
|
|
|
void i915_gem_idle_work_handler(struct work_struct *work);
|
|
|
|
void i915_gem_suspend(struct drm_i915_private *i915);
|
|
void i915_gem_suspend_late(struct drm_i915_private *i915);
|
|
|
|
int i915_gem_freeze(struct drm_i915_private *i915);
|
|
int i915_gem_freeze_late(struct drm_i915_private *i915);
|
|
|
|
#endif /* __I915_GEM_PM_H__ */
|