All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-renesas-soc@vger.kernel.org
Cc: horms+renesas@verge.net.au,Magnus Damm
	<magnus.damm@gmail.com>,laurent.pinchart+renesas@ideasonboard.com,geert+renesas@glider.be
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 <damm+renesas@opensource.se>

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 <damm+renesas@opensource.se>
---

 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* 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 \
    --to=magnus.damm@gmail.com \
    --cc=geert+renesas@glider.be \
    --cc=horms+renesas@verge.net.au \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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.