OSDN Git Service

selftests/powerpc: Relax L1d miss targets for rfi_flush test
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Tue, 23 Oct 2018 08:04:56 +0000 (13:34 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Oct 2018 12:11:04 +0000 (23:11 +1100)
commita95ecac5cb2fc8a8ee606991384d33ee121df00c
tree5800835c357eb44f584c16c572b0b9ab16e489ef
parent3b9672fff747b31a2204003cab9fe082321edc1b
selftests/powerpc: Relax L1d miss targets for rfi_flush test

When running the rfi_flush test, if the system is loaded, we see two
issues:
1. The L1d misses when rfi_flush is disabled increase significantly due
to other workloads interfering with the cache.
2. The L1d misses when rfi_flush is enabled sometimes goes slightly
below the expected number of misses.

To address these, let's relax the expected number of L1d misses:
1. When rfi_flush is disabled, we allow upto half the expected number of
the misses for when rfi_flush is enabled.
2. When rfi_flush is enabled, we allow ~1% lower number of cache misses.

Reported-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Tested-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/security/rfi_flush.c