KFDTest : Add gfx1xxx release_mem and acquire_mem packet support
use family ID as parameter when construct the packets Change-Id: I6c1706954ab7b8cbb8bef2aab16edf21f5e1abf0 Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
This commit is contained in:
@@ -103,7 +103,7 @@ TEST_F(KFDEventTest, SignalEvent) {
|
||||
/* From gfx9 onward, m_pHsaEvent->EventId will also be passed to int_ctxid in
|
||||
* the Release Mem packet, which is used as context id in ISR.
|
||||
*/
|
||||
queue.PlaceAndSubmitPacket(PM4ReleaseMemoryPacket(false,
|
||||
queue.PlaceAndSubmitPacket(PM4ReleaseMemoryPacket(m_FamilyId, false,
|
||||
m_pHsaEvent->EventData.HWData2, m_pHsaEvent->EventId));
|
||||
|
||||
queue.Wait4PacketConsumption();
|
||||
@@ -148,7 +148,7 @@ class QueueAndSignalBenchmark {
|
||||
PM4Queue queue;
|
||||
|
||||
HsaEvent** pHsaEvent = reinterpret_cast<HsaEvent**>(calloc(eventCount, sizeof(HsaEvent*)));
|
||||
size_t packetSize = PM4ReleaseMemoryPacket(false, 0, 0).SizeInBytes();
|
||||
size_t packetSize = PM4ReleaseMemoryPacket(g_TestGPUFamilyId, false, 0, 0).SizeInBytes();
|
||||
int qSize = fmax(PAGE_SIZE, pow2_round_up(packetSize*eventCount + 1));
|
||||
|
||||
time = 0;
|
||||
@@ -162,7 +162,7 @@ class QueueAndSignalBenchmark {
|
||||
if (r != HSAKMT_STATUS_SUCCESS)
|
||||
goto exit;
|
||||
|
||||
queue.PlacePacket(PM4ReleaseMemoryPacket(false, pHsaEvent[i]->EventData.HWData2, pHsaEvent[i]->EventId));
|
||||
queue.PlacePacket(PM4ReleaseMemoryPacket(g_TestGPUFamilyId, false, pHsaEvent[i]->EventData.HWData2, pHsaEvent[i]->EventId));
|
||||
}
|
||||
|
||||
startTime = gettime();
|
||||
@@ -278,7 +278,7 @@ TEST_F(KFDEventTest, SignalMultipleEventsWaitForAll) {
|
||||
|
||||
unsigned int pktSizeDwords = 0;
|
||||
for (i = 0; i < EVENT_NUMBER; i++) {
|
||||
queue.PlaceAndSubmitPacket(PM4ReleaseMemoryPacket(false, pHsaEvent[i]->EventData.HWData2,
|
||||
queue.PlaceAndSubmitPacket(PM4ReleaseMemoryPacket(m_FamilyId, false, pHsaEvent[i]->EventData.HWData2,
|
||||
pHsaEvent[i]->EventId));
|
||||
queue.Wait4PacketConsumption();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user