xref: /linux/drivers/gpu/drm/xe/xe_tuning.h (revision 570f7e331f5febb30f1384817463c7e42b65ca7d)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2022 Intel Corporation
4  */
5 
6 #ifndef _XE_TUNING_H_
7 #define _XE_TUNING_H_
8 
9 #include <kunit/visibility.h>
10 
11 struct drm_printer;
12 struct xe_gt;
13 struct xe_hw_engine;
14 
15 int xe_tuning_init(struct xe_gt *gt);
16 void xe_tuning_process_gt(struct xe_gt *gt);
17 void xe_tuning_process_engine(struct xe_hw_engine *hwe);
18 void xe_tuning_process_lrc(struct xe_hw_engine *hwe);
19 int xe_tuning_dump(struct xe_gt *gt, struct drm_printer *p);
20 
21 #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
22 extern const struct xe_rtp_table_sr gt_tunings;
23 #endif
24 
25 #endif
26