]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
gpu: nvgpu: Export pde coverage
authorArto Merilainen <amerilainen@nvidia.com>
Thu, 20 Feb 2014 13:26:58 +0000 (15:26 +0200)
committerGerrit Code Review <gerrit2@nvidia.com>
Tue, 8 Apr 2014 10:20:28 +0000 (03:20 -0700)
This patch adds a field to the gpu capability ioctl to allow
requesting the maximum VA a single PDE entry can hold.

Bug 1456570

Change-Id: I5cf29c8816fa6ea396c36419e6821c27a805b8af
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
drivers/gpu/nvgpu/gk20a/gk20a.c
include/linux/nvhost_gpu_ioctl.h

index 4cc500dee6f2836115e7d8d661e3903bf56b5da5..ad35c9aecf18904c835ff08e893b7d28324c2fd6 100644 (file)
@@ -1602,6 +1602,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
 
        gpu->big_page_size = g->mm.big_page_size;
        gpu->compression_page_size = g->mm.compression_page_size;
+       gpu->pde_coverage_bit_count = g->mm.pde_stride_shift;
+       gpu->reserved = 0;
 
        return 0;
 }
index 2093475502e6eb7835df0d1ba8cebc1427524768..1ebb1ef222f991885a99f06d57e4b4b8df36c1a6 100644 (file)
@@ -112,6 +112,9 @@ struct nvhost_gpu_characteristics {
        __u32 big_page_size;
        __u32 compression_page_size;
 
+       __u32 pde_coverage_bit_count;
+       __u32 reserved;
+
        /* Notes:
           - This struct can be safely appended with new fields. However, always
             keep the structure size multiple of 8 and make sure that the binary