Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2026126lqb; Mon, 27 May 2024 05:44:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrYnTNlGvtvsu4pAgO9OB1ScBA48dit1GWxBIH2fXY12O9KmhfSg/ziDvhwNdXL/k3pveCsy3RkG8xBPsHUgRmFR8qC2tlmIKOsdjDiQ== X-Google-Smtp-Source: AGHT+IEanlZ97AMDA7TRs7b6NiAXKDxWzpIK3UzPbAACFW44l42N1bSVH7PpjJPT5cxq4TkyCI30 X-Received: by 2002:a17:90b:1196:b0:2b2:7e94:c5e0 with SMTP id 98e67ed59e1d1-2bf5eb32de6mr8016988a91.20.1716813875560; Mon, 27 May 2024 05:44:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716813875; cv=pass; d=google.com; s=arc-20160816; b=GC0+RPmu0rwkZhg1KQsGjOPJ+M+VAJiy9myljzqH6EvUQY2+EioRw9a65fkqmkQQCe Hfa4cMR4L9EvTwSfXXwuY1xJNerzrc7EE77XJl6ljRFpYlyGSOi06Qg4xasr2cTTeAL+ 1G7hC2UJlxGN9BdYwtg1AmY0K/Exbvfhdjh5aNy4ci+EK0LxuszPiEbUeZYk5QeQ2wnV 7yHZ/g+6DigD/CESofpEMVmkrqXMPt7nug0XhKvO+sSSmv2LVX059jHobDH+mO4i0qh6 qv78pVaMOFqW+z/F9A0lKCMW71ZauqnQ2144yM3DCdoAvaufruE4/c5m1hUWjEQa1IHM xJ6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=U0MksHKwBICLwuSG6OgSnqATRY+MnKcyIIXC1UuoUb4=; fh=ydvQP3YhpfS63EFYAilDgzSJpnz3RgPiWad5xLOiKaQ=; b=O31DecT0Ql7E9Ps8z6X4/zsc5k23JJt5e0amiG5Tgh0CdfOzo203fVScwnNRgC2nRM bUnn8FgDMusElIXnA5+KHh7CfNh/iRzjKW4z02Ou3KRif15SvU1Wf26X5TAqESP3PULv 8kbq3yoKwhqyaPewj0bTf3UkVSk90G/6AoE6QoHq6HUeBnXdXZ5FyPrEn8oUfO50w+5N rUeaS0UCp2sRfSSofDTC9IEvoc+UkAJhx45kk/WsA/qRXPWD7Rkv/0aMBrMSLpLgY0Tv dLwyw1FrI+O+Srn5EDvoJXuHDYmf2PBsliiv/PTIW6SWsv9rGn30gZXVRPl0AdHsHNfR EEoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cSOTj1+6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9ed930bsi8080550a91.16.2024.05.27.05.44.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 05:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cSOTj1+6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 64599B2256C for ; Mon, 27 May 2024 12:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7757615E5B7; Mon, 27 May 2024 12:38:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cSOTj1+6" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 145CE15DBD1 for ; Mon, 27 May 2024 12:38:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716813523; cv=none; b=mjGa891maaty9tL2rZXqqj2Xo/2KPXBAZxP4YK9W0LyJyurXkBMC8q6ScrrmjFF68Pc56fjc0fvOVITWe0tJlAZIq0+CNT39ZLULFZ1s/wFsVtiMvnCF1nd5G4aWUzDC/bsINMwvyClqfE1pb+Fe5BdsAI1wQCLFDxk3UrH3BBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716813523; c=relaxed/simple; bh=KUPmkaVNi0PLQviM9npC6+ISIfhFnQySeRNyLrPRQXI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WJLRVeJ0yrW3oUb9Wfu0Qr6M/iZYx9F3VLVK5P+3wRz50Qf8y4Wk2QtugovJta606sbCA5oKyklXwPvlUUTydICemtYDsmRO3EKFvvzNmz1rnkJ0WcJ7LqEcwKZgT9yh0AGIDYRmyNBA/IqipXWAYeW+TPugcdvM5X/IHuX2B9s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cSOTj1+6; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-529614b8c29so4833871e87.2 for ; Mon, 27 May 2024 05:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716813519; x=1717418319; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=U0MksHKwBICLwuSG6OgSnqATRY+MnKcyIIXC1UuoUb4=; b=cSOTj1+6tgggUjBV+F0I/iX9/C7/h5mRFTUWEaHczTBlPedAmFhH9/HhLde6D2s5yb CpjoEvD2hdnHecfwb88IpdMYmGpfpuH6j23Q+9MarOkkgnYFqwelGfe7HXuUfMWoclUF NaML2RsFSS36ZuAy2Dp4ppQmHETjJ+UPDbTa7OohaJVRkhdYgeEmWVqKq5JL7Ps3C2Zv d9IYyCVVSXpr9YTUt4csDcEP3D5Ij1h3DNH6W4xW2Vvf7ZO3O4E8Reg3bhdwqsQgVZaW IZmo0D4u9L2Ry7+dyxQJDgDBYGRmqYSmkH8Dho/T+euE8YEP14bQjket9kNpHk7C0YDz oCGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716813519; x=1717418319; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U0MksHKwBICLwuSG6OgSnqATRY+MnKcyIIXC1UuoUb4=; b=ckadfMGGQbIe0K8wSduh3SW3T6t+rl4cV+V7gFcZBtY1WvYdftx/PjOZ8x62Ir/uVU fFiXfmkUfRsYalnqFVIQz1Dr8hy8p8vQ+Fb1jesmJGzRl0IjJjhR3+lfwuKAWUT9LGCZ uTnnRlX2eUtOX5jGppEJA9EG5avj7afqHYdtJHe2RHMGH9b+PMRxEYqDZ7EbQFmyqSIj flnLH2JTtjhgRSUID8RNtmsdBW4YTfFPhwkAFKOk3iQKBSKdNIiBFGWw5GdZmqJM2C74 lhEMRxf5xNrImM7dZAY/cKtCLZ57+mckRQ/96jm0HXXt0GMqshu5Y+5ZneyyXat2BBSJ mXrQ== X-Forwarded-Encrypted: i=1; AJvYcCXpoqZSRrWYqkmdal9fZhulidh0j8XHThOMpzaBUeanEmbsjD+W9xzundTn8XjjDf8hZ8Wl9zLtaUt0t/481AYMB/ZwhJ+7Sn5XTNii X-Gm-Message-State: AOJu0YwpwEWGOTITGWEtd3vOp6cUGjDKvRV6OCsa3DMi7pMZAkSjOvxU rvzVMEIR0TFo0jdMzSYk1rSoKmjtFhGFg11CVfRABTy9sNuiSVGc3rxFKR/ScV8E5fPd7qtXdy7 uEU4= X-Received: by 2002:ac2:43b9:0:b0:523:ae99:b333 with SMTP id 2adb3069b0e04-52967a26df9mr6335447e87.64.1716813519261; Mon, 27 May 2024 05:38:39 -0700 (PDT) Received: from [192.168.69.100] ([176.176.152.134]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c818139sm491740266b.35.2024.05.27.05.38.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 May 2024 05:38:38 -0700 (PDT) Message-ID: Date: Mon, 27 May 2024 14:38:36 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] MIPS: Implement ieee754 NAN2008 emulation mode To: Jiaxun Yang , Jonathan Corbet , Thomas Bogendoerfer Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org References: <20240507-mips_ieee754_emul-v1-1-1dc7c0d13cac@flygoat.com> Content-Language: en-US From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20240507-mips_ieee754_emul-v1-1-1dc7c0d13cac@flygoat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/5/24 14:34, Jiaxun Yang wrote: > Implement ieee754 NAN2008 emulation mode. > > When this mode is enabled, kernel will accept ELF file > compiled for both NaN 2008 and NaN legacy, but if hardware > does not have capability to match ELF's NaN mode, __own_fpu > will fail for corresponding thread and fpuemu will then kick > in. > > This mode trade performance for corretness, while maintaining "correctness" > support for both NaN mode regardless of hardware capability. > It is useful for multilib installation that have both types > of binary exist in system. > > Signed-off-by: Jiaxun Yang > --- > Documentation/admin-guide/kernel-parameters.txt | 4 +++- > arch/mips/include/asm/fpu.h | 15 +++++++++++++++ > arch/mips/kernel/elf.c | 4 ++++ > arch/mips/kernel/fpu-probe.c | 10 +++++++++- > 4 files changed, 31 insertions(+), 2 deletions(-) Reviewed-by: Philippe Mathieu-Daudé