From def38e14f3b5f748b1e80c0554ded0d1e0987057 Mon Sep 17 00:00:00 2001 From: "Jay Cornwall (xN/A) UK" Date: Mon, 18 Apr 2016 16:05:13 -0500 Subject: [PATCH] Fix SDMA fill for >=4MB regions max_single_fill_size_ overflowed the packet field size. Reduce by one dword. [git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1259263] [ROCm/ROCR-Runtime commit: 1d4a257225f84b959c067a9802576ca7697632db] --- .../runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 120b0a5fb0..b89ba76273 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 @@ -366,7 +366,7 @@ hsa_status_t BlitSdma::Initialize(const core::Agent& agent) { static_cast(max_num_copy_command) * static_cast(max_single_linear_copy_size_))); - max_single_fill_size_ = 1 << 22; + max_single_fill_size_ = (1 << 22) - sizeof(uint32_t); max_total_fill_size_ = static_cast( std::min(static_cast(SIZE_MAX), static_cast(max_num_fill_command) *