summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMatt Wagantall <mattw@codeaurora.org>2015-06-29 18:53:20 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:13:16 -0700
commitd5a18b907bb75e6389516648f39364c909b7eff8 (patch)
treece368ebbd9aa3b34b36c4b0fb1ed5c143391e3f0 /include/linux
parent4f3cba201550cf8b64987790d0831633594f1f49 (diff)
arm64: dma-mapping: fix attribs for non-coherent strongly-ordered mappings
An incorrect conflict resolution when picking up 07c17f4e0b71d ("arm64: add support for NO_KERNEL_MAPPING and STRONGLY_ORDERED") caused MT_NORMAL_NC attributes being set for strongly-ordered mappings, rather than MT_DEVICE_nGnRnE attributes. As a result of this, speculative data fetches of the incorrectly- mapped memory have been observed. In cases where this memory is XPU protected or reads result in side-effects, this may result in device crashes. Fix this by setting the attributes returned by pgprot_noncached() regardless of the value of the coherent flag passed to __get_dma_pgprot() Change-Id: Iec56027e280ae0920016df3066045b71299a915b Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions