diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_flush_gm20b.h | 42 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/mm_gm20b.c | 1 |
2 files changed, 42 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_flush_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_flush_gm20b.h index a6d5e548..b77643be 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_flush_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_flush_gm20b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -114,6 +114,46 @@ static inline u32 flush_l2_flush_dirty_outstanding_true_v(void) | |||
114 | { | 114 | { |
115 | return 0x00000001; | 115 | return 0x00000001; |
116 | } | 116 | } |
117 | static inline u32 flush_l2_clean_comptags_r(void) | ||
118 | { | ||
119 | return 0x0007000c; | ||
120 | } | ||
121 | static inline u32 flush_l2_clean_comptags_pending_v(u32 r) | ||
122 | { | ||
123 | return (r >> 0) & 0x1; | ||
124 | } | ||
125 | static inline u32 flush_l2_clean_comptags_pending_empty_v(void) | ||
126 | { | ||
127 | return 0x00000000; | ||
128 | } | ||
129 | static inline u32 flush_l2_clean_comptags_pending_empty_f(void) | ||
130 | { | ||
131 | return 0x0; | ||
132 | } | ||
133 | static inline u32 flush_l2_clean_comptags_pending_busy_v(void) | ||
134 | { | ||
135 | return 0x00000001; | ||
136 | } | ||
137 | static inline u32 flush_l2_clean_comptags_pending_busy_f(void) | ||
138 | { | ||
139 | return 0x1; | ||
140 | } | ||
141 | static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r) | ||
142 | { | ||
143 | return (r >> 1) & 0x1; | ||
144 | } | ||
145 | static inline u32 flush_l2_clean_comptags_outstanding_false_v(void) | ||
146 | { | ||
147 | return 0x00000000; | ||
148 | } | ||
149 | static inline u32 flush_l2_clean_comptags_outstanding_false_f(void) | ||
150 | { | ||
151 | return 0x0; | ||
152 | } | ||
153 | static inline u32 flush_l2_clean_comptags_outstanding_true_v(void) | ||
154 | { | ||
155 | return 0x00000001; | ||
156 | } | ||
117 | static inline u32 flush_fb_flush_r(void) | 157 | static inline u32 flush_fb_flush_r(void) |
118 | { | 158 | { |
119 | return 0x00070000; | 159 | return 0x00070000; |
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c index cf7ae46b..3d75a631 100644 --- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c | |||
@@ -120,6 +120,7 @@ void gm20b_init_mm(struct gpu_ops *gops) | |||
120 | gops->mm.fb_flush = gk20a_mm_fb_flush; | 120 | gops->mm.fb_flush = gk20a_mm_fb_flush; |
121 | gops->mm.l2_invalidate = gk20a_mm_l2_invalidate; | 121 | gops->mm.l2_invalidate = gk20a_mm_l2_invalidate; |
122 | gops->mm.l2_flush = gk20a_mm_l2_flush; | 122 | gops->mm.l2_flush = gk20a_mm_l2_flush; |
123 | gops->mm.cbc_clean = gk20a_mm_cbc_clean; | ||
123 | gops->mm.tlb_invalidate = gk20a_mm_tlb_invalidate; | 124 | gops->mm.tlb_invalidate = gk20a_mm_tlb_invalidate; |
124 | gops->mm.set_big_page_size = gm20b_mm_set_big_page_size; | 125 | gops->mm.set_big_page_size = gm20b_mm_set_big_page_size; |
125 | gops->mm.get_big_page_sizes = gm20b_mm_get_big_page_sizes; | 126 | gops->mm.get_big_page_sizes = gm20b_mm_get_big_page_sizes; |