mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: Remove device_is_iommuable
The downstream device_is_iommuable() is removed. Check the dev->archdata.iommu pointer instead. Bug 200385990 Change-Id: I1fe400beddc8b4f2262368b5e0e8726abca007a6 Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2030334 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Ashish Mhetre <amhetre@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
ad351f17be
commit
31ac769454
@@ -496,12 +496,13 @@ bool nvgpu_iommuable(struct gk20a *g)
|
||||
{
|
||||
#ifdef CONFIG_TEGRA_GK20A
|
||||
struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
|
||||
struct device *dev = l->dev;
|
||||
|
||||
/*
|
||||
* Check against the nvgpu device to see if it's been marked as
|
||||
* IOMMU'able.
|
||||
*/
|
||||
if (!device_is_iommuable(l->dev))
|
||||
if (dev->archdata.iommu == NULL)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GP10B Tegra Platform Interface
|
||||
*
|
||||
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -155,7 +155,7 @@ static int gp10b_tegra_probe(struct device *dev)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
platform->disable_bigpage = !device_is_iommuable(dev);
|
||||
platform->disable_bigpage = !dev->archdata.iommu;
|
||||
|
||||
platform->g->gr.ctx_vars.dump_ctxsw_stats_on_channel_close
|
||||
= false;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GV11B Tegra Platform Interface
|
||||
*
|
||||
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -84,7 +84,7 @@ static int gv11b_tegra_probe(struct device *dev)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
platform->disable_bigpage = !device_is_iommuable(dev);
|
||||
platform->disable_bigpage = !dev->archdata.iommu;
|
||||
|
||||
platform->g->gr.ctx_vars.dump_ctxsw_stats_on_channel_close
|
||||
= false;
|
||||
|
||||
Reference in New Issue
Block a user