diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-16 08:15:11 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:46 -0400 |
commit | 2eb6dcb4694c8b83e22c50d9fd4d3fdd85b93c46 (patch) | |
tree | 0a2d10c9873b81fd6a6821959874d4345cc6bfad /drivers/gpu/nvgpu/gk20a/as_gk20a.h | |
parent | ecc6f27fd13e7560d124faf67d114b93d47b73de (diff) |
gpu: nvgpu: Implement 64k large page support
Implement support for 64kB large page size. Add an API to create an
address space via IOCTL so that we can accept flags, and assign one
flag for enabling 64kB large page size.
Also adds APIs to set per-context large page size. This is possible
only on Maxwell, so return error if caller tries to set large page
size on Kepler.
Default large page size is still 128kB.
Change-Id: I20b51c8f6d4a984acae8411ace3de9000c78e82f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/as_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/as_gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/as_gk20a.h b/drivers/gpu/nvgpu/gk20a/as_gk20a.h index 457678ce..166000a8 100644 --- a/drivers/gpu/nvgpu/gk20a/as_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/as_gk20a.h | |||
@@ -42,5 +42,7 @@ int gk20a_as_release_share(struct gk20a_as_share *as_share); | |||
42 | int gk20a_as_dev_open(struct inode *inode, struct file *filp); | 42 | int gk20a_as_dev_open(struct inode *inode, struct file *filp); |
43 | int gk20a_as_dev_release(struct inode *inode, struct file *filp); | 43 | int gk20a_as_dev_release(struct inode *inode, struct file *filp); |
44 | long gk20a_as_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); | 44 | long gk20a_as_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); |
45 | int gk20a_as_alloc_share(struct gk20a_as *as, | ||
46 | u32 flags, struct gk20a_as_share **out); | ||
45 | 47 | ||
46 | #endif | 48 | #endif |