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/gk20a/gr_gk20a.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/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 0250e97e..6e63c138 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <nvgpu/io.h> | 42 | #include <nvgpu/io.h> |
43 | #include <nvgpu/utils.h> | 43 | #include <nvgpu/utils.h> |
44 | #include <nvgpu/channel.h> | 44 | #include <nvgpu/channel.h> |
45 | #include <nvgpu/unit.h> | ||
45 | 46 | ||
46 | #include "gk20a.h" | 47 | #include "gk20a.h" |
47 | #include "gr_gk20a.h" | 48 | #include "gr_gk20a.h" |
@@ -4708,9 +4709,9 @@ static int gk20a_init_gr_prepare(struct gk20a *g) | |||
4708 | u32 err = 0; | 4709 | u32 err = 0; |
4709 | 4710 | ||
4710 | /* reset gr engine */ | 4711 | /* reset gr engine */ |
4711 | g->ops.mc.reset(g, mc_enable_pgraph_enabled_f() | | 4712 | g->ops.mc.reset(g, g->ops.mc.reset_mask(g, NVGPU_UNIT_GRAPH) | |
4712 | mc_enable_blg_enabled_f() | | 4713 | g->ops.mc.reset_mask(g, NVGPU_UNIT_BLG) | |
4713 | mc_enable_perfmon_enabled_f()); | 4714 | g->ops.mc.reset_mask(g, NVGPU_UNIT_PERFMON)); |
4714 | 4715 | ||
4715 | gr_gk20a_load_gating_prod(g); | 4716 | gr_gk20a_load_gating_prod(g); |
4716 | 4717 | ||