From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cSOTj1+6" 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-Google-Smtp-Source: AGHT+IG1nhVnExbK4ShBNQp8AOL1BeyHFQcVZ25huQqTJip9CI8Tg0co5jAULq+rDZ4Vc1qdUlRr3g== 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é