]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: panic if nslabs is too small
authorDongli Zhang <dongli.zhang@oracle.com>
Sat, 11 Jun 2022 08:25:14 +0000 (01:25 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 22 Jun 2022 10:42:09 +0000 (12:42 +0200)
commitc4cafdf05e32ef8fe447b4df727a99c62f9676c7
tree8905b87243769254b100497f5aa3b506cf4460cf
parentc58b917c6fbe687af38eb46901a4c31b0ae49153
swiotlb: panic if nslabs is too small

Panic on purpose if nslabs is too small, in order to sync with the remap
retry logic.

In addition, print the number of bytes for tlb alloc failure.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/swiotlb.c