diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-05-16 06:47:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-14 19:33:32 -0400 |
commit | 7680fd689ecf7d11bf2dfdba41dc2f33cde2bbe7 (patch) | |
tree | b6df6640eaaa7e46deae7035572e7019f4311f7d /include | |
parent | 3c3c39dfe0d1122efeead871eec7c37617404850 (diff) |
gpu: nvgpu: hold power ref for deterministic channels
To support deterministic channels even with platforms where railgating
is supported, have each deterministic-marked channel hold a power
reference during their lifetime, and skip taking power refs for jobs in
submit path for those.
Previously, railgating blocked deterministic submits in general because
of gk20a_busy()/gk20a_idle() calls in submit path possibly taking time
and more significantly because the gpu may need turning on which takes a
nondeterministic and long amount of time.
As an exception, gk20a_do_idle() can still block deterministic submits
until gk20a_do_unidle() is called. Add a rwsem to guard this. VPR resize
needs do_idle, which conflicts with deterministic channels' requirement
to keep the GPU on. This is documented in the ioctl header now.
Make NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_NO_JOBTRACKING always
set in the gpu characteristics now that it's supported. The only thing
left now blocking NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_FULL is
the sync framework.
Make the channel debug dump show which channels are deterministic.
Bug 200291300
Jira NVGPU-70
Change-Id: I47b6f3a8517cd6e4255f6ca2855e3dd912e4f5f3
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1483038
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index e7d37221..00081c64 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -1359,6 +1359,10 @@ struct nvgpu_alloc_gpfifo_ex_args { | |||
1359 | /* | 1359 | /* |
1360 | * Channel shall exhibit deterministic behavior in the submit path. | 1360 | * Channel shall exhibit deterministic behavior in the submit path. |
1361 | * | 1361 | * |
1362 | * NOTE: as an exception, VPR resize may still cause the GPU to reset at any | ||
1363 | * time, which is not deterministic behavior. If this is not acceptable, the | ||
1364 | * user has to make sure that VPR resize does not occur. | ||
1365 | * | ||
1362 | * With this flag, any submits with in-kernel job tracking also require that | 1366 | * With this flag, any submits with in-kernel job tracking also require that |
1363 | * num_inflight_jobs is nonzero, and additionally that | 1367 | * num_inflight_jobs is nonzero, and additionally that |
1364 | * NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_FULL is found in gpu | 1368 | * NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_FULL is found in gpu |