mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 06:52:34 -04:00
Mask the ERR_FATAL_MASK before scaler initialization.
After enabling the scaler and waiting for one frame,
unmask the previously masked bits, PS_ECC and
ERR_FATAL_MASK
Unmasking of ERR_FATAL_MASK bit is use for
validation purpose. There is no functional
impact.
v2: Remove intel_display_need_wa[Jani]
Optimize the ecc_unmask call[Animesh]
v3: Add intel_display_wa[Jani]
Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250801125835.2337614-1-nemesa.garg@intel.com
36 lines
808 B
C
36 lines
808 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_DISPLAY_WA_H__
|
|
#define __INTEL_DISPLAY_WA_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct intel_display;
|
|
|
|
void intel_display_wa_apply(struct intel_display *display);
|
|
|
|
#ifdef I915
|
|
static inline bool intel_display_needs_wa_16023588340(struct intel_display *display)
|
|
{
|
|
return false;
|
|
}
|
|
#else
|
|
bool intel_display_needs_wa_16023588340(struct intel_display *display);
|
|
#endif
|
|
|
|
enum intel_display_wa {
|
|
INTEL_DISPLAY_WA_16023588340,
|
|
INTEL_DISPLAY_WA_16025573575,
|
|
INTEL_DISPLAY_WA_14011503117,
|
|
};
|
|
|
|
bool __intel_display_wa(struct intel_display *display, enum intel_display_wa wa, const char *name);
|
|
|
|
#define intel_display_wa(__display, __wa) \
|
|
__intel_display_wa((__display), INTEL_DISPLAY_WA_##__wa, __stringify(__wa))
|
|
|
|
#endif
|