summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAlastair D'Silva <alastair@d-silva.org>2019-08-21 10:19:27 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-29 08:30:27 +0200
commit3981720f800f729e2ab13a68102f082cdc98bf0a (patch)
tree36904999f5903750715341a31c5a4375604b275e /net
parent28ad328e672bc799452e8481ef35fa58654f682f (diff)
downloadlinux-stable-3981720f800f729e2ab13a68102f082cdc98bf0a.tar.gz
linux-stable-3981720f800f729e2ab13a68102f082cdc98bf0a.tar.bz2
linux-stable-3981720f800f729e2ab13a68102f082cdc98bf0a.zip
powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB
The upstream commit: 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") has a similar effect, but since it is a rewrite of the assembler to C, is too invasive for stable. This patch is a minimal fix to address the issue in assembler. This patch applies cleanly to v5.2, v4.19 & v4.14. When calling flush_(inval_)dcache_range with a size >4GB, we were masking off the upper 32 bits, so we would incorrectly flush a range smaller than intended. This patch replaces the 32 bit shifts with 64 bit ones, so that the full size is accounted for. Signed-off-by: Alastair D'Silva <alastair@d-silva.org> Acked-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions