Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp76451rdb; Sun, 21 Jan 2024 18:22:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwsSJG5qU5FmMavpmNNdk2OgfUv61V+66rtW+QeHjHVQ2gTM3Y0y/ziYtB7hv40vXvbBdU X-Received: by 2002:a05:6870:170b:b0:1fb:75c:3ff1 with SMTP id h11-20020a056870170b00b001fb075c3ff1mr4082882oae.81.1705890171187; Sun, 21 Jan 2024 18:22:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705890171; cv=pass; d=google.com; s=arc-20160816; b=CT1vZ8rTC/1ORumbRwjpRjglzD1ec0sGbsLm3qXGndvm7HJBxdV3qxX8j5cpwbuukA B0ZKlK4d/f0Z7I/KukDcabbTlskFD9BGOcfk6+qvyCoo15xDobUom0NddHB1Me9Gexxz 9QFYsTOxgTg1sh2hNUACfZ/hOQ1AtPRX477qIX1j6BTBf8c943OTYEVBPK3vpIiadJkO vLb+Zz5q9TvzYsmpRUVGDU4v35AEodwQkGrAo7jaQHw1JBjTAMZZuv80ofnASTRIaRIq pHJo/9QU5AhmErhjDxLoUPNuB1Q784Y9mKOLTWKKsD0MkZFTORj3aoh1k6B8cJk0nvCo cq2g== 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:references:in-reply-to:message-id :subject:cc:to:from:date; bh=51EMcg+PBAgEZ0mhmYiB9IzZvkRu7zowTTjvWiSB3U0=; fh=XR7zij3A7RveB6ckmRe6ltVkHstJqU4o+suRHV3nYjw=; b=LePnAURJRrRNsWaJ31BZT7spFUQge117AsssrcFBklbgYgb7NskyWBZMh2Zzpv/5YU N9IvzQtVhHYwW1yINYWghViEVHg7nncambf8qa4t/8f2uDyZD4Kl/OigSXn6g64Unfyx c4vGNRDKmYU+OWh2I2gK6c+SMtwzsxkPzecA2saqShLHzH4iJIkMm9RALuCMuVpAs5op ONK1l4+az4AuEVmzBUCL8ybJHbjK9m4JD5kNg16cx5UkME0a/617bvSrxVaUXUy9bjV9 Lx2igm94Fn2NSj/cG6PBCV5edlxB3W7EdxSYJS4o867hSdD5DvHvklGIxzYY0PnpY2Jt /nWw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-32273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32273-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j6-20020a63e746000000b005ce7efd2eb5si7321243pgk.266.2024.01.21.18.22.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 18:22:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32273-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-32273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32273-linux.lists.archive=gmail.com@vger.kernel.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 5E41FB2106B for ; Mon, 22 Jan 2024 02:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D78EEBF; Mon, 22 Jan 2024 02:22:41 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A77E87FF; Mon, 22 Jan 2024 02:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705890160; cv=none; b=BDGMDYm9BhN60a8xDSBJfQJqXv8T80C02n9rfgsErp2/sXxCOkkB64afaMObM/JE3dcoW4V1VJ7ngMG9uVbXrls7wF/lsbDg3wApkzIGVdsOiv1XzpigrtaT0PVksa4Ehk79cdnzB66eu4b9VZ83N2ULiumxOoG9bJOcQrde5ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705890160; c=relaxed/simple; bh=XtDTghB3E5GNSYHyxWKsmlCfD8jRqRd6/mZgbu0lni0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jUdTQtRPPH0rpOU7mEqTQplRqpXbgnKAwNhIzbhVi5fHn5tk1m4erIMoKje6qyPevnPaVVbpWnbO0DaiocYbMu4Q0jVEBAcn528hrWhjry2XlzvEnkHUNU4RiikFtotUGt5geQTr7tbugvSbgSyMjut9RUEqQqf3oNIR74nI8Ik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19EF4C433F1; Mon, 22 Jan 2024 02:22:37 +0000 (UTC) Date: Sun, 21 Jan 2024 21:22:36 -0500 From: Steven Rostedt To: "H. Peter Anvin" 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 Message-ID: <20240121212236.02331f4c@rorschach.local.home> In-Reply-To: <020a1803-25c4-4365-8c53-291becd94632@zytor.com> 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> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 21 Jan 2024 18:15:39 -0800 "H. 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 opposed to correctness. > > > > There is no such thing as "optimize for correctness", it is either > > correct or it is not. Correctness should always come before performance > > (at least that is what Thomas has pounded into me ;-) > > > > If a kernel use to work on a machine but a newer version no longer > > works, I call that a regression. > > > > There absolutely is such a thing as "optimize for correctness." It means > to keep the code clean, easily testable, and with a minimal number of > distinct code paths so that regressions and *especially* uncaught > regressions get caught quickly. I call that maintainability, not correctness. It is either correct and works, or is incorrect and does not work. You can change code to be more maintainable and still make it incorrect. -- Steve