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 A13573D3CEF; Thu, 17 Sep 2026 17:56:09 +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=1789667770; cv=none; b=bZZBYyOrG53Fno4utBjVH7CpcaXDIbyLa0j7pSrgYKBI1DZDR+NWsECO7yOoGq5BJZ9AP4eBuu3CndBBrNed1Cqya+JNAAZkTBNF3s9Sg4LTNHCP4/fEu77a+/5rT+QpWtp1NCLvdUsFa3GzMVOnoDPJic3pqGwlldbuiCquuLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789667770; c=relaxed/simple; bh=e/BadUdN7nOx8mePND96N59IgH1X/tvMy6zhMQcauKM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QmK3iF1xY8YLcIDhaDfTORJH1P/YO7lKXRXmcuBt37UKGyf8s5kir/9i+P9df/tpM73dDA/nDzou3DtP+qwSu4Rcm8C7ZAcPkuVzSd7g58Babxqa0J2WlTwnAYKdu58ikMAOmcKZpsiUFEc2LBNiap3jmoGQ7BTHhQkGj4zpwuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y79j5dju; 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="Y79j5dju" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B9EB1F000FF; Thu, 17 Sep 2026 17:56:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789667769; bh=QholjcATbfYHzKK9V7No1ah7usdBv/ONrGnUm5bIBtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Y79j5djur2K4QyqL9LYK7L0f2vDZyIHdR7mUJ4V4wTjgpPZCA6aV8qD8BF6DZU7PA 6yKhPBQaJEQdDdd+pui97dZZbvagBGZxp9DLqlchJc++P75L6C70/VlUkmszHg3oQX m0WuC/co3IdjEUUZRxf1X+WuqZYc/a4YMApCYt4I= 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.12 0202/1102] ACPI: PCI: Clear _DEP dependencies after PCI root bridge attach Date: Thu, 17 Sep 2026 16:02:25 +0100 Message-ID: <20260917151544.645251205@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151539.408551884@linuxfoundation.org> References: <20260917151539.408551884@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.12-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 eb36cb77dfa48..b22781852953c 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c @@ -759,6 +759,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