From d215bc1107a8a032d18e515e55d5e29c7192f15e Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Fri, 20 May 2016 09:12:23 +0300 Subject: gpu: nvgpu: detect vidmem configuration from HW Read video memory size from hardware during initialization for devices that support it. JIRA DNVGPU-14 Change-Id: If190f2d89f7148520ee274ca674f972987c8056d Signed-off-by: Konsta Holtta Reviewed-on: http://git-master/r/1157215 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index e83e1111..590ede71 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -372,6 +372,8 @@ struct mm_gk20a { #else bool force_pramin; /* via debugfs */ #endif + + size_t vidmem_size; }; int gk20a_mm_init(struct mm_gk20a *mm); -- cgit v1.2.2