]> asedeno.scripts.mit.edu Git - linux.git/commit
swiotlb: add debugfs to track swiotlb buffer usage
authorDongli Zhang <dongli.zhang@oracle.com>
Fri, 18 Jan 2019 07:10:27 +0000 (15:10 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 12 Feb 2019 17:53:01 +0000 (12:53 -0500)
commit71602fe6d4e9291af105adfef8e893b57c735906
treec72253bb9d27cf5dae3c38211a1f670fcc390517
parent6442ca2abf882d9d838fb844d852ba6acd1db7f4
swiotlb: add debugfs to track swiotlb buffer usage

The device driver will not be able to do dma operations once swiotlb buffer
is full, either because the driver is using so many IO TLB blocks inflight,
or because there is memory leak issue in device driver. To export the
swiotlb buffer usage via debugfs would help the user estimate the size of
swiotlb buffer to pre-allocate or analyze device driver memory leak issue.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c