mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Handle dependencies between nvmap and cvnas driver: - nvmap_register_cvsram_carveout function is called by cvnas driver (builtin driver for 5.10) and it's definition is present in nvmap driver (builtin driver for 5.10, but we are trying to make LKM). This is resulting into build issues while making nvmap as LKM for 5.10 - One option to resolve this is by making cvnas driver as LKM for 5.10 But nvhost, nvdla, cbb are not LKM for 5.10 and are calling functions defined in cvnas driver e.g. nvcvnas_get_cvsram_base, hence we can't make cvnas as LKM for 5.10 - Second option is to get rid of the call nvmap_register_cvsram_carveout from cvnas driver. This approach is implemented in this patch. - Export cvnas_dev from cvnas driver, do not call the above function from cvnas driver. During nvmap probe, nvmap itself would call the above function, as cvnas_dev is exported , it's being used in nvmap driver to get base, size etc. information, which is needed as argument to above function, which will register the cvnas carveout in case of 5.10 Bug 200722684 Change-Id: I32e5694386de4a7fef65c3f67ffb9b5066f62ab3 Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2678685