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

Support commits via the flip queue (as opposed to DSB or MMIO). As it's somewhat unknown if we can actually use it is currently gated behind the new use_flipq modparam, which defaults to disabled. The implementation has a bunch of limitations that would need real though to solve: - disabled when PSR is used - disabled when VRR is used - color management updates not performed via the flip queue v2: Don't use flip queue if there is no dmc v3: Use intel_flipq_supported() v3: Configure PKG_C_LATENCY appropriately Ignore INT_VECTOR if there is a real PIPEDMC interrupt (nothing in the hw appears to clear INT_VECTOR) v4: Leave added_wake_time=0 when flip queue isn't used, to avoid needleslly increasing pkg_c_latency on lnl/ptl due to Wa_22020432604. This is a bit racy though... Use IS_DISPLAY_VER() Reviewed-by: Uma Shankar <uma.shankar@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250624170049.27284-6-ville.syrjala@linux.intel.com
64 lines
2.1 KiB
C
64 lines
2.1 KiB
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _INTEL_DISPLAY_PARAMS_H_
|
|
#define _INTEL_DISPLAY_PARAMS_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_printer;
|
|
|
|
/*
|
|
* Invoke param, a function-like macro, for each intel display param, with
|
|
* arguments:
|
|
*
|
|
* param(type, name, value, mode)
|
|
*
|
|
* type: parameter type, one of {bool, int, unsigned int, unsigned long, char *}
|
|
* name: name of the parameter
|
|
* value: initial/default value of the parameter
|
|
* mode: debugfs file permissions, one of {0400, 0600, 0}, use 0 to not create
|
|
* debugfs file
|
|
*/
|
|
#define INTEL_DISPLAY_PARAMS_FOR_EACH(param) \
|
|
param(char *, dmc_firmware_path, NULL, 0400) \
|
|
param(char *, vbt_firmware, NULL, 0400) \
|
|
param(int, lvds_channel_mode, 0, 0400) \
|
|
param(int, panel_use_ssc, -1, 0600) \
|
|
param(int, vbt_sdvo_panel_type, -1, 0400) \
|
|
param(int, enable_dc, -1, 0400) \
|
|
param(bool, enable_dpt, true, 0400) \
|
|
param(bool, enable_dsb, true, 0600) \
|
|
param(bool, enable_flipq, false, 0600) \
|
|
param(bool, enable_sagv, true, 0600) \
|
|
param(int, disable_power_well, -1, 0400) \
|
|
param(bool, enable_ips, true, 0600) \
|
|
param(int, invert_brightness, 0, 0600) \
|
|
param(int, edp_vswing, 0, 0400) \
|
|
param(int, enable_dpcd_backlight, -1, 0600) \
|
|
param(bool, load_detect_test, false, 0600) \
|
|
param(bool, force_reset_modeset_test, false, 0600) \
|
|
param(bool, disable_display, false, 0400) \
|
|
param(bool, verbose_state_checks, true, 0400) \
|
|
param(bool, nuclear_pageflip, false, 0400) \
|
|
param(bool, enable_dp_mst, true, 0600) \
|
|
param(int, enable_fbc, -1, 0600) \
|
|
param(int, enable_psr, -1, 0600) \
|
|
param(bool, psr_safest_params, false, 0400) \
|
|
param(bool, enable_psr2_sel_fetch, true, 0400) \
|
|
param(int, enable_dmc_wl, -1, 0400) \
|
|
|
|
#define MEMBER(T, member, ...) T member;
|
|
struct intel_display_params {
|
|
INTEL_DISPLAY_PARAMS_FOR_EACH(MEMBER);
|
|
};
|
|
#undef MEMBER
|
|
|
|
void intel_display_params_dump(const struct intel_display_params *params,
|
|
const char *driver_name, struct drm_printer *p);
|
|
void intel_display_params_copy(struct intel_display_params *dest);
|
|
void intel_display_params_free(struct intel_display_params *params);
|
|
|
|
#endif
|