From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D240C433EF for ; Sat, 15 Jan 2022 07:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbiAOHzb (ORCPT ); Sat, 15 Jan 2022 02:55:31 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:58726 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiAOHz3 (ORCPT ); Sat, 15 Jan 2022 02:55:29 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 60E7D1F3A7; Sat, 15 Jan 2022 07:55:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1642233328; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vbSkh4UntaygzRJkDFV/8mX3nAqS8NhGLcZl6dVcAzY=; b=ROou3wcQitCIjHYh3ohJaecX2Bqbm5A6jZ1hLdxIexi6naaSlkrqzMJLb8bGC8BpuPyzt6 z5aKi60VMasjoyUimEXE7uj+Bo7c7vkZFaYuRYTB9NrMwRIJaFyrlg+r73WubRYgU3J60r zXQ4QFiIc9UUgzlhru0H3pxG79iWpHg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1642233328; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vbSkh4UntaygzRJkDFV/8mX3nAqS8NhGLcZl6dVcAzY=; b=AOzgvSaHSSj22/Z67r4IWoPtIQ/63wDzYwufUq6G0XneSSqKuCPoc6vpQj8VofncYD/gYb U8Mv8aSglT972ZBg== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 1221BA3B81; Sat, 15 Jan 2022 07:55:28 +0000 (UTC) Date: Sat, 15 Jan 2022 08:55:28 +0100 Message-ID: From: Takashi Iwai To: Alexander Sergeyev Cc: Jeremy Szu , tiwai@suse.com, "moderated list:SOUND" , Kailang Yang , open list , Huacai Chen , Jian-Hong Pan , Hui Wang , PeiSen Hou Subject: Re: [PATCH 1/4] ALSA: hda/realtek: fix mute/micmute LEDs for HP 855 G8 In-Reply-To: <20220114183720.n46wealclg6spxkp@localhost.localdomain> References: <20210519170357.58410-1-jeremy.szu@canonical.com> <20220111195229.a77wrpjclqwrx4bx@localhost.localdomain> <20220112101249.ya73jvpmqmeh4ggg@localhost.localdomain> <20220112104827.4aymoth7ua65nwge@localhost.localdomain> <20220112201824.qmphnz2hx4frda6e@localhost.localdomain> <20220113183141.kla37mbqmo4x6wxp@localhost.localdomain> <20220114183720.n46wealclg6spxkp@localhost.localdomain> 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/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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Jan 2022 19:37:20 +0100, Alexander Sergeyev wrote: > > On Fri, Jan 14, 2022 at 05:37:42PM +0100, Takashi Iwai wrote: > > > I assume that the referred repository is the one at [1]. I've tried > > > 081c73701ef0 "ALSA: hda: intel-dsp-config: reorder the config > > > table". It crashed with nearly identical logs. > > > > OK, then it's still something to do with the led cdev > > unregisteration. > > > > Could you try the patch below? > > This patch solved the BUG problem. But after unbind/bind micmute LED stopped > working. Speakers and mute LED are fine though. Does the corresponding sysfs entry exist in /sys/class/leds/*? And can you control LED over there? > Dmesg: > snd_hda_intel 0000:05:00.6: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0015 address=0x1fffff800 flags=0x0020] Hmm, that looks bad. Something must be accessing out of bound. > snd_hda_codec_realtek hdaudioC1D0: out of range cmd 0:20:400:90170118 > snd_hda_codec_realtek hdaudioC1D0: out of range cmd 0:20:400:411111f0 > snd_hda_codec_realtek hdaudioC1D0: out of range cmd 0:20:400:270300 This seems to be a bogus COEF. But I have no idea from where this comes. The values look completely wrong. I guess you'd need to put some debug prints to trace down how those are triggered... Takashi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83CFCC433EF for ; Sat, 15 Jan 2022 07:56:27 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 156AF1931; Sat, 15 Jan 2022 08:55:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 156AF1931 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1642233385; bh=C5K5ZEju6fuQYIDdUUr6co2jLU+K2vBEmvJtHtMesnc=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=RWW3Wfly1C7esXSrFyzMQRqh4yr0D+YJQjgcxkqXH9GT4Tq5X3/rctnISjyMRDgFk /XFIcGIEd6AriuJNCnWiQMsGDhzpKYW42Ti1ZBlbqtNHlvZyEEIpInMQcOYBf+GH7c lFfImFgiSuEAmVl0pr0xNxL5AJ2kIbnPwr/KnjrI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id AAABFF80167; Sat, 15 Jan 2022 08:55:34 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3167CF801D8; Sat, 15 Jan 2022 08:55:32 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E35EEF80141 for ; Sat, 15 Jan 2022 08:55:28 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E35EEF80141 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="ROou3wcQ"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="AOzgvSaH" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 60E7D1F3A7; Sat, 15 Jan 2022 07:55:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1642233328; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vbSkh4UntaygzRJkDFV/8mX3nAqS8NhGLcZl6dVcAzY=; b=ROou3wcQitCIjHYh3ohJaecX2Bqbm5A6jZ1hLdxIexi6naaSlkrqzMJLb8bGC8BpuPyzt6 z5aKi60VMasjoyUimEXE7uj+Bo7c7vkZFaYuRYTB9NrMwRIJaFyrlg+r73WubRYgU3J60r zXQ4QFiIc9UUgzlhru0H3pxG79iWpHg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1642233328; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vbSkh4UntaygzRJkDFV/8mX3nAqS8NhGLcZl6dVcAzY=; b=AOzgvSaHSSj22/Z67r4IWoPtIQ/63wDzYwufUq6G0XneSSqKuCPoc6vpQj8VofncYD/gYb U8Mv8aSglT972ZBg== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 1221BA3B81; Sat, 15 Jan 2022 07:55:28 +0000 (UTC) Date: Sat, 15 Jan 2022 08:55:28 +0100 Message-ID: From: Takashi Iwai To: Alexander Sergeyev Subject: Re: [PATCH 1/4] ALSA: hda/realtek: fix mute/micmute LEDs for HP 855 G8 In-Reply-To: <20220114183720.n46wealclg6spxkp@localhost.localdomain> References: <20210519170357.58410-1-jeremy.szu@canonical.com> <20220111195229.a77wrpjclqwrx4bx@localhost.localdomain> <20220112101249.ya73jvpmqmeh4ggg@localhost.localdomain> <20220112104827.4aymoth7ua65nwge@localhost.localdomain> <20220112201824.qmphnz2hx4frda6e@localhost.localdomain> <20220113183141.kla37mbqmo4x6wxp@localhost.localdomain> <20220114183720.n46wealclg6spxkp@localhost.localdomain> 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/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 Cc: "moderated list:SOUND" , Kailang Yang , Jeremy Szu , Huacai Chen , open list , tiwai@suse.com, Hui Wang , PeiSen Hou , Jian-Hong Pan X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Fri, 14 Jan 2022 19:37:20 +0100, Alexander Sergeyev wrote: > > On Fri, Jan 14, 2022 at 05:37:42PM +0100, Takashi Iwai wrote: > > > I assume that the referred repository is the one at [1]. I've tried > > > 081c73701ef0 "ALSA: hda: intel-dsp-config: reorder the config > > > table". It crashed with nearly identical logs. > > > > OK, then it's still something to do with the led cdev > > unregisteration. > > > > Could you try the patch below? > > This patch solved the BUG problem. But after unbind/bind micmute LED stopped > working. Speakers and mute LED are fine though. Does the corresponding sysfs entry exist in /sys/class/leds/*? And can you control LED over there? > Dmesg: > snd_hda_intel 0000:05:00.6: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0015 address=0x1fffff800 flags=0x0020] Hmm, that looks bad. Something must be accessing out of bound. > snd_hda_codec_realtek hdaudioC1D0: out of range cmd 0:20:400:90170118 > snd_hda_codec_realtek hdaudioC1D0: out of range cmd 0:20:400:411111f0 > snd_hda_codec_realtek hdaudioC1D0: out of range cmd 0:20:400:270300 This seems to be a bogus COEF. But I have no idea from where this comes. The values look completely wrong. I guess you'd need to put some debug prints to trace down how those are triggered... Takashi