MLK-23277: 8qm: Fix SW workaround for i.MX8QM TKT340553
authorNitin Garg <nitin.garg@nxp.com>
Wed, 5 May 2021 17:10:31 +0000 (12:10 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Thu, 6 May 2021 13:01:25 +0000 (08:01 -0500)
commit4069a4ca1ea75bc732f552d3b11fb3574652dc65
tree611624ed2b893904cf02f769bd4cd2f8e16a6106
parent0846e4872f9139ebbb9dc9f65986b2ba2a09a47c
MLK-23277: 8qm: Fix SW workaround for i.MX8QM TKT340553

Current workaround is looping uselessly on the address
range doing a  _tlbi(vmalle1is) which is harmful for
the system performance and buggy as the instruction is
flushing the entire TLB and there is no benefit of
redoing it more than once. Also fix missing barriers.

Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
Signed-off-by: Marouen Ghodhbane <marouen.ghodhbane@nxp.com>
Reviewed-by: Jason Liu <jason.hui.liu@nxp.com>
arch/arm64/include/asm/tlbflush.h