Files
liyeshan 786e008e00 pcie: Adapt PCIe address space for AMD GPU on K1-X
1. In the Device Tree, merge the PCIe I/O and memory address
windows.The AMD GPU requires a large, contiguous BAR space,
which the previous separate windows could not satisfy.
2. Add a hack to correct the BAR space size calculation. The K1-X platform
reserves a total of 384MB (0x18000000) for PCIe devices (including BAR
and config space). However, the Linux kernel's allocation logic,
influenced by 128MB alignment, attempts to request a full 384MB BAR space
for the GPU.This commit reduces the requested size to 0x16000000,
ensuring the allocation succeeds, as the GPU itself only requires 258MB.

Signed-off-by: liyeshan <yeshan.li@spacemit.com>
Change-Id: Ic5610b455aac5b0dc97ac4904037865f83ad1c2c
2025-07-24 11:04:44 +08:00
..
2024-08-11 12:47:15 +02:00