linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: joro@8bytes.org (Joerg Roedel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] iommu: Decouple iommu_map_sg from CPU page size
Date: Tue, 2 Dec 2014 13:05:39 +0100	[thread overview]
Message-ID: <20141202120539.GB32294@8bytes.org> (raw)
In-Reply-To: <2d38d270a532b52f73a720572f8f085dfa08321e.1416936761.git.robin.murphy@arm.com>

On Tue, Nov 25, 2014 at 05:50:55PM +0000, Robin Murphy wrote:
> If the IOMMU supports pages smaller than the CPU page size, segments
> which lie at offsets within the CPU page may be mapped based on the
> finer-grained IOMMU page boundaries. This minimises the amount of
> non-buffer memory between the CPU page boundary and the start of the
> segment which must be mapped and therefore exposed to the device, and
> brings the default iommu_map_sg implementation in line with
> iommu_map/unmap with respect to alignment.
> 
> Signed-off-by: Robin Murphy <robin.murphy@arm.com>
> ---
> 
> Hi Joerg,
> 
> I noticed this whilst wiring up DMA mapping to this new API - on arm64
> we anticipate running 4k IOMMU pages with 64k CPU pages, in which case
> the alignment check ends up being unnecessarily strict.

Applied to the core branch, thanks.


	Joerg

      reply	other threads:[~2014-12-02 12:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-25 17:50 [PATCH] iommu: Decouple iommu_map_sg from CPU page size Robin Murphy
2014-12-02 12:05 ` Joerg Roedel [this message]

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=20141202120539.GB32294@8bytes.org \
    --to=joro@8bytes.org \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).