From patchwork Tue May 18 22:18:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raul Rangel X-Patchwork-Id: 441549 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 428CDC433ED for ; Tue, 18 May 2021 22:19:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11464611B0 for ; Tue, 18 May 2021 22:19:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236687AbhERWUR (ORCPT ); Tue, 18 May 2021 18:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236372AbhERWUR (ORCPT ); Tue, 18 May 2021 18:20:17 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2DBEC06175F for ; Tue, 18 May 2021 15:18:58 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id s19so11275983oic.7 for ; Tue, 18 May 2021 15:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Yazsg80d5R8pUukq3uU44JSO6L/ec0vuHN2nnYiZnDw=; b=eNHA+60Y70M5AFCs5uRynQCs5aRQ+8RuK/nuh09ecH15Heuxs+6AbybFWwB9+e6D4L r30NcwBr3FK1CHmVd1MBIVJBmrI8YQNxIwTG9TKaADff3Rj4p4cvI46t5MbkT0M3sMAW /IrRaQC3lHCvS1G0jhfZ8oZHqdBX/uSKJpuxk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Yazsg80d5R8pUukq3uU44JSO6L/ec0vuHN2nnYiZnDw=; b=AGHZn/nGemohsTZ3kk8MMQkkU8+SFLCEzF2RTHaleH4+/A6MrxrtrjFHsKw4smV7nZ T9bscdJFAS8ZVB/7avr1K1gGoGGMXV6RVC1dtcWVn4cpyjzPD2JKB1FDxiRA7VblQE+w UHrObjhZDhp22tU8NafiECYuv9xgU6jKcejbuD6wYB1Pxr4fbkmUPi1hOQI+kdrB7Cag vTIJ1Kbwse1y24KKsFg000kt8mc9sx+xrtY4BxSDTsktzA0kXWLDQZAMk1b76mzUDyaG ARw/98RpcYeq+ohl2RWiZKhREgnX0vC+3wijeMQEuUUKyZvNpmQAxtHTH8k9jSVNo5F5 OSFw== X-Gm-Message-State: AOAM5325LmmKbpLH+SrzE3/ARZzfUDzKEIPqmzM3S3ry7KIHbjIBgiJ1 4MwDpIPfYCnBgUy5BSDiCaPXnNIu8gmOGQ== X-Google-Smtp-Source: ABdhPJy89URKoTpM78+NFQ1y4H8rpy5QjDbTENsxB3lAViQQ7zii9kuf3/Fvcr17DQbdi8c7ycmQkw== X-Received: by 2002:a05:6808:1142:: with SMTP id u2mr5021288oiu.101.1621376338105; Tue, 18 May 2021 15:18:58 -0700 (PDT) Received: from rrangel920.bld.corp.google.com (h184-60-195-141.arvdco.broadband.dynamic.tds.net. [184.60.195.141]) by smtp.gmail.com with ESMTPSA id j18sm4069667ota.7.2021.05.18.15.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 15:18:57 -0700 (PDT) From: Raul E Rangel To: linux-pm@vger.kernel.org Cc: kim.phillips@amd.com, peterz@infradead.org, Raul E Rangel , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: [PATCH] powercap/intel_rapl: Add AMD Fam19h RAPL support Date: Tue, 18 May 2021 16:18:53 -0600 Message-Id: <20210518161842.1.Ifec9c629767197bbd80312ebea93ec8bbfafbf06@changeid> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Commit a77259bdcb62 ("perf/x86/rapl: Add AMD Fam19h RAPL support") added RAPL support for Fam 19h. This CL adds the missing powercap support. Signed-off-by: Raul E Rangel --- drivers/powercap/intel_rapl_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/intel_rapl_common.c b/drivers/powercap/intel_rapl_common.c index b9d9eadadbb0..f0799837c2dd 100644 --- a/drivers/powercap/intel_rapl_common.c +++ b/drivers/powercap/intel_rapl_common.c @@ -1068,6 +1068,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = { X86_MATCH_INTEL_FAM6_MODEL(XEON_PHI_KNM, &rapl_defaults_hsw_server), X86_MATCH_VENDOR_FAM(AMD, 0x17, &rapl_defaults_amd), + X86_MATCH_VENDOR_FAM(AMD, 0x19, &rapl_defaults_amd), {} }; MODULE_DEVICE_TABLE(x86cpu, rapl_ids);