--- zzzz-none-000/linux-4.1.38/arch/mips/mm/gup.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/arch/mips/mm/gup.c 2020-11-25 10:06:48.000000000 +0000 @@ -1,3 +1,10 @@ +#if (defined(CONFIG_BCM_KF_MIPS_BCM963XX) && defined(CONFIG_MIPS_BCM963XX)) +/* get_user_pages_fast() is not working properly on BMIPS4350, some times wrong + * data is seen when the pages returned by this fucntion are used. The problem might + * be related to cache flushing. Disabling this architure related function, and + * the kernel will fallback to use of get_user_pages(), see mm/util.c + */ +#else /* * Lockless get_user_pages_fast for MIPS * @@ -314,3 +321,4 @@ } return ret; } +#endif