ALSA: hda: hdac-i915: make i915 timeout configurable
PATCH 1/1 ALSA: hda: hdac-i915: make i915 timeout configurable
From: Fred Oh <[email protected]>
When enabling new platforms, missing dependencies on i915 driver updates cause i915 timeouts. Rather than wait 60s for no good reason, this patch adds a kernel parameter so that developers can cut to the chase and skip a known problem.
--- sound/hda/hdac_i915.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
sound/hda/hdac_i915.c +5 -2
@@ -11,6 +11,10 @@#include <sound/hda_i915.h> #include <sound/hda_register.h> +static int hdac_i915_timeout_ms =60000 ; +module_param (hdac_i915_timeout_ms, int,0444 ); +MODULE_PARM_DESC (hdac_i915_timeout_ms,"i915 initialization timeout in msec" ); +/** * snd_hdac_i915_set_bclk - Reprogram BCLK for HSW/BDW * @bus: HDA core bus
@@ -165,9 +169,8 @@ int snd_hdac_i915_init(struct hdac_bus *bus)if (!acomp->ops) {if (!IS_ENABLED (CONFIG_MODULES ) || !request_module ("i915" )) { -/* 60s timeout */ wait_for_completion_killable_timeout (&acomp->master_bind_complete, -msecs_to_jiffies (60 *1000 )); +msecs_to_jiffies (hdac_i915_timeout_ms)); } }if (!acomp->ops) {
Signature · 1 line
2.42.0
Quoted 8 lines · Peter Ujfalusi
From: Fred Oh <[email protected]>
When enabling new platforms, missing dependencies on i915 driver updates cause i915 timeouts. Rather than wait 60s for no good reason, this patch adds a kernel parameter so that developers can cut to the chase and skip a known problem.
Quoted 6 lines
Reviewed-by Ranjani Sridharan <[email protected]>Reviewed-by Bard Liao <[email protected]>Reviewed-by Chao Song <[email protected]>Signed-off-by Fred Oh <[email protected]>Signed-off-by Pierre-Louis Bossart <[email protected]>Signed-off-by Peter Ujfalusi <[email protected]>
The change looks trivial, but this would be little use if we support EPROBE_DEFER, right? Or does it need to be merged into 6.6?
thanks,
Takashi
Quoted 17 lines · Takashi Iwai
Quoted 8 lines · Peter Ujfalusi
From: Fred Oh <[email protected]>
When enabling new platforms, missing dependencies on i915 driver updates cause i915 timeouts. Rather than wait 60s for no good reason, this patch adds a kernel parameter so that developers can cut to the chase and skip a known problem.
Quoted 6 lines
Reviewed-by Ranjani Sridharan <[email protected]>Reviewed-by Bard Liao <[email protected]>Reviewed-by Chao Song <[email protected]>Signed-off-by Fred Oh <[email protected]>Signed-off-by Pierre-Louis Bossart <[email protected]>Signed-off-by Peter Ujfalusi <[email protected]>
Quoted 2 lines
The change looks trivial, but this would be little use if we support
EPROBE_DEFER, right? Or does it need to be merged into 6.6?
It'd be fine to keep this in the SOF tree for now, and remove it from our tree once the deferred probe is implemented.
Quoted 19 lines · Pierre-Louis Bossart
Quoted 17 lines · Takashi Iwai
Quoted 14 lines · Peter Ujfalusi
From: Fred Oh <[email protected]>
When enabling new platforms, missing dependencies on i915 driver updates cause i915 timeouts. Rather than wait 60s for no good reason, this patch adds a kernel parameter so that developers can cut to the chase and skip a known problem.
Reviewed-by Ranjani Sridharan <[email protected]>Reviewed-by Bard Liao <[email protected]>Reviewed-by Chao Song <[email protected]>Signed-off-by Fred Oh <[email protected]>Signed-off-by Pierre-Louis Bossart <[email protected]>Signed-off-by Peter Ujfalusi <[email protected]>
Quoted 5 lines
Quoted 2 lines
The change looks trivial, but this would be little use if we support
EPROBE_DEFER, right? Or does it need to be merged into 6.6?It'd be fine to keep this in the SOF tree for now, and remove it from our tree once the deferred probe is implemented.
OK, then let's postpone (or drop) this. If EPROBE_DEFER stuff can't be achieved in time, we can reconsider to take this workaround for 6.7.
thanks,
Takashi