Re: [PATCH v8 03/12] hw/riscv: add RISC-V IOMMU base emulation

2024-10-04 Thread Tomasz Jeznach
On Fri, Oct 4, 2024 at 6:00 AM Daniel Henrique Barboza wrote: > > > > On 10/4/24 5:33 AM, Andrew Jones wrote: > > On Thu, Oct 03, 2024 at 11:36:00AM GMT, Tomasz Jeznach wrote: > >> On Thu, Oct 3, 2024 at 6:06 AM Daniel Henrique Barboza > >> wrote: > >>> > >>> > >>> > >>> On 10/3/24 6:26 AM, Andre

Re: [PATCH v8 03/12] hw/riscv: add RISC-V IOMMU base emulation

2024-10-04 Thread Daniel Henrique Barboza
On 10/4/24 5:33 AM, Andrew Jones wrote: On Thu, Oct 03, 2024 at 11:36:00AM GMT, Tomasz Jeznach wrote: On Thu, Oct 3, 2024 at 6:06 AM Daniel Henrique Barboza wrote: On 10/3/24 6:26 AM, Andrew Jones wrote: On Tue, Oct 01, 2024 at 10:02:58PM GMT, Daniel Henrique Barboza wrote: ... +/* + *

Re: [PATCH v8 03/12] hw/riscv: add RISC-V IOMMU base emulation

2024-10-04 Thread Andrew Jones
On Thu, Oct 03, 2024 at 11:36:00AM GMT, Tomasz Jeznach wrote: > On Thu, Oct 3, 2024 at 6:06 AM Daniel Henrique Barboza > wrote: > > > > > > > > On 10/3/24 6:26 AM, Andrew Jones wrote: > > > On Tue, Oct 01, 2024 at 10:02:58PM GMT, Daniel Henrique Barboza wrote: > > > ... > > >> +/* > > >> + * RISCV

Re: [PATCH v8 03/12] hw/riscv: add RISC-V IOMMU base emulation

2024-10-03 Thread Tomasz Jeznach
On Thu, Oct 3, 2024 at 6:06 AM Daniel Henrique Barboza wrote: > > > > On 10/3/24 6:26 AM, Andrew Jones wrote: > > On Tue, Oct 01, 2024 at 10:02:58PM GMT, Daniel Henrique Barboza wrote: > > ... > >> +/* > >> + * RISCV IOMMU Address Translation Lookup - Page Table Walk > >> + * > >> + * Note: Code i

Re: [PATCH v8 03/12] hw/riscv: add RISC-V IOMMU base emulation

2024-10-03 Thread Andrew Jones
On Thu, Oct 03, 2024 at 10:06:11AM GMT, Daniel Henrique Barboza wrote: > > > On 10/3/24 6:26 AM, Andrew Jones wrote: > > On Tue, Oct 01, 2024 at 10:02:58PM GMT, Daniel Henrique Barboza wrote: > > ... > > > +/* > > > + * RISCV IOMMU Address Translation Lookup - Page Table Walk > > > + * > > > + *

Re: [PATCH v8 03/12] hw/riscv: add RISC-V IOMMU base emulation

2024-10-03 Thread Daniel Henrique Barboza
On 10/3/24 6:26 AM, Andrew Jones wrote: On Tue, Oct 01, 2024 at 10:02:58PM GMT, Daniel Henrique Barboza wrote: ... +/* + * RISCV IOMMU Address Translation Lookup - Page Table Walk + * + * Note: Code is based on get_physical_address() from target/riscv/cpu_helper.c + * Both implementation can

Re: [PATCH v8 03/12] hw/riscv: add RISC-V IOMMU base emulation

2024-10-03 Thread Andrew Jones
On Tue, Oct 01, 2024 at 10:02:58PM GMT, Daniel Henrique Barboza wrote: ... > +/* > + * RISCV IOMMU Address Translation Lookup - Page Table Walk > + * > + * Note: Code is based on get_physical_address() from > target/riscv/cpu_helper.c > + * Both implementation can be merged into single helper func

[PATCH v8 03/12] hw/riscv: add RISC-V IOMMU base emulation

2024-10-01 Thread Daniel Henrique Barboza
From: Tomasz Jeznach The RISC-V IOMMU specification is now ratified as-per the RISC-V international process. The latest frozen specifcation can be found at: https://github.com/riscv-non-isa/riscv-iommu/releases/download/v1.0/riscv-iommu.pdf Add the foundation of the device emulation for RISC-V