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=1796389164; b=2gbf7hOl2J+E22uA12A2sN2Lz4+m3OaO6lcuM4lTSsDVkNL15azlPu3+QIx9a1UPYUsB pJRBHemFV+fT55UzbWuJywTYeaXpWOmRboZQ6UJlu9SDLwYz87kxS6DDk2PJzsoNo3P9M +HBVucmWkiRlYk1KWeOZZI4b6ONcWyRH6uDdhtsYFYcGz05QErsDa9L+I+czQI54i5f61 kPg9IJqCrxteQAoGd9MVnBbzC+bNNI870t/3r2HVb/k3nIYKWB07tAI8H1YOMADPMQ3DU G95Z65vcORCRC0WudYo2ExFIaizrTZptP/p17LM1A0Sajhl6+itCLnAyiMVsFCjyIMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389164; 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=560BeJD6Ep8ZZHIesbxBwZYzcm7nXuUqiyjFXzfsAgQ=; b=MGJNuWGCI7iXTOeeRFIPbtpSM6S5qJFRzjnwyHvuKTmUe2QmFsNRXOHb/EvWLO2s/dl9 PapbxX67g25ADtteUYHdfuBB5W6Ajh5vZucgls6guP4q1xXG1WU5r26WOiP1dTIs83d0B c/VCSwqkLhqT+TowOlcxme42avvw6SoCxAAbzqtDqIjjiQq1Yl0/nQtvCnoU4t4HQESZG JxyURqZSrV5gNo1QoZi+3sorfPJ6bqZFp5GTQBtWQ7K0IVYS4YrFTKdxiXxyhUDiCI3Ny ZuF0qAGwji4GB/p+fZIpGKxCzondMT1BbCJIk308wmgm6gwV32k0CsHUhwC2+oK1adA== 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=WintOoPs; 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 91E78606A322; Fri, 4 Dec 2026 12:59:24 +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=WintOoPs Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D3461F00931; Fri, 4 Dec 2026 12:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796389164; bh=560BeJD6Ep8ZZHIesbxBwZYzcm7nXuUqiyjFXzfsAgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WintOoPsk6+jPIQC03UbOCeRfLAXQLEalcLk2nK/b4QLchZiIibmTIiwNRpwDgCla iwSPCft4VA/Yf40NKMYhnFD7ZOEXqwQkPslBLtbgNUD3HZJJHC0ujOhg8TcRNMrSoc 8LYFbN5DHkHMnz98wd8ysGOBzo+oTo/lNZLIGKjk= 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.1 0847/1059] ALSA: hda: intel: Release i915 power also when delayed probe fails Date: Fri, 4 Dec 2026 19:06:18 +0900 Message-ID: <20261204100705.971538950@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@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 6.1-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 09cf67a6a93c4..f3c3909b4a9cb 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2415,6 +2415,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"); @@ -2425,8 +2428,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