mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
As a part of safety check, golden context is created twice (back to back) and two golden context images are compared. These two images should be identical for safety check. Currently there is one hw deviation happening because of stats counter idle clock increments. To avoid this, stats counter clocks enable is disabled. To have a valid golden context( avoid mismatch between fe and mpc), original stats counter bundle is programmed through mme shadow register. Before first golden context save, golden image is saved in a local copy. Same copy is restored back after first golden save. Second golden context save is done with this local copy and two golden contexts are compared. JIRA NVGPU-3558 Change-Id: I5b5a1c5ff177e866a91cfc23618b118c157c8e95 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2167213 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Raghuram Kothakota <rkothakota@nvidia.com> Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>