Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5456905rwi; Sun, 23 Oct 2022 06:26:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6keARmL0L3Clbqog46/uAv3IcPpI9DriYuTdAF6VIrFll0NN6LIq/Ih2nsNrCw04FMz3vy X-Received: by 2002:a05:6402:298b:b0:44f:20a:2db2 with SMTP id eq11-20020a056402298b00b0044f020a2db2mr26496779edb.138.1666531597336; Sun, 23 Oct 2022 06:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666531597; cv=none; d=google.com; s=arc-20160816; b=yIeM7XAdetDkTwcWnOHe6kEpPzFFHm7Ixk0Rh+0jJcpotR7vkHSwnZqM4IlkugYWLb TCHLKiarx/H/GpdXY79z3ADwtW4j/yevkj9cxysySHKVCdEV19yh9VSIiCx3lkvtT6an VhN3vqrieYR/yf7kL1XofQyRFcP7C5Pvlxvx0QCXbTBsTIUoAf60wZS6jlarI9SsRrcI 34WSjOkyUKwp1SoGGQI7GornCVjApWIkQ3wIA1o9AblrH0HBTcb9DInzMikALOKielBj Hbxqup1FM2/px0yfaRxsrJfLFKqoI8Ek0aH8buht/Qehi5no0QOwdS2zKd9eBKZWwcYn C6Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=xqsFxYxj3SNEKFrsOqKiCK/SvpXQQGvH8J7XQ3yeYLc=; b=yGfNd2I/MPfyeNeorle5hPveJo5T/TpKUUKRQ9+8UC2Dx4fDNRss17nQjo5RzP1odA wGLMezdihMlXbSDXvD/hiseQ8JSyEfBsRImXJ2XX72435Ep201bWHY5T/0yh+8vmdKu+ FjVuY6/bd4bsgncGiv1lxMXHFzr9Wj7VeBB7k8Qv32kLH1BCdvOnPhzn+557eV5SNKlk hYOE33obiEsavoqm317vX7Pv3Sssafwl3V+dihTWVSzPhG9KK6DIKPs/1KsI1JleyraA cKsJlM382Nxz0srdKTZHytqMFZKqC72xxmPzMB0OnpvPQqh6H8iF7KzT6vyWMzSooOAZ NmTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EfCgMhm1; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a056402358700b00451e1aae675si26575714edc.547.2022.10.23.06.26.12; Sun, 23 Oct 2022 06:26:37 -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=EfCgMhm1; 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 S230307AbiJWMtN (ORCPT + 99 others); Sun, 23 Oct 2022 08:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbiJWMtB (ORCPT ); Sun, 23 Oct 2022 08:49:01 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2786475383; Sun, 23 Oct 2022 05:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666529332; x=1698065332; h=from:to:cc:subject:date:message-id; bh=EBDEp9fMFhSMNQl9t4zJ05KU6qeNGLZnGb/t5yOcmfY=; b=EfCgMhm1c6P+bf7gvhukjz/GLK+iSsN/2nUlRcN55x9MbFa9AZwhVD3J htFTvpLQDkOPWUFlbx/qNlubcJJjIeih0LFdyINFxZLV763NVY7kaOKVD QLgxLPBZaVP6FjrqpPXHNqdyJ2LsOjzEjhEI2KzT9jDxME37cqpPDVy9r nfhEDYn56lAb1aYhTCEfmgrlT9S5WZ7H8FDWvkNsZ6cxMZaYl/zejA5cx f6a4V+4TGmcUoS+d7JRRBFN4CcmOTIz+uirAQ+sywx9uNY1P3M+VASnXO ubZWDEjYYfrWSR+DMtcNraMbyC6AnmW5/X13HUOisTirT5hWgX9soqR3I Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10509"; a="308944499" X-IronPort-AV: E=Sophos;i="5.95,207,1661842800"; d="scan'208";a="308944499" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2022 05:48:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10509"; a="756303919" X-IronPort-AV: E=Sophos;i="5.95,207,1661842800"; d="scan'208";a="756303919" Received: from power-sh.sh.intel.com ([10.239.183.122]) by orsmga004.jf.intel.com with ESMTP; 23 Oct 2022 05:48:49 -0700 From: Zhang Rui To: peterz@infradead.org Cc: mingo@redhat.com, tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@linux.intel.com Subject: [PATCH 1/2] perf/x86/rapl: Add support for Intel AlderLake-N Date: Sun, 23 Oct 2022 20:51:19 +0800 Message-Id: <20221023125120.2727-1-rui.zhang@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 AlderLake-N RAPL support is the same as previous Sky Lake. Add AlderLake-N model for RAPL. Signed-off-by: Zhang Rui Tested-by: Wang Wendy --- arch/x86/events/rapl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c index 77e3a47af5ad..165c506cd37c 100644 --- a/arch/x86/events/rapl.c +++ b/arch/x86/events/rapl.c @@ -806,6 +806,7 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = { X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, &model_skl), + X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &model_spr), {}, }; -- 2.25.1