From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 1/2] ARM: new cache maintenance api for iommu
Date: Sat, 8 Sep 2012 11:14:20 +0100 [thread overview]
Message-ID: <20120908101420.GA28448@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CADysL2bGP_FKW4dnxM4zbziOPfrbAemRazZYd_mS9i++bZGcqQ@mail.gmail.com>
On Thu, Jul 05, 2012 at 10:50:17AM +0530, Gupta, Ramesh wrote:
> + * flush_iommu_mem(start, end)
> + *
> + * Clean and invalidate the specified virtual address range.
> + * This is to support the non coherent iommu drivers.
> + * The iommu driver need to call this api with the page
> + * table memory address range to ensure the data held in
> + * the cache is visible to the slave processor MMU.
> + * - start - virtual start address
> + * - end - virtual end address
I think:
iommu_flush_range(start, end)
or
iommu_flush_area(start, size)
Perform CPU specific cache operations are required to
ensure that the IOMMU page table mappings covering the
specified block of memory are visiable to the IOMMU.
Notice that it's defined by purpose, not by implementation. Also notice
the distinction between _range taking two addresses, and _area taking
a start plus size.
Also notice that it is defined just for IOMMU page tables, not for general
data for other processors.
Note that iommu_flush_area is safer if your virt_to_phys() are non-linear.
next prev parent reply other threads:[~2012-09-08 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-05 5:20 [PATCH v4 1/2] ARM: new cache maintenance api for iommu Gupta, Ramesh
2012-09-08 10:14 ` Russell King - ARM Linux [this message]
2012-09-10 10:21 ` Gupta, Ramesh
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=20120908101420.GA28448@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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).