On 8/26/25 10:18 AM, Jason Gunthorpe wrote:
> diff --git a/include/linux/generic_pt/iommu.h
> b/include/linux/generic_pt/iommu.h
> index cbe6433550f380..58c9fa74fb0701 100644
> --- a/include/linux/generic_pt/iommu.h
> +++ b/include/linux/generic_pt/iommu.h
> @@ -73,6 +73,18 @@ struct pt_iommu_info {
> };
>
> struct pt_iommu_ops {
> + /**
> + * set_dirty() - Make the iova write dirty
Should be:
* @set_dirty: Make the iova write dirty
> + * @iommu_table: Table to manipulate
> + * @iova: IO virtual address to start
These will be ignored by kernel-doc (for now), but that's OK.
> + *
> + * This is only used by iommufd testing. It makes the iova dirty so that
> + * read_and_clear_dirty() will see it as dirty. Unlike all the other ops
> + * this one is safe to call without holding any locking. It may return
> + * -EAGAIN if there is a race.
> + */
> + int (*set_dirty)(struct pt_iommu *iommu_table, dma_addr_t iova);
> +
> /**
> * get_info() - Return the pt_iommu_info structure
* @get_info: Return the pt_iommu_info structure
Should be:> * @iommu_table: Table to query
--
~Randy
- [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
- Re: [PATCH v4 04/15] iommupt: Add the AMD IOMMU v1 pa... Randy Dunlap
- Re: [PATCH v4 04/15] iommupt: Add the AMD IOMMU v... Jason Gunthorpe
- [PATCH v4 09/15] iommupt: Add a kunit test for Generic Pag... Jason Gunthorpe
