mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: fix gpc addr determination
Fix pri_is_gpc_addr: determines whether a register offset is a GPC address. Needed for: Bug 200249125 Change-Id: I8322efc95cb8d02fa42b916f6649d9fa3f93171c Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: http://git-master/r/1255061 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
23c647f7a0
commit
dd5b630e13
@@ -53,7 +53,7 @@ static inline bool pri_is_gpc_addr(struct gk20a *g, u32 addr)
|
||||
u32 gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_GPC_STRIDE);
|
||||
u32 num_gpcs = nvgpu_get_litter_value(g, GPU_LIT_NUM_GPCS);
|
||||
return ((addr >= gpc_base) &&
|
||||
(addr < gpc_base) + num_gpcs * gpc_stride) ||
|
||||
(addr < gpc_base + num_gpcs * gpc_stride)) ||
|
||||
pri_is_gpc_addr_shared(g, addr);
|
||||
}
|
||||
static inline u32 pri_get_gpc_num(struct gk20a *g, u32 addr)
|
||||
|
||||
Reference in New Issue
Block a user