Files
linux/drivers/gpu/drm/i915/display/i9xx_wm.h
Ville Syrjälä d77037bba7 drm/i915: s/disable_lp_wm/disable_cxsr/
The ilk+ disable_lp_wm boolean has the exact same role as
disable_cxsr for gmch platforms. The documentation also
still talks about CxSR on ilk+ even theough the way you
control it has now change to involve toggling the LP watermarks.
Get rid of disable_lp_wm and just use disable_cxsr for ilk+
as well.

TODO: Unify even more to not have any gmch vs. ilk+
      details in high level modeset code...

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240916162413.8555-7-ville.syrjala@linux.intel.com
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
2024-09-24 10:56:11 +03:00

38 lines
839 B
C

/* SPDX-License-Identifier: MIT */
/*
* Copyright © 2023 Intel Corporation
*/
#ifndef __I9XX_WM_H__
#define __I9XX_WM_H__
#include <linux/types.h>
struct drm_i915_private;
struct intel_crtc_state;
struct intel_plane_state;
#ifdef I915
bool ilk_disable_cxsr(struct drm_i915_private *i915);
void ilk_wm_sanitize(struct drm_i915_private *i915);
bool intel_set_memory_cxsr(struct drm_i915_private *i915, bool enable);
void i9xx_wm_init(struct drm_i915_private *i915);
#else
static inline bool ilk_disable_cxsr(struct drm_i915_private *i915)
{
return false;
}
static inline void ilk_wm_sanitize(struct drm_i915_private *i915)
{
}
static inline bool intel_set_memory_cxsr(struct drm_i915_private *i915, bool enable)
{
return false;
}
static inline void i9xx_wm_init(struct drm_i915_private *i915)
{
}
#endif
#endif /* __I9XX_WM_H__ */