From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E4CC4FD267; Wed, 30 Sep 2026 16:06:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784383; cv=none; b=TmGlin+aQ+8/Ju5ubFhre7OcvncujPBYjWnj4MyVN16OAStESLF5horWrTFyrEdPllIf++dVlR2gLE+ANBV9mw1buGisVgv5Sl4YDpqkTnocEcZx22zn+eGhqxz0bpTCO7I4axHnyvZ27cs096BWQVpayZeAJhAyJbQZ8tQST9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784383; c=relaxed/simple; bh=7xMaePklfrXh28G6eZegsA8ENzrylNPoF/gRwTTbWws=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XiDwEVs+EziVocXUKj/Rywil1577Bhp/7eJC9NGf/yOU4WMjYZvxyijamUAycu44jIHWxo6g26eEBXZv2pPpg+zB/t1W0WAem94sVhfxMNJjIrMe9aXOEtMVjnIKDIf0UL1PWlPsBzr5IL1dWL1WJ4uyq668CdpfN/MziZyTnig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Kkm8Sr8v; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Kkm8Sr8v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD8701F00899; Wed, 30 Sep 2026 16:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790784380; bh=VME9xsk2PgnVHoLgp7iHCB0USimDTWsb3g3p4b1OH/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Kkm8Sr8v4uqWthapwZUolI+Z4Ii0W0vO3ACOyHnGcGl9nMjywq+fofz7fz5xU/2O6 zw4E/ddm6fp5zsEcm2Fb4W7RtAqNyC7L7eCcGALBDto2dCHwFKeIVWU3hkPmEgyFOG dJXCxPfSvRqmWf+XGF7juFssIrBqZxxvinwxB25U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chen Pei , "Dan Williams (nvidia)" , Alison Schofield , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 6.1 135/982] ACPI: PCI: Clear _DEP dependencies after PCI root bridge attach Date: Wed, 30 Sep 2026 17:14:31 +0200 Message-ID: <20260930152419.714828777@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152416.775402466@linuxfoundation.org> References: <20260930152416.775402466@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chen Pei [ Upstream commit 3a59c3b772e5dc0cedecce8e7fbf7c2d6245b643 ] PCI root bridges enumerated by acpi_pci_root_add() can be the _DEP supplier for other ACPI consumers, most notably ACPI0017 CXL root devices whose probe path depends on acpi_pci_find_root() succeeding. Once the root bus has been added, those consumers can safely be enumerated, so notify them by clearing the dependency. Call acpi_dev_clear_dependencies() at the end of acpi_pci_root_add(), after pci_bus_add_devices(), following the same pattern used by other ACPI suppliers such as the EC (drivers/acpi/ec.c) and the ACPI PCI Link device (drivers/acpi/pci_link.c). The clear is intentionally done only on the success path; on the error paths the supplier did not attach and consumers must keep dep_unmet set. This is a prerequisite for honoring _DEP on ACPI0016 host bridges, which matters on architectures where the probe order of acpi_pci_root relative to cxl_acpi is not guaranteed (e.g. RISC-V). Signed-off-by: Chen Pei Suggested-by: Dan Williams (nvidia) Tested-by: Alison Schofield Reviewed-by: Alison Schofield Link: https://patch.msgid.link/20260526025118.38935-2-cp0613@linux.alibaba.com Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/pci_root.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 92e7aefcce81b..4201677fa748b 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c @@ -763,6 +763,10 @@ static int acpi_pci_root_add(struct acpi_device *device, pci_lock_rescan_remove(); pci_bus_add_devices(root->bus); pci_unlock_rescan_remove(); + + /* Clear _DEP dependencies to allow consumers to enumerate */ + acpi_dev_clear_dependencies(device); + return 1; remove_dmar: -- 2.53.0