mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
The driver configures the sm hww global, warp ESR report masks during poweron as part of gops_gr.gr_init_support. However, during golden context init, these are overwritten with default entries from sw_ctx_load list; this leaves the report masks in a state inconsistent with the driver expectation. The driver should configure the sm hww warp, global ESR report masks during golden context init and not before it; Hence, move set_hww_esr_report_mask from power-on path to golden context init. In addition, update set_hww_esr_report_mask to do RMW, so as to retain the values loaded from sw_ctx_load list. Update global ESR report mask to enable all exceptions. Bug 3029888 Bug 2997718 Change-Id: Id7ad4cff5409982143f49695c95c5e1d1c9fdec9 Signed-off-by: Antony Clince Alex <aalex@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2367466 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit