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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user