diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h index f1ab8a6e..2b8b7015 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | |||
@@ -25,7 +25,6 @@ | |||
25 | 25 | ||
26 | #include <nvgpu/types.h> | 26 | #include <nvgpu/types.h> |
27 | #include <nvgpu/list.h> | 27 | #include <nvgpu/list.h> |
28 | #include <nvgpu/enabled.h> | ||
29 | 28 | ||
30 | #ifdef __KERNEL__ | 29 | #ifdef __KERNEL__ |
31 | #include <nvgpu/linux/nvgpu_mem.h> | 30 | #include <nvgpu/linux/nvgpu_mem.h> |
@@ -52,10 +51,6 @@ struct nvgpu_page_alloc; | |||
52 | enum nvgpu_aperture { | 51 | enum nvgpu_aperture { |
53 | APERTURE_INVALID = 0, /* unallocated or N/A */ | 52 | APERTURE_INVALID = 0, /* unallocated or N/A */ |
54 | APERTURE_SYSMEM, | 53 | APERTURE_SYSMEM, |
55 | |||
56 | /* Don't use directly. Use APERTURE_SYSMEM, this is used internally. */ | ||
57 | __APERTURE_SYSMEM_COH, | ||
58 | |||
59 | APERTURE_VIDMEM | 54 | APERTURE_VIDMEM |
60 | }; | 55 | }; |
61 | 56 | ||
@@ -192,18 +187,12 @@ nvgpu_mem_from_clear_list_entry(struct nvgpu_list_node *node) | |||
192 | clear_list_entry)); | 187 | clear_list_entry)); |
193 | }; | 188 | }; |
194 | 189 | ||
195 | static inline const char *nvgpu_aperture_str(struct gk20a *g, | 190 | static inline const char *nvgpu_aperture_str(enum nvgpu_aperture aperture) |
196 | enum nvgpu_aperture aperture) | ||
197 | { | 191 | { |
198 | switch (aperture) { | 192 | switch (aperture) { |
199 | case APERTURE_INVALID: | 193 | case APERTURE_INVALID: return "INVAL"; |
200 | return "INVAL"; | 194 | case APERTURE_SYSMEM: return "SYSMEM"; |
201 | case APERTURE_SYSMEM: | 195 | case APERTURE_VIDMEM: return "VIDMEM"; |
202 | return "SYSMEM"; | ||
203 | case __APERTURE_SYSMEM_COH: | ||
204 | return "SYSCOH"; | ||
205 | case APERTURE_VIDMEM: | ||
206 | return "VIDMEM"; | ||
207 | }; | 196 | }; |
208 | return "UNKNOWN"; | 197 | return "UNKNOWN"; |
209 | } | 198 | } |
@@ -333,9 +322,9 @@ u64 nvgpu_mem_get_addr(struct gk20a *g, struct nvgpu_mem *mem); | |||
333 | u64 nvgpu_mem_get_phys_addr(struct gk20a *g, struct nvgpu_mem *mem); | 322 | u64 nvgpu_mem_get_phys_addr(struct gk20a *g, struct nvgpu_mem *mem); |
334 | 323 | ||
335 | u32 __nvgpu_aperture_mask(struct gk20a *g, enum nvgpu_aperture aperture, | 324 | u32 __nvgpu_aperture_mask(struct gk20a *g, enum nvgpu_aperture aperture, |
336 | u32 sysmem_mask, u32 sysmem_coh_mask, u32 vidmem_mask); | 325 | u32 sysmem_mask, u32 vidmem_mask); |
337 | u32 nvgpu_aperture_mask(struct gk20a *g, struct nvgpu_mem *mem, | 326 | u32 nvgpu_aperture_mask(struct gk20a *g, struct nvgpu_mem *mem, |
338 | u32 sysmem_mask, u32 sysmem_coh_mask, u32 vidmem_mask); | 327 | u32 sysmem_mask, u32 vidmem_mask); |
339 | 328 | ||
340 | u64 nvgpu_mem_iommu_translate(struct gk20a *g, u64 phys); | 329 | u64 nvgpu_mem_iommu_translate(struct gk20a *g, u64 phys); |
341 | 330 | ||