Sporadic regmap unit test failure in raw_sync

From: Guenter Roeck
Date: Thu Feb 08 2024 - 16:45:24 EST


Hi Mark,

I have seen the following error with the regmap unit tests:

KTAP version 1
# Subtest: raw_sync
ok 1 flat-little
ok 2 flat-big
ok 3 rbtree-little
# raw_sync: EXPECTATION FAILED at drivers/base/regmap/regmap-kunit.c:1305
Expected &hw_buf[6] != val, but
&hw_buf[6] ==
57 30
val ==
57 30
not ok 4 rbtree-big
ok 5 maple-little
ok 6 maple-big
# raw_sync: pass:5 fail:1 skip:0 total:6
not ok 25 raw_sync

This is with regmap: 'kunit: fix raw noinc write test wrapping'
applied on top of the upstream kernel (v6.8-rc3-47-g047371968ffc).
So far I have seen it only once, with the x86_64:q35 emulation in qemu.

Guenter