Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2093904rda; Tue, 24 Oct 2023 12:05:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHsROBIjm/WmckExBN4LJFMWsNXE/IDu0aa8LWlZHM/xu1qmJQ88RWGdRCjbe9QA4xW8ae X-Received: by 2002:a17:903:1246:b0:1c5:efd1:82b6 with SMTP id u6-20020a170903124600b001c5efd182b6mr11034151plh.30.1698174336305; Tue, 24 Oct 2023 12:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698174336; cv=none; d=google.com; s=arc-20160816; b=OBV/HwW/DcjdaKnA9HsD9fXJh2IWGzFK71tBu+ptHHy/dLySbm+f7XeTMYu67fSXp1 Gcsubv7AP4G4DJeVmzRwY3YFk/W1kYZhS5OXCF7Ss502h33tolyc/PquLlBssgkFa8gA R3mnOC7OGO5y+d2Q/oBQverJv3pFMMMaYOPiugIqMVzfkiHMtjzS9DCxqtY9fFjWJePj tOXjhArR4lLfV7qMXk2vSNNgeoL4Lc0rc+RIRwB4hj8Wt0iBmvnV5DdrNkoMaisN9Tma xI7n+hnxGbuxW7cwTZnFwwxLRDd0vhrQ2P3ibuTdgQtIcB780chbq/OrLLRpMST7vEfW 2VCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gOkuHsAfrJFLE7fNlHS5Cbl0lv5GMVYVvk6+mbHAbI0=; fh=IU++XeWNHARdCmzNX1WL+adJi0RuNVWZFmryfnQSNc8=; b=XXBGZH9SaBHLIgRlYh3ONkojdrXPpMhxhqG2isNyobfSzzKQ/HxTlqp67/c8LSGpK2 jLvGHK9XP2qkf/EmNuYHfQu+K10+ypbOur+YDqBun7GaLRmtcka9LDhJ2MeG7PnbIUOj oqOeS+C2poH6Sdyx3P86FRkvHltT6FoDrDLI3c1Tjxbe/SwsabTLega3wzb/EMSBgian a2a8ldNEo6oa/+CoanU8z3zhU16ylc1xDsD8DbWCeFjsYdBS++CYZwNUONbv3QND1nkQ 1/fjnxf7g4JlM9yhlJjjYlB3rmR37smDM3MB7rdHoSfu9ql9vb9d5oGQuyfaA0AQF08X jYAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=HaPNVzu8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id g7-20020a170902740700b001bf5c12ea06si8481432pll.404.2023.10.24.12.05.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:05:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=HaPNVzu8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 29178802318F; Tue, 24 Oct 2023 12:05:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343856AbjJXTF0 (ORCPT + 99 others); Tue, 24 Oct 2023 15:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343884AbjJXTFY (ORCPT ); Tue, 24 Oct 2023 15:05:24 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3517A10DA for ; Tue, 24 Oct 2023 12:05:22 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-53f647c84d4so2775a12.0 for ; Tue, 24 Oct 2023 12:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698174319; x=1698779119; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gOkuHsAfrJFLE7fNlHS5Cbl0lv5GMVYVvk6+mbHAbI0=; b=HaPNVzu8gbXV2P7omR8+m8RQwtv5ckAcUdxrCuDU2Nd26ceftp6mCYlyG4HxIbrEHr Qvm4MKD2BIf1Tt4b8lqZXY26QJlrqqFwH3I69hTieh3Z0FT2wQXIOtPZLTqcAzG9TRLa ZFzfa6l0datRvhvJAkRqysgKQ0OkKPCckfe+j3U/uowxxF/lHwUOg3yfUYv95ICVcz64 pl6hi26QeHmZK4IgNLB/qltvsiCet5IfNxOCcrehQ3gNDepCGGgH32u3tWvP7HXDbs2o uQcjNxFm6PFJ90p+brO3nFzNiavh+ZJLJf/TYpyUHqpDp46ko2ZBTawLb8292O8MteGN D+5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698174319; x=1698779119; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gOkuHsAfrJFLE7fNlHS5Cbl0lv5GMVYVvk6+mbHAbI0=; b=HqEkp737QOtZCNwtfs8cF8M9X5dmSgfoO6UNak8HS9UtK0gjo9I2xWL6sDF7B0XH4w BeoUFgcKZgWdoMW14ISdKVH18jbL/rcMb2xUyvvE/khMalEehcw7d4JTWEGZwreKlz0D ekIm9m58MqxpGV+6XiRRR2j0OQ5EDzsF7YOGHjyEh0NoCTZH9RI+h8vC03hX7SuUr+Df q0eb4w+Z1mOcuCy1UpAVQQgoRKs/Q8w8m62GzXxIJL6jW66YFbsymLl0W/jivpYw1KPi yNL/CCOH1T2Gkc3Kug22oB69AAzWXhC9TyJl1hBdz6iWwfI6EaT7iC67Mn2iDHEPrsV5 +hPA== X-Gm-Message-State: AOJu0YwFR7qnGLmsbvwdewsrJOw0zOTlM0bPq55neGuF4d9VvmVGHPPG gmEN6EbmryPZug+ffmM36ZX6mfxHHVHrFo8BZ5i7OQ== X-Received: by 2002:a05:6402:288e:b0:540:9e44:483f with SMTP id eg14-20020a056402288e00b005409e44483fmr120416edb.4.1698174318634; Tue, 24 Oct 2023 12:05:18 -0700 (PDT) MIME-Version: 1.0 References: <20231024075748.1675382-1-dapeng1.mi@linux.intel.com> <20231024075748.1675382-5-dapeng1.mi@linux.intel.com> In-Reply-To: <20231024075748.1675382-5-dapeng1.mi@linux.intel.com> From: Jim Mattson Date: Tue, 24 Oct 2023 12:05:06 -0700 Message-ID: Subject: Re: [kvm-unit-tests Patch 4/5] x86: pmu: Support validation for Intel PMU fixed counter 3 To: Dapeng Mi Cc: Sean Christopherson , Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhenyu Wang , Zhang Xiong , Mingwei Zhang , Like Xu , Dapeng Mi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 12:05:34 -0700 (PDT) On Tue, Oct 24, 2023 at 12:51=E2=80=AFAM 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? > 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[] =3D { > {"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 >