Repository navigation
Commit 03096a4
mmc: meson-gx: use memcpy_to/fromio for dram-access-quirk
commit 103a534 upstream.
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] 2851330 ("arm64: Import latest memcpy()/memmove() implementation")
Fixes: acdc8e7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent b8fd230 commit 03096a4
1 file changed
Lines changed: 45 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
734 | 735 | | |
735 | 736 | | |
736 | 737 | | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
737 | 779 | | |
738 | 780 | | |
739 | 781 | | |
| |||
777 | 819 | | |
778 | 820 | | |
779 | 821 | | |
780 | | - | |
781 | | - | |
| 822 | + | |
782 | 823 | | |
783 | 824 | | |
784 | 825 | | |
| |||
947 | 988 | | |
948 | 989 | | |
949 | 990 | | |
950 | | - | |
951 | | - | |
| 991 | + | |
952 | 992 | | |
953 | 993 | | |
954 | 994 | | |
| |||
1168 | 1208 | | |
1169 | 1209 | | |
1170 | 1210 | | |
1171 | | - | |
| 1211 | + | |
1172 | 1212 | | |
1173 | 1213 | | |
1174 | 1214 | | |
| |||
0 commit comments