mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
Usage of nvgpu_safe_add_u32 to increment nvgpu maintained corrected ecc error counters can lead to BUG due to overflow as corrected ecc errors can keep coming in and system will continue to operate. In some configurations, uncorrected error counters can also overflow and lead to BUG. Increment these counters and their delta calculations to use nvgpu_wrapping_add_u32. JIRA NVGPU-7054 Change-Id: I85ddddfa46062744cccbe0756ad942787e72f01b Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2601152 (cherry picked from commit f016e59189d2bd66e23f17ccb638f6d384b82fbd) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2623638 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>