mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: add compatibility version
Add compatibility version to page table and dma mapping structure.
Bug 200438879
Change-Id: I04b4601f71ae2b3e75843f39f5445ecca2b16677
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2029086
(cherry picked from commit 8bbbd09caa)
Reviewed-on: https://git-master.nvidia.com/r/2071427
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4269d56d02
commit
77ee4144ce
@@ -91,6 +91,7 @@ int nvidia_p2p_get_pages(u64 vaddr, u64 size,
|
||||
goto free_pages;
|
||||
}
|
||||
|
||||
(*page_table)->version = NVIDIA_P2P_PAGE_TABLE_VERSION;
|
||||
(*page_table)->pages = pages;
|
||||
(*page_table)->entries = user_pages;
|
||||
(*page_table)->page_size = NVIDIA_P2P_PAGE_SIZE_4KB;
|
||||
@@ -207,6 +208,8 @@ int nvidia_p2p_dma_map_pages(struct device *dev,
|
||||
if (ret) {
|
||||
goto free_sgt;
|
||||
}
|
||||
|
||||
(*dma_mapping)->version = NVIDIA_P2P_DMA_MAPPING_VERSION;
|
||||
(*dma_mapping)->sgt = sgt;
|
||||
(*dma_mapping)->dev = dev;
|
||||
(*dma_mapping)->direction = direction;
|
||||
|
||||
Reference in New Issue
Block a user