mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: fix pri_is_be_addr
Correct the formula used to determine the range for BE registers Bug 1778245 Change-Id: I5443b3e68d920cecd031a9b154ed90f26e5251b2 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: http://git-master/r/1170602 (cherry picked from commit 813a08f1aa758d718987b4e6f2cf2ac8d15a1611) Reviewed-on: http://git-master/r/1177828 (cherry picked from commit de8239a5c6241419b98276a5f549ed8cfd7f4cf9) Reviewed-on: http://git-master/r/1181500 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Richard Zhao <rizhao@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Vladislav Buzov
parent
6706e4c406
commit
b2a8652527
@@ -124,11 +124,10 @@ static inline u32 pri_be_shared_addr(struct gk20a *g, u32 addr)
|
||||
}
|
||||
static inline bool pri_is_be_addr(struct gk20a *g, u32 addr)
|
||||
{
|
||||
u32 num_fbps = nvgpu_get_litter_value(g, GPU_LIT_NUM_FBPS);
|
||||
u32 rop_base = nvgpu_get_litter_value(g, GPU_LIT_ROP_BASE);
|
||||
u32 rop_stride = nvgpu_get_litter_value(g, GPU_LIT_ROP_STRIDE);
|
||||
return ((addr >= rop_base) &&
|
||||
(addr < rop_base + num_fbps * rop_stride)) ||
|
||||
(addr < rop_base + g->ltc_count * rop_stride)) ||
|
||||
pri_is_be_addr_shared(g, addr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user