mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: avoid false job timeout message
The nvgpu timer API prints a message when the timer expires, but expiration of that does not necessarily mean here that the job has actually timed out, which is tested by comparing gp_get. Change the expiration check to just peek instead of the default which prints to log on expiration. Bug 1887569 Jira NVGPU-21 Change-Id: Ifde34cff701eaed2f3ea727dba3ec8affeef26b9 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1329731 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d066a6fa3c
commit
580c8112f0
@@ -2260,7 +2260,7 @@ static void gk20a_channel_timeout_check(struct channel_gk20a *ch)
|
|||||||
|
|
||||||
nvgpu_raw_spinlock_acquire(&ch->timeout.lock);
|
nvgpu_raw_spinlock_acquire(&ch->timeout.lock);
|
||||||
timed_out = ch->timeout.running &&
|
timed_out = ch->timeout.running &&
|
||||||
nvgpu_timeout_expired(&ch->timeout.timer);
|
nvgpu_timeout_peek_expired(&ch->timeout.timer);
|
||||||
nvgpu_raw_spinlock_release(&ch->timeout.lock);
|
nvgpu_raw_spinlock_release(&ch->timeout.lock);
|
||||||
|
|
||||||
if (timed_out)
|
if (timed_out)
|
||||||
|
|||||||
Reference in New Issue
Block a user