OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
5 years agoMerge "cnss2: Initialize plat_priv during bus_init"
Linux Build Service Account [Tue, 26 Mar 2019 14:12:52 +0000 (07:12 -0700)]
Merge "cnss2: Initialize plat_priv during bus_init"

5 years agoMerge "icnss: Defer modem graceful shutdown until probe complete"
Linux Build Service Account [Tue, 26 Mar 2019 14:12:50 +0000 (07:12 -0700)]
Merge "icnss: Defer modem graceful shutdown until probe complete"

5 years agoicnss: Defer modem graceful shutdown until probe complete
Anurag Chouhan [Fri, 8 Feb 2019 09:59:11 +0000 (15:29 +0530)]
icnss: Defer modem graceful shutdown until probe complete

In case WLAN driver probe is in progress and modem graceful
shutdown occurs and if modem shutdown request is sent just
before the mode on request sent to firmware, firmware may end up
in illegal memory access.
To address this issue, modem notifier needs to be blocked needs for
probe to complete or max 5 seconds timeout.

CRs-Fixed: 2381846
Change-Id: I9e13a11c56059cb29e161c34df11de484f87ac5e
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
5 years agocnss2: Initialize plat_priv during bus_init
Jayachandran Sreekumaran [Tue, 26 Mar 2019 06:35:48 +0000 (12:05 +0530)]
cnss2: Initialize plat_priv during bus_init

cnss_usb_data structure member plat_priv remains uninitialized till
the function invoke of cnss_usb_probe. This leads to the access of
uninitialized pointer plat_priv if CLD gets loaded prior to
firmware download completion. Hence initialize the plat_priv
in cnss_usb_data structure during cnss_usb_init.

Change-Id: Ic471eacf22b112aaffe61458e22c7a9102470467
Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
5 years agocnss2: Add QCN7605 USB for cold boot cal via fs_ready
Rajasekaran Kalidoss [Mon, 21 Jan 2019 07:57:48 +0000 (13:27 +0530)]
cnss2: Add QCN7605 USB for cold boot cal via fs_ready

For triggering cold boot via fs_ready, the device ID
and bus type of QCN7605 USB was added in fs_ready and
cold boot cal start and done handlers.

Change-Id: I28801207c7833af18a09819cd9ab07ede556ac87
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
5 years agoMerge "diag: Add protection while accessing usb_info's buffer table"
Linux Build Service Account [Mon, 25 Mar 2019 13:22:51 +0000 (06:22 -0700)]
Merge "diag: Add protection while accessing usb_info's buffer table"

5 years agodiag: Add protection while accessing usb_info's buffer table
Hardik Arya [Thu, 29 Mar 2018 08:28:19 +0000 (13:58 +0530)]
diag: Add protection while accessing usb_info's buffer table

Currently there a possibility of NULL pointer dereference while
accessing usb_info's buffer table due to missing proper protection.
The patch adds protection for the same.

Change-Id: I974a70a48e7ac47b42bc237aac4db1b9e47be6be
Signed-off-by: Hardik Arya <harya@codeaurora.org>
5 years agodiag: Free usb buffer's entry after removing from list
Hardik Arya [Mon, 16 Apr 2018 11:16:58 +0000 (16:46 +0530)]
diag: Free usb buffer's entry after removing from list

Currently, there is possibility of memory leak due to not
freeing allocated memory for usb buffer's entry after
removing it from list. The patch handle this by freeing
the entry.

Change-Id: Idb08ecad859749e6ab1b09184362de38de4a9836
Signed-off-by: Hardik Arya <harya@codeaurora.org>
5 years agoMerge "ARM: dts: msm: add device tree overlay for 8996 V3"
Linux Build Service Account [Fri, 22 Mar 2019 17:37:32 +0000 (10:37 -0700)]
Merge "ARM: dts: msm: add device tree overlay for 8996 V3"

5 years agoMerge "Revert "tty: msm: reduce pseudo terminal enumeration count""
Linux Build Service Account [Fri, 22 Mar 2019 09:45:01 +0000 (02:45 -0700)]
Merge "Revert "tty: msm: reduce pseudo terminal enumeration count""

5 years agoARM: dts: msm: add device tree overlay for 8996 V3
Swetha Chikkaboraiah [Wed, 27 Feb 2019 07:21:55 +0000 (12:51 +0530)]
ARM: dts: msm: add device tree overlay for 8996 V3

Add device tree overlay support for 8996 V3 HW.

Change-Id: Icbb62aef6629778ac3b57716956927d32c0a9a0f
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
5 years agoMerge "ARM: dts: msm: add DTBO support for MSM8996pro CDP board"
Linux Build Service Account [Wed, 20 Mar 2019 12:53:59 +0000 (05:53 -0700)]
Merge "ARM: dts: msm: add DTBO support for MSM8996pro CDP board"

5 years agoMerge "apr: msm: fix compilation for non glink targets"
Linux Build Service Account [Wed, 20 Mar 2019 12:52:41 +0000 (05:52 -0700)]
Merge "apr: msm: fix compilation for non glink targets"

5 years agoMerge "cnss: Enable cnss_msm_pcie_pm_control"
Linux Build Service Account [Wed, 20 Mar 2019 12:51:55 +0000 (05:51 -0700)]
Merge "cnss: Enable cnss_msm_pcie_pm_control"

5 years agoapr: msm: fix compilation for non glink targets
Asish Bhattacharya [Tue, 19 Mar 2019 15:33:30 +0000 (21:03 +0530)]
apr: msm: fix compilation for non glink targets

Define proto functions for non glink targets.

Change-Id: Ie9eb32fe9af70d078d8ddc915c998d49e89b79c1
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
5 years agoARM: dts: msm: add DTBO support for MSM8996pro CDP board
Firoz Khan [Tue, 12 Mar 2019 12:48:42 +0000 (18:18 +0530)]
ARM: dts: msm: add DTBO support for MSM8996pro CDP board

Add device tree blob for overlay support for MSM CDP board.
Divide the initial device tree files into main and overlay
device tree based on soc and board specific information.

Change-Id: Ied6555fbe9451ab64cc53425f77fc68dd7167ee1
Signed-off-by: Firoz Khan <firozk@codeaurora.org>
5 years agoARM: dts: msm: add DTBO support for APQ8096pro CDP board
Firoz Khan [Tue, 12 Mar 2019 12:41:54 +0000 (18:11 +0530)]
ARM: dts: msm: add DTBO support for APQ8096pro CDP board

Add device tree blob for overlay support for APQ CDP board.
Divide the initial device tree files into main and overlay
device tree based on soc and board specific information.

Change-Id: Icbdf09e250a83bce65938f5099af3f19987853d6
Signed-off-by: Firoz Khan <firozk@codeaurora.org>
5 years agocnss: Enable cnss_msm_pcie_pm_control
donglian [Thu, 14 Mar 2019 09:09:54 +0000 (17:09 +0800)]
cnss: Enable cnss_msm_pcie_pm_control

In order to support WLAN SSR in GVM, we need to enable
PCIe suspend/resume. PCIe suspend/resume requires ldo
reset. GVM has no direct control to PCIe ldos,instead,
they are managed in ghs hypervisor. During WLAN SSR,
GVM will send out power messages to ghs via subsystem
SSR framework which will reset WLAN/PCIe ldos accordingly.

Suspend/resume set is skipped during registration/
un-registration because GVM is not able to inform ghs
to do ldo operations in such scenarios. And if PCIe link is
suspended upon registration, it can resume no more.

Change-Id: I11b44e684a560ca2585ede7e0cee27caccd1074f
CRs-Fixed: 2411088
Signed-off-by: Dongliang Yao <dongliang.yao@codeaurora.org>
5 years agoion: fix system secure force alloc
Vinayak Menon [Thu, 31 Jan 2019 15:17:07 +0000 (20:47 +0530)]
ion: fix system secure force alloc

Even when ION_FLAG_POOL_FORCE_ALLOC is set for secure alloc,
alloc_from_pool_preferred tries to get the pages from pool
first. In case if it enters split_page_from_secure_pool,
free_buffer_page can end up calling __free_pages on the page
from pool which is hyp assigned, resulting in issues for e.g.
a fault if page poisoning is enabled.

Change-Id: I68759dc17551a5705693506a5c137977d429fe36
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
5 years agoMerge "msm: ipa: fix to validate the ioctl WAN_IOC_SEND_LAN_CLIENT_MSG params"
Linux Build Service Account [Tue, 19 Mar 2019 11:57:12 +0000 (04:57 -0700)]
Merge "msm: ipa: fix to validate the ioctl WAN_IOC_SEND_LAN_CLIENT_MSG params"

5 years agoMerge "ARM: dts: msm: add DTBO support for MSM ADP LITE board"
Linux Build Service Account [Tue, 19 Mar 2019 11:57:09 +0000 (04:57 -0700)]
Merge "ARM: dts: msm: add DTBO support for MSM ADP LITE board"

5 years agoMerge "ARM: dts: msm: add DTBO support for APQ ADP board"
Linux Build Service Account [Tue, 19 Mar 2019 11:57:08 +0000 (04:57 -0700)]
Merge "ARM: dts: msm: add DTBO support for APQ ADP board"

5 years agomsm: ipa: fix to validate the ioctl WAN_IOC_SEND_LAN_CLIENT_MSG params
Chaitanya Pratapa [Tue, 26 Feb 2019 09:36:31 +0000 (15:06 +0530)]
msm: ipa: fix to validate the ioctl WAN_IOC_SEND_LAN_CLIENT_MSG params

When processing WAN_IOC_SEND_LAN_CLIENT_MSG ioctl there is a possibility
of message_type being invalid and this can lead to out of buffer error.
Make a change to validate the ioctl params before processing.

Change-Id: If7955f77863b772ae1c8feda5ca0145c822403b9
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
5 years agommc: host: Cancel clock gating work in suspend
Sayali Lokhande [Mon, 19 Feb 2018 11:08:26 +0000 (16:38 +0530)]
mmc: host: Cancel clock gating work in suspend

In some scenarios, it is observed that mmc clock gating
work is racing with pm suspend resulting in unclocked
register access.

Sequence of events:
1) System is going to suspend (PM_SUSPEND_PREPARE)
2) Sd card is inserted and mmc_power_up() is called
as part of mmc_sd_detect.
3) mmc_power_up() released clocks and clock gate work
is scheduled.
4) As part of PM suspend clocks are disabled.
5) Clock gate work(scheduled at step 3) kicks in now
after suspend and unclocked register access happens in
sdhci_set_bus_width() function.

Logs:
mmc1: Enter mode PM_SUSPEND_PREPARE
mmc_sd_detect(mmc1): Re-init card success in mmc_sd_detect
    => mmc_power_up (clocks released here)
mmc1: Enter mode PM_POST_SUSPEND
mmc1: sdhci_msm_runtime_suspend: Enter
mmc1: sdhci_msm_runtime_suspend: Exit
mmc1: Enter mode PM_SUSPEND_PREPARE
mmc1: mmc_bus_suspend: Enter
mmc1: mmc_bus_suspend: Exit 0
mmc1: sdhci_msm_suspend: Enter
mmc1: sdhci_msm_suspend: already runtime suspended
mmc1: sdhci_msm_disable_controller_clock: disabled clock
    => PM_SUSPEND disabled clocks
mmc1: sdhci_msm_suspend: Exit ret: 0
mmc_host_clk_gate_delayed: mmc1: Enter
mmc_host_clk_gate_delayed: mmc1: calling gate_clock..
<>
Unhandled fault: external abort
Workqueue: events mmc_host_clk_gate_work
PC is at sdhci_set_bus_width+0x2c/0xb4

To fix this unclocked access, cancel any clock gating work
scheduled by mmc_host_clk_release() before turning off clocks
in suspend.

Change-Id: I1165ad2c5a1eb52abf18fef12667e93c947ae417
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
5 years agoMerge "icnss: Add support for graceful shutdown"
Linux Build Service Account [Mon, 18 Mar 2019 19:16:52 +0000 (12:16 -0700)]
Merge "icnss: Add support for graceful shutdown"

5 years agoMerge "soc: qcom: hab: unify variable type to avoid implicit conversion"
Linux Build Service Account [Mon, 18 Mar 2019 19:16:51 +0000 (12:16 -0700)]
Merge "soc: qcom: hab: unify variable type to avoid implicit conversion"

5 years agoMerge "msm: kgsl: Limit log frequency in case of context count maxed out"
Linux Build Service Account [Mon, 18 Mar 2019 19:16:50 +0000 (12:16 -0700)]
Merge "msm: kgsl: Limit log frequency in case of context count maxed out"

5 years agoMerge "Revert "ASoC: msm: Add support for AVS version check""
Linux Build Service Account [Mon, 18 Mar 2019 19:16:49 +0000 (12:16 -0700)]
Merge "Revert "ASoC: msm: Add support for AVS version check""

5 years agoMerge "defconfig: msm-auto-gvm: reduce pseudo terminal enumeration count"
Linux Build Service Account [Mon, 18 Mar 2019 19:16:48 +0000 (12:16 -0700)]
Merge "defconfig: msm-auto-gvm: reduce pseudo terminal enumeration count"

5 years agomsm: kgsl: Limit log frequency in case of context count maxed out
Rajesh Kemisetti [Fri, 10 Aug 2018 08:00:07 +0000 (13:30 +0530)]
msm: kgsl: Limit log frequency in case of context count maxed out

kgsl_context_init() prints error message continuously if a process
tries to create more number of contexts that KGSL supports.

This hogs CPU and might lead to watchdog timeout.

Reduce this log frequency by using KGSL_DRV_ERR_RATELIMIT().

Change-Id: I7e3a5d3db41ab0c60d1b6b620cbcdef96d5c21a9
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
5 years agoMerge "cfg80211: indicate support for DH IE update"
Linux Build Service Account [Mon, 18 Mar 2019 06:31:23 +0000 (23:31 -0700)]
Merge "cfg80211: indicate support for DH IE update"

5 years agoMerge "cfg80211/nl80211: Offload OWE processing to user space"
Linux Build Service Account [Mon, 18 Mar 2019 06:31:22 +0000 (23:31 -0700)]
Merge "cfg80211/nl80211: Offload OWE processing to user space"

5 years agoMerge "ARM: dts: msm: Update RX and TX data lines for QUAT_MI2S"
Linux Build Service Account [Mon, 18 Mar 2019 06:31:19 +0000 (23:31 -0700)]
Merge "ARM: dts: msm: Update RX and TX data lines for QUAT_MI2S"

5 years agoMerge "ASoC: msm: Enable QUAT_MI2S and SEC_MI2S interface"
Linux Build Service Account [Mon, 18 Mar 2019 06:31:17 +0000 (23:31 -0700)]
Merge "ASoC: msm: Enable QUAT_MI2S and SEC_MI2S interface"

5 years agoMerge "cnss2: Add support for QCN7605 ver 2 usb device support"
Linux Build Service Account [Sat, 16 Mar 2019 09:04:24 +0000 (02:04 -0700)]
Merge "cnss2: Add support for QCN7605 ver 2 usb device support"

5 years agodsp: validate token before usage as array index
Xiaojun Sang [Tue, 12 Feb 2019 09:01:22 +0000 (17:01 +0800)]
dsp: validate token before usage as array index

Token from DSP might be invalid for array index. Validate the
token before being used as array index.

Change-Id: I9f47e1328d75d9f9acf7e85ddb452019b6eced0a
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
5 years agocnss2: Add support for QCN7605 ver 2 usb device support
Rajasekaran Kalidoss [Mon, 25 Feb 2019 06:35:15 +0000 (12:05 +0530)]
cnss2: Add support for QCN7605 ver 2 usb device support

New PID has been introduced for Version 2.0 of QCN7605
USB composite device. PID should be updated in cnss2
driver to support this device.

Change-Id: I12b944b15021f317b24a34b0801a4d600133eee3
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
5 years agoMerge "diag: dci: Prevent task deallocation and possible resource leak"
Linux Build Service Account [Thu, 14 Mar 2019 16:30:12 +0000 (09:30 -0700)]
Merge "diag: dci: Prevent task deallocation and possible resource leak"

5 years agoMerge "dsp: q6voice: Check size of shared memory buffer before access"
Linux Build Service Account [Thu, 14 Mar 2019 09:07:48 +0000 (02:07 -0700)]
Merge "dsp: q6voice: Check size of shared memory buffer before access"

5 years agoMerge "cnss2: power up & power down during reg and unreg"
Linux Build Service Account [Thu, 14 Mar 2019 09:07:46 +0000 (02:07 -0700)]
Merge "cnss2: power up & power down during reg and unreg"

5 years agoMerge "drm: msm: sde: add splash handoff support for shared display"
Linux Build Service Account [Thu, 14 Mar 2019 09:07:45 +0000 (02:07 -0700)]
Merge "drm: msm: sde: add splash handoff support for shared display"

5 years agoMerge "msm: adsprpc: restrict user apps from sending kernel RPC messages"
Linux Build Service Account [Thu, 14 Mar 2019 09:07:44 +0000 (02:07 -0700)]
Merge "msm: adsprpc: restrict user apps from sending kernel RPC messages"

5 years agoRevert "tty: msm: reduce pseudo terminal enumeration count"
Venkata Rao kakani [Wed, 13 Mar 2019 11:52:23 +0000 (04:52 -0700)]
Revert "tty: msm: reduce pseudo terminal enumeration count"

This reverts commit e9704b8d77d75ff32e881a3df2313d6cd0898c82.

Change-Id: Ied291a0d28f0ee0dc4648c562558e9f19458fe1e
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
Signed-off-by: Satish Kumar Dumpeti <c_sdumpe@codeaurora.org>
5 years agoRevert "ASoC: msm: Add support for AVS version check"
Soumya Managoli [Tue, 12 Mar 2019 13:09:52 +0000 (18:39 +0530)]
Revert "ASoC: msm: Add support for AVS version check"

This reverts commit d3611a4a93ecbfee6b4bfee99ee52a8f75faeed9.
q6core_get_avs_version() api to query adsp version is
not supported for avs.adsp.2.8 and later components and
gives incorrect results when used.
Hence reverting the change.

Change-Id: If83dcd46a59b659de9be75d881ab943b6b8bf336
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
5 years agoRevert "ASoC: msm: Add AVS version check for ADSP 2.7".
Soumya Managoli [Tue, 12 Mar 2019 13:08:43 +0000 (18:38 +0530)]
Revert "ASoC: msm: Add AVS version check for ADSP 2.7".

This reverts commit 20c0cacb28e9c41b822873721346d3bd5a00ba8b.
q6core_get_avs_version() api to query adsp version is
not supported for avs.adsp.2.8 and later components and
gives incorrect results when used.
Hence reverting the change.

Change-Id: I87467efe2fc0b82d94323de172e3efb858292fb8
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
5 years agoicnss: Add support for graceful shutdown
Sandeep Singh [Wed, 13 Feb 2019 10:47:30 +0000 (16:17 +0530)]
icnss: Add support for graceful shutdown

Add a QMI command to indicate graceful shutdown to the FW
and updating the QMI file.

Change-Id: I0360f6f5b49bc19ea4a7acbbd0e192e1596463d6
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
5 years agoMerge "ARM: dts: msm: Add HDR support for sharp panel"
Linux Build Service Account [Wed, 13 Mar 2019 17:21:43 +0000 (10:21 -0700)]
Merge "ARM: dts: msm: Add HDR support for sharp panel"

5 years agoMerge "AndroidKernel: Use host machine tools"
Linux Build Service Account [Wed, 13 Mar 2019 17:21:42 +0000 (10:21 -0700)]
Merge "AndroidKernel: Use host machine tools"

5 years agoMerge "ARM: dts: msm: Modify memory allocation for diag"
Linux Build Service Account [Wed, 13 Mar 2019 17:21:41 +0000 (10:21 -0700)]
Merge "ARM: dts: msm: Modify memory allocation for diag"

5 years agoASoC: msm: Enable QUAT_MI2S and SEC_MI2S interface
Suprith Malligere Shankaregowda [Tue, 26 Feb 2019 10:21:29 +0000 (15:51 +0530)]
ASoC: msm: Enable QUAT_MI2S and SEC_MI2S interface

Enable capture and playback path over Quaternary
and Secondary MI2S interface. Add QUAT_MI2S_TX
backend DAI. Add routings from FE's to MI2S backend's.

Change-Id: Id3881c591e15c1a426d9a9d32a042e8235f6f021
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
5 years agoARM: dts: msm: Update RX and TX data lines for QUAT_MI2S
Suprith Malligere Shankaregowda [Tue, 12 Mar 2019 06:59:15 +0000 (12:29 +0530)]
ARM: dts: msm: Update RX and TX data lines for QUAT_MI2S

Updating device node to use SD0 as output RX line
and SD1 as input TX line.

Change-Id: I4b44bb1a80f167be4772887b3ad4be567ef026e1
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
5 years agoMerge "soc: qcom: qmi_encdec: Restrict string length in decode"
Linux Build Service Account [Wed, 13 Mar 2019 08:36:33 +0000 (01:36 -0700)]
Merge "soc: qcom: qmi_encdec: Restrict string length in decode"

5 years agodiag: dci: Prevent task deallocation and possible resource leak
Manoj Prabhu B [Tue, 12 Mar 2019 07:23:24 +0000 (12:53 +0530)]
diag: dci: Prevent task deallocation and possible resource leak

Prevent DCI clients' task structs from being deallocated to provide
diag driver a chance to clean up its dci client list. Also update
dci client list pid reference count properly to prevent any resource
leakage.

Change-Id: Ie15df7103ef1ec733e1e0d08a0a22b4da6b418b3
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
5 years agocfg80211: indicate support for DH IE update
Liangwei Dong [Thu, 27 Dec 2018 04:45:41 +0000 (23:45 -0500)]
cfg80211: indicate support for DH IE update

Define macro to indicate backport support for
DH IE update.

Change-Id: Ib39032cab976fa465e417c9d1f6193306ea78565
CRs-Fixed: 2415038
Signed-off-by: Liangwei Dong <liangwei@codeaurora.org>
5 years agosoc: qcom: hab: unify variable type to avoid implicit conversion
Yao Jiang [Mon, 4 Mar 2019 03:54:54 +0000 (11:54 +0800)]
soc: qcom: hab: unify variable type to avoid implicit conversion

correcting the type of sizebytes and total_size to size_t,it can avoid
implicit conversion which maybe cause some unknown issue.

Change-Id: I1c1cc9e92ca2920cc49685edef0d928dd67454c7
Signed-off-by: Yao Jiang <yaojia@codeaurora.org>
5 years agomsm: adsprpc: restrict user apps from sending kernel RPC messages
Tharun Kumar Merugu [Fri, 1 Feb 2019 19:52:47 +0000 (01:22 +0530)]
msm: adsprpc: restrict user apps from sending kernel RPC messages

Verify that user applications are not using the kernel RPC message
handle to restrict them from directly attaching to guest OS on the
remote subsystem.

Change-Id: Icfa114a12f2bebbe815eb9930027fded51f717fd
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
5 years agocnss2: power up & power down during reg and unreg
Rajasekaran Kalidoss [Tue, 18 Dec 2018 16:08:59 +0000 (21:38 +0530)]
cnss2: power up & power down during reg and unreg

In insmod and rmmod handling, cnss2 should power up and power
down WLAN as part of register and unregister.

Change-Id: I5c588e7db0748363ffbfec9ee4ec26ebdb85e3aa
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
5 years agoARM: dts: msm: add DTBO support for MSM ADP LITE board
Firoz Khan [Tue, 12 Mar 2019 12:34:58 +0000 (18:04 +0530)]
ARM: dts: msm: add DTBO support for MSM ADP LITE board

Add device tree blob for overlay support for MSM ADP LITE
board. Divide the initial device tree files into main and
overlay device tree files based on soc and board specific
information.

Change-Id: I03bfd1c8f6bc596db50ac0bc39077fe6c55c8ec8
Signed-off-by: Firoz Khan <firozk@codeaurora.org>
5 years agoARM: dts: msm: add DTBO support for MSM ADP board
Firoz Khan [Tue, 12 Mar 2019 12:27:52 +0000 (17:57 +0530)]
ARM: dts: msm: add DTBO support for MSM ADP board

Add device tree blob for overlay support for MSM ADP board.
Divide the initial device tree files into main and overlay
device tree based on soc and board specific information.

Change-Id: Id17b27ff0f6379e36b6ad4a5b3dd520051a35f85
Signed-off-by: Firoz Khan <firozk@codeaurora.org>
5 years agoARM: dts: msm: add DTBO support for APQ ADP LITE board
Firoz Khan [Tue, 12 Mar 2019 12:18:07 +0000 (17:48 +0530)]
ARM: dts: msm: add DTBO support for APQ ADP LITE board

Add device tree blob for overlay support for APQ ADP LITE
board. Divide the initial device tree files into main and
overlay device tree files based on soc and board specific
information.

Change-Id: Id67502a5f28f6e6bfa0571992b654416527d1f67
Signed-off-by: Firoz Khan <firozk@codeaurora.org>
5 years agoARM: dts: msm: add DTBO support for APQ ADP board
Firoz Khan [Tue, 12 Mar 2019 11:37:29 +0000 (17:07 +0530)]
ARM: dts: msm: add DTBO support for APQ ADP board

Add device tree blob for overlay support for APQ ADP board.
Divide the initial device tree files into main and overlay
device tree based on soc and board specific information.

Change-Id: I94c7b0c5a906fafecf8fb771f21e9f68d53a38e8
Signed-off-by: Firoz Khan <firozk@codeaurora.org>
5 years agocfg80211/nl80211: Offload OWE processing to user space
Sunil Dutt [Wed, 9 Jan 2019 16:42:29 +0000 (22:12 +0530)]
cfg80211/nl80211: Offload OWE processing to user space

This interface allows the host driver to offload OWE processing to
user space. This intends to support OWE/Enhanced Open AKM by the host
drivers that implement SME but rely on the user space for
the crypotographic/OWE processing.Such drivers are not capable of
processing/deriving the DH IE's.

This interface acts as both the event from the driver to userspace
and a command from userspace to the driver.

Host driver shall use the event to notify the OWE info of the peer
to the userspace for the cryptographic processing of the DH ie's.
Accordingly, the userspace shall update the OWE info/DH ie's to
the host driver corresponding to the peer.

Above sequence aims for the AP mode where the event carries the
OWE info of the peer(STA) obtained in the Assoc Request.
The request interface from the userspace shall update the OWE
info to the host driver, which is used to send the Assoc response
to the peer.

This OWE info in the command interface shall contain the ie's which
either include the pmkid of the peer if the PMKSA is still valid or
an updated DH ie's for generating a new PMKSA with the peer.

Change-Id: Id5a2e800bdae1ea31a20a062d012cc33e5a3c6a3
CRs-Fixed: 2414077
Signed-off-by: Liangwei Dong <liangwei@codeaurora.org>
Signed-off-by: Sunil Dutt <usdutt@codeaurora.org>
5 years agoMerge "dsp: codecs: fix range check for audio buffer copying"
Linux Build Service Account [Tue, 12 Mar 2019 05:30:47 +0000 (22:30 -0700)]
Merge "dsp: codecs: fix range check for audio buffer copying"

5 years agodrm: msm: sde: add splash handoff support for shared display
Guchun Chen [Tue, 26 Feb 2019 03:42:57 +0000 (11:42 +0800)]
drm: msm: sde: add splash handoff support for shared display

When shared display is both enabled in bootloader and kernel,
the handoff mechanism needs to be updated to ensure the handoff
can be finished.

Change-Id: I8172b0878a4a322f87e0ad138cff1e27161a9f83
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
5 years agoAndroidKernel: Use host machine tools
Mukesh Ojha [Fri, 12 Oct 2018 07:51:32 +0000 (13:21 +0530)]
AndroidKernel: Use host machine tools

Use the host directory of tools for kernel cross
compilation to ensure build results are reproducible
across different machines.

Change-Id: I804745bb1962c46e944ba43e77e8876435c9059e
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
5 years agoMerge "qdsp6v2: apr: check for packet size to header size comparison"
Linux Build Service Account [Mon, 11 Mar 2019 12:14:41 +0000 (05:14 -0700)]
Merge "qdsp6v2: apr: check for packet size to header size comparison"

5 years agodsp: codecs: fix range check for audio buffer copying
Xiaoyu Ye [Mon, 4 Mar 2019 05:14:10 +0000 (21:14 -0800)]
dsp: codecs: fix range check for audio buffer copying

The range checking for audio buffer copying in function
"audio_in_write" is using the incorrect buffer size.
Change it to the actual allocated audio buffer size.

Change-Id: Ib7aaa2163c0d99161369eb85d09dc2d23d8c787b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
5 years agoARM: dts: msm: Modify memory allocation for diag
Manoj Prabhu B [Fri, 8 Mar 2019 09:47:02 +0000 (15:17 +0530)]
ARM: dts: msm: Modify memory allocation for diag

The patch removes the boot time allocation for diag and allocates
only on request from peripheral. The new property added ensures
memory will not be freed on free request or ssr case.

Change-Id: I32ed6ad010f541ec120c279ee9a4077fb9f6562a
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
5 years agoMerge "soc: qcom: subsystem_notif_virt: Add support for GHS platform"
Linux Build Service Account [Fri, 8 Mar 2019 09:17:55 +0000 (01:17 -0800)]
Merge "soc: qcom: subsystem_notif_virt: Add support for GHS platform"

5 years agoMerge "ARM: dts: msm: add dtbo support for MSM8996 ufs device"
Linux Build Service Account [Fri, 8 Mar 2019 09:17:53 +0000 (01:17 -0800)]
Merge "ARM: dts: msm: add dtbo support for MSM8996 ufs device"

5 years agoARM: dts: msm: Add HDR support for sharp panel
Rajesh Yadav [Mon, 5 Dec 2016 13:53:42 +0000 (19:23 +0530)]
ARM: dts: msm: Add HDR support for sharp panel

Add chromaticity, peak brightness and blackness
level information for panel. These values are
needed for HDR support.

CRs-Fixed: 1095347
Change-Id: Ic3c10b6f8c80f68fec953fd4f0b4616eac7edee7
Signed-off-by: Rajesh Yadav <ryadav@codeaurora.org>
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
5 years agoARM: dts: msm: add dtbo support for MSM8996 ufs device
Naitik Bharadiya [Mon, 25 Feb 2019 05:12:30 +0000 (10:42 +0530)]
ARM: dts: msm: add dtbo support for MSM8996 ufs device

Add device tree overlay support for MSM8996 ufs device.

Change-Id: I64b1212a9128f2fd8e821dc85d4f94feb5c3f8b4
Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>
5 years agomsm: kgsl: Correctly limit max number of contexts per process
Deepak Kumar [Mon, 5 Mar 2018 11:21:25 +0000 (16:51 +0530)]
msm: kgsl: Correctly limit max number of contexts per process

Read and increment context count atomic variable under a lock
to avoid race condition between read and increment. This is
necessary to make sure no process goes beyond the specified
context limit.

Change-Id: I483e2ac169beaff49e19b8ef1b46541f6eb740b0
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
5 years agosoc: qcom: subsystem_notif_virt: Add support for GHS platform
Anant Goel [Wed, 9 Jan 2019 19:48:50 +0000 (11:48 -0800)]
soc: qcom: subsystem_notif_virt: Add support for GHS platform

Add virtual SSR support for the GHS platform.

Change-Id: I5c2b79817341d861bbeb5cf074a0fd6bd244aac1
Signed-off-by: Anant Goel <anantg@codeaurora.org>
5 years agoMerge "ARM: dts: msm: add plane reservation"
Linux Build Service Account [Wed, 6 Mar 2019 12:45:49 +0000 (04:45 -0800)]
Merge "ARM: dts: msm: add plane reservation"

5 years agoMerge "drm: msm: sde: reduce black screen duration from null commit"
Linux Build Service Account [Wed, 6 Mar 2019 12:45:46 +0000 (04:45 -0800)]
Merge "drm: msm: sde: reduce black screen duration from null commit"

5 years agodefconfig: msm-auto-gvm: reduce pseudo terminal enumeration count
Venkata Rao Kakani [Wed, 6 Mar 2019 11:37:25 +0000 (17:07 +0530)]
defconfig: msm-auto-gvm: reduce pseudo terminal enumeration count

Reduce pseudo terminal enumeration count from 256 to 32 to
reduce boot time by 125ms.

Change-Id: I533579417f5095c04cb1f39c353a91b98e609371
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
Signed-off-by: Satish Kumar Dumpeti <c_sdumpe@codeaurora.org>
5 years agodsp: q6voice: Check size of shared memory buffer before access
Vatsal Bucha [Tue, 5 Mar 2019 10:30:21 +0000 (16:00 +0530)]
dsp: q6voice: Check size of shared memory buffer before access

Check buffer size in qdsp_cvs_callback before access in
ul_pkt.

Change-Id: Ic19994b46086709231656ec747d2df988b7a512f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
5 years agosoc: qcom: qmi_encdec: Restrict string length in decode
Deepak Kumar Singh [Tue, 5 Mar 2019 11:46:54 +0000 (17:16 +0530)]
soc: qcom: qmi_encdec: Restrict string length in decode

The QMI TLV value for strings in a lot of qmi element info structures
account for null terminated strings with MAX_LEN + 1. If a string is
actually MAX_LEN + 1 length, this will cause an out of bounds access
when the NULL character is appended in decoding.

CR-Fixed: 2359244
Change-Id: I4d789bc6017ff58458f77fe875ca4e175a4f1357
Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
5 years agoMerge "Revert "drm: msm: Enable asynchronous driver probing""
Linux Build Service Account [Tue, 5 Mar 2019 10:43:23 +0000 (02:43 -0800)]
Merge "Revert "drm: msm: Enable asynchronous driver probing""

5 years agoRevert "drm: msm: Enable asynchronous driver probing"
Rahul Sharma [Fri, 1 Mar 2019 10:46:55 +0000 (16:16 +0530)]
Revert "drm: msm: Enable asynchronous driver probing"

This reverts commit 916012368cab7ea5cff2fccd44b51e5325c9b109.

DRM display driver can't afford to have async probe, As the execution can
be delayed and there are other critical operation which is required to be
completed during probe.

Change-Id: I8adf417e7a8d49f9a49916fe7b96033b93b7daf4
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
5 years agoMerge "ASoC: msm: Add AVS version check for ADSP 2.7"
Linux Build Service Account [Tue, 5 Mar 2019 02:34:32 +0000 (18:34 -0800)]
Merge "ASoC: msm: Add AVS version check for ADSP 2.7"

5 years agoMerge "Merge android-4.4.176 (cf84cdc) into msm-4.4"
Linux Build Service Account [Mon, 4 Mar 2019 19:44:01 +0000 (11:44 -0800)]
Merge "Merge android-4.4.176 (cf84cdc) into msm-4.4"

5 years agoMerge "drm/msm: set avmute only if encryption is enabled"
Linux Build Service Account [Mon, 4 Mar 2019 12:06:30 +0000 (04:06 -0800)]
Merge "drm/msm: set avmute only if encryption is enabled"

5 years agoASoC: msm: Add AVS version check for ADSP 2.7
Soumya Managoli [Mon, 4 Mar 2019 08:48:43 +0000 (14:18 +0530)]
ASoC: msm: Add AVS version check for ADSP 2.7

Added missing AVS version check to use asm write apis
for ADSP 2.7

Change-Id: I6c841d8b89aa2f0511ea496c9955387b606d2812
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
5 years agoqdsp6v2: apr: check for packet size to header size comparison
Vatsal Bucha [Fri, 1 Mar 2019 07:46:39 +0000 (13:16 +0530)]
qdsp6v2: apr: check for packet size to header size comparison

Check if packet size is large enough to hold the header.

Change-Id: I7261f8111d8b5f4f7c181e469de248a732242d64
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
5 years agoMerge "defconfig: msm8996: Enable and disable few configs"
Linux Build Service Account [Mon, 4 Mar 2019 05:03:30 +0000 (21:03 -0800)]
Merge "defconfig: msm8996: Enable and disable few configs"

5 years agoMerge "tty: msm: reduce pseudo terminal enumeration count"
Linux Build Service Account [Sat, 2 Mar 2019 06:14:00 +0000 (22:14 -0800)]
Merge "tty: msm: reduce pseudo terminal enumeration count"

5 years agodrm/msm: set avmute only if encryption is enabled
Abhinav Kumar [Sat, 26 Jan 2019 03:13:55 +0000 (19:13 -0800)]
drm/msm: set avmute only if encryption is enabled

When HDCP authentication continuously fails there is no
need to set avmute packet for clear content because
there is no need to block the content in that case.

Check if encryption was enabled before setting avmute.

Change-Id: I7ece6538d36e0b0c9022e5993714f49275ed7db2
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
5 years agoMerge "sdm670: Add mixer control and update affine qos value"
Linux Build Service Account [Fri, 1 Mar 2019 22:57:05 +0000 (14:57 -0800)]
Merge "sdm670: Add mixer control and update affine qos value"

5 years agoMerge "nl80211: Allow set/del pmksa operations for AP"
Linux Build Service Account [Fri, 1 Mar 2019 16:05:30 +0000 (08:05 -0800)]
Merge "nl80211: Allow set/del pmksa operations for AP"

5 years agoMerge "cfg80211: Sync nl80211 commands/feature with upstream"
Linux Build Service Account [Fri, 1 Mar 2019 16:05:29 +0000 (08:05 -0800)]
Merge "cfg80211: Sync nl80211 commands/feature with upstream"

5 years agoMerge "ASoC: msm: q6dspv2: vote for Glink Rx thread priority upgrade"
Linux Build Service Account [Fri, 1 Mar 2019 16:05:27 +0000 (08:05 -0800)]
Merge "ASoC: msm: q6dspv2: vote for Glink Rx thread priority upgrade"

5 years agoMerge "ARM: dts: msm: Add cpu set for adsp glink on sdm660"
Linux Build Service Account [Fri, 1 Mar 2019 16:05:26 +0000 (08:05 -0800)]
Merge "ARM: dts: msm: Add cpu set for adsp glink on sdm660"

5 years agoMerge "diag: dci: Prevent task deallocation and possible resource leak"
Linux Build Service Account [Fri, 1 Mar 2019 16:05:24 +0000 (08:05 -0800)]
Merge "diag: dci: Prevent task deallocation and possible resource leak"

5 years agoMerge "msm: qdsp6v2: Check size of payload before access"
Linux Build Service Account [Fri, 1 Mar 2019 06:47:25 +0000 (22:47 -0800)]
Merge "msm: qdsp6v2: Check size of payload before access"

5 years agoMerge "msm: qdsp6v2: Check size of payload before access"
Linux Build Service Account [Fri, 1 Mar 2019 06:47:22 +0000 (22:47 -0800)]
Merge "msm: qdsp6v2: Check size of payload before access"

5 years agoMerge "qdsp6v2: q6usm: Check size of payload before access"
Linux Build Service Account [Fri, 1 Mar 2019 06:47:17 +0000 (22:47 -0800)]
Merge "qdsp6v2: q6usm: Check size of payload before access"

5 years agoMerge "qdsp6v2: q6usm: Check size of payload before access"
Linux Build Service Account [Fri, 1 Mar 2019 06:47:15 +0000 (22:47 -0800)]
Merge "qdsp6v2: q6usm: Check size of payload before access"

5 years agoMerge "msm: ipa3: Release the IPA lock acquired"
Linux Build Service Account [Fri, 1 Mar 2019 06:47:10 +0000 (22:47 -0800)]
Merge "msm: ipa3: Release the IPA lock acquired"