]> Git Repo - J-linux.git/commitdiff
PCI: xgene: Revert "PCI: xgene: Fix IB window setup"
authorMarc Zyngier <[email protected]>
Mon, 21 Mar 2022 10:48:43 +0000 (10:48 +0000)
committerLorenzo Pieralisi <[email protected]>
Mon, 21 Mar 2022 10:54:18 +0000 (10:54 +0000)
Commit c7a75d07827a ("PCI: xgene: Fix IB window setup") tried to
fix the damages that 6dce5aa59e0b ("PCI: xgene: Use inbound resources
for setup") caused, but actually didn't improve anything for some
plarforms (at least Mustang and m400 are still broken).

Given that 6dce5aa59e0b has been reverted, revert this patch as well,
restoring the PCIe support on XGene to its pre-5.5, working state.

Link: https://lore.kernel.org/r/YjN8pT5e6/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Fixes: c7a75d07827a ("PCI: xgene: Fix IB window setup")
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Cc: [email protected]
Cc: Rob Herring <[email protected]>
Cc: Toan Le <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Krzysztof Wilczyński <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Stéphane Graber <[email protected]>
Cc: dann frazier <[email protected]>
drivers/pci/controller/pci-xgene.c

index aa41ceaf031ff7b1fe7f42777aeb476c9e876ca2..7c763d820c52c58e24514a71632f280751d9ef58 100644 (file)
@@ -465,7 +465,7 @@ static int xgene_pcie_select_ib_reg(u8 *ib_reg_mask, u64 size)
                return 1;
        }
 
-       if ((size > SZ_1K) && (size < SZ_4G) && !(*ib_reg_mask & (1 << 0))) {
+       if ((size > SZ_1K) && (size < SZ_1T) && !(*ib_reg_mask & (1 << 0))) {
                *ib_reg_mask |= (1 << 0);
                return 0;
        }
This page took 0.054817 seconds and 4 git commands to generate.