]> git.baikalelectronics.ru Git - kernel.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)
commit982e89369f4429a3dee075a7092a0e2f69c06359
treec72253bb9d27cf5dae3c38211a1f670fcc390517
parent19198c916a44604d7a498891a4f811ea06c627ca
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