summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_tuning.h
blob: 869564e3e992d9749c887bd5c20e39305685286d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2022 Intel Corporation
 */

#ifndef _XE_TUNING_H_
#define _XE_TUNING_H_

#include <kunit/visibility.h>

struct drm_printer;
struct xe_gt;
struct xe_hw_engine;

int xe_tuning_init(struct xe_gt *gt);
void xe_tuning_process_gt(struct xe_gt *gt);
void xe_tuning_process_engine(struct xe_hw_engine *hwe);
void xe_tuning_process_lrc(struct xe_hw_engine *hwe);
int xe_tuning_dump(struct xe_gt *gt, struct drm_printer *p);

#if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
extern const struct xe_rtp_table_sr gt_tunings;
#endif

#endif