15 #include <linux/module.h>
16 #include <linux/device.h>
40 xp_register_nofault_code_sn2(
void)
48 ret = sn_register_nofault_code(func_addr, err_func_addr, err_func_addr,
51 dev_err(
xp,
"can't register nofault code, error=%d\n", ret);
67 xp_unregister_nofault_code_sn2(
void)
73 (
void)sn_register_nofault_code(func_addr, err_func_addr,
90 xp_socket_pa_sn2(
unsigned long gpa)
105 xp_remote_memcpy_sn2(
unsigned long dst_pa,
const unsigned long src_pa,
115 dev_err(
xp,
"bte_copy() on shub2 failed, error=0x%x dst_pa="
116 "0x%016lx src_pa=0x%016lx len=%ld\\n", ret, dst_pa,
119 dev_err(
xp,
"bte_copy() failed, error=%d dst_pa=0x%016lx "
120 "src_pa=0x%016lx len=%ld\\n", ret, dst_pa, src_pa, len);
127 xp_cpu_to_nasid_sn2(
int cpuid)
133 xp_expand_memprotect_sn2(
unsigned long phys_addr,
unsigned long size)
142 "SN_MEMPROT_ACCESS_CLASS_1,) failed ret=%d\n", ret);
149 xp_restrict_memprotect_sn2(
unsigned long phys_addr,
unsigned long size)
158 "SN_MEMPROT_ACCESS_CLASS_0,) failed ret=%d\n", ret);
180 return xp_register_nofault_code_sn2();
188 xp_unregister_nofault_code_sn2();