mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
Do the internal job synchronization semaphore and syncpt shim comparisons with ACQ_CIRC_GEQ instead of ACQ_STRICT_GEQ. The semas and syncpts naturally wrap, and this matches the ACQ_GEQ of pre-gv11b chips that the driver assumes. With the strict comparison that does not use wraparound, waits for semas/syncpts that have just wrapped back to zero would hang because a small value is not strictly greater than equal to a value near U32_MAX. Change-Id: I427bb205a960d5ba3426f228364d96c30278dcaf Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2366823 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>