summaryrefslogtreecommitdiffstats
path: root/userspace/units/posix-bitops/Makefile
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2018-10-22 08:22:37 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2019-02-05 04:53:04 -0500
commitaa84e8a9867fdc72812f2609c142bdd21e5d03de (patch)
tree324fd6e728f10f5cefbdee565b8056c3fb6dae88 /userspace/units/posix-bitops/Makefile
parentbcac2a22a40e5920e4d88b6dc849f37d55553d02 (diff)
gpu: nvgpu: fix double handling in timeout
The context switch timeout works by triggering a hardware timeout at 10 Hz. When handling these, we check whether a channel has actually timed out. Currently the timeout limit can be shorter than the 10 Hz interval which always causes us to recover a channel but would also cause detection of progress if there was any in the interval. Handling both situations at the same time would reuse the channel pointer local to the function after a loop has finished and would cause memory corruption. Fix this by making the two branches mutually exclusive, and move the recover case to happen first because that's how our tests assume things to work. Jira NVGPU-967 Bug 2502074 Change-Id: I26aa0fa7fd80ab42a9a1a93a6cca2cd29c9d3f3f Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1932449 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> (cherry picked from commit 8ac9a53d816a3d012a6948a9a96ac6db699c662di in dev-kernel) Reviewed-on: https://git-master.nvidia.com/r/1997597 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Tested-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'userspace/units/posix-bitops/Makefile')
0 files changed, 0 insertions, 0 deletions