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=1796380241; b=VwXBmF6roHLwjmRhUGO4/zAoax7X54fgk6/sXhPWxfuCA1miRM8a1vt34IvEwPN/p1II 5p8K+N3YkXNAfIFPOne6fEfrJ8BAUuRHyJlEcTy0LE/4Hr/dMGm2pxkKeAV14soDcHZoU QJc4HkF7zU7eF2HNCqpgDrZ6/jCZntJXydztSvR7ipo3cHSQBIhiJWN+JXKj6Ez+tS9ZH 7v8vhTi72LU0nWWRAnEb6ElazjE/2qnJAeR9OWTQTJmaddYNq7iyP3jvfYOiCdBlHamDu tiVgUt8v2W+IWDcjBn7C7LhqjlppPV2iJy9MkK1jEtS0y5K/PnCB7+c+2qc3xckqMhg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380241; 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=EWEbv+br8d41M8CQbaFodLVvJ+TKOFdBIfgvRMNVJaM=; b=hsfbD5upLbizulfWBC9gvLpNfy/Z8H6jvkzwlzeu14BlUGaGqKnuZjCPBSuxwVDFAKr0 w3ELut0esElDZCejb9KHB1U1rdMjt7gFYl8QYM5F90aIo0m060cH2rMpqdva9hEAD9Rek Rwe8GGNV/4h0kx9EHZ6OdeZm0SpPgsT/Bsx2jfiuI9UbcdsVjq+gUVa6r1yCvbM61fNPF ddhYKeKUSSUBaGYfIYYNVTpQqXyZ8RL8HVaef6c7i4bp/DFXR7BjS8GlhAfa6/9fg5Vw5 A2xeqhYiIGGTMc1C3vlW+MFW1GOudQ9v7U6xpsAwKWHIR8KLPzT7LKjeF0o7JWWVRoQ== 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=NWEDRETY; 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 619D6606A322; Fri, 4 Dec 2026 10:30:41 +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=NWEDRETY Received: by smtp.kernel.org (Postfix) with ESMTPSA id D41301F000C2; Fri, 4 Dec 2026 10:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380241; bh=EWEbv+br8d41M8CQbaFodLVvJ+TKOFdBIfgvRMNVJaM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NWEDRETY/JCrodVR+CCDb98W8JVd6Lg0sFYjsjyjSBY4ccF0L+YsIRdtWvoeP5s8I 2dEHsaauI4R2zSBSDELRmXXBMlY89jR/Mn3Gt0BRwgnCOVnyDum93eEKYziRfBRUOF yCPlcWBh90Vlw7HvyoxAJzuzQFxViKT9662/Xp3I= 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 7.3 189/742] ALSA: hda: intel: Release i915 power also when delayed probe fails Date: Fri, 4 Dec 2026 19:00:53 +0900 Message-ID: <20261204100640.099481633@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-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/hda/controllers/intel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/hda/controllers/intel.c b/sound/hda/controllers/intel.c index 6b80b59b87430..7d3f2b6030788 100644 --- a/sound/hda/controllers/intel.c +++ b/sound/hda/controllers/intel.c @@ -2450,6 +2450,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"); @@ -2460,8 +2463,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