Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp498813lki; Wed, 10 Mar 2021 06:34:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHkcPfaHl1XRZCHcwAJ936XKoikr6M4Tn9khBQowHlbnCiJRqNuPHAWwiPCgU5CQHLGzNa X-Received: by 2002:a17:906:7389:: with SMTP id f9mr3882887ejl.423.1615386862523; Wed, 10 Mar 2021 06:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615386862; cv=none; d=google.com; s=arc-20160816; b=P4rvl1rrp57yacSIi6oBfQba8yp+BkYpbisMJjX5MnCMhN6tAlHltTKjIPaIzXHdst ecFnjpCbgHM3u/oddfzkhhD3h0T2mMMqSIPGvgpVf/QHb1asdIdYEQVkxe3w7Lxp3bqX /UHfhv1dhqRo7sUMyOhwwxVpzholDYzgV0bfeWn+hdl8V2sCtwUc78bCG7ylO/LBPong Gx0dtkYgHwhCuovWCGLLVRdlMP9T6nhXGS1HxaIUWugIuxFA7kwwpY409ICpDOe98NFQ 2eP7NkA1trm6/Ksgpj0yV85TCeLJHm/FNdGD8lG+rnQzoQPlx7skCO8Dx5pBhfUsXQzK HAMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Rm9J/C574jgcTKjLZ+JZ8HyxabeU1qnnBxPkGVf3hGM=; b=VG4lxP22b64g36z3nu6vEfcsbfRT7WTXzigfVSb5qZWsDVE+5nLyXSuCR9KGp24jyW +Y5RuppxScZgMZSQ36YcKR4mSB4KSIFL6nZ71jK2bxqqSEVg39NOQhOCKFoiyR3lwcA+ 9mhLisk90v3QpgzooHfhSC+HgpZSVzcxH9L8MrGTTAPd4xLb3R7UXto3JiEmgquEZJaq jHbPGbnzJ97zT1a+nqUenY+2XEMlH/YFKaFpSBaXk7Prsq+1gz+8+mlBwsT1KnB64XzI p4WyD7NqcAB26vQ5c4ESSKz0HRFq+QB2/LGE8I1CJUrDKyslx1CjIUMeV4E6Wz+q1dc7 N6NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=k9aVCB55; 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 t15si11085162edq.164.2021.03.10.06.33.59; Wed, 10 Mar 2021 06:34:22 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=k9aVCB55; 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 S230341AbhCJOab (ORCPT + 99 others); Wed, 10 Mar 2021 09:30:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232026AbhCJOaI (ORCPT ); Wed, 10 Mar 2021 09:30:08 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34ACC061760 for ; Wed, 10 Mar 2021 06:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Rm9J/C574jgcTKjLZ+JZ8HyxabeU1qnnBxPkGVf3hGM=; b=k9aVCB55HjbnU7LECB108qMPvm xaIMU9rwGHkWM7NsiZqmBpyiuCKin6FTcLShn2XzwwR/w24sDVoHX5stxr9wG/k/nFuzj3gIUEcFw mu7qeJtU+AxUrg3r4kHexuPT1bTWWlyejKLLn2ByMiF2mYrswBZ51gBI3Cp9jQJ9PH+FnIEcrZvUn QKId6UA1s19mD4MKQnPfgwH+y7/B8VnVLLWshGeEjiB+Vx/fQAoX7ogHS+t4ZAl/vCWjM+IDIQ/Vj Qpp/MtkRw5xmlmimBKOj4gTvPKmwNWGff3iJR6VVJnH7oAL3ZSVy1jqpOddTGlPHe4+uwp0bsc4KQ ipXT3zlQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lJzqe-00722F-0P; Wed, 10 Mar 2021 14:30:04 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5C7483011F0; Wed, 10 Mar 2021 15:30:03 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1CE012366366B; Wed, 10 Mar 2021 15:30:03 +0100 (CET) Date: Wed, 10 Mar 2021 15:30:03 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: The killing of ideal_nops[] Message-ID: References: <20210309120519.7c6bbb97@gandalf.local.home> <362BD2A4-016D-4F6B-8974-92C84DC0DDB4@zytor.com> <20210310091324.0c346d5f@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 03:24:47PM +0100, Peter Zijlstra wrote: > On Wed, Mar 10, 2021 at 09:13:24AM -0500, Steven Rostedt wrote: > > 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. > > Nah, just rip the entire thing out. You should be happy about > deterministic NOPs :-) > > NOP encoding is not something CPUs should differentiate on, that's just > bollocks. Also, you seem to have fallen off of IRC. Anyway, weren't you the one that was complaining x86 was 'special' for having different NOPs the other day? Fixed it ;-)