Re: (Hardware?) problem with denormal values on mipsel

James Cowgill <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
On Wed, 2015-05-27 at 18:13 +0100, Maciej W. Rozycki wrote:
> On Wed, 27 May 2015, James Cowgill wrote:
> 
> > Thanks! The kernel was the important part which was different to my
> > setup.
> > 
> > There's probably still a hardware bug in here somewhere, but before 3.16
> > the kernel was fixing it with the math emulator.
> > 
> > From what I can see:
> > Commit 08a07904e182 in 3.16 ('MIPS: math-emu: Remove most ifdefery.')
> > incorrectly disabled emulation of the sqrt.s instruction on processors
> > only supporting the mips2/mips3 ISA.
> > 
> > Commit 7352c8b13dd9 in 3.18 ('MIPS: Loongson: Set Loongson-3's ISA level
> > to MIPS64R1') worked around this in the Loongson 3s because their ISA
> > level was bumped to mips64r1.
> > 
> > Commit 2d83fea786d7 in 4.1-rc1 ('MIPS: Correct FP ISA requirements')
> > fixed the underlying sqrt.s emulation bug.
> > 
> > It would be good if the 4.1-rc1 patch or at least the 'case fsqrt_op'
> > part (which is the fix for this bug) can be applied to a jessie stable
> > kernel and then installed on the buildds. This should fix the original
> > problem of eso-midas failing to build on mipsel.
> 
>  What's the actual problem here, how can I help?

I just thought I would let you know since it was your patch which was
going to be applied somewhere.

The bug is that Loongson machines relied on the kernel emulating sqrt.s
for them (in certain cases) but between 3.16 and 4.1 it didn't and was
causing things to SIGILL.

Thanks,
James
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCgAGBQJVZfu0AAoJENp9Vyz7AWUHQF8QAJn2K+LGQ0xxfZONk5OCws1J
77JYNlNQDpB6kdUI52KeT5l6m78RwyTizsF2xsCDDYh1N5xrZyKiH7Stm/n3CHQl
5jlAR/V1EL+9hgB5G2N9p+TKR5IfUGJ0D5ZVxEPBjb0e2itXT3v4o/dRb/tSgRsy
WI3n1XoxN0VuOHgxYem8vVm4kBS96I+jZE51a5k+11XK4WYArEY/gK6HIoMr2d/E
+fOAFOyxw899JIhBEccaZXfr81jzglk3DT3avX5STBxuGHLVixRXGefL6o25IQRU
sFVlB504CR8PNTx9b0IYjfgisybP4OzT30ik64SM4NSYofXsFbRun/5CbvmdIUjQ
FNGx+bMliXqtcFsVskebp3x8HyHC9B/9ALjuTOM89HUhZ7yuAKQZqsb2oBlfs8a5
dMp6bfHSdbupg/xva7YWnJcscgtzgwA3viuTk0Nj56NuADhCJf80rYh2ispp9BDk
zKOltN0SSGkTu1LtRaJ63WRQpRhtX/UDDJU6SM0763DWiC9aHEwSk+5tzux+wGfF
p5GghN7yI2fDkyPm61MlrsGujprmdi/m9JuvC1N/R83IJZxMO2901IePxtFeUqiz
w4Xjm5Ajd0T/KaKq6beyHO9objmE2q3axRTZIWbVgRMBxlq6yPwky3po0dQpoCZp
KSscc1byNzuWw9B9hKh1
=xXuB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.