diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2021-06-09 17:02:30 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-06-14 14:02:33 +0200 |
commit | 103a5348c22c3fca8b96c735a9e353b8a0801842 (patch) | |
tree | 1d422098b4cfdc485c7ffb4f17e07bb7201d8fcc /drivers/sbus/char | |
parent | Linux 5.13-rc6 (diff) | |
download | linux-103a5348c22c3fca8b96c735a9e353b8a0801842.tar.xz linux-103a5348c22c3fca8b96c735a9e353b8a0801842.zip |
mmc: meson-gx: use memcpy_to/fromio for dram-access-quirk
It has been reported that usage of memcpy() to/from an iomem mapping is invalid,
and a recent arm64 memcpy update [1] triggers a memory abort when dram-access-quirk
is used on the G12A/G12B platforms.
This adds a local sg_copy_to_buffer which makes usage of io versions of memcpy
when dram-access-quirk is enabled.
[1] 285133040e6c ("arm64: Import latest memcpy()/memmove() implementation")
Fixes: acdc8e71d9bb ("mmc: meson-gx: add dram-access-quirk")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20210609150230.9291-1-narmstrong@baylibre.com
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/sbus/char')
0 files changed, 0 insertions, 0 deletions