diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/posix/clk_arb.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/posix/clk_arb.c | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/drivers/gpu/nvgpu/common/posix/clk_arb.c b/drivers/gpu/nvgpu/common/posix/clk_arb.c deleted file mode 100644 index 2214b37b..00000000 --- a/drivers/gpu/nvgpu/common/posix/clk_arb.c +++ /dev/null | |||
@@ -1,149 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice shall be included in | ||
12 | * all copies or substantial portions of the Software. | ||
13 | * | ||
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | * DEALINGS IN THE SOFTWARE. | ||
21 | */ | ||
22 | |||
23 | #include <nvgpu/list.h> | ||
24 | #include <nvgpu/clk_arb.h> | ||
25 | |||
26 | /** | ||
27 | * Stub imlementation of the clk_arb code. Yikes. Much of this probably could be | ||
28 | * commonized if one were to think through the implementation but that is | ||
29 | * probably weeks of work at a minimum. | ||
30 | * | ||
31 | * So for POSIX it will be stubbed. | ||
32 | */ | ||
33 | |||
34 | int nvgpu_clk_arb_init_arbiter(struct gk20a *g) | ||
35 | { | ||
36 | return -ENOSYS; | ||
37 | } | ||
38 | |||
39 | int nvgpu_clk_arb_get_arbiter_clk_range(struct gk20a *g, u32 api_domain, | ||
40 | u16 *min_mhz, u16 *max_mhz) | ||
41 | { | ||
42 | return -ENOSYS; | ||
43 | } | ||
44 | |||
45 | int nvgpu_clk_arb_get_arbiter_actual_mhz(struct gk20a *g, | ||
46 | u32 api_domain, u16 *actual_mhz) | ||
47 | { | ||
48 | return -ENOSYS; | ||
49 | } | ||
50 | |||
51 | int nvgpu_clk_arb_get_arbiter_effective_mhz(struct gk20a *g, | ||
52 | u32 api_domain, u16 *effective_mhz) | ||
53 | { | ||
54 | return -ENOSYS; | ||
55 | } | ||
56 | |||
57 | |||
58 | int nvgpu_clk_arb_get_arbiter_clk_f_points(struct gk20a *g, | ||
59 | u32 api_domain, | ||
60 | u32 *max_points, u16 *fpoints) | ||
61 | { | ||
62 | return -ENOSYS; | ||
63 | } | ||
64 | |||
65 | u32 nvgpu_clk_arb_get_arbiter_clk_domains(struct gk20a *g) | ||
66 | { | ||
67 | return 0; | ||
68 | } | ||
69 | |||
70 | bool nvgpu_clk_arb_is_valid_domain(struct gk20a *g, u32 api_domain) | ||
71 | { | ||
72 | return false; | ||
73 | } | ||
74 | |||
75 | void nvgpu_clk_arb_cleanup_arbiter(struct gk20a *g) | ||
76 | { | ||
77 | } | ||
78 | |||
79 | int nvgpu_clk_arb_install_session_fd(struct gk20a *g, | ||
80 | struct nvgpu_clk_session *session) | ||
81 | { | ||
82 | return -ENOSYS; | ||
83 | } | ||
84 | |||
85 | |||
86 | int nvgpu_clk_arb_init_session(struct gk20a *g, | ||
87 | struct nvgpu_clk_session **_session) | ||
88 | { | ||
89 | return -ENOSYS; | ||
90 | } | ||
91 | |||
92 | void nvgpu_clk_arb_release_session(struct gk20a *g, | ||
93 | struct nvgpu_clk_session *session) | ||
94 | { | ||
95 | } | ||
96 | |||
97 | int nvgpu_clk_arb_commit_request_fd(struct gk20a *g, | ||
98 | struct nvgpu_clk_session *session, | ||
99 | int request_fd) | ||
100 | { | ||
101 | return -ENOSYS; | ||
102 | } | ||
103 | |||
104 | int nvgpu_clk_arb_set_session_target_mhz(struct nvgpu_clk_session *session, | ||
105 | int fd, u32 api_domain, u16 target_mhz) | ||
106 | { | ||
107 | return -ENOSYS; | ||
108 | } | ||
109 | |||
110 | int nvgpu_clk_arb_get_session_target_mhz(struct nvgpu_clk_session *session, | ||
111 | u32 api_domain, u16 *target_mhz) | ||
112 | { | ||
113 | return -ENOSYS; | ||
114 | } | ||
115 | |||
116 | int nvgpu_clk_arb_install_event_fd(struct gk20a *g, | ||
117 | struct nvgpu_clk_session *session, | ||
118 | int *event_fd, u32 alarm_mask) | ||
119 | { | ||
120 | return -ENOSYS; | ||
121 | } | ||
122 | |||
123 | int nvgpu_clk_arb_install_request_fd(struct gk20a *g, | ||
124 | struct nvgpu_clk_session *session, | ||
125 | int *event_fd) | ||
126 | { | ||
127 | return -ENOSYS; | ||
128 | } | ||
129 | |||
130 | void nvgpu_clk_arb_schedule_vf_table_update(struct gk20a *g) | ||
131 | { | ||
132 | } | ||
133 | |||
134 | int nvgpu_clk_arb_get_current_pstate(struct gk20a *g) | ||
135 | { | ||
136 | return -ENOSYS; | ||
137 | } | ||
138 | |||
139 | void nvgpu_clk_arb_pstate_change_lock(struct gk20a *g, bool lock) | ||
140 | { | ||
141 | } | ||
142 | |||
143 | void nvgpu_clk_arb_send_thermal_alarm(struct gk20a *g) | ||
144 | { | ||
145 | } | ||
146 | |||
147 | void nvgpu_clk_arb_schedule_alarm(struct gk20a *g, u32 alarm) | ||
148 | { | ||
149 | } | ||