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/css_gr_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/css_gr_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c index 1191dad3..b9278a01 100644 --- a/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c | |||
@@ -37,12 +37,12 @@ | |||
37 | #include <nvgpu/utils.h> | 37 | #include <nvgpu/utils.h> |
38 | #include <nvgpu/gk20a.h> | 38 | #include <nvgpu/gk20a.h> |
39 | #include <nvgpu/channel.h> | 39 | #include <nvgpu/channel.h> |
40 | #include <nvgpu/unit.h> | ||
40 | 41 | ||
41 | #include "gk20a/css_gr_gk20a.h" | 42 | #include "gk20a/css_gr_gk20a.h" |
42 | #include "css_gr_gv11b.h" | 43 | #include "css_gr_gv11b.h" |
43 | 44 | ||
44 | #include <nvgpu/hw/gv11b/hw_perf_gv11b.h> | 45 | #include <nvgpu/hw/gv11b/hw_perf_gv11b.h> |
45 | #include <nvgpu/hw/gv11b/hw_mc_gv11b.h> | ||
46 | 46 | ||
47 | 47 | ||
48 | /* reports whether the hw queue overflowed */ | 48 | /* reports whether the hw queue overflowed */ |
@@ -65,7 +65,7 @@ static void gv11b_css_hw_reset_streaming(struct gk20a *g) | |||
65 | u32 engine_status; | 65 | u32 engine_status; |
66 | 66 | ||
67 | /* reset the perfmon */ | 67 | /* reset the perfmon */ |
68 | g->ops.mc.reset(g, mc_enable_perfmon_enabled_f()); | 68 | g->ops.mc.reset(g, g->ops.mc.reset_mask(g, NVGPU_UNIT_PERFMON)); |
69 | 69 | ||
70 | /* RBUFEMPTY must be set -- otherwise we'll pick up */ | 70 | /* RBUFEMPTY must be set -- otherwise we'll pick up */ |
71 | /* snapshot that have been queued up from earlier */ | 71 | /* snapshot that have been queued up from earlier */ |