msm: camera: Add null checks for stats module

Add null checks in stats driver before accessing the
data structures to avoid null pointer crash.

Change-Id: I87639848e94e69e3fa020344f936e7cc182e2c66
Signed-off-by: Nishant Pandit <npandit@codeaurora.org>
msm: vidc: Allow client to set turbo mode

- Allow client to set TURBO performance level
  to video driver.
- Update max performance level to TURBO perf level
  on supported targets.

Change-Id: I0b3b38140d777984ba5062ddd614c07a002389ba
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
gpu: ion: Do fallback when allocating large sizes

The preferred allocation of memory for kernel data structures in
ION is to use kmalloc. This is mainly for performance reasons. However,
we are not guaranteed to be able to allocate large sizes. So to keep
the code performing well and at the same time allow for larger allocations,
implement a fallback mechanism for allocation of memory for ION kernel data
structures.

CRs-Fixed: 488521
Change-Id: I8c6a13ad74cce69f590920d28c01a58f7a540fd2
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
[Resolved merge conflict]
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
Merge "gpu: ion: Do fallback when allocating large sizes"
Merge "msm: vidc: Allow client to set turbo mode"
tty: n_smux: Make test functions static

Local test functions should be static to prevent duplicate
symbol collisions with other modules.

CRs-Fixed: 493907
Change-Id: I43cf6199fa1fa5fe58e81c9b4e5b5c18f3539341
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
tty: n_smux: Add throughput metrics to unit tests

Add throughput metrics to unit tests to enable profiling the performance
of SMUX round-trip messaging.

CRs-Fixed: 493907
Change-Id: I1eb552ca53358ece9f95a99a340409a4464877fb
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
tty: n_smux: fix test pattern validation

Incorrect test pattern code was skipping the test pattern validation
test and not freeing the test buffer resulting a slow memory leak in the
unit test that could lead to out-of-memory failures after several
hundred thousand iterations.

Fix pointer test to properly free memory after test case completion and
fix incorrect test pattern validation code.

CRs-Fixed: 493907
Change-Id: If93c2cfd2f82295897b36ffaf98ecaa5b9128cfb
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
tty: n_smux: Add wakeup test case

Reproducing and isolating wakeup issues caused by incorrect UART
configuration and hardware issues currently requires analysis of the
internal logs which is often time consuming.

Add wakeup test case to allow teams to easily reproduce wakeup issues or
verify wakeup functionality.

CRs-Fixed: 493907
Change-Id: I614d6ee3eefc6563930c45564b76452e89f65dc8
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
tty: n_smux: Rename SSR unit tests

Running the Subsystem Restart (SSR) unit tests without SSR enabled
causes the system to halt.

Rename SSR unit tests to allow for testing all non-SSR tests
quickly from the command line.

CRs-Fixed: 493907
Change-Id: Ib80e9adef8311ebe038f878dfcf2aecd1087a471
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
Merge "msm: camera: Add null checks for stats module"
Merge "tty: n_smux: Make test functions static"
Merge "tty: n_smux: Add throughput metrics to unit tests"
Merge "tty: n_smux: fix test pattern validation"
Merge "tty: n_smux: Add wakeup test case"
Merge "tty: n_smux: Rename SSR unit tests"