]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "swiotlb: panic if nslabs is too small"
authorYu Zhao <yuzhao@google.com>
Wed, 31 Aug 2022 06:38:18 +0000 (00:38 -0600)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Sep 2022 08:38:16 +0000 (10:38 +0200)
commit5e6e7bed228af148bab4983d1ba8e146ab7f35eb
tree794b4db9fb7f3355300d27146f3b20d05bc15b36
parent79f1af81cdc572c7ddd5280c8561a6c45b81cff5
Revert "swiotlb: panic if nslabs is too small"

This reverts commit cd13b21a12adc1a849f825b47ea33ee25df845c8.

Reasons:
  1. new panic()s shouldn't be added [1].
  2. It does no "cleanup" but breaks MIPS [2].

v2: properly solved the conflict [3] with
commit e458adef91f32 ("swiotlb: split up the global swiotlb lock")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
[1] https://lore.kernel.org/r/CAHk-=wit-DmhMfQErY29JSPjFgebx_Ld+pnerc4J2Ag990WwAA@mail.gmail.com/
[2] https://lore.kernel.org/r/20220820012031.1285979-1-yuzhao@google.com/
[3] https://lore.kernel.org/r/202208310701.LKr1WDCh-lkp@intel.com/

Fixes: cd13b21a12adc ("swiotlb: panic if nslabs is too small")
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/swiotlb.c