diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-05-21 11:22:51 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-06-01 13:44:20 -0400 |
commit | f8cc28af38752354130506b8a9cecd86fd7aa48e (patch) | |
tree | 66ccde05d6761c10bd1c398632f87990a03571ec /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | e19d349858d00fd97ab518376c90d6da9390510c (diff) |
gpu: nvgpu: Use HAL for waiting for GR quiet
Create a HAL for waiting for GR to become quiet. Use it forall cases
where we require GR to be quiet, but where it does not need to be
idle.
Bug 1640378
Change-Id: Ic0222d595a2d049e0fa8864b069ab94a97fac143
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/745640
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 67a6123e..d77a9df2 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -173,6 +173,8 @@ struct gpu_ops { | |||
173 | u32 (*get_max_lts_per_ltc)(struct gk20a *g); | 173 | u32 (*get_max_lts_per_ltc)(struct gk20a *g); |
174 | u32* (*get_rop_l2_en_mask)(struct gk20a *g); | 174 | u32* (*get_rop_l2_en_mask)(struct gk20a *g); |
175 | void (*init_sm_dsm_reg_info)(void); | 175 | void (*init_sm_dsm_reg_info)(void); |
176 | int (*wait_empty)(struct gk20a *g, unsigned long end_jiffies, | ||
177 | u32 expect_delay); | ||
176 | } gr; | 178 | } gr; |
177 | const char *name; | 179 | const char *name; |
178 | struct { | 180 | struct { |