Skip to contentSkip to conversation

iommu: Kerneldoc improvements

PATCH Applied Geert Uytterhoeven 3 participants 6 messages Feb 20, 2019 – Feb 26, 2019 IOMMU

lore
Share & tools
lore
#0 lore raw

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 Torvalds
#1 lore raw

PATCH 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().

Fixes add02cfdc9bc2987 ("iommu: Introduce Interface for IOMMU TLB Flushing")
---
 include/linux/iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iommu.h +1 -1
index 477ef47c357c0553..848fb07026b67169 100644
@@ -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
#2 lore raw

PATCH 2/3 iommu: Document iommu_ops.iotlb_sync_map()

In reply to Geert Uytterhoeven

Add missing kerneldoc for iommu_ops.iotlb_sync_map().

Fixes 1d7ae53b152dbc5b ("iommu: Introduce iotlb_sync_map callback")
---
 include/linux/iommu.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/iommu.h +1 -0
index 848fb07026b67169..3ed5d372b090af54 100644
@@ -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
Reviewed-by on v1 2/3
#3 lore raw

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")
---
 include/linux/iommu.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/iommu.h +0 -0
index 848fb07026b67169..3ed5d372b090af54 100644

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.

#4 lore raw

PATCH 3/3 iommu: Document iommu_ops.is_attach_deferred()

In reply to Geert Uytterhoeven

Add missing kerneldoc for iommu_ops.is_attach_deferred().

Fixes e01d1913b0d08171 ("iommu: Add is_attach_deferred call-back to iommu-ops")
---
 include/linux/iommu.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/iommu.h +2 -0
index 3ed5d372b090af54..ffbbc7e39ceeba3e 100644
@@ -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
maintainer Applied
#5 lore raw
In reply to Geert Uytterhoeven

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 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(-)

Applied patches 2 and 3, I already have a change similar to patch 1 in the tree.

Thanks,

Joerg