mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
Move the gk20a_init_mm_setup_hw to common code. This function just calls HALs to initialize various bits of HW. However, since this code assumes that (some of) the HALs are present this code is treated as a vGPU HAL (that is it's NULL for vGPU). This patch also renames the MM HW init HAL. Sicne the gv11b variant of this setup_hw HAL did have some differences from the gk20a version the new common version required some work. The gv11b code was copied into the common function but now the gv11b specific calls were HAL'ified (since they will need to be anyway for the MMU fault buf code) and protected by an if-condition. JIRA NVGPU-2042 Change-Id: I959293394ee8793923d858ee37b7ce346096654f Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2104541 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
16 KiB
16 KiB