Skip to contentSkip to conversation

dma-buf: deprecate DMABUF_SYSFS_STATS

PATCH In review Christian König 2 participants 2 messages Jun 17, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma-buf: deprecate DMABUF_SYSFS_STATS

Add a warning that this UAPI wasn't such a good idea and shouldn't be used by anybody.

That should give us a better chance to remove it at some point and prevents others from running into the same issues.

---
 drivers/dma-buf/Kconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/dma-buf/Kconfig +5 -1
index 541efe01abc7..e4dc53a36428 100644
@@ -75,7 +75,7 @@ menuconfig DMABUF_HEAPS
 	  between drivers.
 
 menuconfig DMABUF_SYSFS_STATS
-	bool "DMA-BUF sysfs statistics"
+	bool "DMA-BUF sysfs statistics (DEPRECATED)"
 	depends on DMA_SHARED_BUFFER
 	help
 	   Choose this option to enable DMA-BUF sysfs statistics
@@ -85,6 +85,10 @@ menuconfig DMABUF_SYSFS_STATS
 	   statistics for the DMA-BUF with the unique inode number
 	   <inode_number>.
 
+	   This option is deprecated and should sooner or later be removed.
+	   Android is the only user of this and it turned out that this resulted
+	   in quite some performance problems.
+
 source "drivers/dma-buf/heaps/Kconfig"
 
 endmenu
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 37 lines · Christian König

Add a warning that this UAPI wasn't such a good idea and shouldn't be used by anybody.

That should give us a better chance to remove it at some point and prevents others from running into the same issues.

---
 drivers/dma-buf/Kconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/dma-buf/Kconfig +5 -2
index 541efe01abc7..e4dc53a36428 100644
@@ -75,7 +75,7 @@ menuconfig DMABUF_HEAPS
          between drivers.
 
 menuconfig DMABUF_SYSFS_STATS
-       bool "DMA-BUF sysfs statistics"
+       bool "DMA-BUF sysfs statistics (DEPRECATED)"
        depends on DMA_SHARED_BUFFER
        help
           Choose this option to enable DMA-BUF sysfs statistics
@@ -85,6 +85,10 @@ menuconfig DMABUF_SYSFS_STATS
           statistics for the DMA-BUF with the unique inode number
           <inode_number>.
 
+          This option is deprecated and should sooner or later be removed.
+          Android is the only user of this and it turned out that this resulted
+          in quite some performance problems.
+
 source "drivers/dma-buf/heaps/Kconfig"
 
 endmenu
--
Quoted 2 lines

2.25.1