From patchwork Tue Mar 14 17:00:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liang, Kan" X-Patchwork-Id: 69739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1884841wrd; Tue, 14 Mar 2023 10:21:26 -0700 (PDT) X-Google-Smtp-Source: AK7set+VnzzKEiry8Tug68eINWFSPglv02oT8x0unsHv1nn/LIwZyJez5igBqbbZQlja78M6iKFp X-Received: by 2002:a17:902:ea0e:b0:19c:d663:a31b with SMTP id s14-20020a170902ea0e00b0019cd663a31bmr46305900plg.24.1678814486709; Tue, 14 Mar 2023 10:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678814486; cv=none; d=google.com; s=arc-20160816; b=NnqZgEzhMgaq8XWL0UjFQ572/V69TvOdgdhwfo6oHzvT70w7HVmqoyajBxM+9HvV2k cyCS955Dp2+fcBmErJwC3o4o9IbIAAyZA7SK2drHITwQEyLPJd0XEQ9dhekEzRO+Hs80 dKXhFJQa/W08d/2O4a4Tr5H9bxMKPk3Wy7hhdwwkR+ewIFIP/XY8MpFYq9z1K0uCEci9 EqV4WeBGOuMPuRszg84RkcZ3qNipfUM53Gph2r+0htKTT5UHiq9g6F4RtBzPOdciiFSD GgW6bumch7EXYSD5vA2ZJsrwgAvjMlrLL0aLf66dXn943qBHlpXMNkEV1zGLLrOOhkhB J1mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4MrePtmhscOpEeMeNH8Nl5wd338b6LWQJR8qyazwqCY=; b=XE+5platvQHeW7zDespFkH+TiZhlu8II7V7QlLgu4W0/cbTzBJtEOiSj8wN/ey1MMh bmz94pMgRHkM9ssz/3H34yhHLaMCPzgHCclFNOlnhk/WSb9rx+wEwp3zwfKJ4u2728XV /UleV33xbX0Y4aR0gBL0ZCqtcvH0Hzqsq21/a6K4YJznSkTrzICNNfZTP1S8Mv/hfNPH 11itJFDGmtDPHqa6rynVeF+M8Zodv5elUtS6hAs51nayfh/ZtnWE9dDPsUVKo+gujdVs PceUD6HLPQGcewkNW+XaI+osgnWotRZokPJQO/Vg7hl02Jutrhthx65YEocgTV8RlnUS b0xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c4HO4Mv2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3-20020a1709029a0300b0019ca7a76d68si2884693plp.67.2023.03.14.10.21.09; Tue, 14 Mar 2023 10:21:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c4HO4Mv2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbjCNRAu (ORCPT + 99 others); Tue, 14 Mar 2023 13:00:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjCNRAq (ORCPT ); Tue, 14 Mar 2023 13:00:46 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FC4DA3B45 for ; Tue, 14 Mar 2023 10:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678813246; x=1710349246; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bYdoEF0T5KfS1k21zUnAfoLcc7e+zGI8vdSjppzEaNE=; b=c4HO4Mv2aWwyv1BWwAJziL7a6MFgmK/6VRsQmcO7s84z2uA2sHu/AEmT PNH8a1MJNR7NVVlnaLVXPlAzLIjZZzplkXfWo2lNKJpesd4mvHmCZP/jR k01th1OFcjHeBfFW87sOMyvGmArMLZFAfdeuUni++urvujoRYZPv6B8WD URf7SjquKXOYES2mo8s8hz9JuL4r2SqDrAkTyw2Jl27WRKn+auxwCxR1j jEeD6btJlsb9AYhg++lkWFjI6pYzO2CRVwLX1zKr5/TYnXNTVkIqWPhyc aNQSwiFq6aFizRVg/oRatl3ZdKkPgPBKIPhekiyNpyeWBez+W05kEV9hy Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="334971158" X-IronPort-AV: E=Sophos;i="5.98,260,1673942400"; d="scan'208";a="334971158" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2023 10:00:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="743379730" X-IronPort-AV: E=Sophos;i="5.98,260,1673942400"; d="scan'208";a="743379730" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by fmsmga008.fm.intel.com with ESMTP; 14 Mar 2023 10:00:45 -0700 From: kan.liang@linux.intel.com To: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org Cc: ak@linux.intel.com, eranian@google.com, Kan Liang Subject: [PATCH 2/3] perf/x86/msr: Add Granite Rapids Date: Tue, 14 Mar 2023 10:00:40 -0700 Message-Id: <20230314170041.2967712-2-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230314170041.2967712-1-kan.liang@linux.intel.com> References: <20230314170041.2967712-1-kan.liang@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760364579402906905?= X-GMAIL-MSGID: =?utf-8?q?1760364579402906905?= From: Kan Liang The same as Sapphire Rapids, the SMI_COUNT MSR is also supported on Granite Rapids. Add Granite Rapids model. Signed-off-by: Kan Liang --- arch/x86/events/msr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c index c65d8906cbcf..0feaaa571303 100644 --- a/arch/x86/events/msr.c +++ b/arch/x86/events/msr.c @@ -70,6 +70,8 @@ static bool test_intel(int idx, void *data) case INTEL_FAM6_BROADWELL_X: case INTEL_FAM6_SAPPHIRERAPIDS_X: case INTEL_FAM6_EMERALDRAPIDS_X: + case INTEL_FAM6_GRANITERAPIDS_X: + case INTEL_FAM6_GRANITERAPIDS_D: case INTEL_FAM6_ATOM_SILVERMONT: case INTEL_FAM6_ATOM_SILVERMONT_D: