hygon: The feature of Hygon SSE2 accelerated memory copy is disabled by default.

nt_cpy_mini_len is used by get_nt_block_copy_mini_len function,and return
to nt_blk_cpy_mini_len variable. nt_blk_cpy_mini_len will be used in
arch/x86/include/asm/uaccess_64.h, if it is 0, kernel will not call
copy_user_large_memory_generic_string function.

Signed-off-by: yuehongwu <yuehongwu@tencent.com>
Reviewed-by: caelli <caelli@tencent.com>
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
yuehongwu 2024-11-13 14:55:49 +08:00 committed by Jianping Liu
parent 8c1095515a
commit e5504ab2cd
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ struct hygon_c86_info {
};
static struct hygon_c86_info hygon_c86_data = {
.nt_cpy_mini_len = PAGE_SIZE,
.nt_cpy_mini_len = 0,
.nt_cpy_to_user_mini_nr_pages = 3,
.nt_cpy_from_user_mini_nr_pages = 2
};