diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-06-17 08:51:02 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-07-05 02:10:59 -0400 |
commit | e12c5c8594c429357427130389da632284d79bcc (patch) | |
tree | 453043237ef411370a02ec03c6857b63480c019b /drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |
parent | cd5a1dc315abd0a7db4136ee0e6b0c03f0882937 (diff) |
gpu: nvgpu: initial support for vidmem apertures
add gk20a_aperture_mask() for memory target selection now that buffers
can actually be allocated from vidmem, and use it in all cases that have
a mem_desc available.
Jira DNVGPU-76
Change-Id: I4353cdc6e1e79488f0875581cfaf2a5cfb8c976a
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1169306
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 04695d11..0e006cb6 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -2751,8 +2751,8 @@ static int gk20a_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id, | |||
2751 | if (count != 0) { | 2751 | if (count != 0) { |
2752 | gk20a_writel(g, fifo_runlist_base_r(), | 2752 | gk20a_writel(g, fifo_runlist_base_r(), |
2753 | fifo_runlist_base_ptr_f(u64_lo32(runlist_iova >> 12)) | | 2753 | fifo_runlist_base_ptr_f(u64_lo32(runlist_iova >> 12)) | |
2754 | (g->mm.vidmem_is_vidmem ? | 2754 | gk20a_aperture_mask(g, &runlist->mem[new_buf], |
2755 | fifo_runlist_base_target_sys_mem_ncoh_f() : | 2755 | fifo_runlist_base_target_sys_mem_ncoh_f(), |
2756 | fifo_runlist_base_target_vid_mem_f())); | 2756 | fifo_runlist_base_target_vid_mem_f())); |
2757 | } | 2757 | } |
2758 | 2758 | ||