Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2165528iof; Tue, 7 Jun 2022 21:55:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ5hGZNyqViKDlzP0OuZyJdprSOuHxroXyWBis6PzdAL4ULlfPqdog49N0Rs3rTzD+51l1 X-Received: by 2002:a17:902:7d93:b0:14d:d401:f59b with SMTP id a19-20020a1709027d9300b0014dd401f59bmr32872948plm.14.1654664154547; Tue, 07 Jun 2022 21:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664154; cv=none; d=google.com; s=arc-20160816; b=vIN0OLUf9psn6u6BzKhMckH1NN83VVAuUh1KpUG9nlbCrGK7nXGXLJcORq+s7jlz/D IeK/T+6d5DxG9l5U3QLool2+aG01zwrdX/afGHcDtqXyCPiQrI2904V2S53v5daeffGi ZWY19qlfxtD2g+xlPCeJgIAMIWNmB8a1FwB1d0fqttO6q0vbBHer4nid+Z5iEWy621UG CXn1TSwzMx+v6Paj8jxHvGSNtCHUfSCTHsYyLRvAKZtydnw7UzETO3uIhpTsmlZFios4 Cwok7lc7JcYMhR70bwWOe9NfPCNItWZttRTBLX5y2u9GUCQOHJUaWiB27mfDfqPS1i7d rB3w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L6Bppyj1rYaUdqgbSLTI6gwL+MYeWbjLuQ9XJx5lzKo=; b=m57holPh1KkZDWeKsMKbX+hqZ6OSlUMB8JpYWsBtXUUlApzWdO1glsgeBV2PLY6V06 ces57sqqIaMylC/wMxQI+P5DHCJJjYwvnofWEOSkORqk0++hLzovhsP728iSMsPtYHCE rDToGNQ2pSsAyWKPGPojj6H0Q4YEXMYi0LQ8lo42/Murjd7tzNFRrofFmKEvqXJ3wQ32 A0isf50Q2h+A+IX/c3pQV9heiwMHpdTVR09LL0aQEXY2gjg65C2XwD8LZXKtIDnIKdc8 c9fRd6kaq1ovFNsg52WqvuC+52ovMr0s5GJzYQa0CYDMigkTJ/yL+E5SxF/ElI/KWb9v ysDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ANtrrgbC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u3-20020a17090341c300b0015d21512abfsi31269746ple.527.2022.06.07.21.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:55:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ANtrrgbC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8538C43518C; Tue, 7 Jun 2022 21:37:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346307AbiFGRYQ (ORCPT + 99 others); Tue, 7 Jun 2022 13:24:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345902AbiFGRT4 (ORCPT ); Tue, 7 Jun 2022 13:19:56 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B831F1059C4; Tue, 7 Jun 2022 10:19:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id CD0DFCE21A9; Tue, 7 Jun 2022 17:19:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA7B3C385A5; Tue, 7 Jun 2022 17:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622386; bh=u+z48SM47mESXsWhumFb6ZKzLhZAopSDcM0JtCRIbDQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ANtrrgbCY692d/Chl8OLf3HBFjqbn1/zwBhM8A5Ht3vqs5KqyM8Rt3Gz4kikBYrVW Ju5foO8TM3zMRRQYHuwyzYsfD4c/JdSTpw+OO7MuXm2WWQm96fNPcj0celuoBpdRqV tTFWDt+mapy8S94xdtvbRXlOW2TGskqed2W0MA+0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srinivas Pandruvada , Len Brown , Sasha Levin Subject: [PATCH 5.10 041/452] tools/power turbostat: fix ICX DRAM power numbers Date: Tue, 7 Jun 2022 18:58:18 +0200 Message-Id: <20220607164909.772517875@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Len Brown [ Upstream commit 6397b6418935773a34b533b3348b03f4ce3d7050 ] ICX (and its duplicates) require special hard-coded DRAM RAPL units, rather than using the generic RAPL energy units. Reported-by: Srinivas Pandruvada Signed-off-by: Len Brown Signed-off-by: Sasha Levin --- tools/power/x86/turbostat/turbostat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 424ed19a9d54..ef65f7eed1ec 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -4189,6 +4189,7 @@ rapl_dram_energy_units_probe(int model, double rapl_energy_units) case INTEL_FAM6_HASWELL_X: /* HSX */ case INTEL_FAM6_BROADWELL_X: /* BDX */ case INTEL_FAM6_XEON_PHI_KNL: /* KNL */ + case INTEL_FAM6_ICELAKE_X: /* ICX */ return (rapl_dram_energy_units = 15.3 / 1000000); default: return (rapl_energy_units); -- 2.35.1