All of
 help / color / mirror / Atom feed
From: Magnus Damm <>
Cc:,Magnus Damm
Subject: [PATCH/RFC 01/02] iommu/ipmmu-vmsa: Use 64-bit masks
Date: Mon, 18 Jan 2016 14:48:26 +0900	[thread overview]
Message-ID: <20160118054826.22156.70507.sendpatchset@little-apple> (raw)
In-Reply-To: <20160118054817.22156.6531.sendpatchset@little-apple>

From: Magnus Damm <>

The IPMMU hardware is able to use page tables from anywhere
in the memory, so set masks to 64-bits. Required to be able
to use the IPMMU driver with 4 GiB of memory. Without this
patch with 4 GiB enabled the following error message is spit
out on the console during boot:

ipmmu-vmsa e67b0000.mmu: Cannot accommodate DMA translation
                         for IOMMU page tables

Signed-off-by: Magnus Damm <>

 drivers/iommu/ipmmu-vmsa.c |    2 ++
 1 file changed, 2 insertions(+)

--- 0001/drivers/iommu/ipmmu-vmsa.c
+++ work/drivers/iommu/ipmmu-vmsa.c	2016-01-18 14:22:22.730513000 +0900
@@ -1043,6 +1043,8 @@ static int ipmmu_probe(struct platform_d
 		return -ENOMEM;
+	dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
 	mmu->dev = &pdev->dev;
 	mmu->num_utlbs = 32;
 	bitmap_zero(mmu->ctx, IPMMU_CTX_MAX);

  reply	other threads:[~2016-01-18  5:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-18  5:48 [PATCH/RFC 00/02] ARM: shmobile: r8a7795 Salvator-X IPMMU 4 GiB RAM test code Magnus Damm
2016-01-18  5:48 ` Magnus Damm [this message]
2016-01-18  5:48 ` [PATCH/RFC 02/02] arm64: dts: Salvator-X: Enable 4 GiB of RAM Magnus Damm
2017-02-17  8:56   ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160118054826.22156.70507.sendpatchset@little-apple \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.