Re: [PATCH] riscv: enable multi-range memory layout

2023-09-12 Thread Wu, Fei
On 9/13/2023 1:05 PM, Heinrich Schuchardt wrote: > > > Am 13. September 2023 04:23:14 MESZ schrieb "Wu, Fei" : >> On 9/5/2023 6:09 PM, Fei Wu wrote: >>> In order to enable PCIe passthrough on qemu riscv, the physical memory >>> range between 3GB and 4GB is reserved. Therefore if guest has 4GB ram

Re: [PATCH] riscv: enable multi-range memory layout

2023-09-12 Thread Heinrich Schuchardt
Am 13. September 2023 04:23:14 MESZ schrieb "Wu, Fei" : >On 9/5/2023 6:09 PM, Fei Wu wrote: >> In order to enable PCIe passthrough on qemu riscv, the physical memory >> range between 3GB and 4GB is reserved. Therefore if guest has 4GB ram, >> two ranges are created as [2G, 3G) and [4G, 7G), curr

Re: [PATCH] riscv: enable multi-range memory layout

2023-09-12 Thread Wu, Fei
On 9/5/2023 6:09 PM, Fei Wu wrote: > In order to enable PCIe passthrough on qemu riscv, the physical memory > range between 3GB and 4GB is reserved. Therefore if guest has 4GB ram, > two ranges are created as [2G, 3G) and [4G, 7G), currently u-boot sets > ram_top to 4G - 1 if the gd->ram_top is abo