Skip to content

Commit f3bb1b5

Browse files
Stanimir Varbanovopsiff
authored andcommitted
PCI: brcmstb: Expand inbound window size up to 64GB
[ Upstream commit 25a98c7 ] 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 <svarbanov@suse.de> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Jim Quinlan <james.quinlan@broadcom.com> Tested-by: Ivan T. Ivanov <iivanov@suse.de> Link: https://lore.kernel.org/r/20250224083559.47645-7-svarbanov@suse.de [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit 1f27e708e36eac4708ce3cab61431149b9ca52f7)
1 parent d1a1cd9 commit f3bb1b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pci/controller/pcie-brcmstb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ static int brcm_pcie_encode_ibar_size(u64 size)
284284
if (log2_in >= 12 && log2_in <= 15)
285285
/* Covers 4KB to 32KB (inclusive) */
286286
return (log2_in - 12) + 0x1c;
287-
else if (log2_in >= 16 && log2_in <= 35)
288-
/* Covers 64KB to 32GB, (inclusive) */
287+
else if (log2_in >= 16 && log2_in <= 36)
288+
/* Covers 64KB to 64GB, (inclusive) */
289289
return log2_in - 15;
290290
/* Something is awry so disable */
291291
return 0;

0 commit comments

Comments
 (0)