diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-09-12 17:51:40 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-27 18:05:25 -0400 |
commit | e3ae03e17abd452c157545234348692364b4b9f6 (patch) | |
tree | 121b3dcde56c87f9a1008ad4f5effbeb69cff945 /drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c | |
parent | 78e3d22da3c2513d425c8c2560468ce854a982dd (diff) |
gpu: nvgpu: Add MC APIs for reset masks
Add API for querying reset mask corresponding to a unit. The reset
masks need to be read from MC HW header, and we do not want all
units to access Mc HW headers themselves.
JIRA NVGPU-954
Change-Id: I49ebbd891569de634bfc71afcecc8cd2358805c0
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1823384
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c b/drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c index ec6cce55..2b2410eb 100644 --- a/drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c | |||
@@ -26,10 +26,10 @@ | |||
26 | #include <nvgpu/io.h> | 26 | #include <nvgpu/io.h> |
27 | #include <nvgpu/utils.h> | 27 | #include <nvgpu/utils.h> |
28 | #include <nvgpu/gk20a.h> | 28 | #include <nvgpu/gk20a.h> |
29 | #include <nvgpu/unit.h> | ||
29 | 30 | ||
30 | #include "gv11b/dbg_gpu_gv11b.h" | 31 | #include "gv11b/dbg_gpu_gv11b.h" |
31 | #include <nvgpu/hw/gv11b/hw_perf_gv11b.h> | 32 | #include <nvgpu/hw/gv11b/hw_perf_gv11b.h> |
32 | #include <nvgpu/hw/gv11b/hw_mc_gv11b.h> | ||
33 | #include <nvgpu/bug.h> | 33 | #include <nvgpu/bug.h> |
34 | 34 | ||
35 | static void gv11b_perfbuf_reset_streaming(struct gk20a *g) | 35 | static void gv11b_perfbuf_reset_streaming(struct gk20a *g) |
@@ -37,7 +37,7 @@ static void gv11b_perfbuf_reset_streaming(struct gk20a *g) | |||
37 | u32 engine_status; | 37 | u32 engine_status; |
38 | u32 num_unread_bytes; | 38 | u32 num_unread_bytes; |
39 | 39 | ||
40 | g->ops.mc.reset(g, mc_enable_perfmon_enabled_f()); | 40 | g->ops.mc.reset(g, g->ops.mc.reset_mask(g, NVGPU_UNIT_PERFMON)); |
41 | 41 | ||
42 | engine_status = gk20a_readl(g, perf_pmasys_enginestatus_r()); | 42 | engine_status = gk20a_readl(g, perf_pmasys_enginestatus_r()); |
43 | WARN_ON(0u == | 43 | WARN_ON(0u == |