summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/hal_gp106.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-09-13 17:23:45 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:51 -0500
commit3d9c33c5953e383527c7e4af594adfe0c82b5788 (patch)
tree6de4ae86667c763ed0deef3add9336b570ca15ff /drivers/gpu/nvgpu/gp106/hal_gp106.c
parentc320ccfa952a2796db27d97111791bcbeff9f5c7 (diff)
gpu: nvgpu: clk arbiter skeleton
Add clock arbiter skeleton with support of clock sessions, notifications on clock changes, request numbering, and asynchronous handling of clock requests. Provides minimum behaviour to allow unit tests implementation. Actual arbitration and clock settings will be done separately. For now, dummy arbiter keeps last requested target mhz. Actual arbiter may move to a lockless implementation. Jira DNVGPU-125 Change-Id: I6a8e443fb0d15dc5f1993e7260256d71acddd106 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1223476 (cherry picked from commit cb130825d84e4124d273bd443e2b62d493377461) Reviewed-on: http://git-master/r/1243105 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/hal_gp106.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c
index 0f926be8..dc27cdae 100644
--- a/drivers/gpu/nvgpu/gp106/hal_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c
@@ -37,6 +37,7 @@
37#include "gm20b/fifo_gm20b.h" 37#include "gm20b/fifo_gm20b.h"
38#include "gm20b/pmu_gm20b.h" 38#include "gm20b/pmu_gm20b.h"
39#include "gp106/clk_gp106.h" 39#include "gp106/clk_gp106.h"
40#include "gp106/clk_arb_gp106.h"
40 41
41#include "gp106/mm_gp106.h" 42#include "gp106/mm_gp106.h"
42#include "gp106/pmu_gp106.h" 43#include "gp106/pmu_gp106.h"
@@ -210,6 +211,7 @@ int gp106_init_hal(struct gk20a *g)
210 gk20a_init_debug_ops(gops); 211 gk20a_init_debug_ops(gops);
211 gk20a_init_dbg_session_ops(gops); 212 gk20a_init_dbg_session_ops(gops);
212 gp106_init_clk_ops(gops); 213 gp106_init_clk_ops(gops);
214 gp106_init_clk_arb_ops(gops);
213 gp106_init_regops(gops); 215 gp106_init_regops(gops);
214 gp10b_init_cde_ops(gops); 216 gp10b_init_cde_ops(gops);
215 gk20a_init_tsg_ops(gops); 217 gk20a_init_tsg_ops(gops);