Alex Waterman
8789cafcfb
gpu: nvgpu: Standardize HAS_SYNCPOINTs check
...
Nvgpu uses many ways to check if sync points are enabled. The four
ways used to be:
platform->has_syncpoints
g->has_syncpoints
nvgpu_is_enabled(g, NVPGU_HAS_SYNCPOINTS)
gk20a_platform_has_syncpoints()
This patch standardizes all usage to now be nvgpu_has_syncpoints()
which is based on gk20a_platform_has_syncpoints() - just renamed to
be general to nvgpu.
All usage of the other forms have now been consolidated. However,
under the hood nvgpu_has_syncpoints() does check the is_enabled
flag. This flag is now set where g->has_syncpoints used to be set
based on the platform data.
The basic dependency chain is this:
nvgpu_has_syncpoints -> NVGPU_HAS_SYNCPOINTS ->
platform->has_syncpoints
However, note: there are several places where syncpoints can be
disabled if some other driver initialization fails (for ex. host1x).
Also note that nvgpu_has_syncpoints() also considers a disable
variable set by debugfs.
Bug 2327574
Change-Id: Ia2375a80f5f2e27285e6175568dd13e6bb25fd33
Signed-off-by: Alex Waterman <alexw@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1803975
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2018-09-27 15:04:38 -07:00
..
2018-09-27 15:04:38 -07: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-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-08-30 21:43:01 -07:00
2018-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -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-27 04:54:44 -07:00
2018-09-27 04:54:44 -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-09-25 13:10:19 -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-09-25 13:10:19 -07:00
2018-09-25 13:10:19 -07:00
2018-07-05 21:48:56 -07:00
2018-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-09-27 15:04:38 -07: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-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07: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
2018-09-27 15:04:38 -07:00
2018-06-15 17:47:31 -07:00
2018-09-27 15:04:38 -07: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
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07:00
2018-07-05 21:48:44 -07:00
2018-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07: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-09-25 13:10:19 -07:00
2018-09-25 13:10:19 -07:00
2018-09-25 13:10:19 -07:00
2018-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-09-24 08:11:49 -07:00
2018-07-06 13:24:45 -07:00
2018-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-09-27 15:04:38 -07:00
2018-09-25 13:10:19 -07:00
2018-07-26 00:06:07 -07:00
2018-09-25 13:10:19 -07:00
2018-09-25 13:10:19 -07:00
2018-09-25 13:10:19 -07:00
2018-09-25 13:10:19 -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-27 04:54:44 -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-09-27 15:04:38 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-09-26 22:24:52 -07:00
2018-09-25 13:10:19 -07:00
2018-07-19 16:43:58 -07:00
2018-06-15 17:47:31 -07:00
2018-09-26 22:24:52 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07: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
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-26 22:24:52 -07: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-09-25 13:10:19 -07:00