swiotlb: add debugfs to track swiotlb transient pool usage
authorZhangPeng <zhangpeng362@huawei.com>
Tue, 9 Jan 2024 07:04:56 +0000 (15:04 +0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Feb 2024 13:31:38 +0000 (05:31 -0800)
commit02e765697038c596dc4a1126a13b018608365d81
treec726728ee0a1ca0d78920ecbb3d384086b098ad7
parentcf1182944c7cc9f1c21a8a44e0d29abe12527412
swiotlb: add debugfs to track swiotlb transient pool usage

Introduce a new debugfs interface io_tlb_transient_nslabs. The device
driver can create a new swiotlb transient memory pool once default
memory pool is full. To export the swiotlb transient memory pool usage
via debugfs would help the user estimate the size of transient swiotlb
memory pool or analyze device driver memory leak issue.

Signed-off-by: ZhangPeng <zhangpeng362@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/swiotlb.h
kernel/dma/swiotlb.c