Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5465870imu; Mon, 26 Nov 2018 00:25:53 -0800 (PST) X-Google-Smtp-Source: AJdET5fHFOvHzkZsEBknp2WkjjZTsDigCJUCU3XPB/1FCvdSe1CXqJ5XGhkYd9XbPWz8lB+LqNZm X-Received: by 2002:a63:7d06:: with SMTP id y6mr23738538pgc.171.1543220753465; Mon, 26 Nov 2018 00:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543220753; cv=none; d=google.com; s=arc-20160816; b=tELftHgo2B6vspWyL+Nw+7T3NO6TbpbfanOqW5Y+PlqqoJ23hU4XKC4/p766hOXOJH gQzF3UFuj26WZSMiPnf6wwlLNJrisK/Q5EBj8mXdwsGLkG50QqEBXwdhE0wcWILV95i3 bJsLETM1ek0wUzAME8ViJXEwiYgpxs9Gjon5Fk4XyoANVaj9b+q15e6fpEJyHWtAfe6m K+hwLJ9xXXaCGx/iiBR3kAl0wy7r8trg9Rmw57I7vOf2cIiG13kispCLP29qNC/S9IPA fQ77IvUGfbaCuD/YbQ3IrCwJlv+JsIsB0xHfLRV5KZjtOx084zFWbgT8pA54n+li60vA uiOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=XfthbedXfYIvtNlyXBo9FbDIwJnRGae9oqlLiTgsrSI=; b=I53Koe06VK9ac2n3I9fOoOC+VLxCW7p84SplYyOf44ab1kVR8w3+qlCHV38ZnyG6qB SESFoHzNl4qwe5rPAUewhdnQYCBxxp/6tzpQo2uFsLj6peXSbaxkVk6F7mX7iE4xkaxf sbqy6Nihmxj60KeTFwv0kWkZJsUV32eFN0GpsUg8vkWJyU/3mQzoz8LX/JSLtAZ34CLp 5Hj+vw3OqGpjZpoM+JVuf3c/OWhAUjD2UgdR313L1apl3qF8IAKwG3KRW3LbpAyuYtZt Zanvuczmbg6F6pBDnhrjTcVhyVONVLQ2nGnf+RvBnLxVcQMEQyitWdxEJkOHWxB4ekNN aaxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y73si59507420pgd.478.2018.11.26.00.25.38; Mon, 26 Nov 2018 00:25:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726298AbeKZTSJ (ORCPT + 99 others); Mon, 26 Nov 2018 14:18:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:58672 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726157AbeKZTSJ (ORCPT ); Mon, 26 Nov 2018 14:18:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id F35B7AF3F; Mon, 26 Nov 2018 08:24:46 +0000 (UTC) Date: Mon, 26 Nov 2018 09:24:46 +0100 Message-ID: From: Takashi Iwai To: "Alexander Kappner" Cc: , , , , , , , Subject: Re: [snd_hda_intel] snd_hda_intel causes high CPU lockup and system instability if mic disabled in BIOS on Lenovo P50 In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Nov 2018 00:17:15 +0100, Alexander Kappner wrote: > > My Lenovo P50 laptop has a BIOS option to disable the microphone. When > this option gets chosen, the snd_hda_intel driver causes high CPU load > on a single kworker thread, spinning on "process_unsol_events", and > system > instability. This behavior occurs from the time that the snd_hda_intel > module is loaded, irrespective of whether anything is attempting to access > the mic. The sound output still works. > > When in this state, the module cannot be removed cleanly; attempting to > remove it (even without rmmod -f) triggers an oops. > > I have attached two exemplary dmesg outputs. Strangely enough, the exact > location of the oops varies, but further up the call chain, I always see > process_unsol_events. > > When the mic is not disabled in the BIOS, the module works stable, > regardless whether or not the mic is muted in ALSA. > > I wasn't able to pinpoint the root cause. Any pointers on where to > start? Much appreciated. Could you load snd-hda-intel driver with probe_only=1 option, and give alsa-info.sh output (run it with --no-upload option)? This should leave only the codec probing without configuring, so we can see the codec widget contents and check the emulator. thanks, Takashi