Commit 8f8fcf97 authored by Cho KyongHo's avatar Cho KyongHo Committed by Joerg Roedel

iommu/exynos: Remove prefetch buffer setting

Prefetch buffer is a cache of System MMU 3.x and caches a block of
page table entries to make effect of larger page with small pages.
However, how to control prefetch buffers and the specifications of
prefetch buffers different from minor versions of System MMU v3.
Prefetch buffers must be controled with care because there are some
restrictions in H/W design.

The interface and implementation to initiate prefetch buffers will
be prepared later.
Signed-off-by: default avatarCho KyongHo <pullip.cho@samsung.com>
Signed-off-by: default avatarShaik Ameer Basha <shaik.ameer@samsung.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 3ad6b7f3
...@@ -245,13 +245,6 @@ static void __sysmmu_set_ptbase(void __iomem *sfrbase, ...@@ -245,13 +245,6 @@ static void __sysmmu_set_ptbase(void __iomem *sfrbase,
__sysmmu_tlb_invalidate(sfrbase); __sysmmu_tlb_invalidate(sfrbase);
} }
static void __sysmmu_set_prefbuf(void __iomem *sfrbase, unsigned long base,
unsigned long size, int idx)
{
__raw_writel(base, sfrbase + REG_PB0_SADDR + idx * 8);
__raw_writel(size - 1 + base, sfrbase + REG_PB0_EADDR + idx * 8);
}
static void __set_fault_handler(struct sysmmu_drvdata *data, static void __set_fault_handler(struct sysmmu_drvdata *data,
sysmmu_fault_handler_t handler) sysmmu_fault_handler_t handler)
{ {
...@@ -401,13 +394,6 @@ static int __exynos_sysmmu_enable(struct sysmmu_drvdata *data, ...@@ -401,13 +394,6 @@ static int __exynos_sysmmu_enable(struct sysmmu_drvdata *data,
data->pgtable = pgtable; data->pgtable = pgtable;
__sysmmu_set_ptbase(data->sfrbase, pgtable); __sysmmu_set_ptbase(data->sfrbase, pgtable);
if ((readl(data->sfrbase + REG_MMU_VERSION) >> 28) == 3) {
/* System MMU version is 3.x */
__raw_writel((1 << 12) | (2 << 28),
data->sfrbase + REG_MMU_CFG);
__sysmmu_set_prefbuf(data->sfrbase, 0, -1, 0);
__sysmmu_set_prefbuf(data->sfrbase, 0, -1, 1);
}
__raw_writel(CTRL_ENABLE, data->sfrbase + REG_MMU_CTRL); __raw_writel(CTRL_ENABLE, data->sfrbase + REG_MMU_CTRL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment