Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp90307rdb; Mon, 22 Jan 2024 12:59:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGK6IhzH7Py85thrb7YGTKlJBqwYsma3aJdXQumHjbPw5b4UiSipdOuVLwJ0ZX1WZPpF8lO X-Received: by 2002:a17:90a:7104:b0:290:cb61:9ea8 with SMTP id h4-20020a17090a710400b00290cb619ea8mr220840pjk.35.1705957152395; Mon, 22 Jan 2024 12:59:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705957152; cv=pass; d=google.com; s=arc-20160816; b=qmsPKPeQJG/N2a/Em+0x5skXMI7KkFfCqLR3Wo3/927b+E1Ehi8lMSUAuXtIK9Ea+u VNQ0l/hUJfdlTQkKVTZelWtpp2FaEk0bf2wO2RyAZwD/3NISf6yc6SaoXD6P37k+KPTJ pZ5Jz/zYGgJyp13fRKeGMiAkC6Yx4NPIT4OXgDyKRhR4oZfmA/5Kk3RvxwQFJhMj7wu1 KzCbw5eHCEBhMWegidOrHDy3d0Fx/2L7zpM0SvIyNgDhZpvUN0d9CHQA7Q8JH/a53OPG fJ5M23UiaMtsa3MCgmbmmrgZQvB5ZqP5Qe+lXP48j9llHiCS3IJLcbL6na4DvMToL7ME Lm3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=DyzSZNWh2Ba/umuO/PUNv5e1PhQc+iQeI/bcwl4Rl2E=; fh=XMDF8heenVzrL/uveyAKNleIkJGrnDWQ4ryAGKVB8OQ=; b=gI73Yyt5E8d0vq3lEQqAnWjbp1JJl1hgYqQJR9rBYcwpNdSEH2DH7hnKXP/sr2Qdqd Vdg4ZJsZ4uKwiMEyyIVNuCGBTWsitDVGHWL1oJun3l+ren0/wGJYOMxt8CpEK9WaZE/x A9XE1XvO7AumeIfR1FU3Dsj2iOJd9ft77uLgZrpLmHW8Qee0TOj2KJ+bUIQXoW80/qYy skESCm0+9GAG8xfuipTMVMiTdhCt67pt6QTm/OMBjQaeGiGIwhycK50zsilVwoTYMb9f yremX6jfeN2s97bXPCVWal354XZE9SLfeQSULHGLOPHQgIPuL0bZ9M+GRv1Ul+4W5TTc 36YQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XPuiptVV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-33047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fh10-20020a17090b034a00b0028e71634cbcsi8758787pjb.141.2024.01.22.12.59.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 12:59:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XPuiptVV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-33047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E82A1B2FD14 for ; Mon, 22 Jan 2024 12:47:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE6C83CF4C; Mon, 22 Jan 2024 12:45:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XPuiptVV" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFAE939AC2; Mon, 22 Jan 2024 12:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705927530; cv=none; b=K7TR/k1I7GvrSHaP1/cjEo7qRk4RWEA4tH4UVRXRZenTgQHxr4VV6J2QsJ//D9ptpJ7TZU/ilIhH6zQ+uYCozpSbMkimEOAXzJZr8pM+4RdCvLN3ARZoNj7tFuKvBQlk1Qt65gyXuH10l4Ko8axzAlkD3jPUNsV2uNM3aoBIbso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705927530; c=relaxed/simple; bh=DyzSZNWh2Ba/umuO/PUNv5e1PhQc+iQeI/bcwl4Rl2E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PbeLqDi0Q9AxnbSfyrZX+rkbexIQoPMioUTllGZaT08DU1ktZTXlmI6JAQRaYzUMV1vBIM+1ikucmMuuhdTb3Bn+m8RSB69NrzN9asB2kzSH9+n1J9T1YDGdC5nZuYLkYx46VtCJkKqeczQlhASOx9e69hVIC0Noxxj+5uPHaDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XPuiptVV; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705927529; x=1737463529; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=DyzSZNWh2Ba/umuO/PUNv5e1PhQc+iQeI/bcwl4Rl2E=; b=XPuiptVV+Z774VNDYUb0PaOB4Ftgg0ErPryO2xqwnAAezoGBdXmg2Cr9 U8hHwdeFPjPLQOpNQ43C+ajeMrJNcygXClU3lo5YxrAxoeEtIqHawDk/b fCoB/jcMtRFPwD91YcIpbFbhVQQ87zOBmH94jk1vP7u2ivnZ/A2IqNK4b mrtF8f/LayGatouvrJ/Vp6MyzKeJV526w0kpJ/BxCDAK3ENBeZ6gb6z+R nlmmttj2UaFlSOrSJQCX5ZAed14KP+wk6pz7UWZKguBbCMiU1waqBC4ob 0G3YpcTkDnzmxpIP3BTazE12W6P2EThb3nF2Ia8YGLk7CJHNrGzGfsQgx Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="14540580" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="14540580" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 04:45:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="735147261" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="735147261" Received: from spandruv-mobl4.amr.corp.intel.com (HELO [10.213.79.229]) ([10.213.79.229]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 04:45:26 -0800 Message-ID: Date: Mon, 22 Jan 2024 04:45:22 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] cpufreq: intel_pstate: Directly use stored ratios for max frequencies Content-Language: en-US To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , viresh.kumar@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240118120513.1018808-1-srinivas.pandruvada@linux.intel.com> <6021639.lOV4Wx5bFT@kreacher> From: Srinivas Pandruvada In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/22/24 03:46, Rafael J. Wysocki wrote: > On Mon, Jan 22, 2024 at 12:35 PM srinivas pandruvada > wrote: >> On Mon, 2024-01-22 at 11:53 +0100, Rafael J. Wysocki wrote: >>> On Thursday, January 18, 2024 1:05:13 PM CET Srinivas Pandruvada >>> wrote: >>>> Avoid unnecessary calculation for converting frequency to >>>> performance >>>> ratio by using a scaling factor for the maximum non turbo and turbo >> [...] >> >>> --- >>> From: Rafael J. Wysocki >>> Subject: [PATCH v1] cpufreq: intel_pstate: Refine computation of P- >>> state for given frequency >>> >>> On systems using HWP, if a given frequency is equal to the maximum >>> turbo >>> frequency or the maximum non-turbo frequency, the HWP performance >>> level >>> corresponding to it is already known and can be used directly without >>> any computation. >>> >>> Accordingly, adjust the code to use the known HWP performance levels >>> in >>> the cases mentioned above. >>> >>> This also helps to avoid limiting CPU capacity artificially in some >>> cases when the BIOS produces the HWP_CAP numbers using a different >>> E-core-to-P-core performance scaling factor than expected by the >>> kernel. >>> >>> Fixes: f5c8cf2a4992 ("cpufreq: intel_pstate: hybrid: Use known >>> scaling factor for P-cores") >>> Cc: 6.1+ # 6.1+ >>> Signed-off-by: Rafael J. Wysocki >>> --- >> Tested on the system which showed the issue, this patch work fine. > So I'm going to add a Tested-by from you to it or please let me know > if you don't want me to do so. You can add. Thanks, Srinivas