Debarshi Dutta
85c323c3e8
gpu: nvgpu: restrict devfreq during active clk_arb set requests
...
Restrict access to devfreq when there are active set requests in the
clk_arbiter. We make the following changes in the patch.
1) Add a global counter in the struct gk20a named clk_arb_global_nr which
is used to track the number of active set requests in the system.
2) Anytime a set request is successfully made by the userspace,
clk_arb_global_nr is incremented by 1 and during the completion of
request(releasing the corresponding file handle), clk_arb_global_nr is
decremented by 1.
3) gk20a_scale_target(invoked by devfreq to set the new frequency based
on load) atomically checks clk_arb_global_nr. If the value = 0, the
code simply continue or else if its > 0, it quits thus making devfreq
requests mutually exclusive with the clk_arbiter.
Bug 2061372
Change-Id: I5d19de03e45520f4ff8fccb97b1f1589d04c8ab8
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1790002
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2018-09-20 10:50:25 -07:00
..
2018-09-18 10:34:41 -07:00
2018-08-29 20:34:34 -07:00
2018-08-29 20:34:34 -07:00
2018-08-29 20:34:34 -07:00
2018-08-29 20:34:34 -07:00
2018-09-10 15:25:18 -07:00
2018-06-15 17:47:31 -07:00
2018-08-30 21:43:01 -07:00
2018-09-20 10:50:02 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-09-05 20:40:32 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-27 07:30:06 -07:00
2018-06-27 07:30:06 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-09-20 10:50:25 -07:00
2018-09-05 04:51:40 -07:00
2018-09-05 04:51:36 -07:00
2018-09-05 04:51:36 -07:00
2018-09-09 17:22:24 -07:00
2018-09-09 17:22:24 -07:00
2018-09-05 20:40:32 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-07-24 16:10:58 -07:00
2018-07-24 16:10:58 -07:00
2018-09-05 04:51:50 -07:00
2018-09-05 04:51:50 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-09-05 04:51:43 -07:00
2018-09-05 04:51:43 -07:00
2018-08-24 14:57:57 -07:00
2018-06-15 17:47:31 -07:00
2018-07-24 16:10:58 -07:00
2018-07-05 21:48:56 -07:00
2018-07-05 21:48:56 -07:00
2018-08-24 14:57:44 -07:00
2018-06-15 17:47:31 -07:00
2018-09-20 10:50:25 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-08-07 01:45:02 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-09-13 19:18:24 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-07-14 15:36:53 -07:00
2018-09-05 20:40:32 -07:00
2018-06-15 17:47:31 -07:00
2018-09-17 23:39:24 -07:00
2018-06-15 17:47:31 -07:00
2018-09-20 10:50:25 -07:00
2018-09-05 20:40:32 -07:00
2018-06-15 17:47:31 -07:00
2018-09-19 15:53:56 -07:00
2018-07-05 21:48:44 -07:00
2018-09-05 20:40:32 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-07-30 19:55:16 -07:00
2018-09-05 20:40:32 -07:00
2018-09-05 20:38:42 -07:00
2018-06-15 17:47:31 -07:00
2018-09-06 16:12:24 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-09-18 10:34:41 -07:00
2018-07-06 13:24:45 -07:00
2018-09-06 21:42:11 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-07-26 00:06:07 -07:00
2018-07-26 00:06:07 -07:00
2018-09-17 23:39:24 -07:00
2018-09-17 23:39:24 -07:00
2018-09-05 20:40:32 -07:00
2018-09-09 17:22:24 -07:00
2018-09-05 04:51:40 -07:00
2018-08-29 20:34:34 -07:00
2018-09-09 17:22:24 -07:00
2018-08-29 20:34:34 -07:00
2018-09-09 17:22:24 -07:00
2018-09-05 04:51:36 -07:00
2018-09-09 17:22:24 -07:00
2018-09-09 17:22:24 -07:00
2018-09-09 17:22:24 -07:00
2018-09-05 04:51:36 -07:00
2018-09-09 17:22:24 -07:00
2018-08-29 20:34:34 -07:00
2018-06-19 10:43:10 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-08-14 21:25:05 -07:00
2018-06-15 17:47:31 -07:00
2018-08-21 15:44:02 -07:00
2018-06-15 17:47:31 -07:00
2018-09-20 10:50:02 -07:00
2018-09-20 10:50:12 -07:00
2018-07-19 16:43:58 -07:00
2018-06-15 17:47:31 -07:00
2018-09-20 10:50:12 -07:00
2018-06-15 17:47:31 -07:00
2018-09-20 10:50:25 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-07-30 11:24:06 -07:00
2018-07-06 13:24:45 -07:00
2018-06-15 17:47:31 -07:00
2018-09-06 21:42:11 -07:00
2018-06-15 17:47:31 -07:00
2018-09-06 21:33:30 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-08-10 18:11:26 -07:00