From fe6a31ee4e5a93bdc4ec3a8442ab66a97287bcd8 Mon Sep 17 00:00:00 2001 From: Jay Cornwall Date: Fri, 13 Sep 2019 15:43:03 -0400 Subject: [PATCH] Set MTYPE field in SDMA fence command on gfx10 This is the only SDMA command with an MTYPE field. Change-Id: Ice146ace9c3e8e7aff038e1e004be73c070f48fe [ROCm/ROCR-Runtime commit: e0358d7dc28c84b283adfce482fd444af322c8c4] --- .../runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp index 2a189de894..910360d000 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp @@ -623,6 +623,10 @@ void BlitSdma::BuildFenceComma packet_addr->HEADER_UNION.op = SDMA_OP_FENCE; + if (agent_->isa()->GetMajorVersion() >= 10) { + packet_addr->HEADER_UNION.mtype = 3; + } + packet_addr->ADDR_LO_UNION.addr_31_0 = ptrlow32(fence); packet_addr->ADDR_HI_UNION.addr_63_32 = ptrhigh32(fence);