diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-12-02 13:45:09 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-21 15:38:20 -0500 |
commit | 35969806d2c763d4a5662ba6a9233a63aa00352d (patch) | |
tree | fe639b074b5d4e02a1f0e5cf42af286bbd9e4c7a /drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |
parent | 67b54c3c76cfa488e1d102e5c74a32b3aaba9287 (diff) |
gpu: nvgpu: gv11b: add clock gating prod settings
JIRA GV11B-15
Change-Id: I38d8cbda33f9c4e8b44ca227cd5ea5fef346bfbd
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1266705
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 3124f540..ccaa570c 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -34,12 +34,66 @@ | |||
34 | #include "gv11b/fb_gv11b.h" | 34 | #include "gv11b/fb_gv11b.h" |
35 | #include "gv11b/fifo_gv11b.h" | 35 | #include "gv11b/fifo_gv11b.h" |
36 | #include "gv11b/hw_proj_gv11b.h" | 36 | #include "gv11b/hw_proj_gv11b.h" |
37 | #include "gv11b/gv11b_gating_reglist.h" | ||
37 | 38 | ||
38 | #include "gm20b/gr_gm20b.h" | 39 | #include "gm20b/gr_gm20b.h" |
39 | #include "gk20a/dbg_gpu_gk20a.h" | 40 | #include "gk20a/dbg_gpu_gk20a.h" |
40 | 41 | ||
41 | static struct gpu_ops gv11b_ops; | 42 | static struct gpu_ops gv11b_ops; |
42 | 43 | ||
44 | static struct gpu_ops gv11b_ops = { | ||
45 | .clock_gating = { | ||
46 | .slcg_bus_load_gating_prod = | ||
47 | gv11b_slcg_bus_load_gating_prod, | ||
48 | .slcg_ce2_load_gating_prod = | ||
49 | gv11b_slcg_ce2_load_gating_prod, | ||
50 | .slcg_chiplet_load_gating_prod = | ||
51 | gv11b_slcg_chiplet_load_gating_prod, | ||
52 | .slcg_ctxsw_firmware_load_gating_prod = | ||
53 | gv11b_slcg_ctxsw_firmware_load_gating_prod, | ||
54 | .slcg_fb_load_gating_prod = | ||
55 | gv11b_slcg_fb_load_gating_prod, | ||
56 | .slcg_fifo_load_gating_prod = | ||
57 | gv11b_slcg_fifo_load_gating_prod, | ||
58 | .slcg_gr_load_gating_prod = | ||
59 | gr_gv11b_slcg_gr_load_gating_prod, | ||
60 | .slcg_ltc_load_gating_prod = | ||
61 | ltc_gv11b_slcg_ltc_load_gating_prod, | ||
62 | .slcg_perf_load_gating_prod = | ||
63 | gv11b_slcg_perf_load_gating_prod, | ||
64 | .slcg_priring_load_gating_prod = | ||
65 | gv11b_slcg_priring_load_gating_prod, | ||
66 | .slcg_pmu_load_gating_prod = | ||
67 | gv11b_slcg_pmu_load_gating_prod, | ||
68 | .slcg_therm_load_gating_prod = | ||
69 | gv11b_slcg_therm_load_gating_prod, | ||
70 | .slcg_xbar_load_gating_prod = | ||
71 | gv11b_slcg_xbar_load_gating_prod, | ||
72 | .blcg_bus_load_gating_prod = | ||
73 | gv11b_blcg_bus_load_gating_prod, | ||
74 | .blcg_ce_load_gating_prod = | ||
75 | gv11b_blcg_ce_load_gating_prod, | ||
76 | .blcg_ctxsw_firmware_load_gating_prod = | ||
77 | gv11b_blcg_ctxsw_firmware_load_gating_prod, | ||
78 | .blcg_fb_load_gating_prod = | ||
79 | gv11b_blcg_fb_load_gating_prod, | ||
80 | .blcg_fifo_load_gating_prod = | ||
81 | gv11b_blcg_fifo_load_gating_prod, | ||
82 | .blcg_gr_load_gating_prod = | ||
83 | gv11b_blcg_gr_load_gating_prod, | ||
84 | .blcg_ltc_load_gating_prod = | ||
85 | gv11b_blcg_ltc_load_gating_prod, | ||
86 | .blcg_pwr_csb_load_gating_prod = | ||
87 | gv11b_blcg_pwr_csb_load_gating_prod, | ||
88 | .blcg_pmu_load_gating_prod = | ||
89 | gv11b_blcg_pmu_load_gating_prod, | ||
90 | .blcg_xbar_load_gating_prod = | ||
91 | gv11b_blcg_xbar_load_gating_prod, | ||
92 | .pg_gr_load_gating_prod = | ||
93 | gr_gv11b_pg_gr_load_gating_prod, | ||
94 | } | ||
95 | }; | ||
96 | |||
43 | static int gv11b_get_litter_value(struct gk20a *g, int value) | 97 | static int gv11b_get_litter_value(struct gk20a *g, int value) |
44 | { | 98 | { |
45 | int ret = EINVAL; | 99 | int ret = EINVAL; |