From b653c8f62f9f9a248b7057eb999c7b0ba6e887b5 Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Fri, 6 Feb 2015 12:34:31 -0800 Subject: gpu: nvgpu: add bar2 memory descriptor Save bar2 memory descriptor in mm data structure. Bug 1587825 Change-Id: I3063c3e28a4e583c2d2c099402077d2d25fc6e68 Signed-off-by: Seshendra Gadagottu Reviewed-on: http://git-master/r/682101 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index b8778024..99f49aa8 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -357,7 +357,9 @@ struct mm_gk20a { struct mutex l2_op_lock; - +#ifdef CONFIG_ARCH_TEGRA_18x_SOC + struct mem_desc bar2_desc; +#endif void (*remove_support)(struct mm_gk20a *mm); bool sw_ready; int physical_bits; -- cgit v1.2.2