From 542f729aa9ea9c5eb845c35d855e3925f45ab24f Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Wed, 9 Apr 2014 21:15:32 +0300 Subject: gpu: nvgpu: Allow mapping backing store Backing store sgt needs to be mapped to gpuva to enable CDE swizzling. This patch adds necessary code to create sgt during initialisation so that the sgt is available when needed. Bug 1409151 Change-Id: I9d4671386fe9204d780c2e286b5f9b2dd87af35a Signed-off-by: Arto Merilainen --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 1 + 1 file changed, 1 insertion(+) (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 d583849d..e5d76f8f 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -157,6 +157,7 @@ struct gr_ctx_desc { struct compbit_store_desc { struct page **pages; + struct sg_table *sgt; size_t size; u64 base_iova; }; -- cgit v1.2.2