Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 447c309e authored by Prakash Gupta's avatar Prakash Gupta
Browse files

iommu/arm-smmu: fix build error with av8l_fast_clear_stale_ptes



Fix build error with CONFIG_IOMMU_IO_PGTABLE_FAST_SELFTEST enabled. Pass
correct argument for av8l_fast_clear_stale_ptes.

Change-Id: I76c77de4e4ebed853d729abdf5dfdbe9cb8157c2
Fixes: 8b111f13 ("iommu/arm-smmu: add support to configure IOVA range")
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 136d1e1e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2017, 2020, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt)	"io-pgtable-fast: " fmt
@@ -739,7 +739,7 @@ static int __init av8l_fast_positive_testing(void)
	}

	/* sweep up TLB proving PTEs */
	av8l_fast_clear_stale_ptes(pmds, base, base, max, false);
	av8l_fast_clear_stale_ptes(ops, base, base, max, false);

	/* map the entire 4GB VA space with 8K map calls */
	for (iova = base; iova < max; iova += SZ_8K) {
@@ -760,7 +760,7 @@ static int __init av8l_fast_positive_testing(void)
	}

	/* sweep up TLB proving PTEs */
	av8l_fast_clear_stale_ptes(pmds, base, base, max, false);
	av8l_fast_clear_stale_ptes(ops, base, base, max, false);

	/* map the entire 4GB VA space with 16K map calls */
	for (iova = base; iova < max; iova += SZ_16K) {
@@ -781,7 +781,7 @@ static int __init av8l_fast_positive_testing(void)
	}

	/* sweep up TLB proving PTEs */
	av8l_fast_clear_stale_ptes(pmds, base, base, max, false);
	av8l_fast_clear_stale_ptes(ops, base, base, max, false);

	/* map the entire 4GB VA space with 64K map calls */
	for (iova = base; iova < max; iova += SZ_64K) {