diff options
author | Sagar Kamble <skamble@nvidia.com> | 2021-05-03 12:16:17 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-05-04 17:40:40 -0400 |
commit | 00c3d98acba40e0ee549a174f212850aa15646a5 (patch) | |
tree | 80928678cb7968af8a29c5ef09c646241506074d /drivers/gpu/nvgpu/include | |
parent | 13fc430775eb0e39dc06e420d5c92dda7016f6ae (diff) |
gpu: nvgpu: create timed wait functions for stall and nonstall interrupts completion
In order to process stalling interrupts during TSG unbind, we need a API
to wait for the stalling interrupts to complete within certain duration.
Prepare these APIs for stalling and non-stalling interrupts.
Bug 200711183
Bug 200726848
Change-Id: I634738249ade64224326b356d6244ad4299f1baf
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2521970
(cherry picked from commit I0b7a64c0f3761bbd0ca0843aea28a591ed23739f)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2523937
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/gk20a.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h index aa95969d..3b193dbe 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2011-2021, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * GK20A Graphics | 4 | * GK20A Graphics |
5 | * | 5 | * |
@@ -1793,6 +1793,8 @@ bool gk20a_check_poweron(struct gk20a *g); | |||
1793 | int gk20a_prepare_poweroff(struct gk20a *g); | 1793 | int gk20a_prepare_poweroff(struct gk20a *g); |
1794 | int gk20a_finalize_poweron(struct gk20a *g); | 1794 | int gk20a_finalize_poweron(struct gk20a *g); |
1795 | 1795 | ||
1796 | int nvgpu_wait_for_stall_interrupts(struct gk20a *g, u32 timeout); | ||
1797 | int nvgpu_wait_for_nonstall_interrupts(struct gk20a *g, u32 timeout); | ||
1796 | void nvgpu_wait_for_deferred_interrupts(struct gk20a *g); | 1798 | void nvgpu_wait_for_deferred_interrupts(struct gk20a *g); |
1797 | 1799 | ||
1798 | struct gk20a * __must_check gk20a_get(struct gk20a *g); | 1800 | struct gk20a * __must_check gk20a_get(struct gk20a *g); |