Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1923519rwb; Fri, 23 Sep 2022 23:02:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4xXACPIeDZSrU6K9Mys6goUeIC0ZWiW2yJ4wR5ZfTFgnxLOFoVaHlPoJ1GMAoPRR7tMyga X-Received: by 2002:a17:907:6da2:b0:77c:52c4:882f with SMTP id sb34-20020a1709076da200b0077c52c4882fmr9846916ejc.246.1663999322545; Fri, 23 Sep 2022 23:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663999322; cv=none; d=google.com; s=arc-20160816; b=Ogg+9xxXoOSECEtALxc+jbF75b6fJ2Jb8trnw66V67lwfIZXeyLFt6MLlwFsz9+b7t PlWuJOBpcUIGAVDOoJqDDVy8R9LTg/Wk+i2glrO0q7n0gCH78jNArQvxqQCUWNTY9rHA 9thu5Nz0/ewGqlvy0ZUhe+tVWnDoMXqmClzYRtEnnM6NuLobYw8iK/d+6Cp33bUYFN3F TsBrYAOhYZl0wzLym9+uGNxC54lksr3cK6Oana0fE97tNwBwyQ+fa6WbLa/y4HU1ATf4 kbW86yfdZMRNikB0XbNW/gh74gk/S7dtqrZ8auMU3AJiMIrO71LxCiFYHb2pNITvKh6Z 45pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=azyWWPiHFRNMfFW74hwq9Duv24j+XI+EcIC0G8hSbdM=; b=YL7DYc3rClR9caCT+ULjkJ3XYCCz42VL2sdC8ClKHsjJiO6gYPvooqYepcA7jDcPrb kWfk7Cqqnun5h3MTjWhMy74VQ62Mjk0rJ+XFj5w+FPbttBMU74Viwo2Dj8BnSIsLPf3t vWogYG+Ybv5zy5wHoPKZOXM2xr9YwmztxED2ngI5qPdXu664Q/prNOPzwe2+vlq3e6Ko YDUXYBfdnWGYuzbnGczFGInWfr1+GKRTEkTi0uM59+bce+32ZBQ1fRKRLigjqGXpg/63 LIeMFRQ7Y9f3QsMH5n3HKtnmd2oWMOMWo21WcA39G/q6CHiFCVhSsYzS7bWgqFE3/xR8 J5Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LVmyC7Dn; 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 s9-20020a056402520900b0044eb3af536bsi12018375edd.160.2022.09.23.23.01.35; Fri, 23 Sep 2022 23:02:02 -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=LVmyC7Dn; 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 S233384AbiIXFpI (ORCPT + 99 others); Sat, 24 Sep 2022 01:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233392AbiIXFo6 (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 C520622538; Fri, 23 Sep 2022 22:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663998279; x=1695534279; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=QqXva2JUu/RQnDI1kxBjde7cPAYIQfasEASf2LkrJPY=; b=LVmyC7Dn6PG0M2lkYuVjgdtbAxDjI3gDvlJAdJHtM4s0dJnntljWIyq4 iimY9W4/NpBZcfj82g25oi3sJrzgl2NRv8T5KeGQB5Ft5pj/PrtHR/vLT 6KadGRt96fPmcHIBFU+VTnPxNZ05a+AsShd5P9Zz7yIQx6phb7cKOc4ME meyJVy3Xu51khlyqBGF+SLGCf0Xn+ncwLv7c1ybJ0bhmqRhnGaNFLd4MK 4pyFfrSXh0+PbrXM87JcvD0gLv3Klx8aCtGrn+OEeMNONCVH7pN3PSDb0 dhR35FENaiFkWwn4hs0RHHLmF6ecLhhnHorhaOwJQuKe9bPScHSw/mXLP g==; X-IronPort-AV: E=McAfee;i="6500,9779,10479"; a="299470286" X-IronPort-AV: E=Sophos;i="5.93,341,1654585200"; d="scan'208";a="299470286" 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:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,341,1654585200"; d="scan'208";a="651207763" Received: from power-sh.sh.intel.com ([10.239.183.122]) by orsmga008.jf.intel.com with ESMTP; 23 Sep 2022 22:44:36 -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 1/3] powercap: intel_rapl: Use standard Energy Unit for SPR Dram RAPL domain Date: Sat, 24 Sep 2022 13:47:36 +0800 Message-Id: <20220924054738.12076-2-rui.zhang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220924054738.12076-1-rui.zhang@intel.com> References: <20220924054738.12076-1-rui.zhang@intel.com> 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. But on SPR, Dram RAPL domain follows the standard energy resolution as described in MSR_RAPL_POWER_UNIT. Remove the SPR dram_domain_energy_unit quirk. Fixes: 2d798d9f5967 ("powercap: intel_rapl: add support for Sapphire Rapids") Signed-off-by: Zhang Rui Tested-by: Wang Wendy --- drivers/powercap/intel_rapl_common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/powercap/intel_rapl_common.c b/drivers/powercap/intel_rapl_common.c index 949eb90f5733..d8eaa04bf2af 100644 --- a/drivers/powercap/intel_rapl_common.c +++ b/drivers/powercap/intel_rapl_common.c @@ -1035,7 +1035,6 @@ static const struct rapl_defaults rapl_defaults_spr_server = { .check_unit = rapl_check_unit_core, .set_floor_freq = set_floor_freq_default, .compute_time_window = rapl_compute_time_window_core, - .dram_domain_energy_unit = 15300, .psys_domain_energy_unit = 1000000000, .spr_psys_bits = true, }; -- 2.25.1