mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: Remove buffer_attrs struct
Remove the buffer_attrs struct and replace it with a more streamlined nvgpu_ctag_buffer_info struct. This struct allows several different fields to all be passed by pointer to the various kind/compression functions in the VM map process. This path also moves several comptag/kind related functions to the core vm.c code since these functions can be reused by other OSes. Change-Id: I2a0f0a1c4b554ce4c8f2acdbe3161392e717d3bf Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1583984 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a8bd154f79
commit
88ee812d56
@@ -38,21 +38,6 @@ struct vm_gk20a;
|
||||
struct vm_gk20a_mapping_batch;
|
||||
struct nvgpu_vm_area;
|
||||
|
||||
struct buffer_attrs {
|
||||
struct sg_table *sgt;
|
||||
u64 size;
|
||||
u64 align;
|
||||
u32 ctag_offset;
|
||||
u32 ctag_lines;
|
||||
u32 ctag_allocated_lines;
|
||||
int pgsz_idx;
|
||||
u8 kind_v;
|
||||
bool use_kind_v;
|
||||
u8 uc_kind_v;
|
||||
bool use_uc_kind_v;
|
||||
bool ctag_user_mappable;
|
||||
};
|
||||
|
||||
u64 nvgpu_vm_map_linux(struct vm_gk20a *vm,
|
||||
struct dma_buf *dmabuf,
|
||||
u64 offset_align,
|
||||
@@ -104,9 +89,5 @@ int nvgpu_vm_find_buf(struct vm_gk20a *vm, u64 gpu_va,
|
||||
|
||||
enum nvgpu_aperture gk20a_dmabuf_aperture(struct gk20a *g,
|
||||
struct dma_buf *dmabuf);
|
||||
int validate_fixed_buffer(struct vm_gk20a *vm,
|
||||
struct buffer_attrs *bfr,
|
||||
u64 map_offset, u64 map_size,
|
||||
struct nvgpu_vm_area **pva_node);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user