Thread (12 messages) read the whole thread 12 messages, 4 authors, 2017-08-23
STALE3266d

Revision v1 of 7 in this series.

Revisions (7)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 current
  5. v1 [diff vs current]
  6. v1 [diff vs current]
  7. v1 [diff vs current]

[PATCH 00/17] coresight: next v4.12-rc4

From: Kim Phillips <hidden>
Date: 2017-06-15 13:40:06

On Thu, 15 Jun 2017 14:08:09 +0100
Suzuki K Poulose [off-list ref] wrote:
On 14/06/17 07:22, Leo Yan wrote:
quoted
Hi Kim,

On Tue, Jun 13, 2017 at 04:17:12PM -0500, Kim Phillips wrote:

[...]
quoted
quoted
quoted
Also, do the current juno platforms not have CPU debug modules?  I'd
like to test the new driver.
By all means - Leo pointed out the patch adding the CPU debug entries in
the DT  file for Juno.
Thanks, I applied it, was able to
toggle /sys/kernel/debug/coresight_cpu_debug/enable, but wasn't sure
how to trigger the cpu debug output...
You could trigger panic flow with command, then can see CPU debug output:
echo c > /proc/sysrq-trigger
I think, may be we should provide a handle to trigger the CPU debug dump
manually, rather than using it only for panic. Something like :

echo 1 > /sys/kernel/debug/coresight_cpu_debug/trigger

Thoughts ?
what's the use-case?  I just wanted to do a simple test, and although
it halted my machine, the sysrq-trigger switch did the job.

I'm personally not a huge fan of adding more switches, rather for doing
the right thing on behalf of the user in the first place.  E.g., in the
case of cpu debug, if configured =y, I don't think it would necessarily
harm the simple user to have it always be enabled, at boot time and
beyond, thereby doing away with the .../coresight_cpu_debug/enable
switch and kernel command line option.  If there are users that want to
turn it on and off dynamically, that can be done by loading and
unloading the module.

Kim
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help