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
7ccda4ba26 ("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


[ROCm/ROCR-Runtime commit: 9d33827a84]
Цей коміт міститься в:
Felix Kuehling
2022-07-21 15:49:57 -04:00
джерело c6a23a88ee
коміт 4c2ad152a3
+1
Переглянути файл
@@ -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