From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA97A63AB for ; Fri, 10 Feb 2023 17:15:54 +0000 (UTC) Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-16346330067so7506977fac.3 for ; Fri, 10 Feb 2023 09:15:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VyClQMBbQSWGWc4JTvsot/ddJnBNqXgJaoxlAlfJUYc=; b=qP3hvHkVmsSu2m+AvbBjbuSblc/NmW2KRlb8cEeoUiKXcfold8wugj4Ub/khySHNDb amNnJhtcd/dcyLR51N1buQ6VfInOVsmMJpshdTHMLh4lgU7U/l9bn6UBb0ZrFJR2pNP8 BQQthYqpswGzGt93f3elk9R/4ef1taU2ymBSEbVRy3QAAeVCRL6R6gFVsGsyOY9m4FXQ Kmw752dfQTIV3zNGD0/4Bg/bV5RNuRMOH8pxvtSTtBatyDy6vWlgs70daMwG17jwkheE GOElaDQ7mp+yGxkmMycec1PxbqW7KiCCtxORjUiYvVjtmS8WncFPKOP7bSrZT+GPpCKc oXYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VyClQMBbQSWGWc4JTvsot/ddJnBNqXgJaoxlAlfJUYc=; b=TpWaZjj6PTQda5/uarQu6Vw6KW5LPbQBF8hsRnX+lox0Xvxb3TZnBrlKGi1ot9k5Q1 neSJABJqzKPgE9S2FdEMfjU0+ReI+liTLjxwEk1kF2jh6BqO4aOgeHO3Onsy5jsvoKru 9WgoaBJ/socQc08lHTXucmzHQuPLrPpeT7F8jr+0ZKTGv9MjkeVERgSo6loxqF6gr8/W 94kkRn96MNZH4tpeT1JvESvxc/+nKLVRQZx7/fuVUyW6APs/PkARaeLS6TFf3ZxVIYOY mOMWLdA2MUecncnPWP0B6tAfJAu93lLarlKb0lk7gnMXKoHYAVm0NZBqOCbG2bNgkg0Q esUA== X-Gm-Message-State: AO0yUKXqX33mijt6kj6we730QyK1Tk66mxFgCULekNL5sTKDr07BLxuh rmQYrt8fUaU85ucPR/0gHUI/FzvkZ2bpBSczOhw= X-Google-Smtp-Source: AK7set/UldITBOBZ+cyBJFNaNTS5LVTVZE/3N21gRU/Dw+DyR/S8ykULYKMamzCdziX3znAZDoqSa60uGshuTh/Es98= X-Received: by 2002:a05:6870:10cf:b0:16a:839d:8ce5 with SMTP id 15-20020a05687010cf00b0016a839d8ce5mr2404384oar.298.1676049353681; Fri, 10 Feb 2023 09:15:53 -0800 (PST) Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <02834fa9-4fb0-08fb-4b5f-e9646c1501d6@leemhuis.info> <288d7ff4-75aa-7ad1-c49c-579373cab3ed@intel.com> <04a9f939-8a98-9a46-e165-8e9fb8801a83@intel.com> <6262bd72-cc2b-9d2a-e8f0-55c2b2bb7861@linux.intel.com> <478bb609-8615-31b4-e6f3-8eaaf95b84d6@intel.com> In-Reply-To: From: Sasa Ostrouska Date: Fri, 10 Feb 2023 18:15:42 +0100 Message-ID: Subject: Re: Google Pixelbook EVE, no sound in kernel 6.1.x To: Jason Montleon Cc: Cezary Rojewski , Linux regressions mailing list , Greg KH , lma@semihalf.com, Pierre-Louis Bossart , stable@vger.kernel.org, Takashi Iwai , =?UTF-8?B?QW1hZGV1c3ogU8WCYXdpxYRza2k=?= Content-Type: text/plain; charset="UTF-8" On Fri, Feb 10, 2023 at 3:57 PM Jason Montleon wrote: > > On Fri, Feb 10, 2023 at 8:10 AM Cezary Rojewski > wrote: > > > > On 2023-02-09 5:13 PM, Jason Montleon wrote: > > > I've done some more digging. The only line that needs to be reverted > > > from f2bd1c5ae2cb0cf9525c9bffc0038c12dd7e1338, moving from > > > snd_hda_codec_device_init back to snd_hda_codec_device_new is: > > > codec->core.exec_verb = codec_exec_verb; > > > (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/sound/pci/hda/hda_codec.c?h=v6.1.11#n931) > > > > > > I added a bunch of debug statements and all the code in > > > codec_exec_verb runs at boot with this in snd_hda_codec_device_init, > > > whereas it does not when in snd_hda_codec_device_new. > > > > > > From what I can tell we end up in snd_hda_power_up_pm and then get > > > hung up at snd_hdac_power_up. > > > > > > There are a bunch of pin port messages that show up from > > > hdac_hdmi_query_port_connlist when things are working, that never > > > appear when broken: > > > [ 14.618805] HDMI HDA Codec ehdaudio0D2: No connections found for pin:port 5:0 > > > [ 14.619242] HDMI HDA Codec ehdaudio0D2: No connections found for pin:port 5:1 > > > [ 14.619703] HDMI HDA Codec ehdaudio0D2: No connections found for pin:port 5:2 > > > ... > > > > > > I do see hdac_hdmi_runtime_suspend run a moment before things go bad, > > > but I have no idea if it is related. > > > > > > Without patching anything and CONFIG_PM unset everything works. > > > > > > I don't know if that helps anyone see where the problem is. If not > > > I'll keep plugging away. > > > > > > Incidentally, commit 3fd63658caed9494cca1d4789a66d3d2def2a0ab, pointed > > > to by my second bisect, starts making using of skl_codec_device_init > > > where I believe snd_hda_codec_device_init is called and starts the > > > problem. I believe this is why reverting either of the two works > > > around the problem. > > > > > > This is some exceptional debugging, Jason. > > > > I believe this finding reveals a long standing problem that was covered > > by a very specific codec-fields initialization order: > > > > During initial part of codec-device initialization, VERBs execution > > follows different flow than one happening once the device is fully > > initialized. This comes down to the if-statement preset in > > snd_hdac_exec_verb() and the fact codec_exec_verb() differs from > > snd_hdac_bus_exec_verb() in PM-handling - the latter is devoid of it. > > > > Thank you for the explanation! I was not following this well, but it > makes sense to me now. > > > That is until ->exec_verb gets initialized and codec_exec_verb() becomes > > the sole handler of VERB execution process. As PM is not yet configured > > at the time - snd_hda_codec_device_init() happens early, whereas PM > > configuration is done later with snd_hda_set_power_save() during > > skl_hda_audio_probe() in sound/soc/intel/boards/skl_hda_dsp_generic.c - > > it should not be touched yet. > > > > I'm up for reverting this single line to where it was before the > > offending patch. We still want to avoid the page fault the very patch is > > addressing. > > > > Does the proposed change address both problems? i.e. no sound and hang > > during shutdown? > > Yes, moving the one line back fixes both the no sound and shutdown hang. > > Thank you! > Jason Montleon > > > > > Kind regards, > > Czarek > > > > > > -- > Jason Montleon | email: jmontleo@redhat.com > Red Hat, Inc. | gpg key: 0x069E3022 > Cell: 508-496-0663 | irc: jmontleo / jmontleon > Congrats to all of you people !! Thanks for the fix. Sasa