iommu: Kerneldoc improvements
cover iommu: Kerneldoc improvements
Hi Jörg,
This series contains a fix for an incorrect kerneldoc parameter, and adds the missing kerneldoc for two recently added IOMMU methods.
Thanks!
Geert Uytterhoeven (3):
iommu: Fix kerneldoc for iommu_ops.flush_iotlb_all()
iommu: Document iommu_ops.iotlb_sync_map()
iommu: Document iommu_ops.is_attach_deferred()
include/linux/iommu.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 12 lines
2.17.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsPATCH 1/3 iommu: Fix kerneldoc for iommu_ops.flush_iotlb_all()
While the API wrapper is called iommu_flush_tlb_all(), the actual iommu_ops method is called .flush_iotlb_all(), not .flush_tlb_all().
--- include/linux/iommu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iommu.h +1 -1
@@ -167,7 +167,7 @@ struct iommu_resv_region {* @detach_dev: detach device from an iommu domain * @map: map a physically contiguous memory region to an iommu domain * @unmap: unmap a physically contiguous memory region from an iommu domain -* @flush_tlb_all: Synchronously flush all hardware TLBs for this domain +* @flush_iotlb_all: Synchronously flush all hardware TLBs for this domain * @iotlb_range_add: Add a given iova range to the flush queue for this domain * @iotlb_sync: Flush all queued ranges from the hardware TLBs and empty flush * queue
Signature · 1 line
2.17.1
PATCH 2/3 iommu: Document iommu_ops.iotlb_sync_map()
In reply to Geert UytterhoevenAdd missing kerneldoc for iommu_ops.iotlb_sync_map().
--- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+)
include/linux/iommu.h +1 -0
@@ -169,6 +169,7 @@ struct iommu_resv_region {* @unmap: unmap a physically contiguous memory region from an iommu domain * @flush_iotlb_all: Synchronously flush all hardware TLBs for this domain * @iotlb_range_add: Add a given iova range to the flush queue for this domain +* @iotlb_sync_map: Sync mappings created recently using @map to the hardware * @iotlb_sync: Flush all queued ranges from the hardware TLBs and empty flush * queue * @iova_to_phys: translate iova to physical address
Signature · 1 line
2.17.1
Re: [PATCH 2/3] iommu: Document iommu_ops.iotlb_sync_map()
20.02.2019 16:00, Geert Uytterhoeven пишет:
Quoted 14 lines
Add missing kerneldoc for
iommu_ops.iotlb_sync_map().Fixes 1d7ae53b152dbc5b ("iommu: Introduce iotlb_sync_map callback")Signed-off-by Geert Uytterhoeven <[email protected]>--- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+)include/linux/iommu.h +0
-0
include/linux/iommu.h struct iommu_resv_region { · line 175
Quoted 7 lines
include/linux/iommu.h +1
-0@@ -169,6 +169,7 @@ struct iommu_resv_region {* @unmap: unmap a physically contiguous memory region from an iommu domain * @flush_iotlb_all: Synchronously flush all hardware TLBs for this domain * @iotlb_range_add: Add a given iova range to the flush queue for this domain +* @iotlb_sync_map: Sync mappings created recently using @map to the hardware * @iotlb_sync: Flush all queued ranges from the hardware TLBs and empty flush * queue * @iova_to_phys: translate iova to physical address
Pretty sure there was a kerneldoc in some version of the original patch that introduced the iotlb_sync_map(), but probably it got lost after a rebase. The kerneldoc comment is correct, thank you! BTW, for some reason gmail marked this series as a spam, maybe you need to check the email headers and whatnot.
PATCH 3/3 iommu: Document iommu_ops.is_attach_deferred()
In reply to Geert UytterhoevenAdd missing kerneldoc for iommu_ops.is_attach_deferred().
--- include/linux/iommu.h | 2 ++ 1 file changed, 2 insertions(+)
include/linux/iommu.h +2 -0
@@ -184,6 +184,8 @@ struct iommu_resv_region {* @domain_window_enable: Configure and enable a particular window for a domain * @domain_window_disable: Disable a particular window for a domain * @of_xlate: add OF master IDs to iommu grouping +* @is_attach_deferred: Check if domain attach should be deferred from iommu +* driver init to device driver init (default no) * @pgsize_bitmap: bitmap of all possible supported page sizes */ struct iommu_ops {
Signature · 1 line
2.17.1
Hi Geert,
Quoted 5 lines · Geert Uytterhoeven
This series contains a fix for an incorrect kerneldoc parameter, and adds the missing kerneldoc for two recently added IOMMU methods.
Thanks!
Quoted 7 lines
Geert Uytterhoeven (3):
iommu: Fix kerneldoc foriommu_ops.flush_iotlb_all()
iommu: Documentiommu_ops.iotlb_sync_map()
iommu: Documentiommu_ops.is_attach_deferred()include/linux/iommu.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Applied patches 2 and 3, I already have a change similar to patch 1 in the tree.
Thanks,
Joerg