[PATCH i-g-t] lib/xe/oa: Don't skip if freq sysfs are not present
Ashutosh Dixit
ashutosh.dixit at intel.com
Mon Oct 21 21:42:25 UTC 2024
Freq sysfs are not created in certain environments. In most of these cases
OA IGT's will work just fine, even when GT min/max freq's are not
known. Therefore, just print a warning if freq sysfs are not present but
don't cause tests to skip.
v2: Change igt_warn to igt_info in case CI doesn't like warn (Umesh)
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
lib/xe/xe_oa.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/lib/xe/xe_oa.c b/lib/xe/xe_oa.c
index 86264230c9..4fdd0b8c95 100644
--- a/lib/xe/xe_oa.c
+++ b/lib/xe/xe_oa.c
@@ -571,11 +571,9 @@ xe_perf_for_fd(int drm_fd, int gt)
}
if (!read_sysfs(sysfs_dir_fd, path_min, >_min_freq) ||
- !read_sysfs(sysfs_dir_fd, path_max, >_max_freq)) {
- igt_warn("Unable to read freqs from sysfs\n");
- close(sysfs_dir_fd);
- return NULL;
- }
+ !read_sysfs(sysfs_dir_fd, path_max, >_max_freq))
+ igt_info("Unable to read freqs from sysfs\n");
+
close(sysfs_dir_fd);
device_id = intel_get_drm_devid(drm_fd);
--
2.41.0
More information about the igt-dev
mailing list