1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2025 Intel Corporation
4  */
5 
6 #ifndef __XE_EU_STALL_H__
7 #define __XE_EU_STALL_H__
8 
9 #include "xe_gt_types.h"
10 #include "xe_sriov.h"
11 
12 size_t xe_eu_stall_get_per_xecore_buf_size(void);
13 size_t xe_eu_stall_data_record_size(struct xe_device *xe);
14 size_t xe_eu_stall_get_sampling_rates(u32 *num_rates, const u64 **rates);
15 
16 int xe_eu_stall_init(struct xe_gt *gt);
17 int xe_eu_stall_stream_open(struct drm_device *dev,
18 			    u64 data,
19 			    struct drm_file *file);
20 
xe_eu_stall_supported_on_platform(struct xe_device * xe)21 static inline bool xe_eu_stall_supported_on_platform(struct xe_device *xe)
22 {
23 	return !IS_SRIOV_VF(xe) && (xe->info.platform == XE_PVC || GRAPHICS_VER(xe) >= 20);
24 }
25 #endif
26