IPA: fix ipv6 TOS traffic routing fail

For ipv6 traffic filter rules with meta equation
32 is not working. All traffic is taking SW path.
To filter TC ip packets change to use  meta equation
128 instead of 32

Change-Id: I8cf34264b65584d5ef1bb73c239413ebb9083345
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
diag: Change maximum size of error response

Diag currently allows error responses of length 490 bytes. This is
outdated as we support 4K responses on the Apps. This patch changes
the Apps buffer size to 4K and also the limit on the error response
length.

Change-Id: I8212bf000a7493b756b5ac0e428c3b2e4be9e9c6

CRs-Fixed: 512035
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
msm: smd_pkt: add enforcement that array lengths match number of ports

Additional checks are added to enforce that ports are equal in number
to the size of their representative arrays, to provide sanity checks when
ports are added or removed.

Change-Id: I83e7d74b8c21df8e357a817b7e542006b9b675a8
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
msm: smd_pkt: add additional smdcntl devices

Additional smdcntl devices are added to support Multi RMNET feature.

Change-Id: I6e0661e06af59235cd21ad8d15ee7324c40e8660
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
ASoC: msm: qdsp6v2: Fix read error using mmap

When capture session is started in mmap mode then
read commands are issued to ADSP after close command
is issued. This causes read failure as ADSP will not
process the successive read commands after issuing
close command. This change prevents issuing read
command to ADSP when capture session is not in running
state.

Crs-Fixed: 518008
Change-Id: I780fd42dffcd5ee4c051314aaf5f5b537815d8fe
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
msm: smem: split out shared memory initialization functionality

For historical reasons, the low level shared memory initialization
functionality exists in a combined driver with the higher level
communication protocols.  Move the low level shared memory functionality
out into its own driver to improve clarity and ease maintenance.

Change-Id: I675db52961df80d6e8e62e771630e562bf1a670c
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
msm: smd: add sanity check on platform resources

Add null sanity checks to fix corner cases.

Change-Id: Ic91ca37d74621ad414d23d8756881ee866250745
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
ASoC: msm: qdsp6v2: Fix potential NULL pointer dereferencing

Several potential NULL pointer dereferences could lead to
crash in voice host PCM driver.  Fix potential NULL pointer
dereferencing by adding checks for NULL pointers.

Change-Id: Id6ca0a0456b3e1aa0890b44fce85e9c0ad3c8992
Signed-off-by: Prashanth Reddy <pgreddy@codeaurora.org>
msm: smd_tty: handle invalid device for open timeout

If an invalid device is passed into the open timeout device attribute,
the code correctly identifies the error, but then proceeds to access an
array with the out-of-bounds index.

Return early with an error code in the case of an invalid device.

CRs-Fixed: 505197
Change-Id: I7a9bf906f2326d8ea627e2ab9310c95bfee98914
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smd_tty: add new SMD TTY port

Add new port for exporting DATA4 (ATCoP) to userspace.

CRs-Fixed: 519977
Change-Id: I63f79788ff06a00c3aead4a725039ae14feb020f
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smd_tty: add device tree support to smd_tty drivers

SMD TTY is configured using local tables that do not
allow customization on a per-target basis.

Add device tree support to configure SMD TTY devices.

Change-Id: Ie02dd63a0bec8edff77c8cbeeb72ae7331a0c67a
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
msm: smd: split out SMD probe and init functions

Current SMD driver code combines all different types of probe
and initialization sequences. For future targets, only the DT init
sequence is necessary.

Move SMD probe and initialization sequences into different files.

Change-Id: I1092cb3946a56840deb3676afea37c7f6f537d19
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
msm: smsm: add SMSM interrupt logging

Add interrupt logging of SMSM interrupts for debugging issues involving
missing interrupts on the remote subsystems.

Change-Id: Ic39ec1738a34107e21a546fcb28132e1fe8ad339
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
msm: smd: add support for secondary channel table

The primary SMD channel table only supports 64 entries and is currently at
capacity. Since the primary channel table cannot be extended as the SMEM
item ids following the primary table are already reserved for other
usecases, create a secondary channel table by repurposing the unused block
channel table SMEM items.  This extention creates an additional 64 entries
for new SMD channels allowing the system to support a total of 128
channels.

CRs-Fixed: 525753
Change-Id: Ife9c822e46178b4a8bf21c34efabfd7133ed87b0
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
msm: smd: enable additional smd logging

Enable additional smd logging to provide channel allocation
information.

Change-Id: Ibf793e30cdb2814c91358b4e7c86f178120c9ae9
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
Merge "ASoC: msm: qdsp6v2: Fix potential NULL pointer dereferencing"
Merge "ASoC: msm: qdsp6v2: Fix read error using mmap"
Merge "diag: Change maximum size of error response"
diag: Add hdlc encoding support for diag data sent from peripherals

Diag running on the peripherals currently hdlc encodes the diag
data prior to being sent to the APPS processor over the diag data
smd channels. To offload the peripherals of this workload, add support
to accept non-hdlc encoded diag data from the peripherals and
hdlc encode that data on the APPS processor. Maintain the backwards
compatability to accept and properly process hdlc encoded data.
Add ability to determine at run-time whether a peripheral is sending
hdlc or non-hdlc encoded data and process the data appropriately.

Change-Id: I09e1dce0118011e52b1634f1eac402de16a999f6
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
Merge "diag: Add hdlc encoding support for diag data sent from peripherals"