]> www.infradead.org Git - users/hch/blktests.git/commit
block/008: check CPU offline failure due to many IRQs
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 28 Jan 2022 09:45:12 +0000 (18:45 +0900)
committerOmar Sandoval <osandov@fb.com>
Thu, 17 Feb 2022 23:46:53 +0000 (15:46 -0800)
commitbd6b882b26501121b9976d99379a041ffcb9070b
tree343d8a9d65004028d2dcf42334ca0a3affb0d9a8
parentf51ee53816b20de32fcf05d040e7f1cbd081a535
block/008: check CPU offline failure due to many IRQs

When systems have more IRQs than a single CPU can handle, the test case
block/008 fails with kernel message such as,

   "CPU 31 has 111 vectors, 90 available. Cannot disable CPU"

The failure cause is that the test case offlined too many CPUs and the
left online CPU can not hold all of the required IRQ vectors. To avoid
this failure, check error message of CPU offline. If CPU offline failure
cause is IRQ vector resource shortage, do not handle it as a failure.
Also keep the actual number of CPUs which can be offlined without the
failure and use this number for the test.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/block/008