Deepak Nibade
fe27a7f934
gpu: nvgpu: add gr/ctx and gr/subctx APIs to set hwpm ctxsw mode
...
gr_gk20a_update_hwpm_ctxsw_mode() right now validates the incoming
hwpm mode, checks if it is already set, and if not, it will go ahead
and set the new hwpm mode by calling g->ops.gr.ctxsw_prog HALs
Instead of programming hwpm mode in gr_gk20a.c, move the programming
to gr/ctx and gr/subctx units by adding below APIs
nvgpu_gr_ctx_prepare_hwpm_mode() - validate the incoming mode and
check if it is already set
nvgpu_gr_ctx_set_hwpm_mode() - set pm mode in graphics context
nvgpu_gr_subctx_set_hwpm_mode() - set pm mode in subcontext
Add gpu_va field to struct pm_ctx_desc to store the gpu_va to be
programmed into context
Rename NVGPU_DBG_HWPM_CTXSW_MODE_* to NVGPU_GR_CTX_HWPM_CTXSW_MODE_*
and move them to gr/ctx.h
Remove below HALs since they are no longer used
g->ops.gr.ctxsw_prog.set_pm_mode_no_ctxsw()
g->ops.gr.ctxsw_prog.set_pm_mode_ctxsw()
g->ops.gr.ctxsw_prog.set_pm_mode_stream_out_ctxsw()
Jira NVGPU-1527
Jira NVGPU-1613
Change-Id: Id2a4d498182ec0e3586dc7265f73a25870ca2ef7
Signed-off-by: Deepak Nibade <dnibade@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2011093
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-02-11 10:25:34 -08:00
..
2019-01-24 10:43:17 -08:00
2019-01-29 21:55:37 -08:00
2018-09-25 13:10:19 -07:00
2018-08-29 20:34:34 -07:00
2018-09-25 13:10:19 -07:00
2018-08-29 20:34:34 -07:00
2018-12-28 16:16:05 -08:00
2018-06-15 17:47:31 -07:00
2018-10-29 08:04:43 -07:00
2018-10-12 17:35:07 +05:30
2018-06-15 17:47:31 -07:00
2018-10-31 15:25:23 -07:00
2019-01-31 12:04:10 -08:00
2018-12-11 16:24:27 -08: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-12-19 14:55:15 -08: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-10-12 17:35:11 +05:30
2018-06-15 17:47:31 -07:00
2018-09-20 10:50:25 -07:00
2018-09-05 04:51:40 -07:00
2019-01-10 20:09:55 -08:00
2018-09-05 04:51:36 -07:00
2019-01-10 20:09:55 -08:00
2018-10-19 08:39:43 -07:00
2018-12-11 14:41:04 -08:00
2018-10-19 08:39:43 -07:00
2019-01-09 10:46:29 -08: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-10-31 15:25:23 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07:00
2018-07-24 16:10:58 -07:00
2019-01-10 20:09:38 -08:00
2018-09-05 04:51:50 -07:00
2019-02-11 03:27:26 -08: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-10-19 08:39:43 -07:00
2019-02-01 09:45:57 -08:00
2019-02-01 09:45:57 -08:00
2018-10-31 15:25:23 -07:00
2018-06-15 17:47:31 -07:00
2018-11-08 21:42:38 -08:00
2018-12-30 22:26:01 -08:00
2018-07-05 21:48:56 -07:00
2018-11-05 22:13:16 -08:00
2018-06-15 17:47:31 -07:00
2019-01-21 23:04:28 -08:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07:00
2018-11-14 21:44:35 -08:00
2018-06-15 17:47:31 -07:00
2019-01-10 22:54:46 -08:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07:00
2018-09-25 13:10:19 -07:00
2019-01-25 02:45:11 -08:00
2018-06-15 17:47:31 -07:00
2019-01-24 13:24:04 -08:00
2019-01-24 13:24:04 -08:00
2019-01-10 20:09:34 -08:00
2019-02-08 12:55:53 -08:00
2018-10-29 08:04:25 -07:00
2019-02-11 10:25:34 -08:00
2018-07-05 21:48:44 -07:00
2019-02-08 12:55:53 -08:00
2018-06-15 17:47:31 -07:00
2018-10-29 08:04:25 -07:00
2018-06-15 17:47:31 -07:00
2018-11-07 10:35:13 -08:00
2018-10-31 15:25:23 -07:00
2018-11-06 21:56:26 -08:00
2019-02-01 11:59:04 -08:00
2018-11-08 21:42:14 -08:00
2018-12-14 18:23:52 -08:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2019-02-01 09:45:57 -08:00
2018-11-25 23:54:10 -08:00
2019-01-30 16:44:06 -08:00
2018-06-15 17:47:31 -07:00
2019-01-15 12:54:19 -08:00
2019-01-21 21:54:20 -08:00
2019-01-29 21:54:52 -08:00
2019-02-07 16:54:30 -08:00
2018-07-26 00:06:07 -07:00
2018-10-16 15:34:13 -07:00
2018-10-16 15:34:13 -07:00
2018-09-25 13:10:19 -07:00
2019-02-01 09:45:57 -08: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-09 17:22:24 -07:00
2018-10-12 17:35:06 +05:30
2018-09-05 04:51:36 -07:00
2019-02-01 09:45:57 -08:00
2018-11-08 19:35:09 -08:00
2018-12-13 04:56:14 -08:00
2018-08-29 20:34:34 -07:00
2018-06-19 10:43:10 -07:00
2018-12-30 23:36:00 -08:00
2018-10-12 17:35:10 +05:30
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2019-01-28 00:05:46 -08:00
2018-06-15 17:47:31 -07:00
2019-01-28 20:27:57 -08:00
2018-06-15 17:47:31 -07:00
2019-01-08 13:05:01 -08:00
2018-11-16 13:13:44 -08:00
2018-07-19 16:43:58 -07:00
2018-06-15 17:47:31 -07:00
2018-11-16 13:13:44 -08:00
2018-06-15 17:47:31 -07:00
2018-12-11 18:22:54 -08:00
2018-06-15 17:47:31 -07:00
2019-01-09 10:46:29 -08:00
2018-06-15 17:47:31 -07:00
2019-01-15 12:54:19 -08:00
2018-09-25 13:10:19 -07:00
2018-10-24 23:16:20 -07:00
2018-10-31 15:25:23 -07:00
2018-06-15 17:47:31 -07:00
2019-02-08 12:55:53 -08:00
2018-06-15 17:47:31 -07:00
2019-01-25 01:35:29 -08:00
2018-10-31 15:25:23 -07:00
2019-02-06 21:13:43 -08:00