summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2016-07-05 13:19:14 -0400
committerVladislav Buzov <vbuzov@nvidia.com>2016-07-13 02:33:59 -0400
commitb486d3535db8b22f807eb4e7aac060300fab3778 (patch)
tree49636e2caa899dad5f8d7d6318062293051d8c6e /drivers/gpu/nvgpu/gk20a/gk20a.c
parent14fc3775fbde01dc87838d87152a7ff0860eb887 (diff)
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 <rizhao@nvidia.com> Reviewed-on: http://git-master/r/1175739 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c2
1 files changed, 1 insertions, 1 deletions
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)
1474 1474
1475 gk20a->mm.bypass_smmu = platform->bypass_smmu; 1475 gk20a->mm.bypass_smmu = platform->bypass_smmu;
1476 gk20a->mm.disable_bigpage = platform->disable_bigpage; 1476 gk20a->mm.disable_bigpage = platform->disable_bigpage;
1477 gk20a->mm.has_physical_mode = true; 1477 gk20a->mm.has_physical_mode = !is_tegra_hypervisor_mode();
1478 1478
1479#ifdef CONFIG_DEBUG_FS 1479#ifdef CONFIG_DEBUG_FS
1480 spin_lock_init(&gk20a->debugfs_lock); 1480 spin_lock_init(&gk20a->debugfs_lock);