From 757e2dd692b2d795042ac70527946c4abdf7d156 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Fri, 10 Feb 2023 08:04:37 -0800 Subject: [PATCH] intel/perf: Disable it for Xe KMD MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Xe still don't have support for performance metrics. Signed-off-by: José Roberto de Souza Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/perf/intel_perf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/perf/intel_perf.c b/src/intel/perf/intel_perf.c index f857bb1..c0b24f4 100644 --- a/src/intel/perf/intel_perf.c +++ b/src/intel/perf/intel_perf.c @@ -705,6 +705,10 @@ oa_metrics_available(struct intel_perf_config *perf, int fd, bool i915_perf_oa_available = false; struct stat sb; + /* TODO: Xe still don't have support for performance metrics */ + if (devinfo->kmd_type != INTEL_KMD_TYPE_I915) + return false; + perf->devinfo = *devinfo; /* Consider an invalid as supported. */ -- 2.7.4