summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorSami Kiminki <skiminki@nvidia.com>2015-04-10 08:40:46 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-05-11 11:50:49 -0400
commit8d6fe0f2ef2d52c077263a0621d05953b19320ff (patch)
tree8d7512c1b0e3ab86f6e73fbf64072bbc3f9e6300 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent5a5662fffbce050adf59ba4fac60d217b5651f90 (diff)
gpu: nvgpu: Implement compbits padding for mapping
Implement NVGPU_AS_MAP_BUFFER_FLAGS_MAPPABLE_COMPBITS, which adds extra alignment to compbits allocation for safe compbits mapping. Bug 200077571 Change-Id: I3a74ebb81412e4e1e69501debeb9ef4e2056ef1a Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: http://git-master/r/730763 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/740693 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 895e52ff..8d1dba66 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -140,6 +140,8 @@ enum gmmu_pgsz_gk20a {
140struct gk20a_comptags { 140struct gk20a_comptags {
141 u32 offset; 141 u32 offset;
142 u32 lines; 142 u32 lines;
143 u32 allocated_lines;
144 bool user_mappable;
143}; 145};
144 146
145struct gk20a_mm_entry { 147struct gk20a_mm_entry {
@@ -190,6 +192,9 @@ struct mapped_buffer_node {
190 u32 pgsz_idx; 192 u32 pgsz_idx;
191 u32 ctag_offset; 193 u32 ctag_offset;
192 u32 ctag_lines; 194 u32 ctag_lines;
195 u32 ctag_allocated_lines;
196 bool ctags_mappable;
197
193 u32 flags; 198 u32 flags;
194 u32 kind; 199 u32 kind;
195 bool va_allocated; 200 bool va_allocated;