Commit Graph

50 Commits

Author SHA1 Message Date
Sreelakshmi Gownipalli b0e5cb0543 diag: Update some MSG SSIDs levels in msg masks table 6
Update some MSG SSID levels to Low in msg_bld_masks_6 table.

Change-Id: I0bce79e7423171a94af08f095b508769c8a8f67b
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
2015-05-04 22:45:23 -07:00
Ravi Aravamudhan d75f074dbb diag: Update SSIDs, event ids and log codes
The SSIDs, event IDs and log codes have fallen out of date.
Bring SSIDs, event IDs and log codes up to date.

Change-Id: I8c69535513f811dd0e291f90cd8559b323d8a5e0
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2015-05-04 22:44:27 -07:00
Mohit Aggarwal 4fdd93530e diag: Add support for MSM8929 QPST string
MSM8929 is a new device. Add diag support for sending
appropriate model number for MSM8929 so that QPST
can display the appropriate string.

Change-Id: I4e92f5a114b542083178fdb8d68f95990f741bee
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2015-01-27 08:43:31 -08:00
Katish Paran 326484edad diag: Add support for Tellurium QPST string
Tellurium is a new device. This patch adds the model number for
Tellurium so that QPST can display appropraite string.

Change-Id: I9541244941bf400fa81b5750abcfd5ee3a672ef0
Signed-off-by: Katish Paran <kparan@codeaurora.org>
2014-12-17 21:00:06 +05:30
Sreelakshmi Gownipalli f52b3fed79 diag: Add support for MSM8992 QPST string
MSM8992 is a new device. Add diag support for sending
the model number for MSM8992 so that QPST
can display the appropriate string.

Change-Id: I11570464c0e3cf9af7a0794901505e3cb9af2b92
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
2014-11-19 18:34:12 -08:00
Ravi Aravamudhan 8dae1f1a7d diag: Update SSIDs, event ids and log codes
The SSIDs, event IDs and log codes have fallen out of date.
Bring the SSIDs, event IDs and log codes up to date.

Change-Id: Iaee6f96d31cb602e62a5036a8cebbdb903a02191
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-10-17 10:54:19 -07:00
Kishan Kumar 01033d20d5 ARM: dts: msm: Rename msmferrum to msm8909
Rename all device tree files and usages of msmferrum
to its official name msm8909.

Change-Id: Ie17e62046ed8b9626a59e393076a3ff00934c0fe
Signed-off-by: Kishan Kumar <kishank@codeaurora.org>
2014-09-24 20:49:38 +05:30
Ravi Aravamudhan 18c177fceb diag: Add support for peripheral buffering modes
Diag on the peripherals has support to buffer diag data and drain
them as and when required. This patchset adds support on the apps
processor to enable different buffering modes on the peripherals.

Change-Id: I07b9ffe36dfc5c90ac0d8a8da91922e1127aed58
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-08-12 10:45:27 -07:00
Ravi Aravamudhan 86310f65e5 diag: Update event ids and log codes
Bring the event IDs and log codes up to date.

Change-Id: Ia819089c7be9c75226d96b25e95c178f5b3e8460
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-07-25 15:19:43 -07:00
Linux Build Service Account 47eba24b8a Merge "diag: Add support for MSMFERRUM QPST string" 2014-07-10 18:10:05 -07:00
Mohit Aggarwal a51c3e76b3 diag: Add support for MSMFERRUM QPST string
MSMFERRUM is a new device. Add diag support for sending
appropriate model number for MSMFERRUM so that QPST
can display the appropriate string.

Change-Id: I1a75b705e606d6e4ef7480760a47871a1a9f2bce
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2014-07-10 12:51:59 +05:30
Ravi Aravamudhan 0ed84440c1 diag: Change implementation of Diag masks
Diag message, log and event masks were formatted uniquely. Refactor
code to change the design of all diag masks.

Change-Id: Ic1516591088404204ad11187487b96690706f17a
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-06-27 10:24:40 -07:00
Ravi Aravamudhan 5e67281c35 diag: Update SSIDs, event ids and log codes
The SSIDs, event IDs and log codes have fallen out of date.
Bring the SSIDs, event IDs and log codes up to date.

Change-Id: Ibcccec3a5ef812aade0f4f6121d499c334a609d0
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-06-23 18:12:26 -07:00
Ravi Aravamudhan 84d3076776 diag: Add support for APQ8026 QPST string
APQ8026 is a new device. Add diag support for sending
appropriate model number for APQ8026 so that QPST
can display the appropriate string.

Change-Id: I337693fba4222d2605aa4d489d7c24bebcbd07bf
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-06-03 11:55:35 -07:00
Sreelakshmi Gownipalli f426479850 diag: Add support for MSM8994 QPST string
MSM8994 is a new device. Add diag support for sending
appropriate model number for MSM8994 so that QPST
can display the appropriate string.

Change-Id: I91dd988ebea8c98d04dbcc5afd6a36f83b4283c6
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
2014-05-22 17:19:20 -07:00
Ravi Aravamudhan d8d4ab5dc3 diag: Update SSIDs, event ids and log codes
The SSIDs, event IDs and log codes have fallen out of date.
Bring the SSIDs, event IDs and log codes up to date.

Change-Id: I8e6a2af8baba359f32a489ddc06f619de826f97b
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-04-30 18:57:21 -07:00
Linux Build Service Account 029a389a18 Merge "diag: Add support for MSM8939 QPST string" 2014-04-02 10:22:08 -07:00
Mohit Aggarwal 84c2650865 diag: Add support for MSM8939 QPST string
MSM8939 is a new device. Add diag support for sending
appropriate model number for MSM8939 so that QPST
can display the appropriate string.

Change-Id: If25f790e330bef89fc332b9595833be7df30c719
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2014-03-17 15:05:31 +05:30
Ravi Aravamudhan 90c7ecf3bc diag: Copy limited data from and to the user space
Diag clients can issue IOCTLs to get the next delayed response
id from the Diag driver. This patch removes unnecessary data
being copied from and to the user space.

Change-Id: I13cf17252d2a85b999fd4645714ee1d8143e5ccc
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-03-07 11:46:26 -08:00
Mohit Aggarwal ce9bbd5d9b diag: Add support for MSM8916 QPST string
MSM8916 is a new device. Add diag support for sending
appropriate model number for MSM8916 so that QPST
can display the appropriate string.

Change-Id: Ie19cd3893ebbf8f9419a4a4b40833c51553ae527
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2014-02-05 09:33:42 -08:00
Ravi Aravamudhan 3ffde7e394 diag: Bring SSIDs, Event Ids and Log Codes up to date
Diag ssids, event ids and log codes on the Apps were out of date.
This patch adds the new ssids, event ids and log codes.

Change-Id: Iccdaaea1620031a8e5bbe5ac99df26ff5ed653f8
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-01-17 15:25:38 -08:00
Ravi Aravamudhan ac10fd2a59 diag: dci: Add DCI command response support on APSS
Add support to enable clients to send command requests registered
on the Apps processor through DCI. It also handles dedicated
commands that are handled exclusively by the Apps processor.

Change-Id: I8bea5cbe9f787ef7213bb4d995bb0ab68a06dab2
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2014-01-06 10:54:33 -08:00
Ravi Aravamudhan 751eca2667 diag: Change implementation of diag log masks
Currently, the structure of diag log masks can lead to buffer
corruption when there is huge different between the log masks
of the Apss processor and the peripherals. Make changes to
log masks to be of constant size.

Change-Id: I9920bbcc19e75c10ec7267808c9fc4afaafeff5b
CRs-Fixed: 556401
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-11-07 13:52:01 -08:00
Dixon Peterson 7b225760d8 diag: Add support for APQ8084 QPST string
APQ8084 is a new device. Add diag support for sending
appropriate model number for APQ8084 so that QPST
can display the appropriate string.

Change-Id: I51b1b3201d96e2462d75f087d169b5c2a5882d6a
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-17 16:02:01 -07:00
Ravi Aravamudhan 1567dbf30b diag: Add support for APQ8074 QPST string
This patch adds tools id for APQ8074 that QPST uses to display
the device name

Change-Id: I1b5a9603dc7dc3b799d309b67cf227c9da990e8c
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-09 10:46:57 -07:00
Ravi Aravamudhan c97618003b diag: Update SSIDs, event ids and log codes
The SSIDs, event IDs and log codes have fallen out of date.
Bring the SSIDs, event IDs and log codes up to date.

Change-Id: Icc7e781d22fc1e2d1f83fe282140075218fe777c
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-05 14:52:27 -07:00
Dixon Peterson dd839c3bcd diag: dci: Add DCI support for APSS logs and events
Currently, Diag DCI only supports modem. Add DCI functionality
to support logs and events generated on the APSS processor.

Change-Id: I7b5dfe96240338b43761de00b59a25a85d0aadb6
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-05 14:52:19 -07:00
Ravi Aravamudhan 4f41e027a1 diag: Update SSIDs and log codes
The SSIDs, event IDs and log codes have fallen out of date.
Bring the SSIDs, event IDs and log codes up to date.

Change-Id: Ie23de1e86c131df081e33fa600bde367510f9f3c
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-04 17:06:32 -07:00
Ravi Aravamudhan de72d5e9e0 diag: Add Support to switch between real time modes
Adding support to switch mode of Diag on peripherals between
real time and non real time modes while using DCI/Memory Device.
Also added changes to record debug information related to
DCI in debugfs.

Change-Id: I8aecf63681094b2cd47759702f6cbb225afda40d
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-04 17:05:19 -07:00
Ravi Aravamudhan 413fc8644a diag: Update SSIDs and log codes
The SSIDs, event IDs and log codes have fallen out of date.
Bring the SSIDs, event IDs and log codes up to date.

Change-Id: Ifc193794c6009d038c816ef7a0bf0172f06984d8
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-04 17:04:20 -07:00
Dixon Peterson a3b7bfb0d2 diag: Update SSIDs and log codes
The SSIDs and log codes have fallen out of date. Bring
the SSIDs and log codes up to date.

Change-Id: Ia12da98a27cc26ff518178fe5d92deea236f2c1e
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-04 16:30:58 -07:00
Ravi Aravamudhan 30d56585cc diag: Updated the msg SSIDs, log codes and event IDs
SSIDs, log codes and event IDs on the Apps is out of date. Bringing
these values up to date with the Modem

Change-Id: I91a98ec48e051d8d1fa268cfea1394ade960307c
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-04 16:20:50 -07:00
Ravi Aravamudhan 877fc301bd diag: Add Support for Callback mode to communicate with remote processors
Diag Callback client can send and receive data from the local
processor. This change adds support for the callback clients to
send and receive diag traffic to and from the remote processors.

Change-Id: Id9a3a6ff6e9a86daa3194d2b0775879ea83f4d25
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-04 16:15:15 -07:00
Dixon Peterson 9d734eca97 diag: Add support for sending DIAG_CTRL_MSG_DIAG_MODE
Currently, APPS diag does not support sending mode control message
to any processor.  This command notifies the diag software on the
peripheral if it is to run in real-time or non-real-time mode. Add
support for sending the mode control message to the modem and wcnss.

Change-Id: Ia390e7f8fbb4601b5f62656cdc53ab5f8cc89826
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-04 16:14:02 -07:00
Mohit Aggarwal 2a478fa0d7 diag: dci: Add new Logs and Events API for DCI
Diag Consumer Interface now has new APIs for disabling all logs and
events and also to query the log codes and event IDs for a
particular client. Fixed issues in Diag Driver where memory was not
freed up in error conditions and a mutex was released incorrectly.
Also added mutexes at places where DCI Health Statistics members
are modified.

Change-Id: I6da13487782b77c72edc93106165cd9c3d9682d9
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2013-09-04 16:08:49 -07:00
Ravi Aravamudhan b1072c1ab0 diag: Update last msg SSID, event and log message values
Diag msg ssids, events and log codes are updated on the modem side.
These values are out of date with what is on the modem.
Bring these values up to date with the modem.

Change-Id: I985cb1c8e8910bf292bb1c4c0c03ebbee753dcfa
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-04 16:04:44 -07:00
Ravi Aravamudhan 5071a8f7af diag: Update Message SSID Limit and Buildtime masks
Updated the last message SSID and the buildtime masks to reflect
the additions on the Modem.

Change-Id: I9a62942f5daf14268b0f61f81cbb53b76901d012
CRs-Fixed: 448735
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
2013-09-04 15:55:44 -07:00
Dixon Peterson cc01575cab diag: Update last event and last log message values
Diag events and log codes are updated on the modem side.
These values are out of date with what is on the modem.
Bring these values up to date with the modem.

Change-Id: Ie7146c364b024f25cb67b7139c9852ede3734c7e
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-04 15:48:04 -07:00
Dixon Peterson 5f12c88a85 diag: Update SSID mask levels to match modem
SSID mask levels are out of date with the modem.  Bring the
SSID mask levels up to date.

Change-Id: Id65e80cbb3af12b86e4feba27df5255daee350ad
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-04 15:37:01 -07:00
Dixon Peterson 05a2232849 diag: Add support remote devices when running diag over sockets
Currently, SOCKET_MODE does not support targets with remote
devices. Modify code to appropriately identify and process
data from remote devices when running in SOCKET_MODE.

Additionally, the usb is being read unnecessarily from the HSIC
code when running in SOCKET_MODE. Make modifications to the
HSIC code to only read from the USB when running in USB_MODE.

Change-Id: I72f4428006e694091f2e4e86a7f699618bda3f95
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-04 15:36:09 -07:00
Shalabh Jain 5db097890e diag: Add fixes for DCI
1) Fix an issue where after running a DCI app and exiting it,
 second app does not receive any DCI data. Issue was due to
 incorrect state of a flag used by SMD channel.

2) Add a mutex around shared data structures like cumulative masks.
Multiple clients may want to change DCI mask at the same time, so
mutex will prevent any corruption

3) Add support for health commands. The client request how many logs
were dropped and received.

Change-Id: Ica12b3c93aa4dda9b04aa13cd5a9f8dbc412148c
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2013-09-04 15:31:46 -07:00
Shalabh Jain 9fc0e4890b diag: Add generic diag interface
This new interface will allow diag clients to pull data into
the client context. The client can then process the data in any
manner they desire.

Change-Id: Ia76564c4cc985013533a759bc2b398dbee13445a
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2013-09-04 15:30:55 -07:00
Shalabh Jain 08b808e838 diag: Add logs & events streaming support for DCI
Diag driver is adding a new feature to stream logs & events to a
user space application on Linux processor. This will eliminate
need to connect QXDM to receive diag traffic.
This is known as Diag Consumer Interface (DCI).

Change-Id: I7983bb7d9b8a0429ebbee290868c8bd0e562953f
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2013-09-04 15:28:13 -07:00
Dixon Peterson 688a383999 diag: Bring event last id up to date
The events are out date with what is on modem. Bring
the event last id up to date.

Change-Id: I6045754bbd3df9d138d3b30bc5d4d4c074c96572
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-04 15:20:38 -07:00
Shalabh Jain 7a1f2c8e25 diag: Update log codes
DIAG log codes are updated on modem side. Hence same
update is needed on application processor side. This
change updates the same.

We plan to implement an algorithm which will remove the
need for manual updates.

Change-Id: Id6e8eac0bfb6f9e526f7672ad20634f326d2d1e0
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2013-09-04 15:18:37 -07:00
Shalabh Jain 93cbafa8e3 diag: Update last SSID for general category
DIAG SSID ranges are updated on modem side. Hence same
update is needed on application processor side. This
change updates the same.

We plan to implenent an algorithm which will remove the
need for manual updates.

Change-Id: I573b75fe0b88bad6f0b2fd5d1b12eb4530067912
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2013-09-04 15:09:10 -07:00
Dixon Peterson 73c8334e50 diag: Add support for sockets
diag does not support logging to sockets. Add support for
new socket logging mode to support sockets.

Change-Id: I1134859825f9e075ee911c94376a239d748e311f
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2013-09-04 15:06:42 -07:00
Shalabh Jain 1b8b3c4329 diag: Add missing SSID range
OEMs use SSID in a specific range. Recently DIAG changed the mask
update algorithm and this range was missed as its not used internally.
This change adds it back.

CRs-Fixed: 359379
Change-Id: Ib7249f157e4e37294b6da6580fcf19995afeef8f
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2013-09-04 15:00:54 -07:00
Shalabh Jain 58c29d22ae diag: Add new SSID
Modem header files added new SSID. We need same changes on Linux side.

Change-Id: Ia383fd1f8ab889369b2577ae2df13894a1a62f7a
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2013-09-04 14:58:33 -07:00
Stephen Boyd e5249a3033 char: Add DIAG driver
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-09-04 14:47:04 -07:00