nv_host_ctrl: Make Sync GPU variant always return synced result.

This commit is contained in:
Fernando Sahmkow 2019-06-10 08:19:27 -04:00 committed by FernandoS27
parent 600dddf88d
commit 0706d633bf
5 changed files with 16 additions and 5 deletions

View file

@ -60,6 +60,11 @@ u32 nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>&
}
auto& gpu = Core::System::GetInstance().GPU();
// This is mostly to take into account unimplemented features. As synced
// gpu is always synced.
if (!gpu.IsAsync()) {
return NvResult::Success;
}
gpu.Guard(true);
u32 current_syncpoint_value = gpu.GetSyncpointValue(params.syncpt_id);
if (current_syncpoint_value >= params.threshold) {