diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_gpu_top.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c index 41c59a72..81c724d1 100644 --- a/tools/intel_gpu_top.c +++ b/tools/intel_gpu_top.c @@ -376,6 +376,12 @@ static struct engines *discover_engines(char *device) break; } + /* Double check config is an engine config. */ + if (engine->busy.config >= __I915_PMU_OTHER(0)) { + free((void *)engine->name); + continue; + } + engine->class = (engine->busy.config & (__I915_PMU_OTHER(0) - 1)) >> I915_PMU_CLASS_SHIFT; |