linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/powerpc: Retry on host facility unavailable
@ 2019-08-20 22:54 Gustavo Romero
  2019-08-28  4:24 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Romero @ 2019-08-20 22:54 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: desnesn, mikey, gromero

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 <desnesn@linux.ibm.com>
Tested-by: Desnes A. Nunes do Rosario <desnesn@linux.ibm.com>
Signed-off-by: Gustavo Romero <gromero@linux.vnet.ibm.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] selftests/powerpc: Retry on host facility unavailable
  2019-08-20 22:54 [PATCH] selftests/powerpc: Retry on host facility unavailable Gustavo Romero
@ 2019-08-28  4:24 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2019-08-28  4:24 UTC (permalink / raw)
  To: Gustavo Romero, linuxppc-dev; +Cc: desnesn, mikey, gromero

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 <desnesn@linux.ibm.com>
> Tested-by: Desnes A. Nunes do Rosario <desnesn@linux.ibm.com>
> Signed-off-by: Gustavo Romero <gromero@linux.vnet.ibm.com>

Applied to powerpc next, thanks.

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

cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-28  4:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20 22:54 [PATCH] selftests/powerpc: Retry on host facility unavailable Gustavo Romero
2019-08-28  4:24 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).