diff options
author | Vaikundanathan S <vaikuns@nvidia.com> | 2018-02-19 02:25:39 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-12 05:31:11 -0400 |
commit | 1f4bbff6e068e4b718b69bea5b9a1c3c07f5c49a (patch) | |
tree | 8fe2ab3164b897acbabbf527c37a67f11e397612 /drivers/gpu/nvgpu/clk/clk_domain.h | |
parent | 38930ee2442963f83284afe45e3f262408d92159 (diff) |
gpu: nvgpu: Port clkdomain & clkprog from chips_a
Update clk_domain_3x_prog,
Add vbios hal entry for GV100
Add stubbing in place of boardobj_interfaces.
Change-Id: Id880f303f40a07a6bf2a7f4f21d612124e89fe03
Signed-off-by: Vaikundanathan S <vaikuns@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1660697
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Tested-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_domain.h')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_domain.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_domain.h b/drivers/gpu/nvgpu/clk/clk_domain.h index 5374d643..4c4a0de2 100644 --- a/drivers/gpu/nvgpu/clk/clk_domain.h +++ b/drivers/gpu/nvgpu/clk/clk_domain.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -29,6 +29,10 @@ | |||
29 | #include "boardobj/boardobjgrp_e32.h" | 29 | #include "boardobj/boardobjgrp_e32.h" |
30 | #include "boardobj/boardobjgrpmask.h" | 30 | #include "boardobj/boardobjgrpmask.h" |
31 | 31 | ||
32 | #define CLK_DOMAIN_BOARDOBJGRP_VERSION 0x30 | ||
33 | #define CLK_TABLE_HAL_ENTRY_GP 0x02 | ||
34 | #define CLK_TABLE_HAL_ENTRY_GV 0x03 | ||
35 | |||
32 | struct clk_domains; | 36 | struct clk_domains; |
33 | struct clk_domain; | 37 | struct clk_domain; |
34 | 38 | ||
@@ -57,10 +61,12 @@ struct clk_domains { | |||
57 | u8 version; | 61 | u8 version; |
58 | bool b_enforce_vf_monotonicity; | 62 | bool b_enforce_vf_monotonicity; |
59 | bool b_enforce_vf_smoothening; | 63 | bool b_enforce_vf_smoothening; |
64 | bool b_override_o_v_o_c; | ||
65 | bool b_debug_mode; | ||
60 | u32 vbios_domains; | 66 | u32 vbios_domains; |
67 | u16 cntr_sampling_periodms; | ||
61 | struct boardobjgrpmask_e32 prog_domains_mask; | 68 | struct boardobjgrpmask_e32 prog_domains_mask; |
62 | struct boardobjgrpmask_e32 master_domains_mask; | 69 | struct boardobjgrpmask_e32 master_domains_mask; |
63 | u16 cntr_sampling_periodms; | ||
64 | struct ctrl_clk_clk_delta deltas; | 70 | struct ctrl_clk_clk_delta deltas; |
65 | 71 | ||
66 | struct clk_domain *ordered_noise_aware_list[CTRL_BOARDOBJ_MAX_BOARD_OBJECTS]; | 72 | struct clk_domain *ordered_noise_aware_list[CTRL_BOARDOBJ_MAX_BOARD_OBJECTS]; |
@@ -96,13 +102,13 @@ struct clk_domain_3x_prog { | |||
96 | struct clk_domain_3x super; | 102 | struct clk_domain_3x super; |
97 | u8 clk_prog_idx_first; | 103 | u8 clk_prog_idx_first; |
98 | u8 clk_prog_idx_last; | 104 | u8 clk_prog_idx_last; |
99 | u8 noise_unaware_ordering_index; | ||
100 | u8 noise_aware_ordering_index; | ||
101 | bool b_force_noise_unaware_ordering; | 105 | bool b_force_noise_unaware_ordering; |
102 | int factory_offset_khz; | 106 | struct ctrl_clk_freq_delta factory_delta; |
103 | short freq_delta_min_mhz; | 107 | short freq_delta_min_mhz; |
104 | short freq_delta_max_mhz; | 108 | short freq_delta_max_mhz; |
105 | struct ctrl_clk_clk_delta deltas; | 109 | struct ctrl_clk_clk_delta deltas; |
110 | u8 noise_unaware_ordering_index; | ||
111 | u8 noise_aware_ordering_index; | ||
106 | }; | 112 | }; |
107 | 113 | ||
108 | struct clk_domain_3x_master { | 114 | struct clk_domain_3x_master { |