Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp277477pxf; Wed, 10 Mar 2021 06:17:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0hjxq7hn1C1JucxJzQuqjCOnNTCJ3AhyPcpgqBJLyAZSTs0ShlkGTCoFNmldj8t5cL9AP X-Received: by 2002:a05:6402:22b5:: with SMTP id cx21mr3573030edb.27.1615385861720; Wed, 10 Mar 2021 06:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615385861; cv=none; d=google.com; s=arc-20160816; b=dwhDrlizYu1307AAEjoaDO1POC3v1ormy2Xyrq0bEG0CqAxROo5KfQX920sJzL6la4 VT+JbHZMtwrzZBms0n8kFGNqTsIYtPVLuxXiKhUwNbs0DREFCRNtalxlwr4zssuksghJ /faq5fjHzrydt51udzUPu9waaQtl2xidkFYhHQe1e5SMmQ2mfDioDk84Ix754+0xOe5u qbbgZhhw4AI1kmkIz3lPChaBQFhzFvWWgt7+p+YlbTOKHkWTGISwh29aAIklpbMICdMB T0X8/BuSGNjCuvHW6flf+7xlpwwqFUiKkBy22xI4hdjx+kQUjLQTh3jBVRy8yaULTi0x DQGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=cCOrJ+pxP+9Uc8aka4WvXBiRfsQ55NTh+OoKEcd1pDQ=; b=0xvUF4Htq2EDL4/ybyPwfpVHZfGYoCt9SWTGZWleaLgVx9pRw4snh57pl3dAvIXQXP tkaHcuizNu/G7o9kMoCtiR5OkZ3R6KxSAp73f8eWPCCtEUrUEiLep3xZkaG6U1dZ/gEP WkslfaJ75kAWBr7rt+ebVqe2UhknzV1ZHDykj5l+eyW7m+dH+kz9wx3k058GbrVbv3fv 5YfwN6S5iAVAAZs4cbLXJkGH9euZqPzKN4GUFhJA4wJkfidkwXrXrdhQsWmeygoX7oNu WkjMy2aoML6ipeZcCiFedM8FsFcsEnPbxZcxsd3LRAu13wmIy57oGaxzQH2hQ+Yr0K52 k/0g== 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 b5si11349896edq.537.2021.03.10.06.17.12; Wed, 10 Mar 2021 06:17:41 -0800 (PST) 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 S232747AbhCJON5 (ORCPT + 99 others); Wed, 10 Mar 2021 09:13:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:35262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232408AbhCJON1 (ORCPT ); Wed, 10 Mar 2021 09:13:27 -0500 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 926FA64FE5; Wed, 10 Mar 2021 14:13:26 +0000 (UTC) Date: Wed, 10 Mar 2021 09:13:24 -0500 From: Steven Rostedt To: Peter Zijlstra Cc: hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: The killing of ideal_nops[] Message-ID: <20210310091324.0c346d5f@oasis.local.home> In-Reply-To: References: <20210309120519.7c6bbb97@gandalf.local.home> <362BD2A4-016D-4F6B-8974-92C84DC0DDB4@zytor.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Mar 2021 11:22:48 +0100 Peter Zijlstra wrote: > After this FEATURE_NOPL is unused except for required-features for > x86_64. FEATURE_K8 is only used for PTI and FEATURE_K7 is unused. > > AFAICT this negatively affects lots of 32bit (DONTCARE) and 32bit on > 64bit CPUs (CARELESS) and early AMD (K8) which is from 2003 and almost > 2 decades old by now (SHRUG). > > Everything x86_64 since AMD K10 (2007) was using p6_nops. > > And per FEATURE_NOPL being required for x86_64, all those CPUs can use > p6_nops. So stop caring about NOPs, simplify things and get on with life > :-) Before ripping out all the ideal_nop logic, I wonder if we should just force the nops you want now (that is, don't change the selected ideal_nops, just "pretend" that the CPU wants p6_nops), and see if anyone complains. After a few releases, if there's no complaints, then we can rip out the ideal_nop logic. -- Steve