Commit graph

588705 commits

Author SHA1 Message Date
Linux Build Service Account
877e5ff1ff Merge "msm: mhi_rmnet: clean channel resources only if allocated" 2017-04-25 21:48:51 -07:00
Linux Build Service Account
677003c73f Merge "input: laser: disable laser sensor when camera crash" 2017-04-25 21:48:50 -07:00
Linux Build Service Account
0941c5793c Merge "ASoC: wcd934x: force the wdsp clock to be ungated" 2017-04-25 21:48:49 -07:00
Linux Build Service Account
6f9ad72025 Merge "ASoC: msm: qdsp6v2: Add TrueHD HDMI compress pass-though" 2017-04-25 21:48:48 -07:00
Linux Build Service Account
6bf1176e82 Merge "ASoC: wcd-dsp-mgr: force crash upon collecting ramdumps" 2017-04-25 21:48:47 -07:00
Linux Build Service Account
6a10b24047 Merge "ASoC: msm: qdsp6v2: allow zero size calibration for LSM" 2017-04-25 21:48:46 -07:00
Linux Build Service Account
123d4f45f6 Merge "msm: ipa: return error on channel setup failure" 2017-04-25 21:48:45 -07:00
Linux Build Service Account
27ea79a481 Merge "msm: rmnet_ipa: fix security issue" 2017-04-25 21:48:44 -07:00
Linux Build Service Account
8bca4070e5 Merge "defconfig: Enable support for QBT1000 feature" 2017-04-25 21:48:42 -07:00
Linux Build Service Account
47014a127a Merge "spcom: always wait for glink LOCAL_DISCONNECT event after glink_close()" 2017-04-25 21:48:41 -07:00
Linux Build Service Account
1e4ac64015 Merge "wcnss: fix the race condition issue during cal data extraction" 2017-04-25 21:48:41 -07:00
Linux Build Service Account
f3a2f081da Merge "cfg80211: increse bss expire time" 2017-04-25 21:48:40 -07:00
Linux Build Service Account
f9d3e35e35 Merge "mhi: core: allow communication during shutdown" 2017-04-25 21:48:39 -07:00
Linux Build Service Account
330663d26e Merge "msm: sde: Fix kernel crash after stop streaming timeout" 2017-04-25 21:48:36 -07:00
Linux Build Service Account
deb9e834e9 Merge "msm: camera: Fix for NOC error in CCI" 2017-04-25 21:48:35 -07:00
Sujeev Dias
6c612a7606 mhi: core: add support for 64bit doorbell address
Doorbell pointers are 64bit addresses. Use correct
data type when passing the address.

CRs-Fixed: 2038601
Change-Id: Ie8e42d38944c0529386b90f5a6d37dcd77c19184
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-04-25 20:50:11 -07:00
Utkarsh Saxena
172210b6bf msm: ipa: Fix for missing int overflow check in the refcount library
Overflow of reference counter can lead to memory leak.

Before incrementing the reference count, check with
U32_MAX and return for error check.

Change-Id: Ib96d36574ee086ec73c9836110cb2c98e8ae3d66
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-04-25 18:22:02 +05:30
Avaneesh Kumar Dwivedi
1ac8fd59eb Revert "soc:qcom: Synchronize service notifier task's"
This reverts 'commit 7961850500 ("soc:qcom: Synchronize
service notifier task's")'

This commit was made for synchronizing two notifier tasks that
were in race in back to back ADSP SSR testing. The change was to
synchronize two threads by queuing both threads in dedicated work
queue. However this caused certain corner case timing issues
in notification to clients of ADSP PD. So, revert it.

Change-Id: I69b27e2e4529b5f45ce0cc1f4a036412cbf5fab1
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2017-04-25 05:36:47 -07:00
Vishnuvardhan Prodduturi
e7b3f955e1 ARM: dts: msm: add support for truly amoled panel on sdm660 and sdm630
Add support for truly FHD amoled panel on sdm660 and sdm630 which
helps in validating pm660a functionality.

Change-Id: I017a9d96ec927b984ad1f26a573a74efd753d8eb
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-04-25 18:05:39 +05:30
Taniya Das
a291df6af1 clk: qcom: Add support for throttle clocks for clients
Throttle axi clocks for camera, display and video needs to be enabled
before the use cases and disable these once their use case is completed.

Change-Id: I2e2e91f4ce7d6f57bf5ced052af2f283bc301070
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-04-25 04:20:42 -07:00
Lingutla Chandrasekhar
0e3b77f3f3 defconfig: msm: Enable cache dump and common log in perf build
With Minidump support, SDI can run in production devices, which would
dump pmic, rpm code and vsense data of the device at system crash as
minidump. Additionally, cache dumps would help to find out cache
corruptions in production devices.

Hence enable cache dump and common log in perf builds.

Change-Id: Ice2ed94bda2903a3fd3ca6dc16c008b7a8fae101
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-04-25 14:39:27 +05:30
Charan Teja Reddy
ad3b1dcc93 iommu: disable smmu stalls on faulty transactions
Disable the SMMU stalls on faulty transactions by terminating it using
the CB.SCTLR register. Faulty transaction on a CB causes the back
pressure on the QSMMU transaction pipe which inturn affect the other
masters using the same SMMU. Pass the DOMAIN_ATTR_CB_STALL_DISABLE flag
to iommu_domain_set_attr api in order to use this feature.

Change-Id: Ib8fa35854ff24e0295d330c5fb79375f58c3e841
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-04-25 02:03:54 -07:00
Rakesh Pillai
836015bad3 ath10k: enable wlan hardware checksum for wcn3990
Add checksum offload flag for the TCP/UDP packet in
Tx path for the wcn3990 wlan module hardware.

CRs-Fixed: 2015363
Change-Id: Icd47de8633bb2375c43c5acdf730a0082bfc1b88
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-04-24 22:23:22 -07:00
Sahitya Tummala
cd6afb3e4b fs/dcache: Fix indefinite wait in d_invalidate()
In the path of task exit, the proc dentries corresponding to this
task will be killed by moving it to a shrink list. If those dentries
are already claimed by another task for shrinking, the exiting
task waits in a tight loop until those dentries are killed. This can
potentially result in a deadlock if those dentries are corresponding
to an RT task but the task which is shrinking those dentries is a
lower priority task. Fix this by not doing tight loop, if our dentries
are claimed by other task.

Change-Id: If6848521469db7dea2bbba0dbaf8597094716267
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2017-04-25 09:15:18 +05:30
Sujeev Dias
c3cb01d6f0 msm: mhi_rmnet: clean channel resources only if allocated
It's possible for MHI host to send sys error notification
signal before sending channel enable notification. Attempt
to cleanup resources only if netdev is allocated.

CRs-Fixed: 2037971
Change-Id: I2bd1f10966a042c6f3372adff89572a5795e7daf
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-04-24 19:03:10 -07:00
Skylar Chang
763fc04f90 msm: ipa: return error on channel setup failure
Return the correct error code when channel setup fails due
to memory allocation.

Change-Id: If345299532f8d04a543e3c7e535d4a7987661d0e
CRs-Fixed: 2028360
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-04-24 15:41:41 -07:00
Sujeev Dias
36603a2a72 mhi: core: allow communication during shutdown
MHI clients allowed to communicate with external
soc via MHI during shutdown. Only disable MHI
communication after receiving shutdown notification.

CRs-Fixed: 2037184
Change-Id: If69f61a244a6175256753dea361085fa5f9afeac
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-04-24 08:12:44 -07:00
Linux Build Service Account
048c70075f Merge "sched: Add a check for cpu unbound deferrable timers" 2017-04-24 06:47:54 -07:00
Linux Build Service Account
f9849a4c57 Merge "soc: qcom: Request GFP_NOIO for effective memory reclaim" 2017-04-24 06:47:53 -07:00
Linux Build Service Account
d4966a38bb Merge "clk: qcom: clk-cpu-osm: handle corner cases for APM/MEM-ACC switching" 2017-04-24 06:47:52 -07:00
Linux Build Service Account
39b4e0837f Merge "msm_11ad: reorder registration with memory dump table" 2017-04-24 06:47:51 -07:00
Linux Build Service Account
5e10c8152d Merge "ANDROID: fix acl leaks" 2017-04-24 06:47:50 -07:00
Linux Build Service Account
22efcf6c13 Merge "spcom: use mutex on spcom_unlock_ion_buf()" 2017-04-24 06:47:49 -07:00
Linux Build Service Account
cf8fb0ea2e Merge "soc: qcom: glink: Change GFP_ATOMIC flag for intentless rx" 2017-04-24 06:47:48 -07:00
Linux Build Service Account
8495c8f056 Merge "msm: mdss: fix a warning for unused value" 2017-04-24 06:47:47 -07:00
Linux Build Service Account
c0eb692e36 Merge "msm: mdss: Populate alpha for compat" 2017-04-24 06:47:46 -07:00
Linux Build Service Account
550a9f41ff Merge "ARM: dts: msm: Fix RX sensitivity issue for SSPHY for SDM660" 2017-04-24 06:47:45 -07:00
Linux Build Service Account
250b70e2cf Merge "wcnss: fix the potential memory leak and heap overflow" 2017-04-24 06:47:44 -07:00
Linux Build Service Account
f238d6bc0d Merge "msm: mdss: Separate PP programming to advanced and deferred modes" 2017-04-24 06:47:44 -07:00
Sarada Prasanna Garnayak
bf00f32974 wcnss: fix the race condition issue during cal data extraction
The wcnss platform driver update the wlan calibration data
by the user space wlan daemon. The wlan user space daemon store
the updated wlan calibration data reported by wlan firmware in
user space and write it back to the wcnss platform calibration
data buffer for the calibration data download and update.

During the wlan calibration data extraction there are some potential
race condition which leads to memory leak and buffer overflow during
the context switch. Fix the above issue by adding protection code.

CRs-Fixed: 2015791
Change-Id: I231807f6b2d8094d7138b95c659ed6272897ba2d
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-04-24 01:48:36 -07:00
Tirupathi Reddy
d1a1e24a5c clk: qcom: clk-cpu-osm: handle corner cases for APM/MEM-ACC switching
If the open-loop voltage of the highest virtual corner is
below the APM threshold voltage, then OSM should keep
the APM powered by VDD_MX. Also, if the open-loop voltage
of the lowest virtual corner is greater than or equal to
the MEM-ACC threshold voltage, then OSM should program
MEM-ACC settings for Turbo for all corners. Program SEQ_REGn
registers correctly for these two cases.

CRs-Fixed: 2008715
Change-Id: Id9bc91374245d65adda4db337c4fa34afc8f0af9
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-04-24 12:40:48 +05:30
Hareesh Gundu
d689330ab5 msm: kgsl: Allow draw context to perform only replay on recovery
Robust context attempts to perform a rendering that takes too long
whether due to an infinite loop in a shader or even just a rendering
operation that takes too long on the given hardware. This type of
attempts can result into GPU faults. Robust context expect driver
to replay IB instead skip IB and if it fails on replay context has
to be invalidated.

KGSL_CONTEXT_INVALIDATE_ON_FAULT flag allows draw context to execute
only replay policy on GPU fault recovery instead of going to default
recovery policy. User space has to set this flag during the context
creation.

Change-Id: If42dc5afc7d5ed1226b73ae5abfa2648d7acf2c3
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2017-04-23 23:47:46 -07:00
Linux Build Service Account
0bdf562cc7 Merge "defconfig: msm8998: Use RCU_NOCB for RCU subsystem" 2017-04-23 23:13:01 -07:00
Sharat Masetty
e84be6486a drm/msm: Enable per cmdstream profiling for the user
If the user provides a profile buffer identified with a buffer type
MSM_SUBMIT_CMD_PROFILE_BUF, then the driver records the kernel clock
time and gpu ticks at the time of cmdstream submission, and the GPU
records the ticks just before the start of the cmdstream execution and
right after the end of the cmdstream execution.

Change-Id: Ic6298ec5919b18e976ae089ffb0860b8165ce4f3
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
2017-04-24 10:28:17 +05:30
Amir Samuelov
b4968ee80c spcom: use mutex on spcom_unlock_ion_buf()
Only the channel owner app can lock/unlock a channel ion buf.
However, if the app share the ION buf FD with its child tasks,
they might wrongly free the same ion buf twice.
The ion driver panic if a non-valid ION buff handle is provided.

Change-Id: Ia8166df5ea314949090f7e94e90eff3a3ed78b19
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-04-23 13:53:27 +03:00
Amir Samuelov
cefed44f00 spcom: always wait for glink LOCAL_DISCONNECT event after glink_close()
Wait for glink LOCAL_DISCONNECT event, even if the channel is not
connected.

Change-Id: I03f20b6dbb2f46d7abd6996e8d298e991cf3f82b
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-04-23 03:27:30 -07:00
Linux Build Service Account
6cf6835d96 Merge "msm: mdss: check for audio support before notifying frameworks" 2017-04-21 17:57:37 -07:00
Linux Build Service Account
35cc04df55 Merge "msm: mdss: add debug bus support for dsi block" 2017-04-21 17:57:37 -07:00
Linux Build Service Account
0fc565ebdb Merge "FROMLIST: 9p: fix a potential acl leak" 2017-04-21 17:57:35 -07:00
Linux Build Service Account
038de1e53d Merge "soc: qcom: pil: Avoid possible buffer overflow during Modem boot" 2017-04-21 17:57:35 -07:00