summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorLeonid Moiseichuk <lmoiseichuk@nvidia.com>2015-08-11 06:38:51 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-09-04 12:03:07 -0400
commit54c2ae59f0010c75bc03719e7b5ece4040c102d3 (patch)
tree549ea910d4de7dde2d335e3f0198baab51354177 /drivers/gpu/nvgpu/gk20a/gk20a.h
parenteeb604c23d4ea7a6a7900b99a2ae92cff0488112 (diff)
gpu: nvgpu: cyclestats snapshot permissions rework
Cyclestats snapshot feature is expected for new devices. The detection code was isolated in separate function and run-time check added to validate/allow ioctl calls on the current GPU. Bug 1674079 Change-Id: Icc2f1e5cc50d39b395d31d5292c314f99d67f3eb Signed-off-by: Leonid Moiseichuk <lmoiseichuk@nvidia.com> Reviewed-on: http://git-master/r/781697 (cherry picked from commit bdd23136b182c933841f91dd2829061e278a46d4) Reviewed-on: http://git-master/r/793630 Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index ed209929..d48b94aa 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -179,6 +179,7 @@ struct gpu_ops {
179 void (*init_sm_dsm_reg_info)(void); 179 void (*init_sm_dsm_reg_info)(void);
180 int (*wait_empty)(struct gk20a *g, unsigned long end_jiffies, 180 int (*wait_empty)(struct gk20a *g, unsigned long end_jiffies,
181 u32 expect_delay); 181 u32 expect_delay);
182 void (*init_cyclestats)(struct gk20a *g);
182 } gr; 183 } gr;
183 const char *name; 184 const char *name;
184 struct { 185 struct {