Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2179851iof; Tue, 7 Jun 2022 22:21:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEa7x7ssEr779sYRjsqoP/az3HnrcVKPxX+jnNJvFX/JUDldOw9sWGXfC4QdvSuu7PYGlN X-Received: by 2002:a05:6a00:2341:b0:51c:6413:ab2e with SMTP id j1-20020a056a00234100b0051c6413ab2emr1760707pfj.63.1654665703244; Tue, 07 Jun 2022 22:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665703; cv=none; d=google.com; s=arc-20160816; b=N8pG6LV0m+0Vabi0oB1Up8MsGLgPwVvzNbDqgFJvXoCMjY/KTSLFcztQhNczgj80VN M+6b/9wtnQlsbfSM6z4RQi/GmSZ5R0S4WBiqoqHhNWswioc5KRUqeNC4fSJl1uCX/RWn guI+jLAhO2m80goJtbVk2+Jb3f08TZUX0LEhQ/xdTi1fL7aZ/YuLkwVs9BHUdxJgO+gX 2Z2Q0JYBrdNTT60W8M1oB90ThCzAtrPdxoXsfMYVC9qWvmtpZUqNwOMr7ezOoEQmKVbr xSLnRG6rv/0d65Hfm0cRv60wgF4ZJuYGlbZYP/GrM6MTBrbN8ckzZpxylsBLd5CGlEzr REdw== 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=LlorW5YFhp5iM7knNPwfpDxJGT9cGa9uc69L9QxTwmU=; b=G5qAXZ9XR2P6N54Oi1K7R28h+19LxzirpXBDereza+DbkUTYYVXBST5kkzrRUC66a5 0TxzALWE1RcOEHpkmS+bz4zAX8E/OBNpRUFUaGQ6CnbCQ/Ja99DHVfS1Tq0JGNmkWdqg 5PtT4y7AIRu3suNr8lbxX+6zyqxJuChNc8C72VGNwksF0oH/xfGQnCxRnIhYUKZBpfBd pqpxGd0e1/Km4dskJbn8GaR/rKGln1EqWBLfh97+gordT1qXRddjiVhmA/6oFYtOrq4r SxEnTI6Ge8BoQ48aC8mXCyV4lhxdlu8YFnBPehi6oF43H4qU3erYQ/NpKXDsBfhcWQ9d 4Qhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P9HUP1Db; 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 v22-20020a636116000000b003fd081a8fbdsi22176479pgb.114.2022.06.07.22.21.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:21:43 -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=P9HUP1Db; 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 1B0682109D1; Tue, 7 Jun 2022 21:56:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383655AbiFGWGH (ORCPT + 99 others); Tue, 7 Jun 2022 18:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379405AbiFGVFz (ORCPT ); Tue, 7 Jun 2022 17:05:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F5118E47E; Tue, 7 Jun 2022 11:49:27 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 7D5846156D; Tue, 7 Jun 2022 18:49:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89095C385A5; Tue, 7 Jun 2022 18:49:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627765; bh=mFZmCmXfkFOAG5ewdktFRxWxnqMPBYAH8t2tEQhXe+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P9HUP1DbnV8cFB12TOWTE+2ngn1VhqVZmh4XIQTzsQZJN1W3v5Rys8B1DpaQAANdy Yf7rleUBjlq+5ktqe1K5bn2OUjFvbxxM5REgsUFbYqToigRVvryobppR8rj7EG9EkV md58Gidu5+JaIbZrOi8htjOJ4JdwesIa+G0uuf0c= 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.18 085/879] tools/power turbostat: fix ICX DRAM power numbers Date: Tue, 7 Jun 2022 18:53:23 +0200 Message-Id: <20220607165005.159684515@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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 bc5ae0872fed..babede4486de 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -4376,6 +4376,7 @@ static double rapl_dram_energy_units_probe(int model, double rapl_energy_units) case INTEL_FAM6_BROADWELL_X: /* BDX */ case INTEL_FAM6_SKYLAKE_X: /* SKX */ 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