mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Make the gt rps code and display irq code interact via intel_display_rps.[ch], instead of direct access. Add no-op static inline stubs for xe instead of having a separate build unit doing nothing. All of this clarifies the interfaces between i915 core and display. Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://lore.kernel.org/r/ef2a46dc8f30b72282494f54e98cb5fed7523b58.1746536745.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_DISPLAY_RPS_H__
|
|
#define __INTEL_DISPLAY_RPS_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct dma_fence;
|
|
struct drm_crtc;
|
|
struct intel_atomic_state;
|
|
struct intel_display;
|
|
|
|
#ifdef I915
|
|
void intel_display_rps_boost_after_vblank(struct drm_crtc *crtc,
|
|
struct dma_fence *fence);
|
|
void intel_display_rps_mark_interactive(struct intel_display *display,
|
|
struct intel_atomic_state *state,
|
|
bool interactive);
|
|
void ilk_display_rps_enable(struct intel_display *display);
|
|
void ilk_display_rps_disable(struct intel_display *display);
|
|
void ilk_display_rps_irq_handler(struct intel_display *display);
|
|
#else
|
|
static inline void intel_display_rps_boost_after_vblank(struct drm_crtc *crtc,
|
|
struct dma_fence *fence)
|
|
{
|
|
}
|
|
static inline void intel_display_rps_mark_interactive(struct intel_display *display,
|
|
struct intel_atomic_state *state,
|
|
bool interactive)
|
|
{
|
|
}
|
|
static inline void ilk_display_rps_enable(struct intel_display *display)
|
|
{
|
|
}
|
|
static inline void ilk_display_rps_disable(struct intel_display *display)
|
|
{
|
|
}
|
|
static inline void ilk_display_rps_irq_handler(struct intel_display *display)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INTEL_DISPLAY_RPS_H__ */
|