Create KFDTest for SDMA Fault
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>
[ROCm/ROCR-Runtime commit: 46f5e83066]
Cette révision appartient à :
@@ -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;
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur