From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796386365; b=oz7UvMa2o0RxIbaO7ordqmyJFoc4L9wP+EqHqvQpRTnwFLU4p11cRbdruhUYwudPvvyV tvjQSLgRmL8ivElK9EM3SclK7/wO1F277AWoPaSQpeD51w9goQCklyu9850XbGOYOYqDx 54tiAmbn/eFjQ7TUT7PB5rf3haL7bPTkPKMeguKUTwr2XNGsVb4fO2aSYFTRRcJVuOn4A QrDat4XpvIJssfJ1mmpu+m8yTv9Au9QZkXetQ0E3iuYn3jR/h0IHVZjiFbGFbMwiApd6e gJE/B06UzuZMXxcSEdEEkXdkZHKL3DCmdWJ8d8kUTmYrLL/nuU+BhL1VYr6AIj0+riA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796386365; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=Lwud0ANzkPsUueXPixutsyaKy6P36Q1/MFD7UObFrNg=; b=KOjcO/twP/P5A2rCY72P1CbLdvO7segz/ulvVcvfmynmFdPodyqmywplkjQao8I/wRJ5 3ysUbxL7/HWP3kXoeTCwr/SbkRtzkpHQTNVZJVQsHoM2m09vstZcmuObNR9G96x0o1nN5 FvYuFe22EzoBiySGsQZmVRsDR62eukO3uYtMYzy/vZDXoGH5s7pJcOFDihPSP6Wg2THlo Sybk9X5SHNrbMx/EyITapCHlfZ58ME8yCTIL3Fwcbp2IUW7yF7d6POSB7u5iz999zRCo4 azq15048+e/Kmmi6REvZPC3idgaZTqVSfYjA/s4D903RwYk22NEjskvXtR19AKF7C4w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=nei+Mj6N; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAC0C606A337; Fri, 4 Dec 2026 12:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=nei+Mj6N Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1541F1F00897; Fri, 4 Dec 2026 12:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796386365; bh=Lwud0ANzkPsUueXPixutsyaKy6P36Q1/MFD7UObFrNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nei+Mj6N7/6MBf60saXfDWdL85mrclmlvMiL9BxMZtk/OxpWUMHeopOwmeQNZRCDZ O1GyILD6LHnhBtTSSmf+Xk4HInnsnJLnTJ439eJVOTtBK0MQukar2kQQc2wX7V//qJ 5u8QdXd+em24/XxbzxgwNeHvz3XAyV3p5W51tA08= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Michal Grzelak , Kai Vehmanen , Takashi Iwai , Sasha Levin Subject: [PATCH 6.6 0931/1167] ALSA: hda: intel: Release i915 power also when delayed probe fails Date: Fri, 4 Dec 2026 19:05:58 +0900 Message-ID: <20261204100726.442958777@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kai Vehmanen [ Upstream commit 0a5550dd94e61852941fb37142f4664ecddef312 ] Commit fbaccb1b19c7 ("ALSA: hda: intel: Don't free card in the probe work") stopped freeing the card from azx_probe_work() when the delayed probe fails, and only disconnects it, leaving the free to azx_remove(). This avoids the double free, but the resources that were released by the card free via azx_free() are now kept until the PCI device is unbound. In particular the display power reference stay held, blocking runtime suspend for i915/xe. Release the display power in the azx_probe_continue() work in all cases. This power reference is only taken for the purpose of the display codec probe. If the display codec probe was successful, it will have taken its own reference. In case of systems with the HDA controller on GPU side (hda->need_i915_power), functionality is same as before - we have to keep power. Fixes: fbaccb1b19c7 ("ALSA: hda: intel: Don't free card in the probe work") Reported-by: Michal Grzelak Link: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/17751 Signed-off-by: Kai Vehmanen Link: https://patch.msgid.link/20261120150937.2187228-1-kai.vehmanen@linux.intel.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/hda_intel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 7d23b66baef32..6864c0725d2c7 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2420,6 +2420,9 @@ static int azx_probe_continue(struct azx *chip, bool free_on_error) } out_free: + if (!hda->need_i915_power) + display_power(chip, false); + if (err < 0) { if (hda->vga_switcheroo_registered) dev_warn(&pci->dev, "GPU sound probed, but not operational: please add a quirk to driver_denylist\n"); @@ -2430,8 +2433,6 @@ static int azx_probe_continue(struct azx *chip, bool free_on_error) return err; } - if (!hda->need_i915_power) - display_power(chip, false); complete_all(&hda->probe_wait); to_hda_bus(bus)->bus_probing = 0; hda->probe_retry = 0; -- 2.53.0