diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2015-11-03 11:44:14 -0500 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:09 -0500 |
commit | 9ab9436268ae2121d3dc57c98d16890953f6cd35 (patch) | |
tree | c499c00b1e563396e0dc577f359cc242016b7e3f /drivers/gpu/nvgpu/gp10b/gr_gp10b.h | |
parent | f4b2a02b68d79d30a1292f9b3551d08c71fb899f (diff) |
gpu: nvgpu: gp10b: map GfxP buffers as GPU cacheable
Some of the allocated buffers are used during normal graphics
processing. Mark them as GPU cacheable to improve performance.
Bug 1695718
Change-Id: I71d5d1538516e966526abe5e38a557776321597f
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/827087
(cherry picked from commit 60b40ac144c94e24a2c449c8be937edf8865e1ed)
Reviewed-on: http://git-master/r/828493
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h index bf49ba6f..62b70a22 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h | |||
@@ -33,6 +33,8 @@ enum { | |||
33 | #define NVC0C0_SET_SHADER_EXCEPTIONS 0x1528 | 33 | #define NVC0C0_SET_SHADER_EXCEPTIONS 0x1528 |
34 | 34 | ||
35 | void gp10b_init_gr(struct gpu_ops *ops); | 35 | void gp10b_init_gr(struct gpu_ops *ops); |
36 | int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size, | ||
37 | struct mem_desc *mem); | ||
36 | 38 | ||
37 | struct gr_t18x { | 39 | struct gr_t18x { |
38 | struct { | 40 | struct { |