Skip to content

Commit 25a98c7

Browse files
Stanimir Varbanovkwilczynski
authored andcommitted
PCI: brcmstb: Expand inbound window size up to 64GB
The BCM2712 memory map can support up to 64GB of system memory, thus expand the inbound window size in calculation helper function. The change is safe for the currently supported SoCs that have smaller inbound window sizes. Signed-off-by: Stanimir Varbanov <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Jim Quinlan <[email protected]> Tested-by: Ivan T. Ivanov <[email protected]> Link: https://lore.kernel.org/r/[email protected] [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent 10dbeda commit 25a98c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pci/controller/pcie-brcmstb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ static int brcm_pcie_encode_ibar_size(u64 size)
304304
if (log2_in >= 12 && log2_in <= 15)
305305
/* Covers 4KB to 32KB (inclusive) */
306306
return (log2_in - 12) + 0x1c;
307-
else if (log2_in >= 16 && log2_in <= 35)
308-
/* Covers 64KB to 32GB, (inclusive) */
307+
else if (log2_in >= 16 && log2_in <= 36)
308+
/* Covers 64KB to 64GB, (inclusive) */
309309
return log2_in - 15;
310310
/* Something is awry so disable */
311311
return 0;

0 commit comments

Comments
 (0)