Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp66157imj; Thu, 14 Feb 2019 15:28:30 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia7LjXjjgy3Fljgy/ALT6MF8NqPX8bxH/E6so4d362H33vCEfLMNax6+SeHwDbxB1ZPTBAv X-Received: by 2002:a17:902:6681:: with SMTP id e1mr6835366plk.98.1550186909986; Thu, 14 Feb 2019 15:28:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550186909; cv=none; d=google.com; s=arc-20160816; b=Y/LINz1zI+5PfV0mrom5jGw2+CoH4fpI9wjnk+tQX9lHDAvU8CdTLdSp4kSPkGMG4x lzGfnYJ4MPy7Xefb9XQ6xwgrWKMuJnMqeP8GkJayEScxMROEDak1Z+NwNt/IDfPJmr50 Kf1FcDpCFuU0boLAxYMiszM+U+/1FBbKHAVQjTSp+HQKkwFErbWWQx5OFwOUz4L4LsQb jPJCofCdi4bzZAt8OTfhaLBmPgAhTcTGcA1micK78U3wIYff3TunC9tHatvgwL4jugBH cxDZp7udXA3y5sBjrqqwivUYqNJHRNozOiVeVMBf62pKQBb7EZKMUc19yXm5sLIVXRpA xX1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6+zZpoWDdZ8o5wL5B2pDv5Zm/vViTmiT4uk0oNoBtrs=; b=vAzi/83uRcqYyM7JzpkHBZTSXKgYkbKb4mqmW9D1B90oISSEg77rdbxK38168pbNBF 5ur39nRxkXU140ZSnCBaD4jHEThGLaSIBffXHfiZwbkvv3W3agWk7jI8ZH9ddB/NcIZu yZfgfAIDe9ZufNNf36H9mmlC/AZqDZD/2nlmF0ykgiyLeRMxH1cpwRaX5na5wDBLfLhZ y6/TFq7IeCRrIWYRgDep7KwdC7Ou73ebzui+r6EUR0Hy8spZkksK/jFKTwy8huy9hfGg NpOkixDJoW1Xsrt4HPdZztY9i5aq+8ESL3JfdQmDIIccj6lT+feiHujtNRXZOmZ9B/SY OQ6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si3679403pgp.504.2019.02.14.15.28.14; Thu, 14 Feb 2019 15:28:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407029AbfBNN1S (ORCPT + 99 others); Thu, 14 Feb 2019 08:27:18 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3206 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388291AbfBNN1S (ORCPT ); Thu, 14 Feb 2019 08:27:18 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EFCECE4662CDA4F17B70; Thu, 14 Feb 2019 21:27:14 +0800 (CST) Received: from [127.0.0.1] (10.184.52.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.408.0; Thu, 14 Feb 2019 21:27:05 +0800 Subject: Re: [PATCH v2 0/2] Work around for Hisilicon CPPC cpufreq To: John Garry , , , , , , CC: , , References: <1550130368-60513-1-git-send-email-wangxiongfeng2@huawei.com> <2f397788-fcb0-a781-c497-9e698494f508@huawei.com> From: Xiongfeng Wang Message-ID: <851b2825-3324-cfc4-0806-d4aa7ef577cd@huawei.com> Date: Thu, 14 Feb 2019 21:27:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <2f397788-fcb0-a781-c497-9e698494f508@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.184.52.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/2/14 19:39, John Garry wrote: > On 14/02/2019 07:46, Xiongfeng Wang wrote: >> Hisilicon chips do not support delivered performance counter register >> and reference performance counter register. But the platform can >> calculate the real performance using its own method. This patch provide >> a workaround for this problem, and other platforms can also use this >> workaround framework. We reuse the desired performance register to >> store the real performance calculated by the platform. After the >> platform finished the frequency adjust, it gets the real performance and >> writes it into desired performance register. OS can use it to calculate >> the real frequency. >> > > It would be convenient for reviewers to detail what changed between versions in future. Thanks, I will add changelog next time. Xiongfeng > > John > >> Xiongfeng Wang (2): >> ? ACPI / CPPC: Add a helper to get desired performance >> ? cpufreq / cppc: Work around for Hisilicon CPPC cpufreq >> >> ?drivers/acpi/cppc_acpi.c?????? | 38 +++++++++++++++++++++++ >> ?drivers/cpufreq/cppc_cpufreq.c | 70 ++++++++++++++++++++++++++++++++++++++++++ >> ?include/acpi/cppc_acpi.h?????? |? 1 + >> ?3 files changed, 109 insertions(+) >> > > > > . >