Commit Graph

15 Commits

Author SHA1 Message Date
Aparna Das 3e576089f2 coresight: get etm funnel port for associated cpu
Add support to retrieve CoreSight ETM funnel port for the CPU
associated with the ETM device to allow enabling and disabling
the correct funnel port to prevent trace flush hang during power
collapse.

Signed-off-by: Aparna Das <adas@codeaurora.org>
Change-Id: I880881b5d4de4bf1947e5316eb1ad624176516dd
2014-07-27 23:01:28 -07:00
Pan Fang fa4748d1c5 coresight: add support for the nidnt mode in the tpiu driver
Add the Narrow Interface for Debug and Trace mode in the msm8916
platform which will provides nidnt hardware sensing to debug the
device online.

Change-Id: Ia169c805ea5ebe28ac483bff448e9495edb43811
Signed-off-by: Pan Fang <fangpan@codeaurora.org>
2014-04-09 11:01:48 +08: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
Pushkar Joshi 5913467ded coresight: appropriately handle hardware event mux control registers
Modify the hardware events driver so that it can handle the hardware event
mux control register addresses being greater than 32 bits.

Change-Id: Id41ce183fa946b14590947f21fbcea361393543f
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
2013-09-04 17:16:04 -07:00
Pushkar Joshi 0c95f352e5 coresight: Add support for byte counter interrupt feature
The CoreSight block can produce an interrupt on transfer of
programmed number of bytes to ETR-memory. Use this feature
to provide an interface to manage the byte counter value and
to collect a continuous data stream from userspace.

Change-Id: Ic00c9b19483be566d0f05005936b4a6ff7ab52f1
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
2013-09-04 17:12:34 -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 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 49c4e95b90 coresight: implement new tmc etr to usb flush procedure
Recommended ETR to usb flush procedure changed. This implements
the new recommended procedure.

CRs-Fixed: 443106
Change-Id: I18a6d457686905cbee75ce081ee4c6b4f6fdc62c
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 15:55:07 -07:00
Pratik Patel 41e8cc8c9d coresight: cp14 support for etm driver for krait v3
Use cp14 accesses to ETM registers for Krait v3 to avoid
limitations with memory mapped accesses.

Change-Id: Ia956eb0f5b45c748ffb5dd13dd14dc9595b9c68a
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 15:21:49 -07:00
Pratik Patel 1fa14e959e coresight: support for etr to usb output
Support for etr to usb trace output using QDSS BAM to USB BAM
transfers.

Change-Id: Ibb6f8d0cf1d9799668cb22ccaa13966139c8dea5
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 15:17:07 -07:00
Pratik Patel 1847b5321c coresight: fix whitespace in coresight drivers
Add/remove whitespace to improve code readability.

Change-Id: Iade3100b7eb9a57f95849d6665257cffe85b26b3
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 15:08:57 -07:00
Pratik Patel fa51345513 coresight: switch to use coresight core layer code
Switch all CoreSight drivers to start using the new CoreSight core
layer code. Remove obsolete qdss code.

Change-Id: I2d4496aea0ffd918e0bfbf4b4e58ad82ea634a59
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 15:07:49 -07:00
Pratik Patel 63a0ab6fe4 coresight: rename variables and functions from cs to coresight
Complete the rename by changing cs to coresight for variables,
functions and constants.

Change-Id: I506d5872e5c09f201c4f3674d7722d36eca26921
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-09-04 14:58:31 -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