|
|
@ -150,9 +150,11 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector |
|
|
params.value |= event_id; |
|
|
params.value |= event_id; |
|
|
event.event->GetWritableEvent().Clear(); |
|
|
event.event->GetWritableEvent().Clear(); |
|
|
if (events_interface.failed[event_id]) { |
|
|
if (events_interface.failed[event_id]) { |
|
|
system.stallForGPU(true); |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
auto lk = system.StallCPU(); |
|
|
gpu.WaitFence(params.syncpt_id, target_value); |
|
|
gpu.WaitFence(params.syncpt_id, target_value); |
|
|
system.stallForGPU(false); |
|
|
|
|
|
|
|
|
system.UnstallCPU(); |
|
|
|
|
|
} |
|
|
std::memcpy(output.data(), ¶ms, sizeof(params)); |
|
|
std::memcpy(output.data(), ¶ms, sizeof(params)); |
|
|
events_interface.failed[event_id] = false; |
|
|
events_interface.failed[event_id] = false; |
|
|
return NvResult::Success; |
|
|
return NvResult::Success; |
|
|
|