Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2488579rda; Wed, 25 Oct 2023 04:27:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVnsLofgNYl5wTXKf+W43oSmcliaG+rxsWbA+CUWB3rx5IV0MyTi3Nnw2K/o7akORDqEeR X-Received: by 2002:a0d:cb10:0:b0:5a7:c4a7:21c3 with SMTP id n16-20020a0dcb10000000b005a7c4a721c3mr17308755ywd.38.1698233239468; Wed, 25 Oct 2023 04:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698233239; cv=none; d=google.com; s=arc-20160816; b=Uid+AfhgokTTOuLPmqy62H4oF5oBlDHaUq206VYgShFDa1OAIWWnmuqG+QqWiGEV3Q AGEpcJN8FQjR/ELQIpX2qWgveY4B1Z7KfMoApgtsQqWrrzewe5Sz53D1TLGhxdAB8T6Y bKWWKhaf3B6wiMk0EmsQSxS8jx7kkMH+g7+2K6SwbibZpa7dD88JPL54B0RZbLZZTQAk Jhk2RudEDQR/JvvG2Xkr+dO6lMmze6Gr3PJHlV3cetKhBSEdhDgBmASpHmW3miq71El7 PARn5qUduz8KIh51AqVxHcCiTsqQ5UXet+9Hws6bR/2HlJnl7Hjd7pHR6TiH+MAPztV3 oxBw== 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:dkim-signature; bh=uZXlIi9xSouyMAOV5X3MUQbjoo2IvBjvdA64r22n/1Q=; fh=CkETTnIQAqG0CXR4e8A/WxjDzPdbyHIBcu90HmLosMI=; b=BNJFWJo1QV4pKvzpZofX+mOn87Kds6KFuhh9hKC1oECwjrgm4GUCiA/zGmT/JenolS 3azi0QA2AnzVA/0829nQJkr/N13f7L8LajJUcA2Q4eSrXKFOJd92x0onRqgPwcxtSTFG 6kjsx1axWw2WPXxN/j219dwT7b4dkcM5DWlB2bJyiIdo/uMxpeX69+r6UbIVj+kyfFdQ lEEM9regK313C5SWB4dmKw+FZzHDEGgHrNlDm0AvHBF56iU2WukLztBK2ICjQucjF4ls 7w8GvDrRwA+/QwLTthPcorOVLeRGfEXVyaNeyd7wfYadgFIvXh1SBtMg6FOD4y8E/06L zq+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iF14QKz2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id i200-20020a0ddfd1000000b0059f4eb8ecbbsi11016111ywe.329.2023.10.25.04.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 04:27:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iF14QKz2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6595180BB50F; Wed, 25 Oct 2023 04:27:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232835AbjJYL0w (ORCPT + 99 others); Wed, 25 Oct 2023 07:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234703AbjJYL0s (ORCPT ); Wed, 25 Oct 2023 07:26:48 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21596137; Wed, 25 Oct 2023 04:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698233207; x=1729769207; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=U898RgRa9XJVhqUowGUXC2Jsf0LatDtgPXZQS2KdZeI=; b=iF14QKz2tDt3iZ9VMp7u6bPtqI2PKFZ6iuO80l5FkwGmIYI8WswE6qTB FZIeCqHOQeThBq06dQBBEuVzToKhozWDjWegTH8y2CkfZBOOn0CR9G2RU X+Nj/3jL/SKOMrhSwxnPzedmay5eVjXwoMFz5PZAEfCQ9ovTrwK6BEUBO XHyQIPLOGZ8Bo2bWHE6W64pkI0QMjRSZMgvwikgOKkuVAiQ10e0UrvSTE LCkDWFZefRMA4GyEdrZYqQW7+Nr0C6T6/L+d2dt50pXR2/ZcHDp5B51IN kIgOuRXJ8TJExh9fSe5oo+mYvsy1ogxkBu5duhqHbcmooOHGPzSv7XhZN Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="8846492" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="8846492" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 04:26:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="6812800" Received: from dapengmi-mobl1.ccr.corp.intel.com (HELO [10.93.25.165]) ([10.93.25.165]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 04:26:36 -0700 Message-ID: <305f1ee4-a8c3-48eb-9368-531329e5266e@linux.intel.com> Date: Wed, 25 Oct 2023 19:26:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [kvm-unit-tests Patch 4/5] x86: pmu: Support validation for Intel PMU fixed counter 3 Content-Language: en-US To: Jim Mattson Cc: Sean Christopherson , Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhenyu Wang , Zhang Xiong , Mingwei Zhang , Like Xu , Dapeng Mi References: <20231024075748.1675382-1-dapeng1.mi@linux.intel.com> <20231024075748.1675382-5-dapeng1.mi@linux.intel.com> From: "Mi, Dapeng" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 04:27:16 -0700 (PDT) On 10/25/2023 3:05 AM, Jim Mattson wrote: > On Tue, Oct 24, 2023 at 12:51 AM Dapeng Mi wrote: >> Intel CPUs, like Sapphire Rapids, introduces a new fixed counter >> (fixed counter 3) to counter/sample topdown.slots event, but current >> code still doesn't cover this new fixed counter. >> >> So add code to validate this new fixed counter. > Can you explain how this "validates" anything? I may not describe the sentence clearly. This would validate the fixed counter 3 can count the slots event and get a valid count in a reasonable range. Thanks. > >> Signed-off-by: Dapeng Mi >> --- >> x86/pmu.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/x86/pmu.c b/x86/pmu.c >> index 1bebf493d4a4..41165e168d8e 100644 >> --- a/x86/pmu.c >> +++ b/x86/pmu.c >> @@ -46,7 +46,8 @@ struct pmu_event { >> }, fixed_events[] = { >> {"fixed 1", MSR_CORE_PERF_FIXED_CTR0, 10*N, 10.2*N}, >> {"fixed 2", MSR_CORE_PERF_FIXED_CTR0 + 1, 1*N, 30*N}, >> - {"fixed 3", MSR_CORE_PERF_FIXED_CTR0 + 2, 0.1*N, 30*N} >> + {"fixed 3", MSR_CORE_PERF_FIXED_CTR0 + 2, 0.1*N, 30*N}, >> + {"fixed 4", MSR_CORE_PERF_FIXED_CTR0 + 3, 1*N, 100*N} >> }; >> >> char *buf; >> -- >> 2.34.1 >>