Commit Graph

17 Commits

Author SHA1 Message Date
Pratik Patel 1bbccd2f87 coresight: add support for cti save disable
Add support to disable CTI save and restore to avoid voting for
CTI clock during probe as well as the associated save and restore
latency at the cost of breaking cpu CTI support on targets where
cpu CTIs have to be preserved across power collapse.

This allows for low overhead CTI support where cpu CTI usage is
not required but the target requires cpu CTIs to be preserved
across power collapse.

Change-Id: I0545d3442d1d6b2f707da7f56d029a7df2f7cae9
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2014-10-01 12:57:47 -07:00
Pratik Patel 0cd7ef13fc defconfig: explicitly enable coresight cti on msm targets
Remove implicit selection of CoreSight CTI driver from Kconfig
and instead explicitly enable it in various msm defconfigs. This
gives the flexibility to selectively enable or disable CTI driver
on a defconfig for a particular target.

Change-Id: I328aa53cdcaade0bbb6bf1b0d7f4f221a5e31518
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2014-10-01 12:57:45 -07:00
Sarangdhar Joshi c3d8863ae0 coresight: add tpda and tpdm driver support
Add TPDA and TPDM driver support required for trace, profiling & diagnostic
data collection and retrieval. Monitors are responsible for data set
collection and aggregators are useful for pulling the datasets from one or
more attached monitors and pushing the resultant data out.

Change-Id: I15097a62ca1c100f38409abc4bf92793e8187d70
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
2014-09-20 13:28:28 -07:00
Aparna Das ddacec057a coresight: add support for resetting etm by default
Add support for resetting ETM parameters by default on bootup
which can otherwise be done using sysfs.

Change-Id: I098274a44dd9150ccbf3afd88654eb0a7eb74809
Signed-off-by: Aparna Das <adas@codeaurora.org>
2014-04-02 14:37:09 -07:00
Aparna Das 58626dd03f coresight: add support to enable remote processor etm tracing on boot
Add support to allow enabling remote processor etm tracing on boot by
default so users don't have to enable it explicitly from sysfs.

Change-Id: I7f719d0b5a504a35cba503c60a7d5d9f8434b309
Signed-off-by: Aparna Das <adas@codeaurora.org>
2014-04-02 09:39:32 -07:00
Aparna Das fbc618a08a coresight: add support for etmv4
Add support for Embedded Trace Macrocell v4 trace architecture
which is required for instruction trace on ARMv8 arctitecture.

Change-Id: Iff24690e3161eb12d6f0e09af0c45f9739c7ca66
Signed-off-by: Aparna Das <adas@codeaurora.org>
2014-03-12 18:21:58 -07:00
Aparna Das 4facbd0621 coresight: add support for qpdi driver
Add support for CoreSight QPDI driver which provides
controlled access to PMIC Debug Interface.

Change-Id: Ia2e6cc4e276923b55f34046a6a422e7533768e72
Signed-off-by: Aparna Das <adas@codeaurora.org>
2014-03-03 13:31:49 -08:00
Sarang Joshi 87d84607d7 coresight: add event to abort tracing on kernel panic
Add trace event to control aborting CoreSight trace
dynamically based on module parameter. This will help
user to enable/disable coresight_abort on kernel panic.
Also moved CREATE_TRACE_POINTS to panic.c from fault.c
since panic.c is common and shared between 32 and 64
bit platforms.

Change-Id: I51e4049b07adeca571b1a98cd90ff5f307d1d794
Signed-off-by: Sarang Joshi <spjoshi@codeaurora.org>
2014-02-21 16:41:14 -08:00
Ian Maund f06163e6d0 msm: reap unused kernel files
This change removes source files from the kernel tree that
were not being used during make. The list of used files
was generated using an annotated make log and was then
compared with new files added since the public release of
kernel version 3.10.00. New files which were added but
not used have been removed from the tree.

A diff was also run to determine the list of files that had
been modified since the release of kernel version 3.10.00.
These files were then scrubbed based on the current kernel
configuration, removing invalid and unused conditionals.

Some files which support planned functionality or are
useful in debugging have been excluded from this reap.

Change-Id: Ia44a224d3cea7bc78dd45e8a8279860d35d4b008
Signed-off-by: Ian Maund <imaund@codeaurora.org>
2013-11-21 17:45:28 -08:00
Aparna Das 0f610611d1 coresight: support etm tracing on remote processors
Currently the remote processors do not have access to CoreSight debug
and trace framework. Add support for configuring the required CoreSight
components to enable ETM tracing on these processors.

Change-Id: I1a2aa6567f26124124cf1c570575836e62519052
Signed-off-by: Aparna Das <adas@codeaurora.org>
2013-10-04 14:53:17 -07:00
Pratik Patel 6983a1010a coresight: add coresight fuse driver
Add support for CoreSight Fuse driver which can be used by other
CoreSight drivers to query the state of the CoreSight fuses to
determine if the Hardware they manage is functionally disabled or
not.

Drivers can then take necessary actions like failing the probe if
the Hardware they manage is functionally disabled.

Change-Id: I2c2a2af064db750539b0ffa33870ddb7a2832e68
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 17:06:17 -07:00
Aparna Das 9cd9ea86e1 coresight: add support for coresight hardware event driver
The STM hardware event interface allows monitoring and tracing
of up to 32 hardware events. The CoreSight Hardware Event driver
programs various hardware event mux control registers to configure
these hardware events based on user selection. Currently APSS
controlled hardware event configurations are supported.

Change-Id: Ic2749ae1a8d405159cc7e8210dfc1d8864f96df9
Signed-off-by: Aparna Das <adas@codeaurora.org>
2013-09-04 16:31:23 -07:00
Pratik Patel 881142c4a2 coresight: add coresight cti driver
Add support for CoreSight Cross Trigger Interface driver which
can be used to setup various cross-triggers available between
hardware blocks. This driver provides both an in kernel api as
well as a sysfs based user interface.

Change-Id: Idf445e6d1a3b082e0101b9b38926584527f1630f
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 16:03:03 -07:00
Pratik Patel 415d8d3770 coresight: split qdss config to more granular coresight configs
Change CONFIG_MSM_QDSS to granular CORESIGHT configs covering
various CoreSight drivers. This better represents the CoreSight
device topology and allows more flexibility in choosing the
drivers required for a particular platform or chip.

Change-Id: I5ae44442c24c88673f2045ad24dc89e4d86d23cb
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 15:56:50 -07:00
Pratik Patel 0f41a57a3b coresight: implement runtime pc save control
Add runtime control for enabling/disabling program counter save feature.
Enabling program counter save feature will enable pc to be saved on
reset but implies ETM being left powered on. So we provide user runtime
control to enable the feature when debugging or disable it while taking
power measurements.

Change-Id: Ib007da851ee7f3b0fac195da62aac7def68cc67a
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 15:23:03 -07:00
Pushkar Joshi 0794ed8130 coresight: A DLKM to abort trace on userspace abort
A DLKM to abort tracing on an user space data, prefetch or
undefined instruction abort.

Change-Id: Iaba14628601ea6d3649e05423f8570131eea39f7
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
2013-09-04 15:20:27 -07:00
Pratik Patel 30700919f3 coresight: rename directory and files from cs to coresight
Since cs is not a well known acronym for CoreSight, rename
directory and files from cs to coresight.

Change-Id: I5f9b12794b80b1c01c9ce0621d53ee6be408a361
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 14:58:31 -07:00