mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
Ten headers use _XE_<NAME>_ or __XE_<NAME>__ as their include guard but omit the _H that the rest of the xe codebase uses. Normalize them to _XE_<NAME>_H_ to follow the dominant convention (_XE_<BASENAME>_H_) used by ~232 of ~260 xe headers. Files fixed: - xe_migrate.h: _XE_MIGRATE_ -> _XE_MIGRATE_H_ - xe_pt_walk.h: __XE_PT_WALK__ -> _XE_PT_WALK_H_ - xe_reg_sr.h: _XE_REG_SR_ -> _XE_REG_SR_H_ - xe_reg_sr_types.h: _XE_REG_SR_TYPES_ -> _XE_REG_SR_TYPES_H_ - xe_reg_whitelist.h: _XE_REG_WHITELIST_ -> _XE_REG_WHITELIST_H_ - xe_rtp.h: _XE_RTP_ -> _XE_RTP_H_ - xe_rtp_helpers.h: _XE_RTP_HELPERS_ -> _XE_RTP_HELPERS_H_ - xe_rtp_types.h: _XE_RTP_TYPES_ -> _XE_RTP_TYPES_H_ - xe_tuning.h: _XE_TUNING_ -> _XE_TUNING_H_ - xe_wa.h: _XE_WA_ -> _XE_WA_H_ No functional change. Suggested-by: Nitin Gote <nitin.r.gote@intel.com> Assisted-by: GitHub Copilot:claude-opus-4.6 Reviewed-by: Nitin Gote <nitin.r.gote@intel.com> Link: https://patch.msgid.link/20260317215732.2208976-9-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_WA_H_
|
|
#define _XE_WA_H_
|
|
|
|
#include "xe_assert.h"
|
|
|
|
struct drm_printer;
|
|
struct xe_gt;
|
|
struct xe_hw_engine;
|
|
struct xe_tile;
|
|
|
|
int xe_wa_device_init(struct xe_device *xe);
|
|
int xe_wa_gt_init(struct xe_gt *gt);
|
|
void xe_wa_process_device_oob(struct xe_device *xe);
|
|
void xe_wa_process_gt_oob(struct xe_gt *gt);
|
|
void xe_wa_process_gt(struct xe_gt *gt);
|
|
void xe_wa_process_engine(struct xe_hw_engine *hwe);
|
|
void xe_wa_process_lrc(struct xe_hw_engine *hwe);
|
|
void xe_wa_apply_tile_workarounds(struct xe_tile *tile);
|
|
void xe_wa_device_dump(struct xe_device *xe, struct drm_printer *p);
|
|
int xe_wa_gt_dump(struct xe_gt *gt, struct drm_printer *p);
|
|
|
|
/**
|
|
* XE_GT_WA - Out-of-band GT workarounds, to be queried and called as needed.
|
|
* @gt__: gt instance
|
|
* @id__: XE_OOB_<id__>, as generated by build system in generated/xe_wa_oob.h
|
|
*/
|
|
#define XE_GT_WA(gt__, id__) ({ \
|
|
xe_gt_assert(gt__, (gt__)->wa_active.oob_initialized); \
|
|
test_bit(XE_WA_OOB_ ## id__, (gt__)->wa_active.oob); \
|
|
})
|
|
|
|
/**
|
|
* XE_DEVICE_WA - Out-of-band Device workarounds, to be queried and called
|
|
* as needed.
|
|
* @xe__: xe_device
|
|
* @id__: XE_DEVICE_WA_OOB_<id__>, as generated by build system in generated/xe_device_wa_oob.h
|
|
*/
|
|
#define XE_DEVICE_WA(xe__, id__) ({ \
|
|
xe_assert(xe__, (xe__)->wa_active.oob_initialized); \
|
|
test_bit(XE_DEVICE_WA_OOB_ ## id__, (xe__)->wa_active.oob); \
|
|
})
|
|
|
|
#define XE_DEVICE_WA_DISABLE(xe__, id__) ({ \
|
|
xe_assert(xe__, (xe__)->wa_active.oob_initialized); \
|
|
clear_bit(XE_DEVICE_WA_OOB_ ## id__, (xe__)->wa_active.oob); \
|
|
})
|
|
|
|
#endif
|