diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-06-24 13:10:57 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:06 -0500 |
commit | 6a071e5ad5581e57a5be109d2fc0f44680207783 (patch) | |
tree | 2aac79371bd8e7ac76f42671fb257e23327ad7d0 /drivers/gpu/nvgpu/gp10b/hw_gmmu_gp10b.h | |
parent | 4c074ba3021e7fd52b10a5e7267b36e07da5660a (diff) |
gpu: nvgpu: gp10b: Implement priv pages
Implement support for privileged pages. Use them for kernel allocated buffers.
Change-Id: I24778c2b6063b6bc8a4bfd9d97fa6de01d49569a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/761920
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_gmmu_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_gmmu_gp10b.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_gmmu_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_gmmu_gp10b.h index 844cb142..9ce9448e 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_gmmu_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_gmmu_gp10b.h | |||
@@ -198,6 +198,18 @@ static inline u32 gmmu_new_pte_valid_false_f(void) | |||
198 | { | 198 | { |
199 | return 0x0; | 199 | return 0x0; |
200 | } | 200 | } |
201 | static inline u32 gmmu_new_pte_privilege_w(void) | ||
202 | { | ||
203 | return 0; | ||
204 | } | ||
205 | static inline u32 gmmu_new_pte_privilege_true_f(void) | ||
206 | { | ||
207 | return 0x20; | ||
208 | } | ||
209 | static inline u32 gmmu_new_pte_privilege_false_f(void) | ||
210 | { | ||
211 | return 0x0; | ||
212 | } | ||
201 | static inline u32 gmmu_new_pte_address_sys_f(u32 v) | 213 | static inline u32 gmmu_new_pte_address_sys_f(u32 v) |
202 | { | 214 | { |
203 | return (v & 0xfffffff) << 8; | 215 | return (v & 0xfffffff) << 8; |