OrangePi_CM5/arch/arm64/lib
Reiji Watanabe f0cb43a2c6 arm64: clear_page() shouldn't use DC ZVA when DCZID_EL0.DZP == 1
[ Upstream commit f0616abd4e67143b45b04b565839148458857347 ]

Currently, clear_page() uses DC ZVA instruction unconditionally.  But it
should make sure that DCZID_EL0.DZP, which indicates whether or not use
of DC ZVA instruction is prohibited, is zero when using the instruction.
Use STNP instead when DCZID_EL0.DZP == 1.

Fixes: f27bb139c3 ("arm64: Miscellaneous library functions")
Signed-off-by: Reiji Watanabe <reijiw@google.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20211206004736.1520989-2-reijiw@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 10:53:54 +01:00
..
Makefile
…
clear_page.S arm64: clear_page() shouldn't use DC ZVA when DCZID_EL0.DZP == 1 2022-01-27 10:53:54 +01:00
clear_user.S
…
copy_from_user.S
…
copy_in_user.S
…
copy_page.S
…
copy_template.S
…
copy_to_user.S
…
crc32.S
…
csum.c
…
delay.c
…
error-inject.c
…
memchr.S
…
memcmp.S
…
memcpy.S
…
memmove.S
…
memset.S
…
mte.S
…
strchr.S
…
strcmp.S
…
strlen.S
…
strncmp.S
…
strnlen.S
…
strrchr.S
…
tishift.S
…
uaccess_flushcache.c
…
xor-neon.c
…