mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
Engine activity is supported only on GuC submission version >= 1.14.1
Allow enabling/reading engine activity only on supported
GuC versions. Warn once if not supported.
v2: use guc interface version (John)
v3: use debug log (Umesh)
v4: use variable for supported and use gt logs
use a friendlier log message (Michal)
v5: fix kernel-doc
do not continue in init if not supported (Michal)
v6: remove hardcoding values (Michal)
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250224053903.2253539-4-riana.tauro@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
20 lines
570 B
C
20 lines
570 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2025 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GUC_ENGINE_ACTIVITY_H_
|
|
#define _XE_GUC_ENGINE_ACTIVITY_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct xe_hw_engine;
|
|
struct xe_guc;
|
|
|
|
int xe_guc_engine_activity_init(struct xe_guc *guc);
|
|
bool xe_guc_engine_activity_supported(struct xe_guc *guc);
|
|
void xe_guc_engine_activity_enable_stats(struct xe_guc *guc);
|
|
u64 xe_guc_engine_activity_active_ticks(struct xe_guc *guc, struct xe_hw_engine *hwe);
|
|
u64 xe_guc_engine_activity_total_ticks(struct xe_guc *guc, struct xe_hw_engine *hwe);
|
|
#endif
|