On 8/29/25 12:05 PM, Jason Gunthorpe wrote: >>> + /* >>> + * The aperture is limited to what the API can do after considering all >>> + * the different types dma_addr_t/unsigned long/pt_vaddr_t that are used >>> + * to store a VA. Set the aperture to something that is valid for all >>> + * cases. Saturate instead of truncate the end if the types are smaller >>> + * than the top range. aperture_end is a last. >> Does "is a last" have something to do with terminating loop iteration? >> Is it inclusive or exclusive? > It is intended to refer back to the definitions: > > * start/end > * An half-open range, e.g. [0,0) refers to no VA. > * start/last > * An inclusive closed range, e.g. [0,0] refers to the VA 0 > I see. > Where aperture_start/aperture_end doesn't follow that standard. oops > > * cases. Saturate instead of truncate the end if the types are smaller > * than the top range. aperture_end should be called aperture_last. > */ > > Maybe? Yes, that's helpful.Thanks. -- ~Randy
- Re: [PATCH v4 07/15] iommupt: Add map_pages op Randy Dunlap
- Re: [PATCH v4 07/15] iommupt: Add map_pages op Jason Gunthorpe
- Re: [PATCH v4 07/15] iommupt: Add map_pages o... Randy Dunlap
- [PATCH v4 12/15] iommupt: Add the x86 64 bit page table fo... Jason Gunthorpe
- Re: [PATCH v4 12/15] iommupt: Add the x86 64 bit page... Randy Dunlap
- Re: [PATCH v4 12/15] iommupt: Add the x86 64 bit ... Jason Gunthorpe
- [PATCH v4 15/15] iommupt: Add a kunit test for the IOMMU i... Jason Gunthorpe
- [PATCH v4 03/15] iommupt: Add the basic structure of the i... Jason Gunthorpe
- Re: [PATCH v4 03/15] iommupt: Add the basic structure... Randy Dunlap
- Re: [PATCH v4 03/15] iommupt: Add the basic struc... Jason Gunthorpe
- Re: [PATCH v4 03/15] iommupt: Add the basic s... Randy Dunlap
- [PATCH v4 13/15] iommu/amd: Use the generic iommu page tab... Jason Gunthorpe
- [PATCH v4 11/15] iommufd: Change the selftest to use iommu... Jason Gunthorpe
- Re: [PATCH v4 11/15] iommufd: Change the selftest to ... Randy Dunlap
- Re: [PATCH v4 11/15] iommufd: Change the selftest... Jason Gunthorpe
- [PATCH v4 14/15] iommu/amd: Remove AMD io_pgtable support Jason Gunthorpe
- [PATCH v4 01/15] genpt: Generic Page Table base API Jason Gunthorpe
- Re: [PATCH v4 01/15] genpt: Generic Page Table base A... Randy Dunlap
- Re: [PATCH v4 01/15] genpt: Generic Page Table ba... Jason Gunthorpe
- Re: [PATCH v4 01/15] genpt: Generic Page Tabl... Randy Dunlap
- [PATCH v4 04/15] iommupt: Add the AMD IOMMU v1 page table ... Jason Gunthorpe
