Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp655702ybb; Thu, 28 Mar 2019 09:32:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlqPdRflwhQhgQQRIZkj/uXYgSX8PrxKGi1tPClDPiEx2gMWv8K/kdIkoc4taEmWbzjkeA X-Received: by 2002:a17:902:469:: with SMTP id 96mr42669003ple.46.1553790777689; Thu, 28 Mar 2019 09:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553790777; cv=none; d=google.com; s=arc-20160816; b=pZZJAtaZYM2QhAPpsJLaY6NWy4Q5BtpWXXyMVGavOL+8TBSS2G9t2fFDN/mXt90l3X a9zuDdO2fNaiNZegYboOYbq4//NPQipv7x1k0tFl43RAB+Mv9MeYRGYAdjmS2O9I4QVX koA1UNhu/YSvHAp/hlbZ06fyGYjslqGxaqHNT4MXyPfsKMbwW94/sGEQbFPJKVQqhZx0 eeTHpGWulKaz3gp/23jY3JsN5TykNzJuWCwVDBoznESj49HlkL3o1o2I7u9C0buFLeup 701o2RYifobLXY7fIA8OXCF7cpvq1rpVNYh3OYssVkhJt2H0HEir36FzPbreENJjYzZ0 FTVg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CFZdYyIHhQ00FS4s+O0taLbzNPyzTG7Y3/SaqUe4LOg=; b=vXYR9NvUBy33k1ojjLAREsgsS3tE5+9c9I5bC5SdIHeX8kzihPN8liexZXzDBUORQu +llvf0W+i4jecoFswL/8MmKb0z4XcdkZcnFrUAngXQ5TV/BvyHtrKUQzzY+75a/VUcs7 29VglfNwTOwYbjk5fuV4pO15d4sK4qAJ0Gg3C5UJJnhJ+FTcVXSra2rqeHNTspzeq7pK Kqh703r+WHPtWAlWVsfsoPTXPLNEWV/SSdZWIFVeVPpvP36VdGnBvNV9qwmkHyfsdjJ1 dR3duPaZN6vcbSwmOkIwRdq1SPIZYF05UwJ+xkpcjjovItbj3QusR8CVaeBc994AwpER HDOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gqo+vYhR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y33si21066524pga.134.2019.03.28.09.32.41; Thu, 28 Mar 2019 09:32:57 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gqo+vYhR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727988AbfC1QaP (ORCPT + 99 others); Thu, 28 Mar 2019 12:30:15 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45136 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727565AbfC1QaN (ORCPT ); Thu, 28 Mar 2019 12:30:13 -0400 Received: by mail-pg1-f194.google.com with SMTP id y3so11841319pgk.12; Thu, 28 Mar 2019 09:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CFZdYyIHhQ00FS4s+O0taLbzNPyzTG7Y3/SaqUe4LOg=; b=Gqo+vYhRyAoZ8ibwcJ0QfuhV+qixgo7vOAzh6bcoQdkinVC+GPaij/MCwSFWPCKIbq j46VAVtUgrRANndEt4IC62nnWDUlyw6VFkNdRz3MlQI6CBPP457bqJjDrAtd1bULf2yX E9jJHQESsGTCj7hwWu3mqxgHyHkJ4jW3TwFvEcMc3JIucS+rbWCFpt51X4z47Hkt05ig nfU2bN4xy+GQFwUC2HmepY/OQG5U4eW1ggskpIwCN+xCCF77j+SE9mEk1r7fBX7+l7wc hJr/Z00mdVEitqD0xlBbwXbS1j5m3yOxc0KJr1kSHGwUtf0rqVy/+dy/XSQ034k3AN2W 6sew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CFZdYyIHhQ00FS4s+O0taLbzNPyzTG7Y3/SaqUe4LOg=; b=BXy6MKTBozCHBUKGzfUSL0LZUA54BQRcMy7kcJyKU25mpf3acfYaON0hv0NSsjASt9 bZ+dX7nXRHTZn7/InxwNtwWxDWphOtjbqT5aGUXbF2FqC224BatxmHJu4fQq4d3XS4yH qP3F1CXN/UpWed4ws7BHxuYQp9eTX81WbI9FSav05mitEGpmFaT9e3cwu+oZyN8TubcC 5KXo7esDN+C7hqNQGJBYWc1dY/y4yghb4Mswd+jjQcLBY372cdQ4pjWl4mAqEBUrQevW EOiPfMMljzmAWxcvTjMH7/IMkvgETfAb+s9W0qavBiDEz988lF2Czz3Xvk4iOjrv0q1e sBPg== X-Gm-Message-State: APjAAAU9I5XqNBy32US5z1nSotAn3RUFktiAiRpEfVoKclpgZZSzUip9 Bf2SXIcYQMYe/2LnIbJj3TU= X-Received: by 2002:a63:1ce:: with SMTP id 197mr40835490pgb.47.1553790612754; Thu, 28 Mar 2019 09:30:12 -0700 (PDT) Received: from localhost.localdomain ([104.238.181.70]) by smtp.gmail.com with ESMTPSA id y12sm42748885pgq.64.2019.03.28.09.30.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 09:30:11 -0700 (PDT) From: Changbin Du To: Jonathan Corbet Cc: rjw@rjwysocki.net, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Changbin Du Subject: [PATCH 20/23] acpi doc: convert acpi/cppc_sysfs.txt to rst format Date: Fri, 29 Mar 2019 00:27:18 +0800 Message-Id: <20190328162721.26138-21-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190328162721.26138-1-changbin.du@gmail.com> References: <20190328162721.26138-1-changbin.du@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du --- .../acpi/{cppc_sysfs.txt => cppc_sysfs.rst} | 69 ++++++++++--------- Documentation/acpi/index.rst | 1 + 2 files changed, 38 insertions(+), 32 deletions(-) rename Documentation/acpi/{cppc_sysfs.txt => cppc_sysfs.rst} (51%) diff --git a/Documentation/acpi/cppc_sysfs.txt b/Documentation/acpi/cppc_sysfs.rst similarity index 51% rename from Documentation/acpi/cppc_sysfs.txt rename to Documentation/acpi/cppc_sysfs.rst index f20fb445135d..e8a13d6e7a6c 100644 --- a/Documentation/acpi/cppc_sysfs.txt +++ b/Documentation/acpi/cppc_sysfs.rst @@ -1,5 +1,9 @@ +================================================== +Collaborative Processor Performance Control (CPPC) +================================================== - Collaborative Processor Performance Control (CPPC) +CPPC +==== CPPC defined in the ACPI spec describes a mechanism for the OS to manage the performance of a logical processor on a contigious and abstract performance @@ -10,31 +14,28 @@ For more details on CPPC please refer to the ACPI specification at: http://uefi.org/specifications -Some of the CPPC registers are exposed via sysfs under: +Some of the CPPC registers are exposed via sysfs under:: -/sys/devices/system/cpu/cpuX/acpi_cppc/ + /sys/devices/system/cpu/cpuX/acpi_cppc/ -for each cpu X +for each cpu X:: --------------------------------------------------------------------------------- - -$ ls -lR /sys/devices/system/cpu/cpu0/acpi_cppc/ -/sys/devices/system/cpu/cpu0/acpi_cppc/: -total 0 --r--r--r-- 1 root root 65536 Mar 5 19:38 feedback_ctrs --r--r--r-- 1 root root 65536 Mar 5 19:38 highest_perf --r--r--r-- 1 root root 65536 Mar 5 19:38 lowest_freq --r--r--r-- 1 root root 65536 Mar 5 19:38 lowest_nonlinear_perf --r--r--r-- 1 root root 65536 Mar 5 19:38 lowest_perf --r--r--r-- 1 root root 65536 Mar 5 19:38 nominal_freq --r--r--r-- 1 root root 65536 Mar 5 19:38 nominal_perf --r--r--r-- 1 root root 65536 Mar 5 19:38 reference_perf --r--r--r-- 1 root root 65536 Mar 5 19:38 wraparound_time - --------------------------------------------------------------------------------- + $ ls -lR /sys/devices/system/cpu/cpu0/acpi_cppc/ + /sys/devices/system/cpu/cpu0/acpi_cppc/: + total 0 + -r--r--r-- 1 root root 65536 Mar 5 19:38 feedback_ctrs + -r--r--r-- 1 root root 65536 Mar 5 19:38 highest_perf + -r--r--r-- 1 root root 65536 Mar 5 19:38 lowest_freq + -r--r--r-- 1 root root 65536 Mar 5 19:38 lowest_nonlinear_perf + -r--r--r-- 1 root root 65536 Mar 5 19:38 lowest_perf + -r--r--r-- 1 root root 65536 Mar 5 19:38 nominal_freq + -r--r--r-- 1 root root 65536 Mar 5 19:38 nominal_perf + -r--r--r-- 1 root root 65536 Mar 5 19:38 reference_perf + -r--r--r-- 1 root root 65536 Mar 5 19:38 wraparound_time * highest_perf : Highest performance of this processor (abstract scale). -* nominal_perf : Highest sustained performance of this processor (abstract scale). +* nominal_perf : Highest sustained performance of this processor + (abstract scale). * lowest_nonlinear_perf : Lowest performance of this processor with nonlinear power savings (abstract scale). * lowest_perf : Lowest performance of this processor (abstract scale). @@ -48,22 +49,26 @@ total 0 * feedback_ctrs : Includes both Reference and delivered performance counter. Reference counter ticks up proportional to processor's reference performance. Delivered counter ticks up proportional to processor's delivered performance. -* wraparound_time: Minimum time for the feedback counters to wraparound (seconds). +* wraparound_time: Minimum time for the feedback counters to wraparound + (seconds). * reference_perf : Performance level at which reference performance counter accumulates (abstract scale). --------------------------------------------------------------------------------- - Computing Average Delivered Performance +Computing Average Delivered Performance +======================================= + +Below describes the steps to compute the average performance delivered by +taking two different snapshots of feedback counters at time T1 and T2. + + T1: Read feedback_ctrs as fbc_t1 + Wait or run some workload -Below describes the steps to compute the average performance delivered by taking -two different snapshots of feedback counters at time T1 and T2. + T2: Read feedback_ctrs as fbc_t2 -T1: Read feedback_ctrs as fbc_t1 - Wait or run some workload -T2: Read feedback_ctrs as fbc_t2 +:: -delivered_counter_delta = fbc_t2[del] - fbc_t1[del] -reference_counter_delta = fbc_t2[ref] - fbc_t1[ref] + delivered_counter_delta = fbc_t2[del] - fbc_t1[del] + reference_counter_delta = fbc_t2[ref] - fbc_t1[ref] -delivered_perf = (refernce_perf x delivered_counter_delta) / reference_counter_delta + delivered_perf = (refernce_perf x delivered_counter_delta) / reference_counter_delta diff --git a/Documentation/acpi/index.rst b/Documentation/acpi/index.rst index 431edc664135..f59e6ddb0f99 100644 --- a/Documentation/acpi/index.rst +++ b/Documentation/acpi/index.rst @@ -24,3 +24,4 @@ Linux ACPI (Advanced Configuration and Power Interface) aml-debugger apei/output_format apei/einj + cppc_sysfs -- 2.20.1