mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Increase programmed ctagline at compr page boundaries
Increase the ctagline that is programmed in the page tables when the buffer offset crosses the compression page boundaries. This fixes compressible-kind fixed-address mapping with 4k pages when the GPU VA is not aligned by the compression page size. Bug 1995897 Bug 2011640 Bug 2011668 Change-Id: I1f1f9750635a20a916527c9d18fda7f8aa6b1b1f Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1608465 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
823ae76b1b
commit
18268185ec
@@ -691,6 +691,14 @@ u64 gk20a_locked_gmmu_map(struct vm_gk20a *vm,
|
||||
.aperture = aperture
|
||||
};
|
||||
|
||||
/*
|
||||
* We need to add the buffer_offset within compression_page_size so that
|
||||
* the programmed ctagline gets increased at compression_page_size
|
||||
* boundaries.
|
||||
*/
|
||||
if (attrs.ctag)
|
||||
attrs.ctag += buffer_offset & (ctag_granularity - 1U);
|
||||
|
||||
#ifdef CONFIG_TEGRA_19x_GPU
|
||||
nvgpu_gmmu_add_t19x_attrs(&attrs, flags);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user