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
412b24137e ("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 <Felix.Kuehling@amd.com>
Change-Id: Ifec279eeb6c1ecb1160db9b692e6dc8816d761a3
This commit is contained in:
@@ -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<void**>(&pDb)));
|
||||
// verify that pDb is not null before it's being used
|
||||
|
||||
Reference in New Issue
Block a user