Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp965565ybl; Fri, 10 Jan 2020 09:40:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwmgy+WAEdq9iG5Iwr0UMBAiv3KUhiAUlQhUdHihERTG7Em0gA3FWlf9t3L+nlSWMawxOlX X-Received: by 2002:a9d:67c1:: with SMTP id c1mr3714929otn.161.1578678010938; Fri, 10 Jan 2020 09:40:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578678010; cv=none; d=google.com; s=arc-20160816; b=m4GP5vh0Dwz9Skp2LvpSpvp5XhK19kwt9+MLil5Z0g/wEMy9Zm9HH70xUq8QaIAstX YKxPwVvLbZXSXn4c3yv3uc8jgl9JMaOXiP9KIPg9YOTPCgyxxehW+96onlSTneqQFJO1 k5aiNTEscztf6BJZhnX8t0in5YlZ/URgCgaHoi6bivqMR6fD+l35sIvI25/2xqox9iJE umSGOV0j18C2PbubO6fN+JkSHh5kp1xKS2IlpJlGqfyF3sW5q7eGZwTV7kA+MXbCDICY Jo5f0SaGa/V0lJAELFpdb6k0LnBfxPwLOtyQAVkhoh6GZngdqfIggRyKSNoN5iRrIZGg OYGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cKP4lKxnIk04w8+g1orc/YxqCBY4uhvN1DKL/5O4vXk=; b=RRVNWYC6C0nAXlE8Ks9de4lhVlaTr1BPB10d2az3i9291ziLPgD5KNsqWHoLzZx72b JVrhulCyVov+GhDFj1eCJ/btL5BbVA1HL8B0+z5Ogr5bDwodGf1JmC9zY42wXFOQULVy pQYJ8THOL3vf2z9veHbady9USz1ThsELM8mMggzIK40WmaZLTvlUzRWsiVF5UAzM8N+/ 3oUYRK5QSESWiIiu0Q9ZAYqJz6OVEu6FbF/avPxivVyfxXHjtPsCcmwgsZs57E5WJ9y/ Een1WJsLom3Nmnda5BFEdOfsuu8kC5VdmzsnJeOCVDYQ+gmXRrqBMO4IJn3hiz11g8xa rTVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=HOYBsmgP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si1459470oib.252.2020.01.10.09.39.59; Fri, 10 Jan 2020 09:40:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=HOYBsmgP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728507AbgAJRij (ORCPT + 99 others); Fri, 10 Jan 2020 12:38:39 -0500 Received: from merlin.infradead.org ([205.233.59.134]:43472 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbgAJRij (ORCPT ); Fri, 10 Jan 2020 12:38:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cKP4lKxnIk04w8+g1orc/YxqCBY4uhvN1DKL/5O4vXk=; b=HOYBsmgPw0vmlmtFTaFV5XMEI 1IRk96plOMwNCGBoLTt4MOBxNxENKYl04zUkaEMfYbJSo6jtrc6kghQQK3W4UEZ35NZF3AEsmKbFd 2n+nrEcJRjN7xzv2M7Eor+XVq9K99nmYsM6qITXZVTDkm+UpkMUZYW6Yk4CHSnbcx2uGXKLcebWOf Cit9tTxQPlQttf9mY1cceE30gdYlfi4WF75d0pfbnK5gv0uhxd/TahSoQ38rBSwZev1NQUS5QiZLb 3SE7MdYk5rSDN9sxRMGG2rcevUemBSbMe/J93w/9wheB7HJrOs4AjsGWi2OO8DxXFeCHHu53iBEEw OVtJm+1Xg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipyEs-0005zq-1B; Fri, 10 Jan 2020 17:38:26 +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 1E1B5305EDF; Fri, 10 Jan 2020 18:36:49 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2B1A8201D9417; Fri, 10 Jan 2020 18:38:23 +0100 (CET) Date: Fri, 10 Jan 2020 18:38:23 +0100 From: Peter Zijlstra To: Kim Phillips Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Janakarajan Natarajan , Suravee Suthikulpanit , Tom Lendacky , Stephane Eranian , Martin =?utf-8?B?TGnFoWth?= , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org Subject: Re: [PATCH 2/2] perf/x86/amd: Add support for Large Increment per Cycle Events Message-ID: <20200110173823.GQ2844@hirez.programming.kicks-ass.net> References: <20191114183720.19887-1-kim.phillips@amd.com> <20191114183720.19887-3-kim.phillips@amd.com> <20191220120945.GG2844@hirez.programming.kicks-ass.net> <20200110150958.GP2844@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 10:22:10AM -0600, Kim Phillips wrote: > On 1/10/20 9:09 AM, Peter Zijlstra wrote: > > On Wed, Jan 08, 2020 at 04:26:47PM -0600, Kim Phillips wrote: > >> On 12/20/19 6:09 AM, Peter Zijlstra wrote: > >>> On Thu, Nov 14, 2019 at 12:37:20PM -0600, Kim Phillips wrote: > >> One problem I see with your change in the "not already used" fastpath > >> area, is that the new mask variable gets updated with position 'i' > >> regardless of any previous Large Increment event assignments. > > > > Urgh, I completely messed that up. Find the below delta (I'll push out a > > new version to queue.git as well). > > OK, I tested what you pushed on your perf/amd branch, and it passes all my tests. Excellent! > BTW, a large part of the commit message went missing, hopefully it'll be brought back before being pushed further upstream? Argh.. it's those ---- lines, my script things they're cuts. I'll go fix it up.