From e5504ab2cd0ef08746bfd6d6d45d4c37c275de2e Mon Sep 17 00:00:00 2001 From: yuehongwu Date: Wed, 13 Nov 2024 14:55:49 +0800 Subject: [PATCH] hygon: The feature of Hygon SSE2 accelerated memory copy is disabled by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: caelli Signed-off-by: Jianping Liu --- arch/x86/kernel/cpu/hygon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/hygon.c b/arch/x86/kernel/cpu/hygon.c index 0563e992221a..53a182631393 100644 --- a/arch/x86/kernel/cpu/hygon.c +++ b/arch/x86/kernel/cpu/hygon.c @@ -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 };