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

Commit 76e77fb0 authored by Mitchel Humpherys's avatar Mitchel Humpherys Committed by Patrick Daly
Browse files

iommu: add more debug for iommu_pgsize failure



We're currently BUG()'ing when we can't find a valid IOMMU page size
without printing any other information.  Add some more information about
the parameters passed to the function to aide in debugging.

Change-Id: I1797bdfa2ef9d899ef4ffcb36fea769b67a1f991
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent fad25926
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1298,7 +1298,11 @@ size_t iommu_pgsize(unsigned long pgsize_bitmap,
	pgsize &= pgsize_bitmap;

	/* make sure we're still sane */
	BUG_ON(!pgsize);
	if (!pgsize) {
		pr_err("invalid pgsize/addr/size! 0x%lx 0x%lx 0x%zx\n",
		       pgsize_bitmap, addr_merge, size);
		BUG();
	}

	/* pick the biggest page */
	pgsize_idx = __fls(pgsize);