mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
In gr_gv100_get_active_fpba_mask(), we directly access top_* register from hw_top_gv100.h h/w header to read FBPA count. Add a new HAL in TOP unit to return max FBPA count g->ops.top.get_max_fbpas_count() Use this HAL in gr_gv100.c to get FBPA count and remove direct access of top_* register, and also remove hw_top_gv100.h header include Jira NVGPU-2895 Change-Id: Idfba553b24d7d6abf124a84b1490987e8cbf1985 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2069470 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>