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=1796383469; b=ZRAAw4al42Blq3pEZNxLDkGz89dnlUgSCFR27CYfoo9gp1ROq1D8V+qdl1m81LweSPjH j6UGkQwHgiVDXOK13lWrKkQRdlggpPgL/e4oX/M8YNHBe6R24wU99aJ/HTKEviP/AYcoW C0WKPthnQJzZsML7aGnxxC35aT2p23gYfdWd/tAYRtQpatw7f3g+l+WdA2ea+A2BfdDX1 vlvuEP33HfxSo2L/fb1SUasZAqpyWjNNYJ2SNpGlOqI490pwhgctiIoQX+wr8uXXUVSST LG8kybCG0tGFjTUqA65u+Fgnx4dluKX67sB7HeTxBRkW/keSh1V0f5RxxgRw+cFFm1g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383469; 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=y3YISf/86r1ygc9SqtvCe5PpbjbxQHV4VLJZnOdVbTw=; b=NWKz2LkSFvZNMYVVu0gQaqjC/M8mHlHo2Srj1V2cSTPv51QNse01YSP/FPZ8ViBeNMDm Ws65SfiJdEEb07zNhXtVc66rjof8VpC075NhkqrzemLtbPhIUq2nXQY80870/cNuGfxyN 1ZrpSkd0HUd1cFg72abAb19z2r9OwNtEjX+kjGOc30W7oSkpWrdXC4QJhL/Mrn8V0En3D DmIz9HRLzwZWrJ7u4Wdz/v4KMFTf8Yf35XV4HKURYIxEso3cRX5UZoDOF8/nyxZIcXqe0 lDTyKowNwFC2awySCSmU1TfQfomLfutTl/r6wYTb4GcNExEVo7Gk5dlZDgSjG8Ud9fw== 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=2V7N7iLt; 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 A5827606A330; Fri, 4 Dec 2026 11:24:29 +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=2V7N7iLt Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11D8F1F00A05; Fri, 4 Dec 2026 11:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383469; bh=y3YISf/86r1ygc9SqtvCe5PpbjbxQHV4VLJZnOdVbTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=2V7N7iLtV98aYdnJgXiZI6A/7Qx16YBaNtS89BqpquX0hPv2xtftr09YK6iwfPEbo P5ZVrGAdTrKzHk+SQdMicLJMiFxEJ6hGwSuo1fraLbEHJB4Lx0CuVt/pE0Z0SH/V9v y1mP5UWteD6emTIHdZ2/fATNTrisFAM0yf6MafU8= 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.12 238/555] ALSA: hda: intel: Release i915 power also when delayed probe fails Date: Fri, 4 Dec 2026 19:04:41 +0900 Message-ID: <20261204100618.272778935@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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.12-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 979290248eaba..754965cc0a48e 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2386,6 +2386,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"); @@ -2396,8 +2399,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