drm/i915/psr: convert intel_psr.[ch] to struct intel_display
Going forward, struct intel_display shall replace struct drm_i915_private as the main display device data pointer type. Convert intel_psr.[ch] to struct intel_display. Some stragglers are left behind where needed. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/4399b98b07019a8063adbec1043ff7eabb7c1080.1725012870.git.jani.nikula@intel.com
This commit is contained in:
parent
8a37cd4dc5
commit
41a4629621
@ -1071,7 +1071,7 @@ void intel_display_debugfs_register(struct drm_i915_private *i915)
|
||||
intel_fbc_debugfs_register(display);
|
||||
intel_hpd_debugfs_register(i915);
|
||||
intel_opregion_debugfs_register(display);
|
||||
intel_psr_debugfs_register(i915);
|
||||
intel_psr_debugfs_register(display);
|
||||
intel_wm_debugfs_register(i915);
|
||||
intel_display_debugfs_params(display);
|
||||
}
|
||||
|
@ -83,6 +83,8 @@ static void frontbuffer_flush(struct drm_i915_private *i915,
|
||||
unsigned int frontbuffer_bits,
|
||||
enum fb_op_origin origin)
|
||||
{
|
||||
struct intel_display *display = &i915->display;
|
||||
|
||||
/* Delay flushing when rings are still busy.*/
|
||||
spin_lock(&i915->display.fb_tracking.lock);
|
||||
frontbuffer_bits &= ~i915->display.fb_tracking.busy_bits;
|
||||
@ -96,7 +98,7 @@ static void frontbuffer_flush(struct drm_i915_private *i915,
|
||||
might_sleep();
|
||||
intel_td_flush(i915);
|
||||
intel_drrs_flush(i915, frontbuffer_bits);
|
||||
intel_psr_flush(i915, frontbuffer_bits, origin);
|
||||
intel_psr_flush(display, frontbuffer_bits, origin);
|
||||
intel_fbc_flush(i915, frontbuffer_bits, origin);
|
||||
}
|
||||
|
||||
@ -172,6 +174,7 @@ void __intel_fb_invalidate(struct intel_frontbuffer *front,
|
||||
unsigned int frontbuffer_bits)
|
||||
{
|
||||
struct drm_i915_private *i915 = intel_bo_to_i915(front->obj);
|
||||
struct intel_display *display = &i915->display;
|
||||
|
||||
if (origin == ORIGIN_CS) {
|
||||
spin_lock(&i915->display.fb_tracking.lock);
|
||||
@ -183,7 +186,7 @@ void __intel_fb_invalidate(struct intel_frontbuffer *front,
|
||||
trace_intel_frontbuffer_invalidate(i915, frontbuffer_bits, origin);
|
||||
|
||||
might_sleep();
|
||||
intel_psr_invalidate(i915, frontbuffer_bits, origin);
|
||||
intel_psr_invalidate(display, frontbuffer_bits, origin);
|
||||
intel_drrs_invalidate(i915, frontbuffer_bits);
|
||||
intel_fbc_invalidate(i915, frontbuffer_bits, origin);
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -11,11 +11,11 @@
|
||||
enum fb_op_origin;
|
||||
struct drm_connector;
|
||||
struct drm_connector_state;
|
||||
struct drm_i915_private;
|
||||
struct intel_atomic_state;
|
||||
struct intel_connector;
|
||||
struct intel_crtc;
|
||||
struct intel_crtc_state;
|
||||
struct intel_display;
|
||||
struct intel_dp;
|
||||
struct intel_encoder;
|
||||
struct intel_plane;
|
||||
@ -35,10 +35,10 @@ void intel_psr_post_plane_update(struct intel_atomic_state *state,
|
||||
void intel_psr_disable(struct intel_dp *intel_dp,
|
||||
const struct intel_crtc_state *old_crtc_state);
|
||||
int intel_psr_debug_set(struct intel_dp *intel_dp, u64 value);
|
||||
void intel_psr_invalidate(struct drm_i915_private *dev_priv,
|
||||
void intel_psr_invalidate(struct intel_display *display,
|
||||
unsigned frontbuffer_bits,
|
||||
enum fb_op_origin origin);
|
||||
void intel_psr_flush(struct drm_i915_private *dev_priv,
|
||||
void intel_psr_flush(struct intel_display *display,
|
||||
unsigned frontbuffer_bits,
|
||||
enum fb_op_origin origin);
|
||||
void intel_psr_init(struct intel_dp *intel_dp);
|
||||
@ -60,6 +60,6 @@ void intel_psr_resume(struct intel_dp *intel_dp);
|
||||
void intel_psr_lock(const struct intel_crtc_state *crtc_state);
|
||||
void intel_psr_unlock(const struct intel_crtc_state *crtc_state);
|
||||
void intel_psr_connector_debugfs_add(struct intel_connector *connector);
|
||||
void intel_psr_debugfs_register(struct drm_i915_private *i915);
|
||||
void intel_psr_debugfs_register(struct intel_display *display);
|
||||
|
||||
#endif /* __INTEL_PSR_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user