Commit Graph

8 Commits

Author SHA1 Message Date
Sarangdhar Joshi f8c4d52748 coresight: add tpda enable validation checks in sysfs show functions
TPDA clocks are voted during TPDA enable and un-voted during TPDA
disable. Read TPDA registers only when TPDA is enabled to avoid
any unclocked access. Add TPDA enable validation checks before
reading TPDA flush registers via sysfs show functions. These validation
checks are already present in sysfs store functions used for making TPDA
flush request.

CRs-Fixed: 819721
Change-Id: Icbb530d9a1c1aad516f137c3faaf4c7d0373265c
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
2015-04-08 12:57:16 -07:00
Sarangdhar Joshi 992db96510 coresight: correctly set bits for bc, tc and dsb element size
BC, TC and DSB element size needs to be programmed in one of the TPDA
register.  Correctly set bits representing BC, TC and DSB element size.

Change-Id: I1ea1936539c5c4a117b86bc6193b7acf4872e62c
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
2015-02-28 16:49:56 -08:00
Sarangdhar Joshi bc55a64b3a coresight: use dt property to specify atid for tpda
Add support to use device tree property to specify ATID value required
for supporting multiple TPDAs.

Change-Id: Id032a7cb3ceab35763f81155d1b8c50bb513be7b
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
2015-02-09 15:38:38 -08:00
Sarangdhar Joshi 4a053c13ab coresight: add element size support for dataset types
Add support for setting up the element size value per TPDA port for various
dataset types as this is necessary for TPDA functionality.

Change-Id: I36e7d849634d1576b5591337479cc92b77b3f395
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
2015-02-05 08:27:11 -08:00
Sarangdhar Joshi 981437e636 coresight: add device attributes to support flush request
TPDA supports global and per port flush request options. Add device
attributes in TPDA driver to honor these options.

Change-Id: I5d6cbde775375b78fd0aae0734244b3753dee426
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
2015-02-04 14:48:28 -08:00
Sarangdhar Joshi 4608aacb30 coresight: modify frequency request device attribute name
Modify device attribute name for frequency request to make it more
intuitive.

Change-Id: I4fe3f8eeb1ab1abe0eae3bcb684cdc6c2bb6b034
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
2014-10-31 15:01:55 -07:00
Sarangdhar Joshi 448bc9753a coresight: set the flag to request timestamp for freq packets
Set the flag to request timestamp by default for frequency packets. User
can clear the flag if timestamp is not required for frequency packets.

Change-Id: Iabddf7eaedeef2cd1d264a7db9c99f6bdf43bfd9
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
2014-10-31 13:54:14 -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