Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #64558
| Path | csiph.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Takashi Iwai <tiwai@suse.de> |
| Newsgroups | linux.debian.bugs.dist, linux.kernel, linux.debian.kernel |
| Subject | Bug#931507: hda: Fix 1-minute detection delay when i915 module is not available |
| Date | Fri, 26 Jul 2019 18:10:02 +0200 |
| Message-ID | <yoaX8-72W-3@gated-at.bofh.it> (permalink) |
| References | <yoa13-6rM-1@gated-at.bofh.it> <yh1cd-1Pc-1@gated-at.bofh.it> <yoa13-6rM-1@gated-at.bofh.it> |
| X-Original-To | Samuel Thibault <samuel.thibault@ens-lyon.org> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Fri Jul 26 16:06:09 2019 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -3.951 |
| Reply-To | Takashi Iwai <tiwai@suse.de>, 931507@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian Kernel Team <debian-kernel@lists.debian.org> |
| X-Debian-Pr-Message | followup 931507 |
| X-Debian-Pr-Package | src:linux |
| X-Debian-Pr-Keywords | patch upstream a11y |
| X-Debian-Pr-Source | linux |
| X-Spam-Bayes | score:0.0000 Tokens: new, 30; hammy, 150; neutral, 88; spammy, 0. spammytokens: hammytokens:0.000-+--H*UA:sk:x86_64-, 0.000-+--H*u:sk:x86_64-, 0.000-+--i915, 0.000-+--sk:snd_hda, 0.000-+--H*u:2.15.9 |
| User-Agent | Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
| MIME-Version | 1.0 (generated by SEMI 1.14.6 - "Maruoka") |
| Content-Type | text/plain; charset=US-ASCII |
| X-Greylist | delayed 909 seconds by postgrey-1.36 at buxtehude; Fri, 26 Jul 2019 16:03:46 UTC |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1547981 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 45 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Jaroslav Kysela <perex@perex.cz>, <alsa-devel@alsa-project.org>, <931507@bugs.debian.org>, <linux-kernel@vger.kernel.org> |
| X-Original-Date | Fri, 26 Jul 2019 17:48:34 +0200 |
| X-Original-Message-ID | <s5h5znoztil.wl-tiwai@suse.de> |
| X-Original-References | <20190726150530.cibwiaohhexl5jdc@function> <20190706221236.jai2hedppj5ysecs@function> <20190726150530.cibwiaohhexl5jdc@function> |
| Xref | csiph.com linux.debian.bugs.dist:966632 linux.kernel:1743355 linux.debian.kernel:64558 |
Cross-posted to 3 groups.
Show key headers only | View raw
On Fri, 26 Jul 2019 17:05:30 +0200,
Samuel Thibault wrote:
>
> Distribution installation images such as Debian include different sets
> of modules which can be downloaded dynamically. Such images may notably
> include the hda sound modules but not the i915 DRM module, even if the
> latter was enabled at build time, as reported on
> https://bugs.debian.org/931507
>
> In such a case hdac_i915 would be linked in and try to load the i915
> module, fail since it is not there, but still wait for a whole minute
> before giving up binding with it.
>
> This fixes such as case by only waiting for the binding if the module
> was properly loaded (or module support is disabled, in which case i915
> is already compiled-in anyway).
>
> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> ---
> sound/hda/hdac_i915.c | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
> --- a/sound/hda/hdac_i915.c
> +++ b/sound/hda/hdac_i915.c
> @@ -143,10 +143,14 @@ int snd_hdac_i915_init(struct hdac_bus *
> if (!acomp)
> return -ENODEV;
> if (!acomp->ops) {
> - request_module("i915");
> - /* 60s timeout */
> - wait_for_completion_timeout(&bind_complete,
> - msecs_to_jiffies(60 * 1000));
> +#ifdef CONFIG_MODULES
> + if (request_module("i915") == 0)
> +#endif
Better to use IS_ENABLED(), so that we can avoid ugly ifdef.
if (!IS_ENABLED(CONFIG_MODULES) ||
!request_module("i915")) {
....
thanks,
Takashi
Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread
Bug#931507: hda: Fix 1-minute detection delay when i915 module is not available Takashi Iwai <tiwai@suse.de> - 2019-07-26 18:10 +0200
csiph-web