summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 874b8056..8d35dd80 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -5058,6 +5058,10 @@ static inline bool is_valid_cyclestats_bar0_offset_gk20a(struct gk20a *g,
5058{ 5058{
5059 /* support only 24-bit 4-byte aligned offsets */ 5059 /* support only 24-bit 4-byte aligned offsets */
5060 bool valid = !(offset & 0xFF000003); 5060 bool valid = !(offset & 0xFF000003);
5061
5062 if (g->allow_all)
5063 return true;
5064
5061 /* whitelist check */ 5065 /* whitelist check */
5062 valid = valid && 5066 valid = valid &&
5063 is_bar0_global_offset_whitelisted_gk20a(offset); 5067 is_bar0_global_offset_whitelisted_gk20a(offset);