Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp826834pxa; Wed, 5 Aug 2020 13:50:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/pYnS7XnEoV0VoM1echPu6x0WU9WhAoEpCrLSxkqVFXIMhlzmq8fz9eFY0Rwa4yPOzgqm X-Received: by 2002:a17:906:7715:: with SMTP id q21mr1115995ejm.251.1596660632813; Wed, 05 Aug 2020 13:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596660632; cv=none; d=google.com; s=arc-20160816; b=HGUSu3cPY4HBYfk2aHim0ZcSUlmJE4CZskxy6DZYxkEKnoMpOxDdZRQOZHvvd30ocY WkGirJV6RZcYQvVgXfMElk6DZwqzjQ7T8yeRD51mfwXn/QO7vcJda/gjb8mZHU9ojzDo iggaylJQqXKZ6DPOnP9s6urQ0W8CajNk9hja4tf28+VeEic1EbXkvRs6NkAs5qWYHiPq BF3z7VLxUlsdRf3EfzB3htcZKAKMcS905spJxPOuUAs3vvmJN9ty1ejP6ne5eMkihlGP uHImYYGJM+cMcAwkgiru8i1xALIotr9Gk05r+2RnkgNbKgzOl1l8GpVD3lcSVrsPh3bE KpFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=+/Jynl5FY+y/Xvi3bC1j0z2qS/anGo3xAv70g3CSDdI=; b=tsXOrrBFFg2HyujeWsqce3oY6PIxg5m1bxJRb2iKHYHZH5wEyEQV/Wb6MTFtQIeKyf j9Xz6KdaLhLZdEQRDtG8LVBVjSBvDFcUOnMmkkyoEMTScRcqSH3YkhUtuYys0fItNDF/ kl/wLbNdGYep5WQ7d4sQXcyWebJVMmr1coaBHUSiC+nMKxFb7uWagLR+1SnzUDTRVMnv /GgVm1l8qAEgZezWe5Dbv4VKCXxCjGVHhOhJd0xDIChJlMwyly9o70GJjO8EFQoovtst 914iWVQl/fm7ZEutJDrLJOi5gZ87Ct2pBKA3T2WqUqky/IVtnQ8l5SGfykQKy/5Wo81h goaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qu9si2175393ejb.688.2020.08.05.13.50.09; Wed, 05 Aug 2020 13:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726392AbgHEUt7 (ORCPT + 99 others); Wed, 5 Aug 2020 16:49:59 -0400 Received: from out28-74.mail.aliyun.com ([115.124.28.74]:59095 "EHLO out28-74.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbgHEUt5 (ORCPT ); Wed, 5 Aug 2020 16:49:57 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1063297|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.100094-0.014619-0.885287;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03268;MF=zhouyu@wanyeetech.com;NM=1;PH=DS;RN=13;RT=13;SR=0;TI=SMTPD_---.ID03Ai1_1596660592; Received: from 192.168.10.205(mailfrom:zhouyu@wanyeetech.com fp:SMTPD_---.ID03Ai1_1596660592) by smtp.aliyun-inc.com(10.147.41.121); Thu, 06 Aug 2020 04:49:53 +0800 Subject: Re: [PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode To: Jiaxun Yang , "Maciej W. Rozycki" , Serge Semin Cc: Serge Semin , linux-mips@vger.kernel.org, Thomas Bogendoerfer , Paul Burton , Huacai Chen , Zhou Yanjie , =?UTF-8?B?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= , Liangliang Huang , linux-kernel@vger.kernel.org, "Maciej W. Rozycki" References: <20200731041018.1381642-1-jiaxun.yang@flygoat.com> <20200731061702.fxdfyxpvd6qrhoql@mobilestation> From: Zhou Yanjie Message-ID: Date: Thu, 6 Aug 2020 04:49:52 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/8/3 下午5:01, Jiaxun Yang 写道: > > > 在 2020/8/3 上午5:46, Maciej W. Rozycki 写道: >> On Fri, 31 Jul 2020, Serge Semin wrote: >> >>>> Requested by downstream distros, a Kconfig option for default >>>> IEEE754 conformance mode allows them to set their mode to >>>> relaxed by default. >>> That's what should have been here in the first place. Thanks! >>   Well, originally plans were there to have NaN interlinking implemented >> and no such mess or desire for hacks like one here would result.  Cf.: >> >> , >> , >> >> and then: >> >> , >> , >> , >> . >> >> You could well pick this work up and complete it if you like. Final >> conclusions for further work were made here: >> >> , >> , >> . >> >>   In the relaxed mode math programs may produce wrong results unless you >> rebuild all your software for the correct NaN mode for the hardware used > > Unfortunately most of the hardware guys didn't understood the > difficulty here. > They decided to implement their hardware (P5600 & LS3A4000) as NaN2008 > only. > All SoCs based on Ingenic XBurst2 CPU core are also NaN2008 only. > I was thinking about let Kernel drop SIGFPE exception was caused by > mismatched NaN, > as most applications don't rely on signaling NaN, but it is still a > dirty hack. Not a good > idea in general. > > Thanks. > > - Jiaxun > >> (in which case you don't need the relaxed setting in the first place). > >> >>    Maciej