[igt-dev] [PATCH i-g-t] lib: Squelch warning for failing to enable audio powermanagement

Chris Wilson chris at chris-wilson.co.uk
Fri Aug 31 13:58:28 UTC 2018


It doesn't seem to be preventing rpm (see the pm_rpm tests) if we fail
to enable runtime-powermanagement for audio, so reduce the warning to a
debug. It will still be visible if it fails, but only if it fails.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Imre Deak <imre.deak at intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 lib/igt_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_pm.c b/lib/igt_pm.c
index 339a51e6f..b1f359d8b 100644
--- a/lib/igt_pm.c
+++ b/lib/igt_pm.c
@@ -260,7 +260,7 @@ void igt_pm_enable_audio_runtime_pm(void)
 
 	err = __igt_pm_enable_audio_runtime_pm();
 	if (err)
-		igt_warn("Failed to enable audio runtime PM! (%d)\n", -err);
+		igt_debug("Failed to enable audio runtime PM! (%d)\n", -err);
 }
 
 /**
-- 
2.19.0.rc1



More information about the igt-dev mailing list