mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: Remove mapping of comptags to user VA
Remove the kernel feature to map compbit backing store areas to GPU VA. The feature is not used, and the relevant user space code is getting removed, too. Change-Id: I94f8bb9145da872694fdc5d3eb3c1365b2f47945 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1547898 Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
committed by
mobile promotions
parent
d2dce545bb
commit
bb457e675e
@@ -199,8 +199,6 @@ u64 nvgpu_vm_map(struct vm_gk20a *vm,
|
||||
struct gk20a_comptags comptags;
|
||||
bool clear_ctags = false;
|
||||
struct scatterlist *sgl;
|
||||
u64 ctag_map_win_size = 0;
|
||||
u32 ctag_map_win_ctagline = 0;
|
||||
struct nvgpu_vm_area *vm_area = NULL;
|
||||
u32 ctag_offset;
|
||||
enum nvgpu_aperture aperture;
|
||||
@@ -298,15 +296,10 @@ u64 nvgpu_vm_map(struct vm_gk20a *vm,
|
||||
g->ops.fb.compression_page_size(g));
|
||||
|
||||
if (bfr.ctag_lines && !comptags.lines) {
|
||||
const bool user_mappable =
|
||||
!!(flags & NVGPU_AS_MAP_BUFFER_FLAGS_MAPPABLE_COMPBITS);
|
||||
|
||||
/* allocate compression resources if needed */
|
||||
err = gk20a_alloc_comptags(g, dev, dmabuf,
|
||||
ctag_allocator,
|
||||
bfr.ctag_lines, user_mappable,
|
||||
&ctag_map_win_size,
|
||||
&ctag_map_win_ctagline);
|
||||
bfr.ctag_lines);
|
||||
if (err) {
|
||||
/* ok to fall back here if we ran out */
|
||||
/* TBD: we can partially alloc ctags as well... */
|
||||
@@ -370,9 +363,6 @@ u64 nvgpu_vm_map(struct vm_gk20a *vm,
|
||||
mapped_buffer->ctag_offset = bfr.ctag_offset;
|
||||
mapped_buffer->ctag_lines = bfr.ctag_lines;
|
||||
mapped_buffer->ctag_allocated_lines = bfr.ctag_allocated_lines;
|
||||
mapped_buffer->ctags_mappable = bfr.ctag_user_mappable;
|
||||
mapped_buffer->ctag_map_win_size = ctag_map_win_size;
|
||||
mapped_buffer->ctag_map_win_ctagline = ctag_map_win_ctagline;
|
||||
mapped_buffer->vm = vm;
|
||||
mapped_buffer->flags = flags;
|
||||
mapped_buffer->kind = kind;
|
||||
|
||||
Reference in New Issue
Block a user