Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp1151708qtf; Wed, 17 May 2023 11:34:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7S9h/+YpWxTvlIzJ+yK8FU1L4NQ4o/zyTuaPJCCIlJI3W1UjSPvjh0IDYGVu+PJoGRID5q X-Received: by 2002:a17:90b:11d6:b0:24e:4b02:4f0 with SMTP id gv22-20020a17090b11d600b0024e4b0204f0mr612468pjb.6.1684348460738; Wed, 17 May 2023 11:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684348460; cv=none; d=google.com; s=arc-20160816; b=HvNThnl05UJznLCGB6ZPzJQKEM2KndJ7vMThYyWDcTRTQ7Rcqtts7tZid9kQhA+QAN 2LcDCZeiB1noxh+4tyufd1a8ZV4r3guOpqzsWHReCC8QqDGRvDxiT8BZf/jqOCcJbCtG vESSi9Js0o+f/bh+pMRHJGCRscE7igfMIwMtH1Jj8w9g9XbUcxmGJCqpsOREK8xxr5WX 8ANR7tarIYuh9J5j9sHHNb4LiFCfb7F1QTdex6GtxlqNWdoWr2728y56q0LC379aFV+o QKNRoCn0TE8GC8mkTMjQOGPvxKOwB8mbKZ2cFGZlqWnlKDWM4HzrDsOcJ4O0ORz4oJHp n6Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:from:cc:to:content-language:user-agent :mime-version:date:message-id:dkim-signature; bh=SefrbI4luUxkGPhDruiHFtUBNRN3yZ6zgSDA+Ss60NY=; b=dy0Ei/wsUtetmYx1KY8Ryl7HgUkq5C1lnP7BmTqhp7P/YKqKuwY2oEbv9ReaRgKcdE RK2Oc1By7cQKgeazGaYIDewW8kLrpDcFXVNDO8tPIrCtIatZQV+HSa3RiIeaYaUYdtwi Fo7xAZIorlIMg7mJsnWB6ojuG4mTOTUdelLOetm4tn5m82a+UWqOp2nLyEhkr4LwxBtH 0uEAn3yv1PQ0ZD2k+ORavLew+dfvG/IENt7ggCKa9Xregs0qH/UJ5VX9arLnchSgEWBJ ICYUaawLJxB8G12Lr6pVRLXUWbOg5kuikiLdT1gz3sIbS9GVUfBIrGPZa87IAKgxDbcD X/YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=H3JFE1jH; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob9-20020a17090b390900b0024e5ed38294si2614506pjb.66.2023.05.17.11.34.08; Wed, 17 May 2023 11:34:20 -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=@linuxfoundation.org header.s=google header.b=H3JFE1jH; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjEQS07 (ORCPT + 99 others); Wed, 17 May 2023 14:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjEQS04 (ORCPT ); Wed, 17 May 2023 14:26:56 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A37FC1739 for ; Wed, 17 May 2023 11:26:55 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-760dff4b701so6962839f.0 for ; Wed, 17 May 2023 11:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1684348015; x=1686940015; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=SefrbI4luUxkGPhDruiHFtUBNRN3yZ6zgSDA+Ss60NY=; b=H3JFE1jHp5TEZJc7lLOVSzFimQ6OuqRvaHdKgsh+0FijfB4S8X+4Tpfty2B9sQuhxu JavwJmSIC6V4ciE5nSbf0L13cOleRE84BdxZhvMy4Xhsu0bEvFRR8CJBkT7CMyKfC/44 MTt+JfNXAMlgq9M/jF4jAz+BKxEbqLw1jK6Rg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684348015; x=1686940015; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SefrbI4luUxkGPhDruiHFtUBNRN3yZ6zgSDA+Ss60NY=; b=iq36ieO3seiAk9WE5IBIGgTAB9lqroudEOPs0Bqi7evntyymAIKEwCCBFc7HCYjGG9 VEa1Wk+dzpn2SG8/MURV3asmWzcI2QzUF7VvlRqj9jsto6VJm63iUJDEqWvSd2HIovyx P2gRwAj8oWCEA207knhNiMT5v9GXTi0N7sgIYSN34C8vQ4pkO8s3BzedLEb0U9Gb2vwW 9EcXHQv2bMj6L3/cD0yrYR7GZayz2l0xL+C8oKAjoU8vc+TsWgKrS0XMLO/icblvNFkg 4HeW0stCnjT3U2aNmkbsOhsEoTTCpGOVNQl3jCW8Us3szz0bgbsAz/0CFabPX1I2vJjh LNLg== X-Gm-Message-State: AC+VfDwwfPfp39mFuG0p6rIV2q8V72AKzTl1S6o5fioeKYgNjcax0uYC 4he50yNr57bbPjjoU7Mt3Vw8DA== X-Received: by 2002:a05:6e02:1b0d:b0:332:fcce:c26d with SMTP id i13-20020a056e021b0d00b00332fccec26dmr2703997ilv.0.1684348014895; Wed, 17 May 2023 11:26:54 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id b6-20020a92dcc6000000b003350c8ae201sm7593874ilr.29.2023.05.17.11.26.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 11:26:54 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------9IyDAsnkaVQo7hLHfcxwSE0e" Message-ID: <8abea32a-4895-7826-8a9c-9ddc5a7ad2bd@linuxfoundation.org> Date: Wed, 17 May 2023 12:26:53 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US To: "Rafael J. Wysocki" Cc: Shuah Khan , shuah , Thomas Renninger , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org From: Shuah Khan Subject: [GIT PULL] cpupower update for Linux 6.4-rc3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 This is a multi-part message in MIME format. --------------9IyDAsnkaVQo7hLHfcxwSE0e Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Rafael, Please pull the following cpupower update for Linux 6.4-rc3 or for a later rc. This cpupower fixes update for Linux 6.4-rc3 consists of: - a resource leak fix - fix drift in C0 percentage calculation due to System-wide TSC read. To lower this drift read TSC per CPU and also just after mperf read. This technique improves C0 percentage calculation in Mperf monitor diff is attached. thanks, -- Shuah ---------------------------------------------------------------- The following changes since commit ac9a78681b921877518763ba0e89202254349d1b: Linux 6.4-rc1 (2023-05-07 13:34:35 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux tags/linux-cpupower-6.4-rc3 for you to fetch changes up to c2adb1877b76fc81ae041e1db1a6ed2078c6746b: cpupower: Make TSC read per CPU for Mperf monitor (2023-05-08 10:46:49 -0600) ---------------------------------------------------------------- linux-cpupower-6.4-rc3 This cpupower fixes update for Linux 6.4-rc3 consists of: - a resource leak fix - fix drift in C0 percentage calculation due to System-wide TSC read. To lower this drift read TSC per CPU and also just after mperf read. This technique improves C0 percentage calculation in Mperf monitor ---------------------------------------------------------------- Hao Zeng (1): cpupower:Fix resource leaks in sysfs_get_enabled() Wyes Karny (1): cpupower: Make TSC read per CPU for Mperf monitor tools/power/cpupower/lib/powercap.c | 23 +++++++++++----- .../cpupower/utils/idle_monitor/mperf_monitor.c | 31 ++++++++++------------ 2 files changed, 30 insertions(+), 24 deletions(-) ---------------------------------------------------------------- --------------9IyDAsnkaVQo7hLHfcxwSE0e Content-Type: text/x-patch; charset=UTF-8; name="linux-cpupower-6.4-rc3.diff" Content-Disposition: attachment; filename="linux-cpupower-6.4-rc3.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3Rvb2xzL3Bvd2VyL2NwdXBvd2VyL2xpYi9wb3dlcmNhcC5jIGIvdG9v bHMvcG93ZXIvY3B1cG93ZXIvbGliL3Bvd2VyY2FwLmMKaW5kZXggMGNlMjllZTRjMmU0Li5h N2E1OWM2YmFjZGEgMTAwNjQ0Ci0tLSBhL3Rvb2xzL3Bvd2VyL2NwdXBvd2VyL2xpYi9wb3dl cmNhcC5jCisrKyBiL3Rvb2xzL3Bvd2VyL2NwdXBvd2VyL2xpYi9wb3dlcmNhcC5jCkBAIC00 MCwyNSArNDAsMzQgQEAgc3RhdGljIGludCBzeXNmc19nZXRfZW5hYmxlZChjaGFyICpw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