Commit graph

599867 commits

Author SHA1 Message Date
Vatsal Bucha
f57e402a5a sdm660-internal: Fix DMIC3&4 mute in voice call during APSS sleep
Add ignore sleep for DMIC 3 and 4 to fix mute in voice call.

CRs-Fixed: 2258957
Change-Id: Ia33aec6796e965080a978d3e158d78ae03f9b717
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-06-19 05:15:02 -07:00
Aditya Bavanari
c966bc9cff ASoC: msm: qdsp6v2: Fix return code check in adm driver
Return error only if apr_send_pkt() function
return code is less than 0.

CRs-Fixed: 2262017
Change-Id: I98903c6c275f360d32c3af523352071d92d1ef85
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-06-19 17:31:10 +05:30
Ziqi Chen
0440061128 defconfig: MSM8998: enable F2FS configs
Enable F2FS related configs for MSM8998.

Change-Id: Id52e93ee54e65e558a21a9280456f05b0c9bf9c5
Signed-off-by: Ziqi Chen <ziqichen@codeaurora.org>
2018-06-19 19:37:06 +08:00
Yong Ding
3a1f559efa soc: qcom: hab: clean the compilation issues
This fixes the hab compilation issues found when
CONFIG_GHS_VMM is enabled.

Change-Id: Ie4b6aca5f0a7f549273d939dd6069e55db7877c4
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-06-19 01:56:29 -07:00
Yong Ding
333c319df3 soc: qcom: hab: return -EINTR if woken up by a signal
The standard -EINTR will be returned if the hab open
blocking call is woken up by a signal.

Change-Id: I0329c3b3a70241a31a64eab6872808e0f7d21013
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-06-19 01:54:02 -07:00
Linux Build Service Account
d146f75a7e Merge "ARM: dts: msm: Add support for truly FHD+ panel on SDM660" 2018-06-19 01:28:13 -07:00
Santosh Mardi
818f86d78d devfreq: suppress platform driver bind / unbind feature
For arm-memlat and bimc-hwmon platform driver does not
support the manual bind / unbind feature through sysfs,
when the governor is registered and started.
Suppress the bind / unbind calls using driver attribute.

Change-Id: I8287012e1e6931d80953382f3d625223315cec85
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2018-06-19 11:25:37 +05:30
Soumya Managoli
586a6ad358 asoc: codecs: sdm660_cdc: Fix LPASS register access during SSR
When AFE returns failure in setting the digital codec
core clock during SSR, it leads to LPASS register access
which results in NOC error and AHB timeout. Put the regmap
in cache only mode when clock enable fails to fix this.

Also fix watchdog bite failure during stability run
by returning from digclock control if cacheonly mode
is set. This is seen while SSR is in progress and teardown
of session happens, it will request for afe clock enable
continuously at digital clock control.

Change-Id: I952b667a5cffcb667154378102609b23ab0cee3d
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2018-06-18 22:29:38 -07:00
Monika Singh
ed7b89c970 ARM: dts: msm: Untrusted pointer dereference
To avoid access of variable after being freed, using
list_first_entry_safe function to iterate over list
of given type, safe against removal of list entry.

Change-Id: I70611fddf3e9b80b1affa3e5235be24eac0d0a58
Signed-off-by: Monika Singh <monising@codeaurora.org>
2018-06-18 22:20:55 -07:00
Cong Tang
c1bed40d2d ASoC: msm: Support different POPPs to single COPP
For multi COPP feature it could only allow POPPs with same app_type
to connect single COPP. But it's possible to connect different POPPs
with different app_type to single COPP, to achieve this, it should
skip the app_type check when create copp_idx.

Change-Id: Ic8d7c63d317baba09768d08bc723a6b097322f63
Signed-off-by: Cong Tang <congt@codeaurora.org>
2018-06-18 20:54:41 -07:00
Andy Sun
ab4b239854 ais: support frame drop configuration for auto
Set hardware frame drop config in the start_stream().
New command for user to set frame drop during streaming.

Change-Id: I523c96366ebbe6d664262e66d3bf7ee2d1b28ee3
Signed-off-by: Andy Sun <bins@codeaurora.org>
2018-06-19 11:07:00 +08:00
Linux Build Service Account
753ed36d6a Merge "ASoC: apr: Add separate initial boot flag for ADSP and Modem" 2018-06-18 16:40:17 -07:00
Camus Wong
daf3fdb4aa DRM: SDE: Independent control of left/right global PA
In the split display use case that has two DSPPs, we enabled the caller
to have different global PA value for each DSPP.

Change-Id: Ie19a48229a07e39fe20a5626aa18c065ad9946d6
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-06-18 15:47:10 -07:00
Soumya Managoli
62d95ed05b ASoC: apr: Add separate initial boot flag for ADSP and Modem
apr ignores initial PDR_DOWN event from ADSP/Modem during
boot up. ADSP_DOWN event is wrongly sent to audio drivers
during boot up if it gets MODEM_UP event before ADSP_DOWN.

Added separate flags for both ADSP and Modem events to avoid
this issue.

CRs-Fixed: 2232315
Change-Id: I2c6084ac03e3867009f36be36631f881124f59ba
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2018-06-18 04:48:09 -07:00
Srinivasa Rao Kuppala
2763b994a1 sound: rawmidi: Move spinlock under realloc_mutex
A merge conflict resolution of commit e57f781805f0 ("ANDROID: sound:
rawmidi: Hold lock around realloc") placed a realloc_mutex lock
inside of a runtime->lock irq spinlock. The mutex lock has to
encompass the spinlock to avoid attempts to sleep in an invalid
context.

Change-Id: I29723c5623db3b7145644f941ccc5226e3764f08
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
2018-06-18 03:42:54 -07:00
Vinayak Menon
34d3a71963 ion: invalidate the pool pointers after free
ion_system_heap_destroy_pools frees the pool, but
does not invalidate the pointer. This can result in
a double free if ion_system_heap_create_pools fails,
and then causes ion_system_heap_create to call into
ion_system_heap_destroy_pools again from the error
path. This can happen in ion_system_heap_create when
one of the secure pool creation fails.

Change-Id: Ic73ca78722aa5a575cc4dd7c1caa560b518094f2
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2018-06-18 13:28:38 +05:30
Linux Build Service Account
2df3743287 Merge "soc: qcom: subsystem_restart: Add checks to verify validity of a device" 2018-06-16 18:58:01 -07:00
Linux Build Service Account
e4340a3ea8 Merge "uio: msm_sharedmem: Add a function to release the shared RAM section" 2018-06-16 18:57:56 -07:00
Linux Build Service Account
d225d1aed1 Merge "usb: gadget: f_cdev: Send zero length packets in modem data calls" 2018-06-16 18:57:53 -07:00
Linux Build Service Account
899380f9bb Merge "i2c-msm-v2: Add NULL pointer check for DMA descriptor" 2018-06-16 18:57:47 -07:00
Anant Goel
a6672f6af9 soc: qcom: subsystem_restart: Add checks to verify validity of a device
Extra checks are added to ensure a subsystem device is valid before
accessing any of its fields.

Change-Id: Ia8e3dced005485b1edb5d6ccf9429f90d31fa613
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2018-06-15 13:32:42 -07:00
Anant Goel
205812e0fc uio: msm_sharedmem: Add a function to release the shared RAM section
A function to free the shared RAM section has been added to the
msm_sharedmem driver. This function is needed to free the RAM section
on shutdown of the msm_sharedmem driver. The function is called on
the shutdown command for the driver.

Change-Id: Iff04f93d380664c5e3df9b0cd575cf9e6300ea39
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2018-06-15 12:19:56 -07:00
Linux Build Service Account
69f3e88c6c Merge "nl80211: fix nlmsg allocation in cfg80211_ft_event" 2018-06-15 10:28:13 -07:00
Linux Build Service Account
4fb9f9a7b7 Merge "mmc: host: msm: Don't check for core-dll lock during hs400es dll init" 2018-06-15 10:28:12 -07:00
Linux Build Service Account
e931ea69a1 Merge "msm: ADSPRPC: handle 32 bit support" 2018-06-15 10:28:02 -07:00
Linux Build Service Account
ae6b75092d Merge "soc: qcom: hab: add support for multiple hypervisors" 2018-06-15 10:28:01 -07:00
Linux Build Service Account
9963b625f3 Merge "packet: fix race condition in packet_set_ring" 2018-06-15 10:28:00 -07:00
Camus Wong
86b1b75f47 ARM: dts: msm: Enable Control Path and mixer preference on msm8996
Add dtsi entries for display control path and mixer destination display
preference.  The possible input are "primary", "secondary", "tertiary",
"none".  For example, when user set ctrl path 1 preference to
"primary" and mixer1 preference to "primary".  SDE RM will let primary
display to use ctrl path 1 and mixer 1.

Change-Id: Ie7f0cb122552a3d8b7406a8d1fcbcb184c67a073
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-06-15 08:45:49 -07:00
Zhu Jianmin
df55603b24 nl80211: fix nlmsg allocation in cfg80211_ft_event
Allocation size of nlmsg in cfg80211_ft_event is based on ric_ies_len
and doesn't take into account ies_len. This leads to
NL80211_CMD_FT_EVENT message construction failure in case ft_event
contains large enough ies buffer.
Add ies_len to the nlmsg allocation size.

Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 1039d08100e58f016a814347baadb77bf8dd21ab
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I224ac6113e4b15958f3b155982ff5cf84ff9ed74
CRs-Fixed: 2207276
Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Zhu Jianmin <jianminz@codeaurora.org>
2018-06-15 04:37:17 -07:00
Linux Build Service Account
53c73b7190 Merge "ARM: dts: msm: Add GPU maximum frequency 585Mhz support for SDM660-Lite" 2018-06-15 03:06:21 -07:00
Linux Build Service Account
51b2f06de2 Merge "ASoC: msm: qdsp6v2: add lsm support for tdm ports" 2018-06-15 03:06:20 -07:00
Linux Build Service Account
f8c3bac9ce Merge "ASoC: msm: qdsp6v2: Rx DTMF detection via voice stream callback" 2018-06-15 03:06:19 -07:00
Gerrit - the friendly Code Review server
37805d9fef Merge changes into msm-4.4 2018-06-15 02:27:22 -07:00
Linux Build Service Account
f73a388a11 Merge "ARM: memory hotplug: stop cpus while memory hotplug" 2018-06-14 16:07:08 -07:00
Linux Build Service Account
0d3fe1e8bf Merge "Merge remote-trac king branch 'origin/caf/invensense/master' into msm-4.4" 2018-06-14 16:07:08 -07:00
Linux Build Service Account
06872e732f Merge "power: battery: Add support for FCC stepping" 2018-06-14 16:06:55 -07:00
Linux Build Service Account
f9a1c8211f Merge "ASoC: qdsp6v2: Fix null pointer dereference for prtd pointer" 2018-06-14 16:06:54 -07:00
Linux Build Service Account
a0e118cf53 Merge "msm: ipa: Fix race condition head_desc_list variable access" 2018-06-14 16:06:52 -07:00
Umang Agrawal
491b7aff28 power: battery: Add support for FCC stepping
On some PMIC designs a sudden increase or decrease in FCC
can impact the PMIC die thermally, causing the XO to drift.
Introduce a logic which gradually ramps up/down the FCC
whenever there is a change in its value, this spreads out
the thermals over-time. The default step rate is 100mA/sec
and the feature can be enabled using the DT property
"qcom,fcc-stepping-enable".

Change-Id: I59ee932b60766208912054f7031cd34151fb5deb
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
2018-06-14 15:53:57 +05:30
Venkata Rao Kakani
42cadd5165 ARM: memory hotplug: stop cpus while memory hotplug
Avoid page table corruptions during memory hotplug by
stopping all other cpus.

Change-Id: I527a616c5603b882a43626c746ef0b4dda977202
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2018-06-14 03:13:02 -07:00
Ashay Jaiswal
eafe2f3d08 power: power_supply: add property for FCC stepper
Add power_supply property POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE
which reports the state of FCC stepped feature.

Change-Id: Ibbb6e6fa7bba6b804a94bb93ddc75e5dfe0afdd1
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2018-06-14 15:29:34 +05:30
Shrey Vijay
f5634d1c91 i2c-msm-v2: Add NULL pointer check for DMA descriptor
Add NULL pointer check for RX/TX DMA descriptors to avoid
NULL dereference.

Change-Id: I71443204e79eb1afc37a6b312cf4aa9adcaa22c6
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
2018-06-14 02:03:26 -07:00
Puneet yatnala
39fad015bb Merge remote-trac king branch 'origin/caf/invensense/master' into msm-4.4
* origin/caf/invensense/master:
  MA Lite 8.1.5
  MA Lite 8.1.4a

Change-Id: I7667000896f2d3de0acba83b4020bb3bdd34b248
Signed-off-by: Puneet yatnala <puneet@codeaurora.org>
2018-06-14 12:53:39 +05:30
Vatsal Bucha
b9e306af63 ASoC: qdsp6v2: Fix null pointer dereference for prtd pointer
Private data pointer may not be initialized before
access it in adsp_stream_cmd_put. NULL check for prtd
avoids the issue.

CRs-Fixed: 2252497
Change-Id: Ibd888be601d5b42ed4f4644ed22596a26b61f8fe
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-06-13 22:59:54 -07:00
Camus Wong
5db86ecc81 DRM: SDE: Update Color API implementation
Update global PA implementation base on newer kernel revision. Hue,
Saturation, Black/White, Contrast is now go through one internal
API call instead of separate calls.

Change-Id: I9e056f4d68b29bf246c8414e6dff8032f6f9b6c9
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-06-13 15:28:13 -04:00
Guchun Chen
b80fa28840 drm: msm: sde: remove user commit validity check
Such validity check will let Android FDR test failed.
This is because kernel has enabled interrupts, and
access registers, but with this validity check, LK also
co-exists with kernel, while it has disabled interrupts.
Hence conflict happens.

CRs-Fixed: 2247983 2258043
Change-Id: I21be9ae2beeaa0bc187aee241572ce530b9bc93a
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2018-06-13 17:45:07 +08:00
Pratham Pratap
293a3d1734 usb: gadget: f_cdev: Send zero length packets in modem data calls
The USB protocol requires zero length packets to be sent when the data
transmission ends on a USB packet size boundary. This fix enables sending
zero length packets when required.

Change-Id: I0269ec7ff25c82000f2a5bc4adb449bc0231c66c
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2018-06-13 02:02:42 -07:00
Tharun Kumar Merugu
d413f3e7fc msm: ADSPRPC: handle 32 bit support
Handle 32 bit support without any truncation.
Add IOCTL calls for map and unmap for 64 bit separately.

Change-Id: I077a0b4345a6c21a88d7a500aa5c9faf7193f620
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-06-13 12:17:01 +05:30
Veerabhadrarao Badiganti
8c2f6269d1 mmc: host: msm: Don't check for core-dll lock during hs400es dll init
When initializing DLL in HS400 enhanced strobe-mode, no need to wait
for core dll lock. So skip this wait-on-lock step for hs400es in dll
init sequence.

Change-Id: I8cda0244cb5a397824c613a3c667470cd23e7288
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2018-06-13 11:46:56 +05:30
Srinivasa Rao Kuppala
e513723258 packet: fix race condition in packet_set_ring
commit 5a01eaf198 ("packet: fix race condition
in packet_set_ring") was incorrectly resolved.
Add the missing lock_sock(sk) and release_sock(sk) calls.

Change-Id: I6565bf3e3c6a15d6f1b93cab0536424dbacb187b
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
2018-06-13 11:10:43 +05:30