Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp337976pxb; Wed, 3 Feb 2021 06:50:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3vbCDogIhUJ1klME0KFL29RzyVwVJ6gpnPL4EqgNbfpFJA3ixa82QsIozGn2DxddE4Med X-Received: by 2002:a50:d6c1:: with SMTP id l1mr3321606edj.336.1612363836086; Wed, 03 Feb 2021 06:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612363836; cv=none; d=google.com; s=arc-20160816; b=bUewJ0j9lPUg8sbWCtBRTe+OvIlwMnwCEStDVoPakAV6ppdkhFwI/OohnxnLJ+l/gi Vr9wkzPY3emvgmQ8EdGGnuXauQfxdCtILWM7frOMeIU9FxZgCLziHX0X+oTkcSbO0tUE 0qPOc5vzu+rkhH2nev004eTo8z6XFLF80gvM9iIx/0BRpWl0mYw9V7nagBdM2BvgLNTx /MpiaplG7nbPwVIwTgSpXeVS4PhQ0wJxPkMkF7TMcePZWcVf2CtA0+CeNK+bsvGNbMId jUUZ+p7jbQqtz+ZYk4WfsZrul6/mn4HO5rF1nuBjCY819f4hqPz1jmWfupVLHwN8ZEui rwTg== 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=yXNf+0RKaDSH+SxTfPcL4g60l+zjyKbIEJCEGw1b2J0=; b=tGfFgx1MhuLzEDUTQcr20dMTk1yZhRoK6dFc3cPoJ6TzzqXLCVeySTJwjJ1GLhL8l7 17dX8W5GTSA6Rc21XYUn6oAOVYzK11nKiTd3od+nKAqtkUTty0k0mft3pik6C3VdXzAF 2YCoUU/6JOW8jU4OyuJccEN70B34eN4V+sahodMZEj6elZwro1DcJKBU53Swdh3OKrJ6 EieDNmd51B2D3/6oAm6teDDqN/nU9KvsfCRuJgoP42XjYhQgAy6snBjSEb224JL79q3k 8VGbsGxQMmiYWhJT8b7UC4Z9aGEBWwC8vKH2hb3lmvbWwPMFc050W4tJ2TZnkisNubAz K/eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=e0+hXuKb; 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 r25si1422949edc.395.2021.02.03.06.50.09; Wed, 03 Feb 2021 06:50:36 -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=e0+hXuKb; 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 S232847AbhBCOsS (ORCPT + 99 others); Wed, 3 Feb 2021 09:48:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232630AbhBCOsR (ORCPT ); Wed, 3 Feb 2021 09:48:17 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1D5FC0613D6 for ; Wed, 3 Feb 2021 06:47:36 -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=yXNf+0RKaDSH+SxTfPcL4g60l+zjyKbIEJCEGw1b2J0=; b=e0+hXuKbfnWnpF2sMvSccsm0GW ijMnHKlMmEIdbJsKo+zmUANm5qU8tf54Zb+prlE7EE0r/3jn7JmYiEIeAycNPiESx5LYxGC709GdK kuaUXLUlc0Wl364pNmD+grrR8LYT4NZgaEhBIt9Qoit4sgGY7OFG2CccBK49OVRy1CeZvtTPmrYYi ayd1Lg0o3+Canhv524V9bmVDBLTF2peMXaFpRwx+2bLTW8e3huBHB0au/1QMBztF4CP+5q4aTwLoz rCMCW/vFjAkK6NJJJB0Sf0kaZfNOVHZapPOjQvVMOtPVVPkGLm+8iTU+uenjlHyyHf6fTH1+5b137 dWr6wifg==; 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 1l7JR7-00H2lZ-6W; Wed, 03 Feb 2021 14:47:17 +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 4ADFC30066E; Wed, 3 Feb 2021 15:47:14 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1521120C633CB; Wed, 3 Feb 2021 15:47:14 +0100 (CET) Date: Wed, 3 Feb 2021 15:47:14 +0100 From: Peter Zijlstra To: "Zhang, Rui" Cc: "mingo@redhat.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "jolsa@redhat.com" , "namhyung@kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "kan.liang@linux.intel.com" , "ak@linux.intel.com" Subject: Re: [PATCH 3/3] perf/x86/rapl: Fix psys-energy event on Intel SPR platform Message-ID: References: <20210115092208.20866-1-rui.zhang@intel.com> <20210115092208.20866-3-rui.zhang@intel.com> <70b71922e7f84234be70c7104969331f@intel.com> <03e5815f89d749a18b47bdf986181f1f@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03e5815f89d749a18b47bdf986181f1f@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org FWIW, your email is malformed, please wrap at 78 chars. On Mon, Jan 25, 2021 at 06:11:14AM +0000, Zhang, Rui wrote: > In short, the current code does not allow RAPL energy counter to > return 0. And all the work I do is to allow Psys energy counter to > return 0. Ok. > In this way, the Psys event is "valid" on all CPUs, so we don't need > to handle the master thing. So RAPL is mapped to DIEs, and IIRC we can have multiple DIEs per Package. But the master thing is a Package. Is this all moot because SPR has one DIE per Package? Because if it would have more, there's be more interesting problems I suppose.