mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
drm/i915: move SKL clock gating init to display
Move the SKL-specific display clock gating programming into a new file inside display. This removes dependency from intel_clock_gating.c to the display's intel_pch.h file, so we can remove the include statement. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patch.msgid.link/20260428095104.818360-2-luciano.coelho@intel.com Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
9ec5a97340
commit
8a2366d6ee
|
|
@ -256,6 +256,7 @@ i915-y += \
|
|||
display/intel_cursor.o \
|
||||
display/intel_dbuf_bw.o \
|
||||
display/intel_de.o \
|
||||
display/intel_display_clock_gating.o \
|
||||
display/intel_display.o \
|
||||
display/intel_display_conversion.o \
|
||||
display/intel_display_driver.o \
|
||||
|
|
|
|||
19
drivers/gpu/drm/i915/display/intel_display_clock_gating.c
Normal file
19
drivers/gpu/drm/i915/display/intel_display_clock_gating.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
/*
|
||||
* Copyright 2026 Intel Corporation
|
||||
*/
|
||||
|
||||
#include <drm/intel/intel_gmd_misc_regs.h>
|
||||
|
||||
#include "intel_de.h"
|
||||
#include "intel_display_clock_gating.h"
|
||||
#include "intel_display_regs.h"
|
||||
|
||||
void intel_display_skl_init_clock_gating(struct intel_display *display)
|
||||
{
|
||||
/*
|
||||
* WaFbcTurnOffFbcWatermark:skl
|
||||
* Display WA #0562: skl
|
||||
*/
|
||||
intel_de_rmw(display, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS);
|
||||
}
|
||||
13
drivers/gpu/drm/i915/display/intel_display_clock_gating.h
Normal file
13
drivers/gpu/drm/i915/display/intel_display_clock_gating.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Copyright 2026 Intel Corporation
|
||||
*/
|
||||
|
||||
#ifndef __INTEL_DISPLAY_CLOCK_GATING_H__
|
||||
#define __INTEL_DISPLAY_CLOCK_GATING_H__
|
||||
|
||||
struct intel_display;
|
||||
|
||||
void intel_display_skl_init_clock_gating(struct intel_display *display);
|
||||
|
||||
#endif /* __INTEL_DISPLAY_CLOCK_GATING_H__ */
|
||||
|
|
@ -32,9 +32,9 @@
|
|||
|
||||
#include "display/i9xx_plane_regs.h"
|
||||
#include "display/intel_display.h"
|
||||
#include "display/intel_display_clock_gating.h"
|
||||
#include "display/intel_display_core.h"
|
||||
#include "display/intel_display_regs.h"
|
||||
#include "display/intel_pch.h"
|
||||
#include "gt/intel_engine_regs.h"
|
||||
#include "gt/intel_gt.h"
|
||||
#include "gt/intel_gt_mcr.h"
|
||||
|
|
@ -349,11 +349,7 @@ static void skl_init_clock_gating(struct drm_i915_private *i915)
|
|||
/* WAC6entrylatency:skl */
|
||||
intel_uncore_rmw(&i915->uncore, FBC_LLC_READ_CTRL, 0, FBC_LLC_FULLY_OPEN);
|
||||
|
||||
/*
|
||||
* WaFbcTurnOffFbcWatermark:skl
|
||||
* Display WA #0562: skl
|
||||
*/
|
||||
intel_uncore_rmw(&i915->uncore, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS);
|
||||
intel_display_skl_init_clock_gating(i915->display);
|
||||
}
|
||||
|
||||
static void bdw_init_clock_gating(struct drm_i915_private *i915)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user