mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: Use FB reg for getting HUB MMU dbg mode
When we program MMU debug mode, we program it to both HUB and GPC MMU. The query retrieved the value from GPC MMU, which introduces a dependency from FB to GR. Change the code to retrieve the mode from HUB MMU instead. Change-Id: I6fa98e050480f7405395b7e44965defa386734d4 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1801419 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
dd71ad91b9
commit
271456272d
@@ -202,9 +202,9 @@ void gm20b_fb_read_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf)
|
||||
|
||||
bool gm20b_fb_debug_mode_enabled(struct gk20a *g)
|
||||
{
|
||||
u32 debug_ctrl = gk20a_readl(g, gr_gpcs_pri_mmu_debug_ctrl_r());
|
||||
return gr_gpcs_pri_mmu_debug_ctrl_debug_v(debug_ctrl) ==
|
||||
gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v();
|
||||
u32 debug_ctrl = gk20a_readl(g, fb_mmu_debug_ctrl_r());
|
||||
return fb_mmu_debug_ctrl_debug_v(debug_ctrl) ==
|
||||
fb_mmu_debug_ctrl_debug_enabled_v();
|
||||
}
|
||||
|
||||
void gm20b_fb_set_debug_mode(struct gk20a *g, bool enable)
|
||||
|
||||
Reference in New Issue
Block a user