arm: Is VFP hotplug notifiers wrong?

Fabio Estevam festevam at gmail.com
Tue Jan 9 07:01:58 PST 2018


Hi Okuno,

On Tue, Jan 9, 2018 at 12:46 PM,  <okuno.kohji at jp.panasonic.com> wrote:
> Dear Russel and Thomas,
>
> Thank you for your quick response.
> Thomas, do you create the patch?

Looks like the fix should be like this:

--- a/arch/arm/vfp/vfpmodule.c
+++ b/arch/arm/vfp/vfpmodule.c
@@ -648,7 +648,7 @@ int vfp_restore_user_hwstate(struct user_vfp __user *ufp,
  */
 static int vfp_dying_cpu(unsigned int cpu)
 {
-       vfp_force_reload(cpu, current_thread_info());
+       vfp_current_hw_state[cpu] = NULL;
        return 0;
 }

Could you please test it?

Thanks



More information about the linux-arm-kernel mailing list