mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 08:13:56 -04:00
I'll need to move the wm readout to an earlier point in the sequence (since the bw state readout will need ddb information from the wm readout). But (at least for now) the wm sanitation will need to stay put as it needs to also sanitize things for any pipes/planes we disable later during the hw state takeover. Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250306163420.3961-16-ville.syrjala@linux.intel.com
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_WM_H__
|
|
#define __INTEL_WM_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_i915_private;
|
|
struct intel_atomic_state;
|
|
struct intel_crtc;
|
|
struct intel_crtc_state;
|
|
struct intel_plane_state;
|
|
|
|
void intel_update_watermarks(struct drm_i915_private *i915);
|
|
int intel_wm_compute(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
bool intel_initial_watermarks(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void intel_atomic_update_watermarks(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void intel_optimize_watermarks(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
int intel_compute_global_watermarks(struct intel_atomic_state *state);
|
|
void intel_wm_get_hw_state(struct drm_i915_private *i915);
|
|
void intel_wm_sanitize(struct drm_i915_private *i915);
|
|
bool intel_wm_plane_visible(const struct intel_crtc_state *crtc_state,
|
|
const struct intel_plane_state *plane_state);
|
|
void intel_print_wm_latency(struct drm_i915_private *i915,
|
|
const char *name, const u16 wm[]);
|
|
void intel_wm_init(struct drm_i915_private *i915);
|
|
void intel_wm_debugfs_register(struct drm_i915_private *i915);
|
|
|
|
#endif /* __INTEL_WM_H__ */
|