From 0d8f5f3fdb87b818b6239efaf91822c01cb3d859 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Thu, 6 Apr 2017 16:39:30 -0700 Subject: gpu: nvgpu: ModeE perfbuffer feature development perfbuf mapping fixes: - Allocate VM specifically for perfbuf use: using the PMU's results in mmu faults for larger buffers where 64k pages are used. - Make 4GB boundary check work for large address spaces - remove requirement to have allow_all flag set - track perfbuf ownership and clean up appropriately Bug 1880196 JIRA EVLR-1074 Change-Id: Ieee4eb17b64acf9b6ede37bf8e6a91892cda4a7e Signed-off-by: Peter Daifuku Reviewed-on: http://git-master/r/1460809 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 5 +++++ 1 file changed, 5 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 dfdaa164..7fac811e 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -361,6 +361,11 @@ struct mm_gk20a { struct nvgpu_mem inst_block; } hwpm; + struct { + struct vm_gk20a vm; + struct nvgpu_mem inst_block; + } perfbuf; + struct { struct vm_gk20a vm; } cde; -- cgit v1.2.2