Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp79107rdb; Sun, 21 Jan 2024 18:32:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVW4Y1WWnsRPAEznwLCxWGJrOzR1jl45ZQ4ARAuUH9jaBikAJPWcIgoF7mNpIU4GJg21hw X-Received: by 2002:a05:651c:1a22:b0:2cc:7103:6b21 with SMTP id by34-20020a05651c1a2200b002cc71036b21mr1458057ljb.53.1705890737839; Sun, 21 Jan 2024 18:32:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705890737; cv=pass; d=google.com; s=arc-20160816; b=ippw5yxL/R/avboQBDNrU6O6JH5Fs1vMg8I8LwzSk9nG5V83CMHAc89xR0ucwRqOan HwK1cGLG18OemHCWzzB2cnDawcPnavyWGhG/NQi+gwZi4OK0M7q/dUToEIwKQrVrJeJi PJLjWOv+wAiGkPrqGlPX8sA9i/ZKyQnBvvJfyV8f7aft9OSKEeiEziK0izF3Wz/10q0j aJ84mlGCccbPtOt+2GtOPXoPO5pr+DWTQ+PFQDi0mRHU4zaomTX8slft6ZzoUUFBDNNA ChfeHHaSbr0/g0Ycnbq23Gu6RROIZAE+Q078eWp+m1BULNrtXyY/YNDaU8VDGSaBzWwT +iQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:references:in-reply-to :user-agent:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=f8Zaj8tL7OEgAEIVqJrsVZClrUxxhxG2gydEDFwI7ak=; fh=7wlQJDbHCz0DOgbgxog/5Chk79eDnyvXbDY4mG5y+uU=; b=mW3ERVh1h43Cq0Z4/mT3lo1EZg2G7eBmyXSXK6fd9OiobxzSPBBoCrNcvY9US3h3PK /SLcAfTbamXbJuo+IruEbvkxyT2m9osotrSv9PduVI3gm0VXG9QLVyEbQT9MYFI0IcZD 0fGYb+EA5+iGItxElUNTM7lOKSgslNSgUNKrhqo9vp7yZCrkvAmxvIUCOwUKKkRAzeym ikvUTkbAu2vvM/vn2dT2TkX5dUFzVUy9tleYCiYsQuGWxz15RQn04fmfAtb6rSP+GDmR nQp6IFpobeqKRwiUmxZRP7kIbl8O/jc6gkVRM5dihFrTIW1iuX7/NajetrkbJe2+OgES 14GA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zytor.com header.s=2024011201 header.b=V76PB5Xw; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-32280-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r14-20020a50d68e000000b0055c208eadadsi1056352edi.223.2024.01.21.18.32.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 18:32:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32280-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2024011201 header.b=V76PB5Xw; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-32280-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9459E1F21C60 for ; Mon, 22 Jan 2024 02:32:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A32A15D0; Mon, 22 Jan 2024 02:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="V76PB5Xw" Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEE10139B; Mon, 22 Jan 2024 02:32:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705890733; cv=none; b=lcdF0r15pF0qdojgMw6QpMZEh4ItG3pxCB2eZ2UkMN1fN0kDcPc1J9celAuZChh00ggKx9WxOjePsf0yBxjhdeccIx7FDIQMhnwSKuJsdI+jgsjtsdA78vaLheDI3lnfEkM4mo9Q5GMwYiRjHaPtl3hm1BHkJDmtMwl9pfmXi08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705890733; c=relaxed/simple; bh=r5T0H/VDG7E9xWa7Rli5BKYxTAuI171fVVn2vf9aQGE=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=lmwBY3r16iN0oiv4yEQugRsu+YmHcgqsosCv7WAcbaAPQQWyNTj9LIeSB/Q6WbprzMbgmW/xBeWPNTE7XY6QNn2/ZdVFthnqT3xUz1ogMdlifCrwSoJD8sZFqd4BqEz3qe2GlY3MqkdIQj6/Oq5nIOr2tkH9ropCk+rKnv8fbWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=V76PB5Xw; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from [127.0.0.1] ([76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 40M2VsD62299404 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sun, 21 Jan 2024 18:31:55 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 40M2VsD62299404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2024011201; t=1705890716; bh=f8Zaj8tL7OEgAEIVqJrsVZClrUxxhxG2gydEDFwI7ak=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=V76PB5XwN59fAz2ZtpQTXi/QuNUdwRujkutoENJlnhR9x+TZnoKUyGmPUDt6QDr0p EePdkmggbbM36pKur5WJyvv+sZ9SE4XvhTlj/qDCzakDM/DRTyunX6wAEsWgGwFskU VZaulZ9jd3FaTEgyCSEiPnFew2m8ssN4C+QQnGUdTZWpjLVFlpj+lRV6lu0pdpU653 RbQC9UEXaTwueJHKJ3NBQZAOE1hBoLv6w9hOPuBLqxn7zsL4ye69P+4nAyWOPFX6Qz V2wdeEGpiwYl5Zn7dw8Q5OZ/1hUTvQdKvCB04jwBDdyPMgXlaIxruWfbKUNyCw54Fm FMZ/w20fnYuqQ== Date: Sun, 21 Jan 2024 18:31:53 -0800 From: "H. Peter Anvin" To: Steven Rostedt CC: Thorsten Glaser , Peter Zijlstra , x86@kernel.org, torvalds@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-toolchains@vger.kernel.org, jpoimboe@redhat.com, alexei.starovoitov@gmail.com, mhiramat@kernel.org Subject: Re: [PATCH 1/2] x86: Remove dynamic NOP selection User-Agent: K-9 Mail for Android In-Reply-To: <20240121212236.02331f4c@rorschach.local.home> References: <20210312113253.305040674@infradead.org> <20210312115749.065275711@infradead.org> <20B57BDC-9A3F-4B02-9BA9-41477088A6CE@zytor.com> <20240121195649.7355e1d5@rorschach.local.home> <020a1803-25c4-4365-8c53-291becd94632@zytor.com> <20240121212236.02331f4c@rorschach.local.home> Message-ID: <50F640B7-AB54-4571-9988-EAD5FD5933A4@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On January 21, 2024 6:22:36 PM PST, Steven Rostedt = wrote: >On Sun, 21 Jan 2024 18:15:39 -0800 >"H=2E Peter Anvin" wrote: > >> On 1/21/24 16:56, Steven Rostedt wrote: >> >> >> >> Yes, but it is a matter of where we optimize for performance as oppo= sed to correctness=2E =20 >> >=20 >> > There is no such thing as "optimize for correctness", it is either >> > correct or it is not=2E Correctness should always come before perform= ance >> > (at least that is what Thomas has pounded into me ;-) >> >=20 >> > If a kernel use to work on a machine but a newer version no longer >> > works, I call that a regression=2E >> > =20 >>=20 >> There absolutely is such a thing as "optimize for correctness=2E" It me= ans=20 >> to keep the code clean, easily testable, and with a minimal number of= =20 >> distinct code paths so that regressions and *especially* uncaught=20 >> regressions get caught quickly=2E > >I call that maintainability, not correctness=2E It is either correct and >works, or is incorrect and does not work=2E > >You can change code to be more maintainable and still make it incorrect= =2E > >-- Steve Yes, of course=2E That's called failure :)