Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1943212rwb; Fri, 23 Sep 2022 23:30:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6b9rtvmalsuIIfQU6LNtdYR7MpYWvjV2vuTU9voxsC8i9YNDxjE6xgPvdGVkpWnzYBZtwg X-Received: by 2002:a05:6402:d0d:b0:453:9f39:5535 with SMTP id eb13-20020a0564020d0d00b004539f395535mr12357851edb.261.1664001021690; Fri, 23 Sep 2022 23:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664001021; cv=none; d=google.com; s=arc-20160816; b=B/aXnVxzx+Uu/89FfANOxJdfxy595pEVuMVC/xM190RWvgsDOkU2a1/tLktNW/agoy 3jHxLVXbEy297nmVTVch65d2Pnuyj6gHkuT9wIsjmeCXckDPhtFP4lviWTIZAuOVlE/q Or6cvEV4WwfWjjl88/fOOkqVhHYw/U2LofIw0mnM4+vHNe6lGhXLb1ykmIWQ0FEB38aY xJSyucV+YSss5LoOEsBkf5uXseII4cbUKmpdLpKeceEpJVOCTnOWNrNP94rAmsWps7vQ C9Hass2W/3jAbM80T/IT5fUzF8P04YVgQl0H4Eg5KI/M6xkP0iMVIKYhgTVaevBmIBdO ipQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=90ic6Xwsrn9o/rFQdPQwmjtmJExTdJ/6twfK18KNT38=; b=cI9J/TirG6H9bjT1W+SwczT2UXQxrPizJm8bWQTjarZ6Gy39K6CKNzYBrBpRC1qXnM pirTzZ+L1ywprOS91V7zvcf5FYus4xoy/w+wnRGKJWorIqTL1F8nmCR7DuzPYRSA+G4A epGkWSI0++CjB9fSw1zScaGpH+aemhcZVbCIVVg60+ljcjUoeTLGgIPXzN3shiOgcNxU r66Bcx2oRoLE/k1a7J4g9hQ2e1en5Zf0eqKonRn13t+9cOvkyq5pAWmz9QHfVsBDH8Ww QB5RmB1nG2DB23Q+p6cBdgWkwORJtVu772wSY0rVQ8YgpVTqNtSqIgdbkMD3bYex1LqI o5XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FsTQYwCE; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga31-20020a1709070c1f00b0073d5b737a78si4316657ejc.752.2022.09.23.23.29.50; Fri, 23 Sep 2022 23:30:21 -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=@intel.com header.s=Intel header.b=FsTQYwCE; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233418AbiIXFpD (ORCPT + 99 others); Sat, 24 Sep 2022 01:45:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233390AbiIXFo6 (ORCPT ); Sat, 24 Sep 2022 01:44:58 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 360881F9F1; Fri, 23 Sep 2022 22:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663998278; x=1695534278; h=from:to:cc:subject:date:message-id; bh=90ic6Xwsrn9o/rFQdPQwmjtmJExTdJ/6twfK18KNT38=; b=FsTQYwCETtHvurkPABgBWArkUR2N+jx6ofsOxOLjVEmehZduDuSgF5+h lxZqeh4gSW2aEXKS74idIRt7Nlq5T74qZSFG0jI9TCPfnYKaPwA07QS21 c3pUeCCB5cFw1gWCmAbKPiZOUKwARzWvhKCI5FYrywzzhJyG5YqC8blnc HUI1t6KXB2w7+FmZP4MDkXnJg+t7MQaeMnGGij4HzB2LLYUJ120H4wZXg SWEm1zkDJ36WArwyJhOcK3Whn7V6KHVycXy9kcq+qCOutmXKFCPbTxLY7 D3WtYKp40fM4bZHtt+qHKyAau9MoQTbSI6sc8LOD+Uq1urFYUVnu31zVf g==; X-IronPort-AV: E=McAfee;i="6500,9779,10479"; a="299470282" X-IronPort-AV: E=Sophos;i="5.93,341,1654585200"; d="scan'208";a="299470282" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2022 22:44:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,341,1654585200"; d="scan'208";a="651207759" Received: from power-sh.sh.intel.com ([10.239.183.122]) by orsmga008.jf.intel.com with ESMTP; 23 Sep 2022 22:44:33 -0700 From: Zhang Rui To: peterz@infradead.org, rjw@rjwysocki.net, len.brown@intel.com Cc: mingo@redhat.com, linux-pm@vger.kernel.org, x86@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@linux.intel.com, artem.bityutskiy@linux.intel.com Subject: [PATCH 0/3] driver/tool fix for SPR Dram RAPL Domain Date: Sat, 24 Sep 2022 13:47:35 +0800 Message-Id: <20220924054738.12076-1-rui.zhang@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Intel Xeon servers used to use a fixed energy resolution (15.3uj) for Dram RAPL domain, starting from HasWell-X. But on SPR, this changes. The Dram RAPL domain uses 61uj energy resolution, which follows the standard energy resolution as described in MSR_RAPL_POWER_UNIT. There are a couple of places that have implemented the energy unit quirk for SPR Dram RAPL domain, including intel-rapl driver, rapl perf pmu and the turbostat tool. This patch series fixes them all, although they belong to different components. thanks, rui