Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1156987pxb; Fri, 21 Jan 2022 11:04:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjLGiiDz/U2xjTN6Kp9ojBtYc572T1DxrcYAcXZfdGgTsAm3qIOEaqd3LN5Zo3130vZ65i X-Received: by 2002:a17:90b:1a88:: with SMTP id ng8mr2058094pjb.221.1642791841095; Fri, 21 Jan 2022 11:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642791841; cv=none; d=google.com; s=arc-20160816; b=T48Olb2CjEZbCX27+3AM2vakz8lJvnFobIrWyeWTKmySDZoyPlPRqCMfaKDVc2A0mo Rviv+x+xmBMyJ5W+t1yzJre+DSd6Q1gm/K9E59rHVHlt188mSaDrLJwPFf1L4TqxruL5 Yi41/HWlCUREXReNB5PTP37Tc2AqVX22mlkPK6iFbVZ2GE3W0cIh3EgoeDRxEUlf6sD+ grHtTEOtkozsrY8tk3oFgOMZp5rHSJcyFdsdIfvi221RBt2E06u3Khxb3K/ioanKuMFv 5t8Y7Mx4XXhZsG5vev+ciYvt5aN8hWjREYWZeS9Zo50/jx+ZGLp4KdGkLdE96gg8PDzX 057w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:user-agent:message-id:subject:cc:to:from:date :dkim-signature; bh=u5lDwO+2XRK8rlP7NLgszztTGNGruOFaEDeVGg6XhHY=; b=SRR2RHLsV/mNj+GkRIvK1CUS3QSS6U3dQ1Yktxe95x/puqihMuS2vzcZ4K7Ot2KqoS +rROlK7MdZu+XzTrEDcvkkAJfjQNdB7d1KIO1IZqR9ZPoIia7vhBbAzn2oclaOS3KLXe zsCx3nwoVDFWQ00/0cY8Q6EG+ZbTts8BlfFvIn92UDcopnG7PPtmYbtJsQaZ5v43CB3d lpUU5rgV4yF3Br4AvNK+TzXyfRd/bpU+UREkxtss2pNrgT0V5002D8hctD2S8nGIqhl7 PTCm5+ZlTIqE0GGovAjz5iMaH2ozjS6oYOp22czJWCSKwDSVu9hVwu+CCfYXmL2k1K6W 1d8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lwP3af+I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si5656087pgb.675.2022.01.21.11.03.49; Fri, 21 Jan 2022 11:04:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lwP3af+I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353062AbiASJ1M (ORCPT + 99 others); Wed, 19 Jan 2022 04:27:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352766AbiASJ1I (ORCPT ); Wed, 19 Jan 2022 04:27:08 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17650C061574 for ; Wed, 19 Jan 2022 01:27:08 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id p27so6935198lfa.1 for ; Wed, 19 Jan 2022 01:27:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:user-agent:references :mime-version:content-disposition:in-reply-to; bh=u5lDwO+2XRK8rlP7NLgszztTGNGruOFaEDeVGg6XhHY=; b=lwP3af+Iz6VPA9+Q2nCdQo1sMq9nVMIsjYYH4vvuH5N01oYYSSdphao4uxw8RYQnsi 0hfm7MEWrM3oNZw0xonaYTn+eTKdb0Z2e5yfNPreuU/YRUlzSwl/FQSv2r3d2MFuZnts SZIsamz3rJXmVJ5JHA/Ah4veRyDq2lcG0APCU2wz03RazM8dIvvZctP2h8cxw1/17qTT HDEZZCVWi/6HLw2k3Yqu1Wp88d4xsx/+Hxe5P4EQhz+znbzVWhOvnSF3h7WhqMnrqe3k c+kGEWLNwxr45+Uv5pmhvDN25jmmKjelXCK3PS7bkEjziE2nSk2YWnPUU72/UdtRXfUx 8tKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :references:mime-version:content-disposition:in-reply-to; bh=u5lDwO+2XRK8rlP7NLgszztTGNGruOFaEDeVGg6XhHY=; b=zj6cwQTs9QoG9UqnEIWqn4FaB6alCqvHiDWv8xsOEkxEdAzVofP4xwpQThhsY55tlh t49vNQVgjwvbIETAJlVRdXzy3D8mZDug9K1jVBPRuIaNNEuz8fISS/GrIcpSDGdIOUdE lygeLlNMwxZXt5/yDlGOoqXue2Tod0ijEqwKvu06yc67swGtS5hvoJaAbeKsDnpRqi1E +XRjFj8m7u0HY8yWBo64CwZl385boJImFhxcJQYkuFTmHH4zlC/E8ZQb+CVy2m4agB7h UWxUZghPb25isRb6Ssp7vmdnEM2OdQXvtQenpFWFlxrlUYz9GmoKmbhXZy26QeEunxtf /vig== X-Gm-Message-State: AOAM5313VDUtHlPZNO4CiuzigZE6yU4GBejciIk7t3wQklrRDEQPBrFO lLv6m/dbmzTzsz79dyI64xM= X-Received: by 2002:a05:651c:10bb:: with SMTP id k27mr13004663ljn.310.1642584426348; Wed, 19 Jan 2022 01:27:06 -0800 (PST) Received: from localhost.localdomain (broadband-95-84-228-163.ip.moscow.rt.ru. [95.84.228.163]) by smtp.gmail.com with ESMTPSA id d5sm1230305lfs.26.2022.01.19.01.27.05 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Wed, 19 Jan 2022 01:27:05 -0800 (PST) Date: Wed, 19 Jan 2022 12:32:49 +0300 From: Alexander Sergeyev To: Takashi Iwai 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 Message-ID: <20220119093249.eaxem33bjqjxcher@localhost.localdomain> User-Agent: mtt References: <20220112104827.4aymoth7ua65nwge@localhost.localdomain> <20220112201824.qmphnz2hx4frda6e@localhost.localdomain> <20220113183141.kla37mbqmo4x6wxp@localhost.localdomain> <20220114183720.n46wealclg6spxkp@localhost.localdomain> <20220115152215.kprws5nja2i43qax@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 19, 2022 at 10:12:43AM +0100, Takashi Iwai wrote: > > Actually, the timing issues are present here as well. Sometimes unbind & > > bind works fine. But fails on the second round. > > Here "fails" means the kernel Oops / crash? If yes, the back trace > would be helpful. No, I mean "IO_PAGE_FAULT" and "out of range cmd" don't appear on every unbind & bind. Sometimes it works cleanly. Backtraces for the source of "out of range cmd" messages: --- a/sound/hda/hdac_device.c +++ b/sound/hda/hdac_device.c @@ -231,6 +231,7 @@ static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, (verb & ~0xfff) || (parm & ~0xffff)) { dev_err(&codec->dev, "out of range cmd %x:%x:%x:%x\n", addr, nid, verb, parm); + dump_stack(); return -1; } give me the following: snd_hda_codec_realtek hdaudioC1D0: out of range cmd 0:20:400:90170118 Workqueue: events set_brightness_delayed Call Trace: dump_stack_lvl+0x34/0x4c snd_hdac_make_cmd.cold+0x17/0x2c snd_hdac_codec_write+0x16/0x60 coef_mute_led_set+0x3a/0x60 set_brightness_delayed+0x6f/0xb0 process_one_work+0x1e1/0x380 worker_thread+0x4e/0x3b0 ? rescuer_thread+0x370/0x370 kthread+0x145/0x170 ? set_kthread_struct+0x50/0x50 ret_from_fork+0x22/0x30 I'll have more time to look into this deeper later this week.