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/gk20a/gk20a.h | |
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/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index bd477208..c29c03f0 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -69,7 +69,6 @@ struct nvgpu_ctxsw_trace_filter; | |||
69 | #include "fifo_gk20a.h" | 69 | #include "fifo_gk20a.h" |
70 | #include "tsg_gk20a.h" | 70 | #include "tsg_gk20a.h" |
71 | #include "pmu_gk20a.h" | 71 | #include "pmu_gk20a.h" |
72 | #include "priv_ring_gk20a.h" | ||
73 | #include "therm_gk20a.h" | 72 | #include "therm_gk20a.h" |
74 | #include "clk/clk.h" | 73 | #include "clk/clk.h" |
75 | #include "perf/perf.h" | 74 | #include "perf/perf.h" |
@@ -1235,9 +1234,11 @@ struct gpu_ops { | |||
1235 | void (*falcon_hal_sw_init)(struct nvgpu_falcon *flcn); | 1234 | void (*falcon_hal_sw_init)(struct nvgpu_falcon *flcn); |
1236 | } falcon; | 1235 | } falcon; |
1237 | struct { | 1236 | struct { |
1237 | void (*enable_priv_ring)(struct gk20a *g); | ||
1238 | void (*isr)(struct gk20a *g); | 1238 | void (*isr)(struct gk20a *g); |
1239 | void (*decode_error_code)(struct gk20a *g, u32 error_code); | 1239 | void (*decode_error_code)(struct gk20a *g, u32 error_code); |
1240 | void (*set_ppriv_timeout_settings)(struct gk20a *g); | 1240 | void (*set_ppriv_timeout_settings)(struct gk20a *g); |
1241 | u32 (*enum_ltc)(struct gk20a *g); | ||
1241 | } priv_ring; | 1242 | } priv_ring; |
1242 | struct { | 1243 | struct { |
1243 | int (*check_priv_security)(struct gk20a *g); | 1244 | int (*check_priv_security)(struct gk20a *g); |