diff options
author | Kirill Artamonov <kartamonov@nvidia.com> | 2014-02-26 22:58:43 +0200 |
---|---|---|
committer | Winnie Hsu <whsu@nvidia.com> | 2015-01-06 18:32:20 -0800 |
commit | 67e2d427dfef361fce990aa11d7f6618bf9e368a (patch) | |
tree | 32d64cb848df9ac28cbd1e1978bb552c6a886439 /include | |
parent | f69b7093accdacfa653b4bd45d78e04a2676dc2a (diff) |
gpu: nvgpu: implement mapping for sparse allocation
Implement support for partial buffer mappings.
Whitelist gr_pri_bes_crop_hww_esr accessed by
fec during sparse texture initialization.
bug 1456562
bug 1369014
bug 1361532
Change-Id: Ib0d1ec6438257ac14b40c8466b37856b67e7e34d
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/375012
(cherry picked from commit a24470f69961508412402b9b06d5b71fbf6f7549)
Reviewed-on: http://git-master/r/601754
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvhost_as_ioctl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/nvhost_as_ioctl.h b/include/linux/nvhost_as_ioctl.h index cb6e8fd3813c..56488c52976f 100644 --- a/include/linux/nvhost_as_ioctl.h +++ b/include/linux/nvhost_as_ioctl.h @@ -146,9 +146,10 @@ struct nvhost_as_map_buffer_ex_args { __u32 dmabuf_fd; /* in */ __u32 page_size; /* inout, 0:= best fit to buffer */ - __u32 padding[4]; /* reserved for future usage */ + __u64 buffer_offset; /* in, offset of mapped buffer region */ + __u64 mapping_size; /* in, size of mapped buffer region */ - __u64 offset; /* in/out, we use this address if flag + __u64 as_offset; /* in/out, we use this address if flag * FIXED_OFFSET is set. This will fail * if space is not properly allocated. The * actual virtual address to which we mapped |