From c38dae5b522a9b2ce5996d82968d846187f3e152 Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Thu, 20 Feb 2014 15:26:58 +0200 Subject: gpu: nvgpu: Export pde coverage 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 --- drivers/gpu/nvgpu/gk20a/gk20a.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 4cc500de..ad35c9ae 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -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; } -- cgit v1.2.2