Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4246627pxk; Tue, 8 Sep 2020 14:51:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH+OU/Mggdzm/A+Qpv8TF6RcWUQ2wBjP7jvLMl3XeHooQuoLlLnxHkS7tVHdTo8pEF3a+Q X-Received: by 2002:a17:906:3506:: with SMTP id r6mr518364eja.55.1599601876593; Tue, 08 Sep 2020 14:51:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599601876; cv=pass; d=google.com; s=arc-20160816; b=b6/JQpXvMCeTBTGhYN0ORSBhR0UHz+GxCztPi5/NroS3nfL9Ip8o5gegdGbSSxSSk/ pPj58i8pnNt3uPvZUPBqapRSYpdfAQTn0nG86mQ6wbMbKhN/Js6WasL3dXILmmMiKVCU tlQNlHFGCUO2y/+8XQwKC2zMfJ/Vt2ev/s+acu6JpM0FCm1A57TGycU0wZKsYJr+98OJ RhCj8jOBZKlesRdnIwplQS8BdbsGww76OZp4DJ5dck7GEhB5WgG1J1EwEGhxioyZ1/CM fvhyoSEWi0szUePcSasePjzAM85QrHCytUqOH2vXyj4BuoxPfK9IVgrqpTCoBzfHnRPS n9vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M86oX52X8WRvrmvvXZXmteBXuJj081LORUzps9NtYKU=; b=PaxlFoHrr/b1DFp51MePQlrloZi2ZM1RrKHEmtuE6afkqSH7eA/itGsyQfJmjssSGN G+/R+9hy4gGc/1rcnPCqQTtlkuBN+XaVrg4Tr0pRD6jNGbG7oGcVodsTWd3kkOEPiY2r Ddu4sTUvnpj7LgVr5wecEd+u1u1DFJHwzXIsUrzVR9NACT2ATeZpRB7WEfrOSg479+px U9EVG29Gd2lBLJqLFUkHKA6RKW4DWJ+VYdaRDoZSfR3Qd6i2zI1QhaugAZcrkN2dmqCq Lae/JS9UR9lJfgxPNgin4ScInG3yIV9b132TlUeie4eErPnrda30BQO1R3Gi6iP7HU+b Q+ow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=NlRZCu2i; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l27si235580eja.9.2020.09.08.14.50.54; Tue, 08 Sep 2020 14:51:16 -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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=NlRZCu2i; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730200AbgIHVtg (ORCPT + 99 others); Tue, 8 Sep 2020 17:49:36 -0400 Received: from mail-bn7nam10on2082.outbound.protection.outlook.com ([40.107.92.82]:28000 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730188AbgIHVtf (ORCPT ); Tue, 8 Sep 2020 17:49:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hiQs/g9A4Qr5x7wtxOTCtCGMN8KEx6VF/+rVsIIeVAZKAN1uZih7+r01aGki9R6R3u4x1l/GYHxLb55vvwcejqmesSZE/O0/4VeaLeYkjvMabmnbIrV8iZDr5uQUjNn1o1LZJiJ64JbysoTbaF7lTOFddHwmmUwVyIVp9jiCzJrWjPTeMTuagTo6ed2kBNSVnnsbiGekN5D2kPh+XasyHrJAaGadL/iQvgYX5OzWRnvRO7KMeBopm2SKYO5LEKwsZK4WBMY3qiiwdyLeXQCjD1klqsL/ShubtNbl+hcJQMfTH+kAxVmEd4JF5Iz+arjPDhSQdDfmeg1xfeENYBGsWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M86oX52X8WRvrmvvXZXmteBXuJj081LORUzps9NtYKU=; b=XZQ38b9oktakbWFt4eO7ZwL77DCz9WfqAnaWjcnHfa7j0IYwlivnnjwIinmZFJOw/OH1ZgfZXmGEt1wlmyon/HRBsJ2vL600FhOaBvvKFARiJTBgHhkyNNWaeK8n37t04o2vAV6GScvdblHk3hWSAudXuBXXmshLbwzsHeoI90Yfq7YTUalQHT3k5FEtLlaclN2Glmmnu8f8Oj2LN9EzvpyRucyt8E9ifhtsyt7oQ7gzqir2ALwIs6Dn2Vi0kb5Qk8T/1KLhHmjZIU7QGgWKrs3shUdzkbDuc3OKiJJ+ahtSaskHCHkAv7HtbBjNvwJmQOVuAg5vuhdHJK5I1Yx0oQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M86oX52X8WRvrmvvXZXmteBXuJj081LORUzps9NtYKU=; b=NlRZCu2iXx9lMnqzzWbN1MHUuGIISQnjnj4XzeQrU8J6RQiiUAugQh8G650RKcsD1/rqPNgdqN/+UcP1US/R0WQlSoJD6pVjS7U46lzxdUgN9o+XKUxKLRI7mnidQmLPPspzZ0dQ3PEVJrD6DpA/wa10i+UL+lbiRkwxP7bWQsk= Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB2946.namprd12.prod.outlook.com (2603:10b6:408:9d::13) by BN8PR12MB2881.namprd12.prod.outlook.com (2603:10b6:408:9d::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.15; Tue, 8 Sep 2020 21:49:31 +0000 Received: from BN8PR12MB2946.namprd12.prod.outlook.com ([fe80::a92d:18c0:971b:48e6]) by BN8PR12MB2946.namprd12.prod.outlook.com ([fe80::a92d:18c0:971b:48e6%6]) with mapi id 15.20.3348.019; Tue, 8 Sep 2020 21:49:31 +0000 From: Kim Phillips To: Borislav Petkov , Borislav Petkov , Peter Zijlstra , Ingo Molnar , Ingo Molnar , Thomas Gleixner , kim.phillips@amd.com Cc: Stephane Eranian , Alexander Shishkin , Arnaldo Carvalho de Melo , "H. Peter Anvin" , Jiri Olsa , Mark Rutland , Michael Petlan , Namhyung Kim , LKML , x86 Subject: [PATCH v2 7/7] perf/x86/rapl: Add AMD Fam19h RAPL support Date: Tue, 8 Sep 2020 16:47:40 -0500 Message-Id: <20200908214740.18097-8-kim.phillips@amd.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908214740.18097-1-kim.phillips@amd.com> References: <20200908214740.18097-1-kim.phillips@amd.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: DM5PR1401CA0018.namprd14.prod.outlook.com (2603:10b6:4:4a::28) To BN8PR12MB2946.namprd12.prod.outlook.com (2603:10b6:408:9d::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fritz.amd.com (165.204.77.11) by DM5PR1401CA0018.namprd14.prod.outlook.com (2603:10b6:4:4a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16 via Frontend Transport; Tue, 8 Sep 2020 21:49:29 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [165.204.77.11] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 84df05b8-315a-4090-aa20-08d854411138 X-MS-TrafficTypeDiagnostic: BN8PR12MB2881: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1332; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0aRB4NEN7kTkI5WkHuD5epwIDm/lPEM9f+a/eKWeWQFMr6J9zvb/sGcuMd8HCaYg5GFV1QVwJV+CgR1FUfouJVJ24nzEThtqx6MrTupNl/ioCO4XhonUcvOj42K9lwWmY4iK3pjDrY94QtZPRotrNYjDKkWh63gshdPMLeJlokSYtlVtLAgLRpqlicSgiPGkjctyMDrCA8HsfmHdJAcNwjpk6Er6Stk6kRzWZGHleYJjk2tXotIloNbREUGMoN+NhFH/TBsOImJzc1Wd9OGURH/Hy4p8rBKH67m738VOWXXPSpKZlBV+k8rMwH4MgytGZRuuyfaXCZOofji0CCiuMg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB2946.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(346002)(396003)(136003)(376002)(366004)(2616005)(54906003)(110136005)(4326008)(6666004)(36756003)(8676002)(1076003)(66946007)(66476007)(44832011)(66556008)(6486002)(86362001)(7696005)(52116002)(956004)(316002)(186003)(7416002)(478600001)(26005)(8936002)(2906002)(16526019)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: /qLmwdvrKjhXPwXJ4BT7hF6FDPRDdD8QTJMw7LPH3P65pJYZ2/Uyddqwque2dco7nCOzUEo+7ZxGZPgHE9wp2VLFZyxjcpcRW8k8mqobwDSJGQC9x5lYrmzPZBazvRJpDtklEEQ5E6VvtUE16xAcFaSp5hnyUB+hrCvfF0QMQN2HhwpIkCw2ZrT8L9j+fAQFgk8BHzXGs9l2a6DL/4Vz9yQjRvXVNFG9KcVxMIsiIselGs1f479zErLsakQCrfB2umL033hSr1ZQmDkKPfD3IBA3pExOdFf1L4PPevyn9OfkwsHaKkn58z2qePN984TSZvAZloQ4iGbH2KB4x9kQjFu9qqi3Id9nBSTRtN8y3Y+5nlk0N/QGZWuNv8kCPMMpghjiMZ8Mkty7DFQxEhHo6gqlthhXOuJxSCmLEbyvBlrVAfEsGzFgOTtQcnPW3Yo+HsWjPnruaWU0FaU4gQ7deJFrohhlMJABYpnDWg2WHXtoOoObtSzVUCeZBDP0YHriJjdDORPZmKVCcGzniKtQTtkpnctrX73Xxy2Zw4DWF2g6HsZKZfX6phqjUq8OEKIj62k9RH0WpBsKVu+9NI4wp791JKaHKyhz1sqRPsUWsvEfwJsERSX31WwEY8OgyRQ4a22gqtnETT8muckTnVHjEA== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84df05b8-315a-4090-aa20-08d854411138 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB2946.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2020 21:49:31.3447 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oiNv+weOk7mCvmdzgdJL7jQOlqGf/RfYK6nlE4c/RNUPet9xVK6eOsrBjttNqZlSyPXd60YwaFOm8NRXKpzg7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB2881 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Family 19h RAPL support did not change from Family 17h; extend the existing Fam17h support to work on Family 19h too. Signed-off-by: Kim Phillips Cc: Stephane Eranian Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Borislav Petkov Cc: Alexander Shishkin Cc: Arnaldo Carvalho de Melo Cc: "H. Peter Anvin" Cc: Jiri Olsa Cc: Mark Rutland Cc: Michael Petlan Cc: Namhyung Kim Cc: LKML Cc: x86 --- v2: no changes. 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 67b411f7e8c4..7c0120e2e957 100644 --- a/arch/x86/events/rapl.c +++ b/arch/x86/events/rapl.c @@ -815,6 +815,7 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = { X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &model_spr), X86_MATCH_VENDOR_FAM(AMD, 0x17, &model_amd_fam17h), X86_MATCH_VENDOR_FAM(HYGON, 0x18, &model_amd_fam17h), + X86_MATCH_VENDOR_FAM(AMD, 0x19, &model_amd_fam17h), {}, }; MODULE_DEVICE_TABLE(x86cpu, rapl_model_match); -- 2.27.0