From: leo.yan@linaro.org (Leo Yan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 00/17] coresight: next v4.12-rc4
Date: Thu, 15 Jun 2017 23:50:54 +0800 [thread overview]
Message-ID: <20170615155054.GN28496@leoy-ThinkPad-T440> (raw)
In-Reply-To: <20170615092246.bc4fb71637e482a118199864@arm.com>
Hi Kim,
On Thu, Jun 15, 2017 at 09:22:46AM -0500, Kim Phillips wrote:
> On Thu, 15 Jun 2017 09:41:22 +0100
> Sudeep Holla <sudeep.holla@arm.com> wrote:
>
> > On 15/06/17 04:34, Kim Phillips wrote:
> > [...]
> > > How does one tell whether writes to /dev/cpu_dma_latency are effective?
> > >
> > Watch /sys/devices/system/cpu/cpu*/cpuidle/state*/{usage,time}, they
> > shouldn't tick based on the value set to cpu_dma_latency.
> >
> > E.g. a value of 0 should stop entering all the idle states.
>
> I see all states following the same pattern whether 0 or not:
>
> root at juno:~# cat show2.sh
> show()
> {
> echo $1 > /dev/cpu_dma_latency
> echo === $1:
> cat /sys/devices/system/cpu/cpu2/cpuidle/state*/{usage,time}
> echo ---
> sleep 10
> cat /sys/devices/system/cpu/cpu2/cpuidle/state*/{usage,time}
> }
>
> show 0
> show 1500
> show 0
> root at juno:~# taskset -c 2 bash ./show2.sh
> === 0:
> 1893
> 894
> 5417
> 1398675
> 65997648
> 3818880750
> ---
> 1895
> 905
> 5434
> 1401721
> 68076867
> 3826795502
> === 1500:
> 1895
> 905
> 5434
> 1401721
> 68076867
> 3826795502
> ---
> 1895
> 918
> 5447
> 1401721
> 69403510
> 3835466081
> === 0:
> 1895
> 918
> 5447
> 1401721
> 69403510
> 3835466081
> ---
> 1896
> 929
> 5463
> 1403577
> 71454839
> 3843409979
>
> googling suggests the /dev/cpu_dma_latency file should be *kept* open,
> and written a 32-bit binary number:
>
> https://access.redhat.com/articles/65410
>
> If so (I don't have time to test), this cpu debug documentation is very
> deceptive.
Looked into the code, and I must apologize I have not verified the
command when wrote the doc. As you pointed out, the closing file
operation releases the constraint for PM QoS.
Below command can work (I tested):
exec 3<> /dev/cpu_dma_latency; echo 0 >&3
Will commit one patch for this.
Thanks,
Leo Yan
next prev parent reply other threads:[~2017-06-15 15:50 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-05 20:15 [PATCH 00/17] coresight: next v4.12-rc4 Mathieu Poirier
2017-06-05 20:15 ` [PATCH 01/17] coresight: Disable the path only when the source is disabled Mathieu Poirier
2017-06-05 20:15 ` [PATCH 02/17] coresight: Fix reference count for software sources Mathieu Poirier
2017-06-05 20:15 ` [PATCH 03/17] coresight: etm_perf: Fix using uninitialised work Mathieu Poirier
2017-06-09 22:53 ` Kim Phillips
2017-06-05 20:15 ` [PATCH 04/17] coresight: tmc: minor fix for output log Mathieu Poirier
2017-06-05 20:15 ` [PATCH 05/17] coresight: use const for device_node structures Mathieu Poirier
2017-06-05 20:15 ` [PATCH 06/17] coresight: etb10: Delete an error message for a failed memory allocation in etb_probe() Mathieu Poirier
2017-06-05 20:15 ` [PATCH 07/17] coresight: etb10: Fix a typo in a comment line Mathieu Poirier
2017-06-05 20:15 ` [PATCH 08/17] coresight: tmc: Configure DMA mask appropriately Mathieu Poirier
2017-06-05 20:15 ` [PATCH 09/17] coresight: bindings for CPU debug module Mathieu Poirier
2017-06-05 20:15 ` [PATCH 10/17] doc: Add documentation for Coresight CPU debug Mathieu Poirier
2017-06-05 20:15 ` [PATCH 11/17] doc: Add coresight_cpu_debug.enable to kernel-parameters.txt Mathieu Poirier
2017-06-05 20:15 ` [PATCH 12/17] MAINTAINERS: update file entries for Coresight subsystem Mathieu Poirier
2017-06-05 20:15 ` [PATCH 13/17] coresight: of_get_coresight_platform_data: Add missing of_node_put Mathieu Poirier
2017-06-05 20:15 ` [PATCH 14/17] coresight: refactor with function of_coresight_get_cpu Mathieu Poirier
2017-06-05 20:15 ` [PATCH 15/17] coresight: add support for CPU debug module Mathieu Poirier
2017-06-05 20:15 ` [PATCH 16/17] arm64: dts: hi6220: register " Mathieu Poirier
2017-06-05 20:15 ` [PATCH 17/17] arm64: dts: qcom: msm8916: Add debug unit Mathieu Poirier
2017-06-09 22:53 ` [PATCH 00/17] coresight: next v4.12-rc4 Kim Phillips
2017-06-10 2:34 ` Leo Yan
[not found] ` <CANLsYky8XLbOwinxVc2xKaNzhkpUOX0NsNxrFF4=MsjzC3iY1g@mail.gmail.com>
2017-06-13 21:17 ` Kim Phillips
2017-06-14 6:22 ` Leo Yan
2017-06-15 3:34 ` Kim Phillips
2017-06-15 8:41 ` Sudeep Holla
2017-06-15 14:22 ` Kim Phillips
2017-06-15 15:50 ` Leo Yan [this message]
2017-08-21 23:31 ` Kim Phillips
2017-08-23 7:25 ` Leo Yan
2017-06-15 13:08 ` Suzuki K Poulose
2017-06-15 13:40 ` Kim Phillips
2017-06-15 14:02 ` Suzuki K Poulose
2017-06-15 14:45 ` Kim Phillips
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170615155054.GN28496@leoy-ThinkPad-T440 \
--to=leo.yan@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox