diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-08-10 11:28:23 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-13 17:06:17 -0400 |
commit | e62785190f74cfbf9003a190a768e9077373bf6f (patch) | |
tree | be7bf93828c948d3b9bc84ec31f3f21cec35cf9e /drivers/gpu/nvgpu/gm20b | |
parent | 0706e94c9204becdee6a32391a319cad690d1bc3 (diff) |
gpu: nvgpu: Move priv_ring HAL to common
Move implementation of priv_ring HAL to common/priv_ring. Implement
two new HAL APIs to remove illegal dependencies: enable_priv_ring and
enum_ltc.
As enum_ltc can be implemented only gm20b onwards, bump gk20a
implementation to base on gm20b.
JIRA NVGPU-964
Change-Id: I160c2216132aadbcd98bb4a688aeeb2c520a9bc0
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1797025
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index b37f6244..e6c4c8d1 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "common/clock_gating/gm20b_gating_reglist.h" | 25 | #include "common/clock_gating/gm20b_gating_reglist.h" |
26 | #include "common/bus/bus_gm20b.h" | 26 | #include "common/bus/bus_gm20b.h" |
27 | #include "common/bus/bus_gk20a.h" | 27 | #include "common/bus/bus_gk20a.h" |
28 | #include "common/priv_ring/priv_ring_gm20b.h" | ||
28 | #include "common/ptimer/ptimer_gk20a.h" | 29 | #include "common/ptimer/ptimer_gk20a.h" |
29 | #include "common/fb/fb_gk20a.h" | 30 | #include "common/fb/fb_gk20a.h" |
30 | #include "common/fb/fb_gm20b.h" | 31 | #include "common/fb/fb_gm20b.h" |
@@ -38,7 +39,6 @@ | |||
38 | #include "gk20a/css_gr_gk20a.h" | 39 | #include "gk20a/css_gr_gk20a.h" |
39 | #include "gk20a/mc_gk20a.h" | 40 | #include "gk20a/mc_gk20a.h" |
40 | #include "gk20a/flcn_gk20a.h" | 41 | #include "gk20a/flcn_gk20a.h" |
41 | #include "gk20a/priv_ring_gk20a.h" | ||
42 | #include "gk20a/regops_gk20a.h" | 42 | #include "gk20a/regops_gk20a.h" |
43 | #include "gk20a/pmu_gk20a.h" | 43 | #include "gk20a/pmu_gk20a.h" |
44 | #include "gk20a/gr_gk20a.h" | 44 | #include "gk20a/gr_gk20a.h" |
@@ -641,9 +641,11 @@ static const struct gpu_ops gm20b_ops = { | |||
641 | .falcon_hal_sw_init = gk20a_falcon_hal_sw_init, | 641 | .falcon_hal_sw_init = gk20a_falcon_hal_sw_init, |
642 | }, | 642 | }, |
643 | .priv_ring = { | 643 | .priv_ring = { |
644 | .isr = gk20a_priv_ring_isr, | 644 | .enable_priv_ring = gm20b_priv_ring_enable, |
645 | .isr = gm20b_priv_ring_isr, | ||
645 | .set_ppriv_timeout_settings = | 646 | .set_ppriv_timeout_settings = |
646 | gk20a_priv_set_timeout_settings, | 647 | gm20b_priv_set_timeout_settings, |
648 | .enum_ltc = gm20b_priv_ring_enum_ltc, | ||
647 | }, | 649 | }, |
648 | .fuse = { | 650 | .fuse = { |
649 | .check_priv_security = gm20b_fuse_check_priv_security, | 651 | .check_priv_security = gm20b_fuse_check_priv_security, |