]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: dump used and total slots when swiotlb buffer is full
authorDongli Zhang <dongli.zhang@oracle.com>
Fri, 5 Apr 2019 01:15:25 +0000 (09:15 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 10 Apr 2019 16:53:22 +0000 (12:53 -0400)
commited403260675fc25e4af8adb90b74436be1d38a79
treefb8b7a91f1bf4cd34fa47edaa7d7e0659d2c8ea9
parent1b0e5a87313c7b87173afe344ad57ad66c7a2819
swiotlb: dump used and total slots when swiotlb buffer is full

So far the kernel only prints the requested size if swiotlb buffer if full.
It is not possible to know whether it is simply an out of buffer, or it is
because swiotlb cannot allocate buffer with the requested size due to
fragmentation.

As 'io_tlb_used' is available since commit 982e89369f44 ("swiotlb: add
debugfs to track swiotlb buffer usage"), both 'io_tlb_used' and
'io_tlb_nslabs' are printed when swiotlb buffer is full.

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