From patchwork Sat Sep 24 05:47:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Rui" X-Patchwork-Id: 609297 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 346C1C6FA82 for ; Sat, 24 Sep 2022 05:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233410AbiIXFpB (ORCPT ); Sat, 24 Sep 2022 01:45:01 -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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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