[PATCH] selftests/powerpc: Retry on host facility unavailable

Subsystems: kernel selftest framework, the rest

STALE2567d LANDED: 1 (0M)

1 review trailer; landed in mainline as 6652bf640889 on 2019-08-26.

2 messages, 2 authors, 2019-08-28 · open the first message on its own page

[PATCH] selftests/powerpc: Retry on host facility unavailable

From: Gustavo Romero <hidden>
Date: 2019-08-20 22:56:25

TM test tm-unavailable must take into account aborts due to host aborting
a transactin because of a facility unavailable exception, just like it
already does for aborts on reschedules (TM_CAUSE_KVM_RESCHED).

Reported-by: Desnes A. Nunes do Rosario <redacted>
Tested-by: Desnes A. Nunes do Rosario <redacted>
Signed-off-by: Gustavo Romero <redacted>
---
 tools/testing/selftests/powerpc/tm/tm.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/powerpc/tm/tm.h b/tools/testing/selftests/powerpc/tm/tm.h
index 97f9f49..c402464 100644
--- a/tools/testing/selftests/powerpc/tm/tm.h
+++ b/tools/testing/selftests/powerpc/tm/tm.h
@@ -55,7 +55,8 @@ static inline bool failure_is_unavailable(void)
 static inline bool failure_is_reschedule(void)
 {
 	if ((failure_code() & TM_CAUSE_RESCHED) == TM_CAUSE_RESCHED ||
-	    (failure_code() & TM_CAUSE_KVM_RESCHED) == TM_CAUSE_KVM_RESCHED)
+	    (failure_code() & TM_CAUSE_KVM_RESCHED) == TM_CAUSE_KVM_RESCHED ||
+	    (failure_code() & TM_CAUSE_KVM_FAC_UNAV) == TM_CAUSE_KVM_FAC_UNAV)
 		return true;
 
 	return false;
-- 
2.7.4

Re: [PATCH] selftests/powerpc: Retry on host facility unavailable

From: Michael Ellerman <hidden>
Date: 2019-08-28 04:43:40

On Tue, 2019-08-20 at 22:54:11 UTC, Gustavo Romero wrote:
TM test tm-unavailable must take into account aborts due to host aborting
a transactin because of a facility unavailable exception, just like it
already does for aborts on reschedules (TM_CAUSE_KVM_RESCHED).

Reported-by: Desnes A. Nunes do Rosario <redacted>
Tested-by: Desnes A. Nunes do Rosario <redacted>
Signed-off-by: Gustavo Romero <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/6652bf6408895b09d31fd4128a1589a1a0672823

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help