]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: don't treat user cache maintenance faults as writes
authorWill Deacon <will.deacon@arm.com>
Fri, 19 Jul 2013 14:37:12 +0000 (15:37 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 19 Jul 2013 14:49:44 +0000 (15:49 +0100)
commitde1d16f9d8ca208f0744ac0f75ffabbd29239ac3
treea52308073355a4662387324a0f998c871ad584fe
parent98cf7ac893f65e1b34ba7b00a821c23eb6ecc065
arm64: mm: don't treat user cache maintenance faults as writes

On arm64, cache maintenance faults appear as data aborts with the CM
bit set in the ESR. The WnR bit, usually used to distinguish between
faulting loads and stores, always reads as 1 and (slightly confusingly)
the instructions are treated as reads by the architecture.

This patch fixes our fault handling code to treat cache maintenance
faults in the same way as loads.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/fault.c