From 9c4cb65fe5910ea9443ffacd06fad2f6c8aff466 Mon Sep 17 00:00:00 2001 From: Eric Huang Date: Thu, 7 Jan 2021 13:54:19 -0500 Subject: [PATCH] kfdtest: fix KFDQMTest.Atomics test failure on A+A destBuf is mapped as cached, the intruction flat_atomic_add operates on cache that cause test failed. Adding scc modifier in the instruction will fix the issue. Signed-off-by: Eric Huang Change-Id: I8e138f93ae4f5e23020e3ac1549ef924968a74c5 [ROCm/ROCR-Runtime commit: f7759df6e044bd7cad03b4c4a30fb880f5a0fda7] --- .../rocr-runtime/tests/kfdtest/src/IsaGenerator_Aldebaran.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/tests/kfdtest/src/IsaGenerator_Aldebaran.cpp b/projects/rocr-runtime/tests/kfdtest/src/IsaGenerator_Aldebaran.cpp index 2fcb80fd32..2c377f9111 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/IsaGenerator_Aldebaran.cpp +++ b/projects/rocr-runtime/tests/kfdtest/src/IsaGenerator_Aldebaran.cpp @@ -37,7 +37,7 @@ type(CS) v_mov_b32 v0, s0 v_mov_b32 v1, s1 v_mov_b32 v2, 1 - flat_atomic_add v3, v[0:1], v2 slc glc + flat_atomic_add v3, v[0:1], v2 slc glc scc s_waitcnt 0 s_endpgm end @@ -86,7 +86,7 @@ const uint32_t IsaGenerator_Aldbrn::INFINITE_LOOP_ISA[] = { const uint32_t IsaGenerator_Aldbrn::ATOMIC_ADD_ISA[] = { 0x7e000200, 0x7e020201, - 0x7e040281, 0xdd0b0000, + 0x7e040281, 0xdf0b0000, 0x037f0200, 0xbf8c0000, 0xbf810000, 0x00000000 };