From 9812bd5eea1c5d2c97149d64c5ccf81eae75fda1 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 17 Dec 2015 10:12:21 -0800 Subject: gpu: nvgpu: Control comptagline assignment from kernel On Maxwell comptaglines are assigned per 128k, but preferred big page size for graphics is 64k. Bit 16 of GPU VA is used for determining which half of comptagline is used. This creates problems if user space wants to map a page multiple times and to arbitrary GPU VA. In one mapping the page might be mapped to lower half of 128k comptagline, and in another mapping the page might be mapped to upper half. Turn on mode where MSB of comptagline in PTE is used instead of bit 16 for determining the comptagline lower/upper half selection. Bug 1704834 Change-Id: If87e8f6ac0fc9c5624e80fa1ba2ceeb02781355b Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/924322 Reviewed-by: Alex Waterman --- 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 ac55e988..5ce931c3 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -329,6 +329,7 @@ struct mm_gk20a { void (*remove_support)(struct mm_gk20a *mm); bool sw_ready; int physical_bits; + bool use_full_comp_tag_line; #ifdef CONFIG_DEBUG_FS u32 ltc_enabled; u32 ltc_enabled_debug; -- cgit v1.2.2