fix: check reset status after completion

Added a logic to check the reset status after the completion to make
sure we go through the logic at least once

Related-To: GSD-8902
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
Young Jin Yoon
2024-05-07 16:58:28 +00:00
committed by Compute-Runtime-Automation
parent aa0441bc63
commit 2c488d9e84
10 changed files with 150 additions and 10 deletions

View File

@@ -275,7 +275,7 @@ int DrmMock::ioctl(DrmIoctl request, void *arg) {
return storedRetValForGemClose;
}
if (request == DrmIoctl::getResetStats && arg != nullptr) {
ioctlCount.gemResetStats++;
ioctlCount.getResetStats++;
auto outResetStats = static_cast<ResetStats *>(arg);
for (const auto &resetStats : resetStatsToReturn) {
if (resetStats.contextId == outResetStats->contextId) {