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 26 27 28 29 30 31
|
/* SPDX-License-Identifier: MIT */
/*
* Copyright © 2023 Intel Corporation
*/
#ifndef XE_GT_H
#define XE_GT_H
#include "lib/igt_gt.h"
#include "xe_query.h"
bool has_xe_gt_reset(int fd);
void xe_force_gt_reset_all(int fd);
void xe_force_gt_reset_async(int fd, int gt);
void xe_force_gt_reset_sync(int fd, int gt);
igt_hang_t xe_hang_ring(int fd, uint64_t ahnd, uint32_t ctx, int ring,
unsigned int flags);
void xe_post_hang_ring(int fd, igt_hang_t arg);
int xe_gt_stats_get_count(int fd, int gt, const char *stat);
bool xe_gt_is_in_c6(int fd, int gt);
int xe_gt_fill_engines_by_class(int fd, int gt, int class,
struct drm_xe_engine_class_instance eci[static XE_MAX_ENGINE_INSTANCE]);
int xe_gt_count_engines_by_class(int fd, int gt, int class);
int xe_gt_set_freq(int fd, int gt_id, const char *freq_name, uint32_t freq);
uint32_t xe_gt_get_freq(int fd, int gt_id, const char *freq_name);
#endif
|