kfdtest: increase KFDPerformanceTest.P2PBandWidthTest timeout value
KFDPerformanceTest.P2PBandWidthTest[push, push] takes about 3 seconds on 4 gfx906, the default g_TestTimeout 2 seconds is not enough to wait for sDMA queue rptr is consumed. Use kfdtest command line option --timeout=6000, the test is finished and result is reasonable twice as P2PBandWidthTest[push, none]. Change P2PBandWidthTest wait timeout to 6 seconds. Add timeout argument to function WaitOnValue, BaseQueue.Wait4PacketConsumption SDMAQueue.Wait4PacketConsumption, PM4Queue.Wait4PacketConsumption with default value is g_TestTimeOut. Change-Id: I0aa04d644339feaeea695e41647ae66568beab9e Signed-off-by: Philip Yang <Philip.Yang@amd.com>
This commit is contained in:
@@ -61,7 +61,10 @@ class AsyncMPSQ {
|
||||
/* Return only when all packets are consumed.
|
||||
* If there is any packet issues some IO operations, wait these IO to complete too.
|
||||
*/
|
||||
void Wait(void) { ASSERT_NE((HSAuint64)m_queue, NULL); m_queue->Wait4PacketConsumption(m_event); }
|
||||
void Wait(void) {
|
||||
ASSERT_NE((HSAuint64)m_queue, NULL);
|
||||
m_queue->Wait4PacketConsumption(m_event, std::max((unsigned int)6000, g_TestTimeOut));
|
||||
}
|
||||
|
||||
/* Report the time used between packet [begin, end) in Global Counter on success.
|
||||
* Return 0 on failure.
|
||||
|
||||
Reference in New Issue
Block a user