From cf8d9ccf8e8878431d93605e3e1b7c0211479cfe Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 26 Jan 2017 15:53:51 -0800 Subject: gpu: nvgpu: Base channel watchdog on gp_get Instead of checking if a job is complete, only check that channel is making progress by checking its gp_get is advancing. This will make the watchdog conservative. Previously a whole job had x seconds to complete. Now channel has x seconds to get host to consume each push buffer segment. Bug 1861838 Bug 200273419 Bug 200263100 Change-Id: I70adc1f50301bce8db7dac675771c251c0f11b70 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1294850 Reviewed-by: Automatic_Commit_Validation_User --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 44a989da..fce3f461 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -93,7 +93,7 @@ struct channel_gk20a_timeout { struct delayed_work wq; raw_spinlock_t lock; bool initialized; - struct channel_gk20a_job *job; + u32 gp_get; }; struct gk20a_event_id_data { -- cgit v1.2.2