Files
linux-nvgpu/drivers/gpu/nvgpu/gk20a/gk20a.c
Deepak Nibade 8613119529 gpu: nvgpu: add target refcount for gk20a_wait_for_idle()
API gk20a_wait_for_idle() right now always waits for
0 usage count

But in case railgating is disabled through sysfs,
usage count will never get to 0
Hence in this case we should wait for usage count
of 1

If platform->user_railgate_disabled is set,
keep target usage count of 1, otherwise keep
target usage count as 0

Bug 200260926

Change-Id: I1a80621ca61babbd6566989dc09a7b20670c649c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1291421
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2017-01-25 02:41:02 -08:00

53 KiB