diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-01-26 18:53:51 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-30 12:53:43 -0500 |
commit | cf8d9ccf8e8878431d93605e3e1b7c0211479cfe (patch) | |
tree | eb3fd7db26630734d403d27548ec93eb33c2bee9 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | ed220567798156aee74291044a6b2d9586cdee71 (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1294850
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
93 | struct delayed_work wq; | 93 | struct delayed_work wq; |
94 | raw_spinlock_t lock; | 94 | raw_spinlock_t lock; |
95 | bool initialized; | 95 | bool initialized; |
96 | struct channel_gk20a_job *job; | 96 | u32 gp_get; |
97 | }; | 97 | }; |
98 | 98 | ||
99 | struct gk20a_event_id_data { | 99 | struct gk20a_event_id_data { |