From bd68646772751dfd6b79dbb3c9d0458d79ec7625 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Fri, 26 Feb 2021 22:31:50 -0500 Subject: [PATCH] kfdtest: Workaround delayed page faults Delayed page faults from a terminated process can be attributed to the next process with the same PASID. Work around that by adding a delay after the Exception tests to allow the kernel to clean up any fault storms before the next test. Signed-off-by: Felix Kuehling Change-Id: Id310c13ea9eb92b04d37b95d91a0dd60bd9954e5 --- tests/kfdtest/src/KFDExceptionTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/kfdtest/src/KFDExceptionTest.cpp b/tests/kfdtest/src/KFDExceptionTest.cpp index 4976d0e319..11df6279c9 100644 --- a/tests/kfdtest/src/KFDExceptionTest.cpp +++ b/tests/kfdtest/src/KFDExceptionTest.cpp @@ -47,6 +47,11 @@ void KFDExceptionTest::TearDown() { KFDBaseComponentTest::TearDown(); + // WORKAROUND: This needs to be fixed in the kernel + // Wait 500ms for the kernel to process any fault storms before the + // next test to avoid reporting incorrect faults in the next test. + Delay(500); + ROUTINE_END }