Message ID | 20230315110725.1215523-7-eric.auger@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | arm: pmu: Fix random failures of pmu-chain-promotion | expand |
diff --git a/arm/pmu.c b/arm/pmu.c index c3d2a428..d897d8d3 100644 --- a/arm/pmu.c +++ b/arm/pmu.c @@ -60,8 +60,8 @@ #define ALL_CLEAR 0x0000000000000000ULL #define PRE_OVERFLOW_32 0x00000000FFFFFFF0ULL #define PRE_OVERFLOW_64 0xFFFFFFFFFFFFFFF0ULL -#define COUNT 20 -#define MARGIN 15 +#define COUNT 250 +#define MARGIN 100 /* * PRE_OVERFLOW2 is set so that 1st COUNT iterations do not * produce 32b overflow and 2d COUNT iterations do. To accommodate
Let's increase the mem_access loop count by defining COUNT=250 (instead of 20) and define a more reasonable margin (100 instead of 15 previously) so that it gives better chance to accommodate for HW implementation variance. Those values were chosen arbitrarily higher. Those values fix the random failures on ThunderX2 machines. Signed-off-by: Eric Auger <eric.auger@redhat.com> --- arm/pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)