From b486d3535db8b22f807eb4e7aac060300fab3778 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Tue, 5 Jul 2016 10:19:14 -0700 Subject: gpu: nvgpu: set has_physical_mode only if running on native linux Set has_physical_mode if running on native linux for better performance. Set it false if running on native gpu but on linux-hv, as the driver can not get real physical address. JIRA VFND-1965 Change-Id: I6e0322e64ad14d35d179a33e979157b53d77005a Signed-off-by: Richard Zhao Reviewed-on: http://git-master/r/1175739 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: Vladislav Buzov --- drivers/gpu/nvgpu/gk20a/gk20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index bcde6df3..ab417386 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -1474,7 +1474,7 @@ static int gk20a_probe(struct platform_device *dev) gk20a->mm.bypass_smmu = platform->bypass_smmu; gk20a->mm.disable_bigpage = platform->disable_bigpage; - gk20a->mm.has_physical_mode = true; + gk20a->mm.has_physical_mode = !is_tegra_hypervisor_mode(); #ifdef CONFIG_DEBUG_FS spin_lock_init(&gk20a->debugfs_lock); -- cgit v1.2.2