diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-11-16 02:21:19 -0500 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2017-11-16 02:21:35 -0500 |
commit | ba8dc318595f597308902ad16ffed89bdbe7000f (patch) | |
tree | e882886e0cbc05ac39473b95ead16ee50bd69c15 /drivers/gpu/nvgpu/gv11b/mm_gv11b.h | |
parent | 69e032653df5aae335764f6346703a1e55c96a2d (diff) | |
parent | 77a90d0b8d2eb1bbb207ae5f46b357f2d7cd07ab (diff) |
Merge remote-tracking branch 'remotes/origin/dev/linux-nvgpu-t19x' into linux-nvgpu
Bug 200363166
Change-Id: Ic662d7b44b673db28dc0aeba338ae67cf2a43d64
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/mm_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/mm_gv11b.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.h b/drivers/gpu/nvgpu/gv11b/mm_gv11b.h new file mode 100644 index 00000000..d830b7cc --- /dev/null +++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.h | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | * GV11B MM | ||
3 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | ||
4 | * | ||
5 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
6 | * copy of this software and associated documentation files (the "Software"), | ||
7 | * to deal in the Software without restriction, including without limitation | ||
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
9 | * and/or sell copies of the Software, and to permit persons to whom the | ||
10 | * Software is furnished to do so, subject to the following conditions: | ||
11 | * | ||
12 | * The above copyright notice and this permission notice shall be included in | ||
13 | * all copies or substantial portions of the Software. | ||
14 | * | ||
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
21 | * DEALINGS IN THE SOFTWARE. | ||
22 | */ | ||
23 | |||
24 | #ifndef MM_GV11B_H | ||
25 | #define MM_GV11B_H | ||
26 | |||
27 | #define HW_FAULT_BUF_STATUS_ALLOC_TRUE 1 | ||
28 | #define HW_FAULT_BUF_STATUS_ALLOC_FALSE 0 | ||
29 | |||
30 | struct gk20a; | ||
31 | struct nvgpu_mem; | ||
32 | struct vm_gk20a; | ||
33 | |||
34 | bool gv11b_mm_is_bar1_supported(struct gk20a *g); | ||
35 | void gv11b_init_inst_block(struct nvgpu_mem *inst_block, | ||
36 | struct vm_gk20a *vm, u32 big_page_size); | ||
37 | bool gv11b_mm_mmu_fault_pending(struct gk20a *g); | ||
38 | void gv11b_mm_remove_bar2_vm(struct gk20a *g); | ||
39 | int gv11b_init_mm_setup_hw(struct gk20a *g); | ||
40 | int gv11b_init_bar2_mm_hw_setup(struct gk20a *g); | ||
41 | void gv11b_mm_l2_flush(struct gk20a *g, bool invalidate); | ||
42 | u64 gv11b_gpu_phys_addr(struct gk20a *g, | ||
43 | struct nvgpu_gmmu_attrs *attrs, u64 phys); | ||
44 | void gv11b_mm_fault_info_mem_destroy(struct gk20a *g); | ||
45 | |||
46 | #endif | ||