diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-09-04 11:17:50 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-09-04 15:00:44 +0100 |
commit | bfce01d8c93dbd86e6ab04ca1afb844e0cbc8078 (patch) | |
tree | 98f95252ef080329327cb47279e398540d913d75 /lib/igt_pm.c | |
parent | 93a1b39fcbbe18199165ce6000e26a0c1b082fb3 (diff) |
lib/pm: Increase snd module probe timeout to 10s
5s is often not enough for the sound module to finish loading, so bump
the timeout to 10s. For fun, poll quicker over the first 1s!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.linux.com>
Reviewed-by: Imre Deak <imre.deak@intel.linux.com>
Diffstat (limited to 'lib/igt_pm.c')
-rw-r--r-- | lib/igt_pm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/igt_pm.c b/lib/igt_pm.c index e86fa4a4..615463a0 100644 --- a/lib/igt_pm.c +++ b/lib/igt_pm.c @@ -258,12 +258,15 @@ void igt_pm_enable_audio_runtime_pm(void) if (__igt_pm_audio_runtime_power_save[0]) return; - for (int count = 0; count < 5; count++) { + for (int count = 0; count < 110; count++) { if (!__igt_pm_enable_audio_runtime_pm()) return; /* modprobe(sna-hda-intel) acts async so poll for sysfs */ - sleep(1); + if (count < 100) + usleep(10 * 1000); /* poll at 10ms for the first 1s */ + else + sleep(1); } err = __igt_pm_enable_audio_runtime_pm(); |