mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: add debugger flag for regops support
Add NVGPU_DEBUGGER flag for regops API and hals Jira NVGPU-3505 Change-Id: I9f2b850c881bf05f8ba5b6ef1f59f0d73a948cde Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2130146 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
3d318e1d1d
commit
455b0da253
@@ -290,6 +290,7 @@ int nvgpu_probe(struct gk20a *g,
|
||||
nvgpu_create_sysfs(dev);
|
||||
gk20a_debug_init(g, debugfs_symlink);
|
||||
|
||||
#ifdef NVGPU_DEBUGGER
|
||||
g->dbg_regops_tmp_buf = nvgpu_kzalloc(g, SZ_4K);
|
||||
if (!g->dbg_regops_tmp_buf) {
|
||||
nvgpu_err(g, "couldn't allocate regops tmp buf");
|
||||
@@ -297,6 +298,7 @@ int nvgpu_probe(struct gk20a *g,
|
||||
}
|
||||
g->dbg_regops_tmp_buf_ops =
|
||||
SZ_4K / sizeof(g->dbg_regops_tmp_buf[0]);
|
||||
#endif
|
||||
|
||||
g->remove_support = gk20a_remove_support;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user