mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Refactor the ECC code present under gp10b/, gv11b/, and tu104/. To do this a few things were required: Firstly, move the ecc related C and H files under the aforementioned directories over to their new home under hal/gr/ecc/. Also copy over the ECC HAL code present in gp10b/gp10b.c - not sure why this was there but it, too, needed to be refactored. Also handle all the updated header paths and Makefiles to take these movements into account. Secondly add a new HAL in GR (gr.ecc) to handle ECC HAL ops. There's only two: detect and init. init() was copied over from gr and detect was added so that the common ECC code can call it in a chip agnostic way. This is required so that the ECC detect can be moved out of the gp10b init characteristics function. Lastly update the ECC init flow in the common ecc module to call detect() right before init(). JIRA NVGPU-3074 Change-Id: Iba1464a904f9a91a45f30902beadf6f912607e40 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2090977 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>