]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8815/1: V7M: align v7m_dma_inv_range() with v7 counterpart
authorVladimir Murzin <vladimir.murzin@arm.com>
Fri, 23 Nov 2018 11:25:21 +0000 (12:25 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 4 Dec 2018 22:38:33 +0000 (22:38 +0000)
commitbfe9f78f09138e4538f4cbbeb73d595f3cffa314
tree705264c7e2cbe848b867bbf2a0eb0cb7034ecacb
parentfd15803d95445db1f4664cedbcc27ee0f92980ba
ARM: 8815/1: V7M: align v7m_dma_inv_range() with v7 counterpart

Chris has discovered and reported that v7_dma_inv_range() may corrupt
memory if address range is not aligned to cache line size.

Since the whole cache-v7m.S was lifted form cache-v7.S the same
observation applies to v7m_dma_inv_range(). So the fix just mirrors
what has been done for v7 with a little specific of M-class.

Cc: Chris Cole <chris@sageembedded.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/cache-v7m.S