]> www.infradead.org Git - users/jedix/linux-maple.git/commit
swiotlb: dump used and total slots when swiotlb buffer is full
authorDongli Zhang <dongli.zhang@oracle.com>
Tue, 16 Apr 2019 23:48:19 +0000 (07:48 +0800)
committerBrian Maly <brian.maly@oracle.com>
Fri, 10 May 2019 21:23:57 +0000 (17:23 -0400)
commit9d79d0b6bd1953f3929df876452e62c92b269b33
tree2e8a890405e00119053710f50a0b4544053743c4
parent754aaea0cc7eb6967652edebc04b2a4b2b222a5f
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 71602fe6d4e9 ("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>
Orabug: 29637525

(cherry picked from commit 83ca259489409a1fe8a83dad83a82f32174d4f31)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
    kernel/dma/swiotlb.c does not exist.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Reviewed-By: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
lib/swiotlb.c