mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 18:42:25 -04:00
If the primary GT is disabled, skip the check for this workaround (which only applies to dgpu platforms where the primary GT cannot be NULL). Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Link: https://lore.kernel.org/r/20251013200944.2499947-44-matthew.d.roper@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
20 lines
437 B
C
20 lines
437 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright © 2024 Intel Corporation
|
|
*/
|
|
|
|
#include "intel_display_core.h"
|
|
#include "intel_display_wa.h"
|
|
#include "xe_device.h"
|
|
#include "xe_wa.h"
|
|
|
|
#include <generated/xe_wa_oob.h>
|
|
|
|
bool intel_display_needs_wa_16023588340(struct intel_display *display)
|
|
{
|
|
struct xe_device *xe = to_xe_device(display->drm);
|
|
struct xe_gt *wa_gt = xe_root_mmio_gt(xe);
|
|
|
|
return wa_gt && XE_GT_WA(wa_gt, 16023588340);
|
|
}
|