From fbc21ed2ee1859dfe1814914a7b9367eee6b9f3d Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Fri, 11 Mar 2016 15:57:42 -0800 Subject: gpu: nvgpu: split address space for fixed allocs Allow a special address space node to be split out from the user adress space or fixed allocations. A debugfs node, /d//separate_fixed_allocs Controls this feature. To enable it: # echo > /d//separate_fixed_allocs Where is the address to do the split on in the GVA address range. This will cause the split to be made in all subsequent address space ranges that get created until it is turned off. To turn this off just echo 0x0 into the same debugfs node. Change-Id: I21a3f051c635a90a6bfa8deae53a54db400876f9 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/1030303 Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gk20a.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 541e7b50..8a1f82bc 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -591,6 +591,14 @@ struct gk20a { int dbg_powergating_disabled_refcount; /*refcount for pg disable */ int dbg_timeout_disabled_refcount; /*refcount for timeout disable */ + /* + * When set subsequent VMAs will separate fixed and non-fixed + * allocations. This avoids conflicts with fixed and non-fixed allocs + * for some tests. The value in separate_fixed_allocs is used to + * determine the split boundary. + */ + u64 separate_fixed_allocs; + void (*remove_support)(struct platform_device *); u64 pg_ingating_time_us; -- cgit v1.2.2