[PATCH 07/10 v3] coresight-etm: add CoreSight ETM/PTM driver

Mathieu Poirier mathieu.poirier at linaro.org
Fri Aug 15 12:26:34 PDT 2014


SNIP...

>
>
>> > Does that mean ETM can't be enabled over cpu power-down?
>> > In the case where an ETM is powered up and the cpu is not,
>> > you might want to program and enable the ETM, to trace the
>> > cpu's power-up sequence.
>>
>> This a valid usecase that I had not considered - ok, I'll look into
>> that.

The situation can be fixed by only calling "etm_enable_hw()" if the
CPU is on line.  Otherwise the cpu callback can deal with configuring
the ETM/PTM before the processors starts its initialisation routing,
allowing one to trace the boot process.

>>
>> >
>> > Or, if the ETM is powered down but can be powered up independently
>> > of the CPU, etm_enable could do so.
>>
>> Once again, I'm not sure that I fully grasp your train of thoughts -
>> please rephrase or be more specific.
>
> I meant that if the ETM was in a separate power domain from the CPU
> and could be powered up before the CPU was, the driver could take some
> action to power up the ETM's power domain.

Agreed - I currently don't have a test platform for this but is it
something that regularly comes up.  Implementing something of that
nature will be bumped up to the top of the priority list when I get my
hands on a platform that works that way.  Until then I'd rather not
introduce code that I can't test.



More information about the linux-arm-kernel mailing list