Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp286112pxf; Wed, 10 Mar 2021 06:29:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwu+ndHAYx2fCHGwtzVezG/nPnMq1zHF1v3q7ZPhrV1wWU0UstbNORpcxpdpwqWPmPoeN4l X-Received: by 2002:a17:906:1986:: with SMTP id g6mr3844276ejd.533.1615386550627; Wed, 10 Mar 2021 06:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615386550; cv=none; d=google.com; s=arc-20160816; b=AJSawtqbdtCTxg71uRqrByJtq4LWg4I5ZgFK9j0864F2IzDsJ8r3tgqjuKp87S7tdm NEyBQwndgQYlIUbhxIZNO1PFXjmlO4XYViw3w26pdd0Bmgzg7jx4OlaEk2zEjagVea/w eoABgGjMO+3bpHvTWU4hwylabS9VE6hF9MD/O0bCtl9bcmA8JihFsZI/aQydivqq8+Iu IpPELAAhOEV93aWryio14yShVw8K8PLpq3kwnVXGUovMS5+46gCRcXuvs2VvH8VFUtTd o+0TQOTJ79AKNPElRu4DTWvH1nypJzSqa4JtUgEGxLdk0e2atyv1ZuHIcvtGavDCzUD8 N6Pw== 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=plOvh9vyCxI+W79dsawsRUqmt5nDXxIS3jse/b6xlb8=; b=waudi4i6N2BS27GSlny+iybTSAt9cAAU7ziS6K0hMI3Lr8SdFxrmip/gMk7me3M9tb OKYplsbFPmuErhOq1uDpZFvDl/lJnQ/uXl4QxGeUsIbC0KPeiagk6DHBiJrocqHfCTOt RNQFnlQvNmNClLg+MeFDviulBRMiQh8U8tSOzT1dsjagMSHdLP3j7wu6JHhRq2/UWxMC tr1DW+4HJLDm0sFtrHpVTCpbfQG4kkbcEN5RocS0X413pTScRVcUY3sIwLN/3FEk+IJq RCqqXzaHYGZfr1Na9rHxjpXz7HED8m7c1hqc1HdJ/F5TcyUpKsbcYTRC0cuWAcIouZXy ypSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=P12Z1QOJ; 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 d10si11655546edp.256.2021.03.10.06.28.36; Wed, 10 Mar 2021 06:29:10 -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=casper.20170209 header.b=P12Z1QOJ; 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 S233035AbhCJOZO (ORCPT + 99 others); Wed, 10 Mar 2021 09:25:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232746AbhCJOY5 (ORCPT ); Wed, 10 Mar 2021 09:24:57 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98149C061760 for ; Wed, 10 Mar 2021 06:24:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=plOvh9vyCxI+W79dsawsRUqmt5nDXxIS3jse/b6xlb8=; b=P12Z1QOJ7Ys0pmztT9aYj3qM0T eeGReMBtFtdOaTIWJHIpmZN7wBuQ4L9uY02X4f9WZXO9WBMn1gsfEgg8qD0G0kgxBtF5LvLGu3C1I JTtMQdQB3zqjSyrsXkHZcn2pDrSpsqInvZ3l+iaJrpz7NmjXN9BBvT0BPMY3fTBn8PFtOpqFXYCbq AndpkJ/1F1qJ+sFNPrYod4TgJSvtTheoWby1wR17zcZ17UI/kir8jrYGvaHMDmAlNOFi9WzDimASd 94EbYe/cni19rSsGrmHwKuQ0eTAvKQvlJ3kclzDVKGhtSkoIicjKswgpPNYuLhpXoDMCVco5XNJnd NUnbbLBg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lJzlY-003gZB-F1; Wed, 10 Mar 2021 14:24:51 +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 4FB063011F0; Wed, 10 Mar 2021 15:24:47 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 43A9C21ADDC04; Wed, 10 Mar 2021 15:24:47 +0100 (CET) Date: Wed, 10 Mar 2021 15:24:47 +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: <20210310091324.0c346d5f@oasis.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.