mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-18 13:26:30 +00:00
pm_rpm: Update the debugfs filename
v2: Try to open i915_pc8_status first to make the transition (or just running on older kernels) better. (Paulo) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
b88212c036
commit
4b944c92eb
@ -670,8 +670,11 @@ static void setup_pc8(void)
|
||||
return;
|
||||
|
||||
pc8_status_fd = igt_debugfs_open("i915_pc8_status", O_RDONLY);
|
||||
if (pc8_status_fd == -1)
|
||||
pc8_status_fd = igt_debugfs_open("i915_runtime_pm_status",
|
||||
O_RDONLY);
|
||||
igt_assert_f(pc8_status_fd >= 0,
|
||||
"Can't open /sys/kernel/debug/dri/0/i915_pc8_status");
|
||||
"Can't open /sys/kernel/debug/dri/0/i915_runtime_pm_status");
|
||||
|
||||
has_pc8 = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user