mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: Delete NVGPU_DMA_FORCE_CONTIGUOUS
The flag NVGPU_DMA_FORCE_CONTIGUOUS simply means that the memory or the pages should be forced contiguous. Meanwhile, the other flag NVGPU_DMA_PHYSICALLY_ADDRESSED means that the memory should be contiguous from GPU perspective, either physically contiguous when IOMMU is not used, or virtually contiguous by IOMMU. Thus the NVGPU_DMA_FORCE_CONTIGUOUS flag is now redundant. This patch cleans up the NVGPU_DMA_FORCE_CONTIGUOUS flag. Bug 200444660 Change-Id: I63bb06fea728b34ec2c6f831504392d42c426d55 Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2035403 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@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
ac3c3e2b69
commit
a8e6d13652
@@ -181,7 +181,7 @@ static int nvgpu_pd_cache_alloc_direct(struct gk20a *g,
|
||||
* underlying allocations to be physically contiguous as well.
|
||||
*/
|
||||
if (!nvgpu_iommuable(g) && bytes > PAGE_SIZE) {
|
||||
flags = NVGPU_DMA_FORCE_CONTIGUOUS;
|
||||
flags = NVGPU_DMA_PHYSICALLY_ADDRESSED;
|
||||
}
|
||||
|
||||
err = nvgpu_dma_alloc_flags(g, flags, bytes, pd->mem);
|
||||
|
||||
Reference in New Issue
Block a user