Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp521845pxb; Thu, 5 Nov 2020 06:23:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7nDmdqMNwUgDR4lVzLZvMdOm8wNgTucj5sHLeQGOHrhLbvoNwgc5IwmJ4U45Tyks50L2g X-Received: by 2002:a17:906:3958:: with SMTP id g24mr2613086eje.360.1604586231137; Thu, 05 Nov 2020 06:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604586231; cv=none; d=google.com; s=arc-20160816; b=pjspsU6WHjE3ow/0vHRlXMc8djSufovKFOjbFNi7Fw7OT+z9CqvIr/1DD3UO7YCKzR ufh/h/69Ng5ivOK4YAy/Ax7E3j1EnqHaytDI4jxTrDPwM2bFz1zIGGPsTrF2MEfIVeRJ 4VRmAF8z70n5croGvlRhvSbCxIpzdLLho/5sy6wnXPUZtxLIl+iw2iH6O7NxcGbac+CG S6qQ1dKd1QANzr8OXn6CFmh+zIZ7sR4jVG9OQM3AQf2hTCc+C0KsOX9f3jln+mCsnJI4 xKr7X3/KsuOapAGwyFm3w2b6YBXAafEd/ndgY+u3k875E9wgdcKQTm0raag6B3llh3rg JM8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=a4FzviSnYmzSG5GJr0bxo2jYVJQWTAMKPNfpGRrOuHA=; b=tdTHoG1HBVkJQvmKOlI4KFMcDoaSPC4G8r/V02eovrIAF+SfX90NIYmxZNb414phuR 7B/JbbOzAVk4DAoPgbLkJ5MP3UTeehW1jdGxVMk6siZ2Q3UP8MvYxC892YpLE2R8itzQ SFeB/INWylGcy6gmWBbBFKz2MVxCus45J4AzG7sXbBgBPdJuqoASOGCsAa1rFhKwp6g2 CwXr1Vxrb7ILj9Z59QEkUOGSR0Ajh1EDaogjfb1vIg8EIQFziMeqMwlvtcniRfGfZEAr B9INbSPW44AcjqEeTQi0AIvCeCm17Nr6uCNI1N5lwLQLtT9gz5rr0pukR9CC4gYC+WGv dXKg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp20si1046726ejc.620.2020.11.05.06.23.27; Thu, 05 Nov 2020 06:23:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730975AbgKEOV6 (ORCPT + 99 others); Thu, 5 Nov 2020 09:21:58 -0500 Received: from wp530.webpack.hosteurope.de ([80.237.130.52]:56322 "EHLO wp530.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbgKEOV6 (ORCPT ); Thu, 5 Nov 2020 09:21:58 -0500 X-Greylist: delayed 1989 seconds by postgrey-1.27 at vger.kernel.org; Thu, 05 Nov 2020 09:21:57 EST Received: from ip4d145e30.dynamic.kabel-deutschland.de ([77.20.94.48] helo=[192.168.66.101]); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1kafcw-0004jl-Bi; Thu, 05 Nov 2020 14:48:34 +0100 To: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rander Wang , Pierre-Louis Bossart , Bard Liao , Guennadi Liakhovetski , Ranjani Sridharan , Mark Brown , sound-open-firmware@alsa-project.org, alsa-devel@alsa-project.org References: <20201026234905.1022767-1-sashal@kernel.org> <20201026234905.1022767-39-sashal@kernel.org> From: Thorsten Leemhuis Subject: Build error with 5.9.5 in sound/soc/sof/intel/hda-codec.c (was: [PATCH AUTOSEL 5.9 039/147] ASoC: SOF: fix a runtime pm issue in SOF when HDMI codec doesn't work) Message-ID: Date: Thu, 5 Nov 2020 14:48:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201026234905.1022767-39-sashal@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1604586117;170aacbe; X-HE-SMSGID: 1kafcw-0004jl-Bi Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lo! I just tried to compile 5.9.5 and ran into a build error with below patch. I only did a quick look (I have to leave the keyboard soon), but seems the patch quoted below that was added to 5.9.5 depends on 11ec0edc6408 (git.kernel.org/linus/11ec0edc6408) which wasn't backported. The build error can be found here: https://kojipkgs.fedoraproject.org//work/tasks/8246/54978246/build.log Relevant part: + make -s 'HOSTCFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection' 'HOSTLDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' ARCH=x86_64 'KCFLAGS= ' WITH_GCOV=0 -j48 modules sound/soc/sof/intel/hda-codec.c: In function 'hda_codec_probe': sound/soc/sof/intel/hda-codec.c:177:4: error: label 'error' used but not defined 177 | goto error; | ^~~~ make[4]: *** [scripts/Makefile.build:283: sound/soc/sof/intel/hda-codec.o] Error 1 make[3]: *** [scripts/Makefile.build:500: sound/soc/sof/intel] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [scripts/Makefile.build:500: sound/soc/sof] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/Makefile.build:500: sound/soc] Error 2 make: *** [Makefile:1784: sound] Error 2 make: *** Waiting for unfinished jobs.... + exit 1 Looks like the compiler is right from a quick look at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/sound/soc/sof/intel/hda-codec.c?h=linux-5.9.y&id=43836fdc9e318a11233cf19c5ee7ffb04e8e5d8f But as I said, I lack the time for a closer look. Ciao, Thorsten Am 27.10.20 um 00:47 schrieb Sasha Levin: > From: Rander Wang > > [ Upstream commit 6c63c954e1c52f1262f986f36d95f557c6f8fa94 ] > > When hda_codec_probe() doesn't initialize audio component, we disable > the codec and keep going. However,the resources are not released. The > child_count of SOF device is increased in snd_hdac_ext_bus_device_init > but is not decrease in error case, so SOF can't get suspended. > > snd_hdac_ext_bus_device_exit will be invoked in HDA framework if it > gets a error. Now copy this behavior to release resources and decrease > SOF device child_count to release SOF device. > > Signed-off-by: Rander Wang > Reviewed-by: Pierre-Louis Bossart > Reviewed-by: Bard Liao > Reviewed-by: Guennadi Liakhovetski > Signed-off-by: Ranjani Sridharan > Link: https://lore.kernel.org/r/20200825235040.1586478-3-ranjani.sridharan@linux.intel.com > Signed-off-by: Mark Brown > Signed-off-by: Sasha Levin > --- > sound/soc/sof/intel/hda-codec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/sof/intel/hda-codec.c b/sound/soc/sof/intel/hda-codec.c > index 2c5c451fa19d7..c475955c6eeba 100644 > --- a/sound/soc/sof/intel/hda-codec.c > +++ b/sound/soc/sof/intel/hda-codec.c > @@ -151,7 +151,7 @@ static int hda_codec_probe(struct snd_sof_dev *sdev, int address, > if (!hdev->bus->audio_component) { > dev_dbg(sdev->dev, > "iDisp hw present but no driver\n"); > - return -ENOENT; > + goto error; > } > hda_priv->need_display_power = true; > } > @@ -174,7 +174,7 @@ static int hda_codec_probe(struct snd_sof_dev *sdev, int address, > * other return codes without modification > */ > if (ret == 0) > - ret = -ENOENT; > + goto error; > } > > return ret; >