Re: [PATCH] powerpc/85xx: enable the math emulation for the corenet64_smp_defconfig
On Wed, Jul 10, 2013 at 04:40:03PM -0500, Scott Wood wrote: On 07/09/2013 08:49:52 PM, Kevin Hao wrote: I got the following error on my t4240qds board. ntpd[2713]: unhandled signal 4 at 0fd5b448 nip 0fd5b448 lr 0fd5b424 code 30001 The root cause is that the float point instruction 'fsqrt' is used. But this instruction is not implemented on e6500 core. Even this does seem a gcc bug, I would like to enable the math emulation in the kernel to workaround this kind of issue. I'll apply this, but we should add PPC_WARN_EMULATED to math-emu so that people know when their toolchain is emitting things that require emulation. Sure. It'd also be nice if we had an option to only include the portions of math-emu that are known to be missing in some CPUs (excluding CPUs that are missing the entire FPU, of course). Besides its effect on kernel image size, in my experience math-emu adds a non-trivial amount of time to a kernel build. Sounds reasonable. I will give it a try. Thanks, Kevin -Scott pgpdB800Itn4E.pgp Description: PGP signature ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
RE: [PATCH] powerpc/85xx: enable the math emulation for the corenet64_smp_defconfig
It'd also be nice if we had an option to only include the portions of math-emu that are known to be missing in some CPUs (excluding CPUs that are missing the entire FPU, of course). Besides its effect on kernel image size, in my experience math-emu adds a non-trivial amount of time to a kernel build. Sounds reasonable. I will give it a try. It also ought to be possible to use the FPU when emulating the missing instructions - rather than using the full 'soft' FPU. David ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: [PATCH] powerpc/85xx: enable the math emulation for the corenet64_smp_defconfig
On Thu, Jul 11, 2013 at 11:04:06AM +0100, David Laight wrote: It'd also be nice if we had an option to only include the portions of math-emu that are known to be missing in some CPUs (excluding CPUs that are missing the entire FPU, of course). Besides its effect on kernel image size, in my experience math-emu adds a non-trivial amount of time to a kernel build. Sounds reasonable. I will give it a try. It also ought to be possible to use the FPU when emulating the missing instructions - rather than using the full 'soft' FPU. Yes, it is another option. But it may seem a bit risky to do these floating point arithmetic in kernel space. Do we really want do that? Thanks, Kevin David pgp7uoRrB5Qb8.pgp Description: PGP signature ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: [PATCH] powerpc/85xx: enable the math emulation for the corenet64_smp_defconfig
On 07/09/2013 08:49:52 PM, Kevin Hao wrote: I got the following error on my t4240qds board. ntpd[2713]: unhandled signal 4 at 0fd5b448 nip 0fd5b448 lr 0fd5b424 code 30001 The root cause is that the float point instruction 'fsqrt' is used. But this instruction is not implemented on e6500 core. Even this does seem a gcc bug, I would like to enable the math emulation in the kernel to workaround this kind of issue. I'll apply this, but we should add PPC_WARN_EMULATED to math-emu so that people know when their toolchain is emitting things that require emulation. It'd also be nice if we had an option to only include the portions of math-emu that are known to be missing in some CPUs (excluding CPUs that are missing the entire FPU, of course). Besides its effect on kernel image size, in my experience math-emu adds a non-trivial amount of time to a kernel build. -Scott ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev