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

2023-10-11 Thread Wu, Fei
On 10/9/2023 6:04 PM, Wu, Fei wrote: > On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: >> >> >> Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : >>> 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 v2] riscv: enable multi-range memory layout

2023-10-09 Thread Wu, Fei
On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: > > > Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : >> 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

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

2023-09-26 Thread Heinrich Schuchardt
On 9/26/23 07:07, Anup Patel wrote: On Thu, Sep 14, 2023 at 12:49 PM Heinrich Schuchardt wrote: On 9/14/23 08:48, Wu, Fei wrote: On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : In order to enable PCIe passthrough on qemu riscv, the phy

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

2023-09-25 Thread Anup Patel
On Thu, Sep 14, 2023 at 12:49 PM Heinrich Schuchardt wrote: > > On 9/14/23 08:48, Wu, Fei wrote: > > On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: > >> > >> > >> Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : > >>> In order to enable PCIe passthrough on qemu riscv, the physical memory > >

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

2023-09-24 Thread Wu, Fei
On 9/14/2023 6:21 PM, Heinrich Schuchardt wrote: > On 9/14/23 09:42, Wu, Fei wrote: >> On 9/14/2023 3:20 PM, Heinrich Schuchardt wrote: >>> On 9/14/23 08:48, Wu, Fei wrote: On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: > > > Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu >>>

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

2023-09-21 Thread Wu, Fei
On 9/14/2023 6:21 PM, Heinrich Schuchardt wrote: > On 9/14/23 09:42, Wu, Fei wrote: >> On 9/14/2023 3:20 PM, Heinrich Schuchardt wrote: >>> On 9/14/23 08:48, Wu, Fei wrote: On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: > > > Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu >>>

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

2023-09-14 Thread Heinrich Schuchardt
On 9/14/23 12:21, Heinrich Schuchardt wrote: On 9/14/23 09:42, Wu, Fei wrote: On 9/14/2023 3:20 PM, Heinrich Schuchardt wrote: With which version of QEMU were you able to use PCI pass through? Please try this: base: ccb86f079a9e patch: https://lore.kernel.org/all/cakmqykmtazt5sacumd4vxyfg

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

2023-09-14 Thread Heinrich Schuchardt
On 9/14/23 09:42, Wu, Fei wrote: On 9/14/2023 3:20 PM, Heinrich Schuchardt wrote: On 9/14/23 08:48, Wu, Fei wrote: On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : In order to enable PCIe passthrough on qemu riscv, the physical memory ran

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

2023-09-14 Thread Wu, Fei
On 9/14/2023 3:20 PM, Heinrich Schuchardt wrote: > On 9/14/23 08:48, Wu, Fei wrote: >> On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: >>> >>> >>> Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : In order to enable PCIe passthrough on qemu riscv, the physical memory range between 3GB

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

2023-09-14 Thread Heinrich Schuchardt
On 9/14/23 08:48, Wu, Fei wrote: On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : 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 c

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

2023-09-14 Thread Wu, Fei
On 9/14/2023 2:48 PM, Wu, Fei wrote: > On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: >> >> >> Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : >>> 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 v2] riscv: enable multi-range memory layout

2023-09-13 Thread Wu, Fei
On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote: > > > Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : >> 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

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

2023-09-13 Thread Heinrich Schuchardt
Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu : >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 g

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

2023-09-13 Thread Fei Wu
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 above 4G in board_get_usable_ram_top(), but th