From: Kim Phillips <kim.phillips@arm.com>
To: Leo Yan <leo.yan@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>,
Jonathan Corbet <corbet@lwn.net>,
linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] doc: coresight: correct usage for '/dev/cpu_dma_latency'
Date: Wed, 23 Aug 2017 11:05:28 -0500 [thread overview]
Message-ID: <20170823110528.ba272128cde46f40c71241cc@arm.com> (raw)
In-Reply-To: <1503472998-9009-1-git-send-email-leo.yan@linaro.org>
On Wed, 23 Aug 2017 15:23:18 +0800
Leo Yan <leo.yan@linaro.org> wrote:
> Cc: Kim Phillips <kim.phillips@arm.com>
> Reported-by: Kim Phillips <kim.phillips@arm.com>
Thanks; typically only the latter is needed.
> Set latency request to /dev/cpu_dma_latency to disable all CPUs specific idle
> -states (if latency = 0uS then disable all idle states):
> -# echo "what_ever_latency_you_need_in_uS" > /dev/cpu_dma_latency
> +states (if latency = 0uS then CPU Idle governor selects idle state0, so this
> +means 'WFI' is still enabled but other deeper states have be disabled, this
> +can avoid power off CPUs):
> +# exec 3<> /dev/cpu_dma_latency; echo "what_ever_latency_you_need_in_uS" >&3
not a fan of the "what_ever_latency_you_need_in_uS" (including and
especially the quotes which can create ambiguity in the user's mind):
just put a cut-n-pasteable example, clarifying the typically-default
value you chose, and its unit, in the text.
More to the point, how did you test this? Are you sure that that the
value being echoed isn't being interpreted as a binary number?
kernel/power/qos.c:pm_qos_power_read() looks to be looking for a 32-bit
binary integer, but I'm not sure if that's where it gets read.
Certainly, this 2013 article uses a C example to write a binary integer:
https://access.redhat.com/articles/65410
Please double-check, thanks,
Kim
next prev parent reply other threads:[~2017-08-23 16:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 7:23 Leo Yan
2017-08-23 9:17 ` Sudeep Holla
2017-08-23 11:08 ` Leo Yan
2017-08-23 16:05 ` Kim Phillips [this message]
2017-09-15 10:23 ` Leo Yan
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=20170823110528.ba272128cde46f40c71241cc@arm.com \
--to=kim.phillips@arm.com \
--cc=corbet@lwn.net \
--cc=leo.yan@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.poirier@linaro.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
all inboxes | Powered by JetHome®