From 9d33827a84156ce9116e0188ad924a6dfa05e6e8 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 412b24137edb ("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 --- tests/kfdtest/src/KFDExceptionTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/kfdtest/src/KFDExceptionTest.cpp b/tests/kfdtest/src/KFDExceptionTest.cpp index 67ccc68336..f7c28d8897 100644 --- a/tests/kfdtest/src/KFDExceptionTest.cpp +++ b/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