mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 18:12:26 -04:00
wa_22014263786 is not applicable to the BMG and hence exclude it
from the wa.
v2: Limit this wa to display verion 11 to 14, drop DG2 from the
exclusion list, use intel_display_wa (Lucas)
v3: simplify the wa handling loop (Jani)
Description of wa moved to place where wa is applied (Ville)
v4: drop the platforms line from wa comments (Lucas)
Bspec: 74212, 66624
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20251007214317.875781-1-vinod.govindapillai@intel.com
37 lines
839 B
C
37 lines
839 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,
|
|
INTEL_DISPLAY_WA_22014263786,
|
|
};
|
|
|
|
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
|