summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-05-16 14:15:27 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-17 16:03:32 -0400
commit2203d0330231821eeae18517715ba754e093ab18 (patch)
tree73b142861090ea56b7f4e1a3b055d5adfff5fd07 /drivers/gpu/nvgpu/include
parent7abf697204481869dd2652fe306e2a46879d9152 (diff)
gpu: nvgpu: Translate as_alloc flags
Translate the as_alloc flags so that the common/as.c code no longer needs to include <uapi/linux/nvgpu.h>. This was an oversight from prior MM unification efforts which was caught by the userspace POSIX build on QNX. JIRA NVGPU-525 Change-Id: I6af6cb9904c2ae9edeb8dbb970846c31b56822bf Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1720918 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Sourab Gupta <sourabg@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/as.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/as.h b/drivers/gpu/nvgpu/include/nvgpu/as.h
index 03799717..b16652da 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/as.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/as.h
@@ -36,6 +36,11 @@ struct gk20a_as_share {
36 int id; 36 int id;
37}; 37};
38 38
39/*
40 * AS allocation flags.
41 */
42#define NVGPU_AS_ALLOC_USERSPACE_MANAGED (1 << 0)
43
39int gk20a_as_release_share(struct gk20a_as_share *as_share); 44int gk20a_as_release_share(struct gk20a_as_share *as_share);
40 45
41/* if big_page_size == 0, the default big page size is used */ 46/* if big_page_size == 0, the default big page size is used */