From 4c2ad152a31df1cda3a1c77450f367241efa7956 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Thu, 21 Jul 2022 15:49:57 -0400 Subject: [PATCH] kfdtest: Disable host access for VRAM KFDExceptionTest.SdmaQueueException allocates VRAM with host access. This fails on small-BAR GPUs. This error was incorrectly ignored before 7ccda4ba2689 ("kfdtest: Full TearDown and SetUp in child process"). The test doesn't really need host access to the memory. Therefore the fix is to disable the HostAccess flag. Signed-off-by: Felix Kuehling Change-Id: Ifec279eeb6c1ecb1160db9b692e6dc8816d761a3 [ROCm/ROCR-Runtime commit: 9d33827a84156ce9116e0188ad924a6dfa05e6e8] --- projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp b/projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp index 67ccc68336..f7c28d8897 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp +++ b/projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp @@ -317,6 +317,7 @@ TEST_F(KFDExceptionTest, SdmaQueueException) { KFDBaseComponentTest::SetUp(); m_MemoryFlags.ui32.NonPaged = 1; + m_MemoryFlags.ui32.HostAccess = 0; ASSERT_SUCCESS(hsaKmtAllocMemory(defaultGPUNode, PAGE_SIZE, m_MemoryFlags, reinterpret_cast(&pDb))); // verify that pDb is not null before it's being used