mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
tegra: nvmap: replace _dma_* and __iomap
__dma_flush_area, __dma_map_area and __iomap functions are no more supported from kernel version 6.0 onwards. Replace them by equivalent exported function in K-6.0 and onwards. Bug 3767126 Change-Id: I2b8d81271ed3696ae3d9306a311fe74622c2b611 Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2770928 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Ketan Patil <ketanp@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
4cf8c80669
commit
8ceb954814
@@ -718,7 +718,14 @@ static void alloc_handle(struct nvmap_client *client,
|
||||
MEMREMAP_WB);
|
||||
if (cpu_addr != NULL) {
|
||||
memset(cpu_addr, 0, h->size);
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)
|
||||
dcache_clean_inval_poc(
|
||||
(unsigned long)cpu_addr,
|
||||
(unsigned long)cpu_addr
|
||||
+ h->size);
|
||||
#else
|
||||
__dma_flush_area(cpu_addr, h->size);
|
||||
#endif
|
||||
memunmap(cpu_addr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user