mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
intel_bw_crtc_min_cdclk() (aka. the thing that deals with what bspec calls "Maximum Pipe Read Bandwidth") doesn't really have anything to do with the rest of intel_bw.c (which is all about SAGV/QGV and memory bandwidth). Move it into intel_crtc.c (for the lack of a better place). And I don't really want to call intel_bw.c functions from intel_crtc.c, so move out intel_bw_crtc_data_rate() as well. And when we move that we pretty much have to move intel_bw_crtc_num_active_planes() as well since the two are meant to be used as a pair (they both implement the same "ignore the cursor" logic). And in an effort to keep the namespaces at least semi-sensible we flip the intel_bw_crtc_ prefix into intel_crtc_bw_. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20251013201236.30084-4-ville.syrjala@linux.intel.com Reviewed-by: Mika Kahola <mika.kahola@intel.com>
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_BW_H__
|
|
#define __INTEL_BW_H__
|
|
|
|
#include <drm/drm_atomic.h>
|
|
|
|
struct intel_atomic_state;
|
|
struct intel_bw_state;
|
|
struct intel_crtc;
|
|
struct intel_crtc_state;
|
|
struct intel_display;
|
|
struct intel_global_state;
|
|
|
|
struct intel_bw_state *to_intel_bw_state(struct intel_global_state *obj_state);
|
|
|
|
struct intel_bw_state *
|
|
intel_atomic_get_old_bw_state(struct intel_atomic_state *state);
|
|
|
|
struct intel_bw_state *
|
|
intel_atomic_get_new_bw_state(struct intel_atomic_state *state);
|
|
|
|
struct intel_bw_state *
|
|
intel_atomic_get_bw_state(struct intel_atomic_state *state);
|
|
|
|
void intel_bw_init_hw(struct intel_display *display);
|
|
int intel_bw_init(struct intel_display *display);
|
|
int intel_bw_atomic_check(struct intel_atomic_state *state);
|
|
void intel_bw_update_hw_state(struct intel_display *display);
|
|
void intel_bw_crtc_disable_noatomic(struct intel_crtc *crtc);
|
|
|
|
bool intel_bw_pmdemand_needs_update(struct intel_atomic_state *state);
|
|
bool intel_bw_can_enable_sagv(struct intel_display *display,
|
|
const struct intel_bw_state *bw_state);
|
|
void icl_sagv_pre_plane_update(struct intel_atomic_state *state);
|
|
void icl_sagv_post_plane_update(struct intel_atomic_state *state);
|
|
int intel_bw_qgv_point_peakbw(const struct intel_bw_state *bw_state);
|
|
|
|
#endif /* __INTEL_BW_H__ */
|