diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_pri_gk20a.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_pri_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_pri_gk20a.h index 62e276de..a7656d38 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_pri_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_pri_gk20a.h | |||
@@ -124,11 +124,10 @@ static inline u32 pri_be_shared_addr(struct gk20a *g, u32 addr) | |||
124 | } | 124 | } |
125 | static inline bool pri_is_be_addr(struct gk20a *g, u32 addr) | 125 | static inline bool pri_is_be_addr(struct gk20a *g, u32 addr) |
126 | { | 126 | { |
127 | u32 num_fbps = nvgpu_get_litter_value(g, GPU_LIT_NUM_FBPS); | ||
128 | u32 rop_base = nvgpu_get_litter_value(g, GPU_LIT_ROP_BASE); | 127 | u32 rop_base = nvgpu_get_litter_value(g, GPU_LIT_ROP_BASE); |
129 | u32 rop_stride = nvgpu_get_litter_value(g, GPU_LIT_ROP_STRIDE); | 128 | u32 rop_stride = nvgpu_get_litter_value(g, GPU_LIT_ROP_STRIDE); |
130 | return ((addr >= rop_base) && | 129 | return ((addr >= rop_base) && |
131 | (addr < rop_base + num_fbps * rop_stride)) || | 130 | (addr < rop_base + g->ltc_count * rop_stride)) || |
132 | pri_is_be_addr_shared(g, addr); | 131 | pri_is_be_addr_shared(g, addr); |
133 | } | 132 | } |
134 | 133 | ||