Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3980838pxb; Wed, 13 Oct 2021 17:39:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymrGd6R8ixZsHYqDZslHqWoySFfmcCEeAh20zZWJOst25lTWR90MUeVvL+FSTRBnMt7S/6 X-Received: by 2002:a62:a510:0:b0:44c:569c:5c3f with SMTP id v16-20020a62a510000000b0044c569c5c3fmr2535092pfm.50.1634171972400; Wed, 13 Oct 2021 17:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634171972; cv=none; d=google.com; s=arc-20160816; b=vzM8/LNP+zAYZ3BZ4AxSKaPxIajfTIcbC/pw02qFvCtOHtzVfeLEK23apWfcNT9BMm PTKc9eWtNLszgsPzrAk50mAX+BatYdmJWcoB+DrFH0AaI+D0KUSYANAyq+8W8kaT2WG7 FzWsxTh+aLDJu7oEZjQBiV9WWjdSnug7Av+bV1KydFU+/S/MH+rxlt8IGQaNzs3U1ysv en6YiX4h0T6P+CU0foFX8gVF1kCZapLVlvcZZeoXwKmSpv3DehZP3a7PwlLG7w0BlyUM Vd5HsPOUibpbmedVBRm+PmdFFrDC65/2WyzctKGLCaDbD7I7Ejdz+6LEaojuo8SdFrlB Z3aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=Sno8jZstyNzf5uySSaHO7htk0jh11XXqa2IHuG/RSb4=; b=z7DqoSdPhojOCUjhYxBdAsNn4wqAQXF6TOKNJpoRbZOK3RotQVj56vvZmwH1aXiCuR DdM41PPnDMnBggUa3yC5UaKHMCKLWEY+HCUjOZ+k+n4BShbWVOMo61TlPWlgb6E5i7U7 y0CX3OWANVWaHhu295QxPmEIOkeiOYcsxwHUfL1YcpJp6myUAhvSMJR4Y18j9oahTiwV 1vrgLZqhnhnS9XpU9MGHU1CbZwGo0vvc8qfDXAgwSuW4KaXtI2nfP9Bog6p1Wtt5BXCq ni2LTB5S16bVJMgDgqLDqxt7YxdYIQTqDlwhD5ToARVSnFODmWU8N7dsYBaYpqxQcQwC 58VQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mi11si11523448pjb.26.2021.10.13.17.39.16; Wed, 13 Oct 2021 17:39:32 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbhJNAj7 (ORCPT + 99 others); Wed, 13 Oct 2021 20:39:59 -0400 Received: from mga03.intel.com ([134.134.136.65]:53568 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbhJNAj6 (ORCPT ); Wed, 13 Oct 2021 20:39:58 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="227529552" X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="227529552" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 17:37:53 -0700 X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="481030386" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.163.40]) ([10.212.163.40]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 17:37:53 -0700 Message-ID: <5e2262a3-ec27-fa3e-c5d1-3a5e25a42042@linux.intel.com> Date: Wed, 13 Oct 2021 17:37:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] perf/x86/intel: fix ICL/SPR INST_RETIRED.PREC_DIST encodings Content-Language: en-US To: Stephane Eranian , linux-kernel@vger.kernel.org Cc: peterz@infradead.org, kan.liang@intel.com References: <20211014001214.2680534-1-eranian@google.com> From: Andi Kleen In-Reply-To: <20211014001214.2680534-1-eranian@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/13/2021 5:12 PM, Stephane Eranian wrote: > This patch fixes the encoding for INST_RETIRED.PREC_DIST as published by Intel > (download.01.org/perfmon/) for Icelake. The official encoding > is event code 0x00 umask 0x1, a change from Skylake where it was code 0xc0 > umask 0x1. > > With this patch applied it is possible to run: > $ perf record -a -e cpu/event=0x00,umask=0x1/pp ..... > > Whereas before this would fail. > > To avoid problems with tools which may use the old code, we maintain the old > encoding for Icelake. > > Signed-off-by: Stephane Eranian Make sense. Reviewed-by: Andi Kleen -Andi