Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp595870pxh; Wed, 10 Nov 2021 06:36:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwI7r4khnJ5h3ERX5ukFtJ48F13wjLBHWXq/V95Yr+zzHJSjmhF4Bvni7m6SvYOrbqU0gbE X-Received: by 2002:a17:906:af1a:: with SMTP id lx26mr137190ejb.44.1636554975074; Wed, 10 Nov 2021 06:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636554975; cv=none; d=google.com; s=arc-20160816; b=VthxuVXnNGqm0GZwAsOYPxi4Jb1AxkwGP5julfEPuLGDngcfEJI71i3jN2ZVtcCbDd yoanj7Gtuo2K4ks5XmnHcI6Jm0eq++ucIm0AQ5UgeoBMLddo+3L62910wpDM98dRjnqJ imFOgb7bfgmOHOf913BGAs5ovP2aoZFq6JMcwX8XQUNliTswo3E/XXxn3l+ItA+K9pp5 UGuHol2ImH2bIL2dQCAWRdR5ohXWnoXg5SvUayZs1noiW+gtCdkUb5Cn9Dlsxg7bkuua w0YeoXYzqaVArkatOLDFryHnqLoB4o1XZvi5nlEoll9Sl6Hd+aiBpJEq5HbMn5GKM1uS +aDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=a7/tXrG1LGQXohNn+eUyg7B/bjycMfboDc+vZ1jI5Rg=; b=XfAWib18WU7gIuJCr3Q24ySgWV5a8ZShiwUpwuSfrV2003AOyy+2385G4DNwubVDVz 0iMRVoGv+yYDJteIaDc5oPbfq9a8KuWBYOvf8oTwBOkEw4w0/3TNu7afexD8gpoNcBxc /jV6EyAxSNzJ/T+YO695ApnSAWrmNsl4JO319fdxqlklmisNqusS7+jsJALflRQObS78 o6XEGu40AxGoA8nfM04YDLtlhkRJFIaQjyxfYOblp0hhrm7H1H2/zfXzZa5Rf8jMHHNx K4t1WHMGhIRNyGXpsx7Cud/+xQPoYvcwaBmFNuj7o/p7NO5FQOZ/UDGwemSUe2VVCu0H NkgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="FicL/c0k"; dkim=neutral (no key) header.i=@suse.de; 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=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz8si53861ejc.182.2021.11.10.06.35.50; Wed, 10 Nov 2021 06:36:15 -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=@suse.de header.s=susede2_rsa header.b="FicL/c0k"; dkim=neutral (no key) header.i=@suse.de; 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=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232182AbhKJOf5 (ORCPT + 99 others); Wed, 10 Nov 2021 09:35:57 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:53070 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231731AbhKJOf5 (ORCPT ); Wed, 10 Nov 2021 09:35:57 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id B755B1FD63; Wed, 10 Nov 2021 14:33:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1636554788; 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=a7/tXrG1LGQXohNn+eUyg7B/bjycMfboDc+vZ1jI5Rg=; b=FicL/c0kr+EzHMBL2Bq61fxVheD25oMosP70CyIlNBw6uEBMdJFj2umuTeIaxGe/HFeGFn iS82Ab3uYeItt5+s1nRqVaNCThYrcLvU2U1hkHeQpf0OpZGDqgOaDWmfQyqKrJTIS2/b+J NxwFi6vs+1PvZXUR1n+WuTar93jLWCg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1636554788; 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=a7/tXrG1LGQXohNn+eUyg7B/bjycMfboDc+vZ1jI5Rg=; b=jfDZfPEG1xsC2RkB/VfJWkpybybGB1qT8pOSUjs7PD4PsZ5G9logf5i2t6Raq20w6/2U7Y sR5IkRyFzIWklTBg== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 2141DA3B84; Wed, 10 Nov 2021 14:33:04 +0000 (UTC) Date: Wed, 10 Nov 2021 15:33:08 +0100 Message-ID: From: Takashi Iwai To: Scott Branden Cc: perex@perex.cz, tiwai@suse.com, ranjani.sridharan@linux.intel.com, broonie@kernel.org, kai.vehmanen@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, regressions@leemhuis.info Subject: Re: 5.15 Linux Regression in sound hda In-Reply-To: <063e2397-7edb-5f48-7b0d-618b938d9dd8@broadcom.com> References: <063e2397-7edb-5f48-7b0d-618b938d9dd8@broadcom.com> 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 Tue, 09 Nov 2021 22:12:30 +0100, Scott Branden wrote: > > I'm reporting a new WARN_ON in sound/hda/hdac_bus.c that was not > present in 5.15. Sorry, I don't have time to bisect this right now > but report is below. > > dmesg in 5.14 kernel was: > snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops 0xffffffffaa2ac520) > GACT probability on > Mirror/redirect action on > Simple TC action Loaded > u32 classifier > Performance counters on > input device check on > Actions configured > hdaudio hdaudioC0D0: Unable to bind the codec > hdaudio hdaudioC0D2: Unable to bind the codec > > dmesg in 5.15 kernel produces WARN_ON in sound/hda/hdac_bus.c > snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops 0xffffffffad8b02a0) > GACT probability on > Mirror/redirect action on > Simple TC action Loaded > u32 classifier > Performance counters on > input device check on > Actions configured > snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up > Initializing XFRM netlink socket > ------------[ cut here ]------------ > NET: Registered PF_INET6 protocol family > WARNING: CPU: 14 PID: 186 at sound/hda/hdac_bus.c:73 This indicates the leftover codecs on the bus, and it's likely triggered by the recent change to allow retrying the codec probes. Did this HD-audio stuff work at all before 5.15? The codec bind error itself shouldn't be brought by that change. The warning itself can be solved by the patch below, I suppose (note: totally untested!) thanks, Takashi --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2327,7 +2327,8 @@ static int azx_probe_continue(struct azx *chip) out_free: if (err < 0) { - azx_free(chip); + pci_set_drvdata(pci, NULL); + snd_card_free(chip->card); return err; }