summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2016-09-15 17:37:31 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-14 11:11:20 -0400
commit94efd53ed1c8202b4b46af41ec8ab580774f4974 (patch)
tree8639358ff6be216c40755896b323ac9966107321 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent1029136eaa1c7c1cb9a9c8413af439fd741dc232 (diff)
gpu: nvgpu: fix zcull programming
There are eight tiles per map tile register and depending on how many tpcs are present, there is a chance that s/w will be accessing un-allocated memory for reading tile values from temp buffers. Bug 1735760 Change-Id: I5c0e09ec75099aaf6ad03dde964b9e93c2dc2408 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1221580 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index a76798d1..933ab4a9 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -305,6 +305,8 @@ struct gpu_ops {
305 void (*program_active_tpc_counts)(struct gk20a *g, u32 gpc); 305 void (*program_active_tpc_counts)(struct gk20a *g, u32 gpc);
306 int (*setup_rop_mapping)(struct gk20a *g, struct gr_gk20a *gr); 306 int (*setup_rop_mapping)(struct gk20a *g, struct gr_gk20a *gr);
307 int (*init_sw_veid_bundle)(struct gk20a *g); 307 int (*init_sw_veid_bundle)(struct gk20a *g);
308 void (*program_zcull_mapping)(struct gk20a *g,
309 u32 zcull_alloc_num, u32 *zcull_map_tiles);
308 } gr; 310 } gr;
309 const char *name; 311 const char *name;
310 struct { 312 struct {