PATCH: add small infrastructure and definitions to export debugfs files for OMAP powerdomain attributes

Kevin Hilman khilman at ti.com
Tue May 15 17:47:35 UTC 2012


Hi Amit, Eric,

Amit Kucheria <amit.kucheria at linaro.org> writes:

> Eric,
>
> This looks interesting, but I'll add the linux-omap list to CC so
> someone can verify if there isn't already a patch to export this.

We used to have similar PM debug code in the kernel, but as the one who
maintained it, I decided to remove it.  This kind of thing is obviously
very SoC specific, and therefore a major pain to maintain in the kernel
for all the SoCs we support in linux-omap.

In my view, this kind of raw register dump/analysis does not belong in
the kernel, but rather in userspace tools.  

What we have been moving towards is using tracepoints in the
clock/clockdomain/powerdomain layers to track state transitions in all
of these layers.  By analyzing the trace you can similarily see the
state of each of the clocks and powerdomains.  We currently don't have
all of the low-level details (like context loss, logic & mem state,
etc.) but that is not difficult to add with some new tracepoints.

I removed the in-kernel register dumping in the hope that folks would
start using userspace tools perf/ftrace to do the same.

Kevin



More information about the linaro-kernel mailing list