mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Add the following changes to build dgpu sources for kernels after 4.14: 1. tegra_alloc_fd is defined by downstream tegra mc driver built with the flag CONFIG_NV_TEGRA_MC, hence make the nvgpu config NVGPU_USE_TEGRA_ALLOC_FD dependent on it. 2. dma_buf_ops.map_atomic is removed in kernel version 4.17. 3. gk20a_vidbuf_ops.set_drvdata and .get_drvdata are to be set under the config CONFIG_NVGPU_DMABUF_HAS_DRVDATA Bug 2834141 Change-Id: If2351beddfd6f22a1a1da4499cacf6a1880ede76 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2316486 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>