Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
682 B
ArmAsm
31 lines
682 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* NG4copy_page.S: Niagara-4 optimized clear page.
|
|
*
|
|
* Copyright (C) 2012 (davem@davemloft.net)
|
|
*/
|
|
|
|
#include <asm/asi.h>
|
|
#include <asm/page.h>
|
|
|
|
.text
|
|
|
|
.register %g3, #scratch
|
|
|
|
.align 32
|
|
.globl NG4clear_page
|
|
.globl NG4clear_user_page
|
|
NG4clear_page: /* %o0=dest */
|
|
NG4clear_user_page: /* %o0=dest, %o1=vaddr */
|
|
set PAGE_SIZE, %g7
|
|
mov 0x20, %g3
|
|
1: stxa %g0, [%o0 + %g0] ASI_ST_BLKINIT_MRU_P
|
|
subcc %g7, 0x40, %g7
|
|
stxa %g0, [%o0 + %g3] ASI_ST_BLKINIT_MRU_P
|
|
bne,pt %xcc, 1b
|
|
add %o0, 0x40, %o0
|
|
membar #StoreLoad|#StoreStore
|
|
retl
|
|
nop
|
|
.size NG4clear_page,.-NG4clear_page
|
|
.size NG4clear_user_page,.-NG4clear_user_page
|