Skip to content

Commit 0ba9d5a

Browse files
author
Myron Stowe
committed
PCI: qcom: Update ICC and OPP values after Link Up event
JIRA: https://issues.redhat.com/browse/RHEL-67693 Upstream Status: f063901 commit f063901 Author: Krishna chaitanya chundru <[email protected]> Date: Sat Nov 23 00:40:01 2024 +0530 PCI: qcom: Update ICC and OPP values after Link Up event 4581403 ("PCI: qcom: Enumerate endpoints based on Link up event in 'global_irq' interrupt") added the Link Up-based enumeration support, but did not update the ICC/OPP vote once link is up. Before that, the update happened during probe and the endpoints may or may not be enumerated at that time, so the ICC/OPP vote was not guaranteed to be accurate. With Link Up-based enumeration support, the driver can request the accurate vote based on the PCIe link. Call qcom_pcie_icc_opp_update() in qcom_pcie_global_irq_thread() after enumerating the endpoints. Fixes: 4581403 ("PCI: qcom: Enumerate endpoints based on Link up event in 'global_irq' interrupt") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krishna chaitanya chundru <[email protected]> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Niklas Cassel <[email protected]> Signed-off-by: Myron Stowe <[email protected]>
1 parent 6a9484e commit 0ba9d5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pci/controller/dwc/pcie-qcom.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,8 @@ static irqreturn_t qcom_pcie_global_irq_thread(int irq, void *data)
15591559
pci_lock_rescan_remove();
15601560
pci_rescan_bus(pp->bridge->bus);
15611561
pci_unlock_rescan_remove();
1562+
1563+
qcom_pcie_icc_opp_update(pcie);
15621564
} else {
15631565
dev_WARN_ONCE(dev, 1, "Received unknown event. INT_STATUS: 0x%08x\n",
15641566
status);

0 commit comments

Comments
 (0)