Commit 549f548a authored by Ramesh Gupta's avatar Ramesh Gupta Committed by Suman Anna
Browse files

iommu/omap: flush page table entries from L2 cache



The functions flush_iopgd_range() and flush_iopte_range()
are not performing any L2 cache operations when flushing
the MMU page table entries. This has resulted in unnecessary
MMU faults on the DSP and IPU processors on OMAP4 (not seen
on OMAP5 though due to the L2 cache differences). Fix this
by adding proper outer cache operations. The asm instruction
used for the inner cache has also been replaced with an
appropriate API.

NOTE:
This is a temporary patch and an up-port of an older product
version patch. The usage of dmac_flush_range() API is in
general frowned upon outside the dma-mapping layer, but some
usage already exists within the IOMMU drivers.

Signed-off-by: default avatarRamesh Gupta <grgupta@ti.com>
Signed-off-by: default avatarHari Kanigeri <h-kanigeri2@ti.com>
[s-anna@ti.com: add commit description]
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
parent 708716ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment