ALSA: hda/i915 - avoid hung task timeout in i915 wait
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Wed, 9 Mar 2022 18:24:39 +0000 (20:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2022 13:35:54 +0000 (14:35 +0100)
commit327e8ba54a212f707a68670c9372747b7a32bb92
tree89a413de45f7707d0cda2e04a07969dd8f731951
parent7cacfa4a7b0dcf8f10dda5327957ee13db1c455f
ALSA: hda/i915 - avoid hung task timeout in i915 wait

If kernel is built with hung task detection enabled and
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT set to less than 60 seconds,
snd_hdac_i915_init() will trigger the hung task timeout in case i915 is
not available and taint the kernel.

Use wait_for_completion_killable_timeout() for the wait to
avoid this problem.

Co-developed-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://lore.kernel.org/r/20220309182439.1053856-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_i915.c