Commit a20103c3 authored by Peter Collingbourne's avatar Peter Collingbourne Committed by Todd Kjos
Browse files

BACKPORT: FROMLIST: arm64: mte: avoid TFSR related operations unless in async mode



There is no reason to touch TFSR nor issue a DSB unless our task is
in asynchronous mode. Since these operations (especially the DSB)
may be expensive on certain microarchitectures, only perform them
if necessary.

Furthermore, stop clearing TFSR on entry because it will be cleared
on exit and it is not necessary to have any particular value in TFSR
between entry and exit.

Signed-off-by: default avatarPeter Collingbourne <pcc@google.com>
Link: https://linux-review.googlesource.com/id/Ib353a63e3d0abc2b0b008e96aa2d9692cfc1b815

Change-Id: I9132dd39ce6f994ee993cae67b2476dfa73ef64a
Bug: 192536783
Link: https://lore.kernel.org/linux-arm-kernel/20210709023532.2133673-1-pcc@google.com/


Signed-off-by: default avatarElliot Berman <quic_eberman@quicinc.com>
Signed-off-by: default avatarPeter Collingbourne <pcc@google.com>
parent 3972be64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment