The purpose of this KFDTest is to investigate the behaviour of an
SDMA queue when an invalid memory address is used.

v2: Don't wait for SDMA queue to finish - it won't finish because of
the gpuvm fault.

v3: Create kfd event before SDMA queue submission. This fix the issue
that gpuvm fault happens earlier than kfd event is created then KFD
exception handler can't find the kfd event (to wake up kfd test)

v4: Instead of using 0x12345678 as the invalid VA, map one page of
FB to gpu and unmap it. Use the mapped GPUVA as the
invalid address

Change-Id: I58af1511f75d869adddede302b238c2725f3fe5a
Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Этот коммит содержится в:
Ori Messinger
2019-11-18 10:40:47 -05:00
коммит произвёл Oak Zeng
родитель dc784ba482
Коммит 46f5e83066
2 изменённых файлов: 105 добавлений и 0 удалений
+1
Просмотреть файл
@@ -54,6 +54,7 @@ class KFDExceptionTest : public KFDBaseComponentTest {
void TestMemoryException(int defaultGPUNode, HSAuint64 pSrc, HSAuint64 pDst,
unsigned int dimX = 1, unsigned int dimY = 1,
unsigned int dimZ = 1);
void TestSdmaException(int defaultGPUNode, void *pDst);
protected: // Members
pid_t m_ChildPid;