OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoudpv6: Fix the checksum computation when HW checksum does not apply
Subash Abhinov Kasiviswanathan [Wed, 13 Sep 2017 23:56:39 +0000 (17:56 -0600)]
udpv6: Fix the checksum computation when HW checksum does not apply

While trying an ESP transport mode encryption for UDPv6 packets of
datagram size 1436 with MTU 1500, checksum error was observed in
the secondary fragment.

This error occurs due to the UDP payload checksum being missed out
when computing the full checksum for these packets in
udp6_hwcsum_outgoing().

CRs-Fixed: 2087660
Change-Id: I8f9066a5fa731a7c81b6713dc93b1cf4824646f0
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
6 years agoMerge "power: qcom: smb135x: change OTG regulator ops to static"
Linux Build Service Account [Wed, 13 Sep 2017 07:17:51 +0000 (00:17 -0700)]
Merge "power: qcom: smb135x: change OTG regulator ops to static"

6 years agoMerge "power: qpnp-fg-gen3: adjust ki coefficient for full soc dynamically"
Linux Build Service Account [Wed, 13 Sep 2017 07:17:51 +0000 (00:17 -0700)]
Merge "power: qpnp-fg-gen3: adjust ki coefficient for full soc dynamically"

6 years agoMerge "usb: gadget: u_ether: Add NULL check in helper APIs"
Linux Build Service Account [Wed, 13 Sep 2017 07:17:50 +0000 (00:17 -0700)]
Merge "usb: gadget: u_ether: Add NULL check in helper APIs"

6 years agoMerge "usb: gadget: Update default class subclass and protocol for rndis"
Linux Build Service Account [Wed, 13 Sep 2017 07:17:49 +0000 (00:17 -0700)]
Merge "usb: gadget: Update default class subclass and protocol for rndis"

6 years agoMerge "Merge android-4.4@610af85 (v4.4.85) into msm-4.4"
Linux Build Service Account [Tue, 12 Sep 2017 21:41:59 +0000 (14:41 -0700)]
Merge "Merge android-4.4@610af85 (v4.4.85) into msm-4.4"

6 years agoMerge "msm: kgsl: Protect the bind object against bad dereference"
Linux Build Service Account [Tue, 12 Sep 2017 21:41:58 +0000 (14:41 -0700)]
Merge "msm: kgsl: Protect the bind object against bad dereference"

6 years agoMerge "msm: ipa: ipa_usb: teth_prot and ttype validation"
Linux Build Service Account [Tue, 12 Sep 2017 21:41:48 +0000 (14:41 -0700)]
Merge "msm: ipa: ipa_usb: teth_prot and ttype validation"

6 years agoMerge "msm: camera: isp: Avoid stats data corruption."
Linux Build Service Account [Tue, 12 Sep 2017 12:25:47 +0000 (05:25 -0700)]
Merge "msm: camera: isp: Avoid stats data corruption."

6 years agoMerge "drm/msm/sde: remove out of bound access for qos lut parsing"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:46 +0000 (05:25 -0700)]
Merge "drm/msm/sde: remove out of bound access for qos lut parsing"

6 years agoMerge "drm/msm: fix non-zero offset register dumping"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:45 +0000 (05:25 -0700)]
Merge "drm/msm: fix non-zero offset register dumping"

6 years agoMerge "msm: vidc: Avoid adding failed instance into list"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:44 +0000 (05:25 -0700)]
Merge "msm: vidc: Avoid adding failed instance into list"

6 years agoMerge "ARM: dts: msm: add dummy SPSS ETM device for msm8998"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:35 +0000 (05:25 -0700)]
Merge "ARM: dts: msm: add dummy SPSS ETM device for msm8998"

6 years agoMerge "ASoc: msm: Add pm_qos_request_active condition check"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:34 +0000 (05:25 -0700)]
Merge "ASoc: msm: Add pm_qos_request_active condition check"

6 years agomsm: camera: isp: Avoid stats data corruption.
Ramesh V [Mon, 4 Sep 2017 11:50:15 +0000 (17:20 +0530)]
msm: camera: isp: Avoid stats data corruption.

When several threads permanently, e.g., read/write the debugfs
file that triggers vfe_debugfs_statistics_read(), the content of
stats will be modified in an unintended manner, add spin_lock
to protect that.

Change-Id: I15d46498e669132ef1d1f5ad9c4305ee5fdb0da4
Signed-off-by: Ramesh V <ramev@codeaurora.org>
6 years agoMerge "msm: kgsl: Limit the kgsl log frequency in kgsl_get_unmapped_area()"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:16 +0000 (19:13 -0700)]
Merge "msm: kgsl: Limit the kgsl log frequency in kgsl_get_unmapped_area()"

6 years agoMerge "usb_bam: Delete IPA resources in usb_bam_remove()"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:15 +0000 (19:13 -0700)]
Merge "usb_bam: Delete IPA resources in usb_bam_remove()"

6 years agoMerge "scripts: correct cflags for kasan"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:06 +0000 (19:13 -0700)]
Merge "scripts: correct cflags for kasan"

6 years agoMerge "ASoC: sdm660_cdc: Fix mute if compander is disabled"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:05 +0000 (19:13 -0700)]
Merge "ASoC: sdm660_cdc: Fix mute if compander is disabled"

6 years agoMerge "dts: msm: Add QSEECOM heap node on msm8996 lfv platform"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:04 +0000 (19:13 -0700)]
Merge "dts: msm: Add QSEECOM heap node on msm8996 lfv platform"

6 years agoMerge "msm: thermal: Check cpu variables are initialized before setting threshold"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:03 +0000 (19:13 -0700)]
Merge "msm: thermal: Check cpu variables are initialized before setting threshold"

6 years agoMerge "wil6210: ensure P2P device is stopped before removing interface"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:59 +0000 (19:12 -0700)]
Merge "wil6210: ensure P2P device is stopped before removing interface"

6 years agoMerge "wil6210: increase connect timeout"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:58 +0000 (19:12 -0700)]
Merge "wil6210: increase connect timeout"

6 years agoMerge "wil6210: clear PAL_UNIT_ICR part of device reset"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:58 +0000 (19:12 -0700)]
Merge "wil6210: clear PAL_UNIT_ICR part of device reset"

6 years agoMerge "wil6210: move pre-FW configuration to separate function"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:57 +0000 (19:12 -0700)]
Merge "wil6210: move pre-FW configuration to separate function"

6 years agoMerge "msm: ipa: Cache CNE event"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:56 +0000 (19:12 -0700)]
Merge "msm: ipa: Cache CNE event"

6 years agoMerge "msm: kgsl: Do not allocate scratch memory for A3xx"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:55 +0000 (19:12 -0700)]
Merge "msm: kgsl: Do not allocate scratch memory for A3xx"

6 years agoMerge "ath10k: Destroy QMI handle during driver unload"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:54 +0000 (19:12 -0700)]
Merge "ath10k: Destroy QMI handle during driver unload"

6 years agoMerge "msm: sensor: flash: add conditional check for ioctl"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:53 +0000 (19:12 -0700)]
Merge "msm: sensor: flash: add conditional check for ioctl"

6 years agoMerge "msm: kgsl: Fix gpu fault issue while enabling stall on page fault"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:52 +0000 (19:12 -0700)]
Merge "msm: kgsl: Fix gpu fault issue while enabling stall on page fault"

6 years agoMerge "msm: kgsl: Add debug log in adreno_of_get_pwrlevels()"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:51 +0000 (19:12 -0700)]
Merge "msm: kgsl: Add debug log in adreno_of_get_pwrlevels()"

6 years agoMerge "ARM: dts: msm: Add Support for new PM660L/A versions for SDM660/SDM630"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:50 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: Add Support for new PM660L/A versions for SDM660/SDM630"

6 years agoMerge "ARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:48 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards"

6 years agoMerge "msm: ais: isp: Check null pointer for VFE0 base"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:47 +0000 (19:12 -0700)]
Merge "msm: ais: isp: Check null pointer for VFE0 base"

6 years agoMerge "ARM: dts: msm: enable camera on SDM636 MTP"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:46 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: enable camera on SDM636 MTP"

6 years agoMerge "mmc: core: enable async suspend of card"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:44 +0000 (19:12 -0700)]
Merge "mmc: core: enable async suspend of card"

6 years agoMerge "Revert "ARM: dts: msm: Add initial support for msm8998-9x55""
Linux Build Service Account [Tue, 12 Sep 2017 02:12:43 +0000 (19:12 -0700)]
Merge "Revert "ARM: dts: msm: Add initial support for msm8998-9x55""

6 years agomsm: vidc: Avoid adding failed instance into list
Yigang Zheng [Fri, 28 Jul 2017 09:34:34 +0000 (17:34 +0800)]
msm: vidc: Avoid adding failed instance into list

Fix system crash bug when run multiple vidc instances

Change-Id: I7716854c210bf8d1191e2744e555d42f42e4a1f5
Signed-off-by: Yigang Zheng <yigangz@codeaurora.org>
6 years agodrm/msm: fix non-zero offset register dumping
Abhinav Kumar [Thu, 31 Aug 2017 22:29:55 +0000 (15:29 -0700)]
drm/msm: fix non-zero offset register dumping

Remove format identifiers in the register dumping
function which incorrectly recognizes the offset and
the count of the registers to be dumped.

Also, reduce the chunk of memory copied from the SDE
hardware register range to align with the existing
register dumping mechanism.

Change-Id: I1ce7148275f5287e568fe6efc8774f4d495cdaa4
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
6 years agoscripts: correct cflags for kasan
Mao Jinlong [Tue, 5 Sep 2017 08:04:00 +0000 (16:04 +0800)]
scripts: correct cflags for kasan

Enable address sanitizer flags for kasan by default.

Change-Id: Ib08149a7d1af589fed3ce30659cb495d4bb2fb81
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
6 years agousb_bam: Delete IPA resources in usb_bam_remove()
Vijayavardhan Vennapusa [Fri, 8 Sep 2017 10:10:21 +0000 (15:40 +0530)]
usb_bam: Delete IPA resources in usb_bam_remove()

Whenever dwc3_msm_probe() fails, it calls of_depopulate() to remove child
devices as part of cleanup. Due to this, usb_bam_remove() gets called to
do cleanup. But this API is not deleting IPA resources created during
probe and leads to creation of IPA resources fail, when probe is called
again. This eventually results in crash, when IPA driver calls notify
callback after PROD resource granted. Hence fix it by deleting IPA
resources in usb_bam_remove().

Also change enum type of ipa_rm_resource_prod/ipa_rm_resource_cons arrays
to enum ipa_rm_resource_name to fix sparse errors.

Change-Id: I3d9d0e1b26f1de0ba2b56b42c7e10a097d4fa8be
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agoASoC: sdm660_cdc: Fix mute if compander is disabled
Vatsal Bucha [Thu, 31 Aug 2017 07:15:24 +0000 (12:45 +0530)]
ASoC: sdm660_cdc: Fix mute if compander is disabled

Compander disable sequence does not get called
after headphone playback on fm. This results in
mute at one channel and low volume at other channel.
Low volume is resolved by setting analog mode to manual
while compander is off.
Also compander clock should be disabled at the end to
resolve mute issue.

CRs-Fixed: 2102126
Change-Id: I68e72f3b333117a8fdf379db30dc24de9bed7270
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
6 years agodrm/msm/sde: remove out of bound access for qos lut parsing
Dhaval Patel [Mon, 19 Jun 2017 23:51:21 +0000 (16:51 -0700)]
drm/msm/sde: remove out of bound access for qos lut parsing

QOS LUT dtsi entries use existing hardware parsing APIs
but dos not increase the size of array. This causes out of
bound access while reading u32 lut array entry. This patch
fixes the array size and also adds checks to avoid future
out of bound access. It also fixes the memory leak in
qos lut parsing.

Change-Id: I98de052d03e1bcfd79d15ab99ca41d7782e56682
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
6 years agoARM: dts: msm: add dummy SPSS ETM device for msm8998
Saranya Chidura [Thu, 7 Sep 2017 04:23:59 +0000 (09:53 +0530)]
ARM: dts: msm: add dummy SPSS ETM device for msm8998

Add dummy device for SPSS ETM. This device can be used to
configure SPSS ETM trace path.

Change-Id: Idd060ce0de61acab7842103f47c838f4a618d9df
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
6 years agodts: msm: Add QSEECOM heap node on msm8996 lfv platform
Amit Blay [Wed, 6 Sep 2017 06:45:32 +0000 (09:45 +0300)]
dts: msm: Add QSEECOM heap node on msm8996 lfv platform

Add the QSEECOM ION heap node, to allow QSEECOM driver and QSEECOM
API library to allocate ION memory from QSEECOM heap.

Change-Id: Ia0b346bbac9378b79d1b7683ee1cc0ade533b4fa
Signed-off-by: Amit Blay <ablay@codeaurora.org>
6 years agoMerge "mmc: sdhci: Add logs when ignoring timeout due to quirk"
Linux Build Service Account [Sun, 10 Sep 2017 17:20:26 +0000 (10:20 -0700)]
Merge "mmc: sdhci: Add logs when ignoring timeout due to quirk"

6 years agowil6210: ensure P2P device is stopped before removing interface
Lior David [Mon, 4 Sep 2017 09:03:21 +0000 (12:03 +0300)]
wil6210: ensure P2P device is stopped before removing interface

User space can remove the P2P management interface while it is active
(for example, while listen/search is active) and this can cause
a crash. Ensure the P2P device is fully stopped before removing.

Change-Id: Ibc94f12bc63f2ba31ede24afffd9c5acbf95467a
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 69fecf599f48e258984b2ffdf0a4c65a35a31287
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
6 years agowil6210: increase connect timeout
Lior David [Mon, 4 Sep 2017 09:01:49 +0000 (12:01 +0300)]
wil6210: increase connect timeout

Connect can take longer than current timeout in some scenarios,
for example with long-range antenna array. Increase the timeout
to support these scenarios.

Change-Id: Id59cf4f11f8381ab8eab748171ef2b7949dde887
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: d83ad4c4fd78b22935711f865048bab78b43fc86
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
6 years agowil6210: clear PAL_UNIT_ICR part of device reset
Dedy Lansky [Mon, 4 Sep 2017 09:00:50 +0000 (12:00 +0300)]
wil6210: clear PAL_UNIT_ICR part of device reset

When FW starts running it can get D0 to D3 interrupt that is a leftover
from previous system suspend while FW was not running.
As this interrupt is not relevant anymore, clear it part of device reset
procedure.

Change-Id: I213a18fd59a500914ab22f75a72393786188a08e
Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 7086d861753bc0aaa8b6445f657d8e39953e4fcd
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
6 years agowil6210: move pre-FW configuration to separate function
Dedy Lansky [Mon, 4 Sep 2017 08:58:34 +0000 (11:58 +0300)]
wil6210: move pre-FW configuration to separate function

Re-arrange the code to have dedicated function for device configuration
which takes place before FW starts running.

Change-Id: Ia0f2b33f85ba9547bee9415e34143e5b09e28447
Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 1490846d256af947a4743f04ba8c97dc3bc37073
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
6 years agowil6210: align to latest auto generated wmi.h
Lazar Alexei [Mon, 4 Sep 2017 08:57:30 +0000 (11:57 +0300)]
wil6210: align to latest auto generated wmi.h

Align to latest version of the auto generated wmi file
describing the interface with FW.

Change-Id: I5cd2130c17457544d055aaff15f5747a3d241e23
Signed-off-by: Lazar Alexei <qca_ailizaro@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 761f8e4d463e1cbf6da0d228bc74cecc800d4de5
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
6 years agowil6210: make debugfs compilation optional
Gidon Studinski [Mon, 4 Sep 2017 07:55:55 +0000 (10:55 +0300)]
wil6210: make debugfs compilation optional

Since debugfs is a kernel configuration option, enable the driver to
compile without debugfs.

Change-Id: Id1b162172e2662a59af5b031a71ccd22250e4b6d
Signed-off-by: Gidon Studinski <qca_gidons@qca.qualcomm.com>
Signed-off-by: Hamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 5f591dac9f20f76439df2e18570765d384a94070
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
6 years agowil6210: ratelimit errors in TX/RX interrupts
Lior David [Mon, 4 Sep 2017 07:32:10 +0000 (10:32 +0300)]
wil6210: ratelimit errors in TX/RX interrupts

Sometimes there is a firmware crash but the hardware
is not fully stopped and continue to send TX/RX interrupts.
This can cause an overload of messages which can bring the
host down. Add ratelimit to these error messages to fix this.

Change-Id: If0f8bfbec1df1c5d98c87d64191ef14bf6579ae1
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 40cbd88be702a2455b6e047dc13f5d51ed542063
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
6 years agoMerge "drivers: media: broadcast: Fix security vulnerability issue"
Linux Build Service Account [Sat, 9 Sep 2017 23:48:38 +0000 (16:48 -0700)]
Merge "drivers: media: broadcast: Fix security vulnerability issue"

6 years agoMerge "tty: serial_core: add tty NULL check to uart_tx_stopped"
Linux Build Service Account [Sat, 9 Sep 2017 13:32:42 +0000 (06:32 -0700)]
Merge "tty: serial_core: add tty NULL check to uart_tx_stopped"

6 years agoMerge "ARM: dts: msm: Enable CAN controller for msm8996 CV2X boards"
Linux Build Service Account [Sat, 9 Sep 2017 05:04:17 +0000 (22:04 -0700)]
Merge "ARM: dts: msm: Enable CAN controller for msm8996 CV2X boards"

6 years agoMerge "Merge android-4.4@4b8fc9f (v4.4.82) into msm-4.4"
Linux Build Service Account [Sat, 9 Sep 2017 05:04:15 +0000 (22:04 -0700)]
Merge "Merge android-4.4@4b8fc9f (v4.4.82) into msm-4.4"

6 years agoMerge "soc: qcom: initialize glink link state"
Linux Build Service Account [Sat, 9 Sep 2017 05:04:14 +0000 (22:04 -0700)]
Merge "soc: qcom: initialize glink link state"

6 years agomsm: thermal: Check cpu variables are initialized before setting threshold
Manaf Meethalavalappu Pallikunhi [Wed, 6 Sep 2017 18:53:51 +0000 (00:23 +0530)]
msm: thermal: Check cpu variables are initialized before setting threshold

Userspace thermal daemon initiate KTM hotplug monitor related
initialization. Thermal core control can be disabled/enabled from
userspace via KTM sysfs for cpu related initialization after boot.
There is a possible race condition between KTM hotplug initialization
from thermal daemon and KTM core control re-enablement from userpsace
shell. When these both events are triggered at the same time,
thermal core control enablement tries to set emergency hotplug
threshold prior to per cpu hotplug related initialization like sensor
id, trip and threshold value etc. This leads to wrong sensor
threshold settings and eventually thermal core sensor threshold list
will be broken.

To avoid this wrong threshold settings during thermal core control
enablement, check KTM hotplug related initialization is done prior
to threshold setting for each core.

Change-Id: I916527d187146d5e292dd57897aa70b21cf87fbc
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
6 years agoath10k: Destroy QMI handle during driver unload
Govind Singh [Thu, 7 Sep 2017 14:49:24 +0000 (20:19 +0530)]
ath10k: Destroy QMI handle during driver unload

QMI handle was not destroyed during unload and server exit
and resulting in qmi handle leak.

Fix this problem by destroying the QMI handle during
driver unload and server exit.

Change-Id: I7557de7c2ff2cb7d82d6e8a3480e8d5f4be6a5f4
Signed-off-by: Govind Singh <govinds@codeaurora.org>
6 years agomsm: sensor: flash: add conditional check for ioctl
Tanvi Aggarwal [Thu, 24 Aug 2017 06:21:35 +0000 (11:51 +0530)]
msm: sensor: flash: add conditional check for ioctl

Add conditional check when sending VIDIOC_MSM_FLASH_CFG
in 32-bit process.

Change-Id: I73bcce85a212495ce94e6265947c11a6bc0e4040
CRs-Fixed: 2092793
Signed-off-by: Tanvi Aggarwal <tanvia@codeaurora.org>
6 years agomsm: kgsl: Do not allocate scratch memory for A3xx
Hareesh Gundu [Tue, 22 Aug 2017 13:25:50 +0000 (18:55 +0530)]
msm: kgsl: Do not allocate scratch memory for A3xx

A3xx device gets the ring buffer read pointer directly
from the GPU registers. So don’t allocate scratch memory
which can’t be used for A3xx GPU devices.

Change-Id: I95016dfc169b9fee74e978f5560592740f34515e
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
6 years agomsm: kgsl: Fix gpu fault issue while enabling stall on page fault
Hareesh Gundu [Wed, 6 Sep 2017 13:03:29 +0000 (18:33 +0530)]
msm: kgsl: Fix gpu fault issue while enabling stall on page fault

Stall on page fault feature is supported on A5XX and later GPUs.
Enabling this feature on unsupported GPUs causes GPU faults.
So don't insert GPU stall related commands in ringbuffer if
not supported. But allow user to capture the GPU snapshot on
GPU page fault.

Change-Id: Ied26a5b4f44c1877b289a0ff5c0a6d47901e453d
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
6 years agoMerge "mmc: sdhci: Fix SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD handling"
Linux Build Service Account [Fri, 8 Sep 2017 05:42:21 +0000 (22:42 -0700)]
Merge "mmc: sdhci: Fix SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD handling"

6 years agoMerge "mmc: core: power off host if SD card resume fails"
Linux Build Service Account [Fri, 8 Sep 2017 05:42:20 +0000 (22:42 -0700)]
Merge "mmc: core: power off host if SD card resume fails"

6 years agotty: serial_core: add tty NULL check to uart_tx_stopped
Lei wang [Fri, 8 Sep 2017 02:34:18 +0000 (10:34 +0800)]
tty: serial_core: add tty NULL check to uart_tx_stopped

Commit 761ed4a94582 ("tty: serial_core: convert uart_close to use
tty_port_close") created a case where a port used for a console does not
get shutdown on tty closing. Then a call to uart_tx_stopped() segfaults
because the tty is NULL. This could be fixed to restore old behavior,
but we also want to allow tty_ports to work without a tty attached. So
this change to allow a NULL tty_struct is needed either way.

Fixes: 761ed4a94582
("tty: serial_core: convert uart_close to use tty_port_close")
Reported-by: kernel test robot <xiaolong.ye@intel.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ifbeeacc89d396b857332ce94cc2d77bdd6e12bb7
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Git-commit: a727b025f43d7952c0697562f5cecda9f42758aa
Signed-off-by: Lei wang <leiwan@codeaurora.org>
6 years agoMerge "power: qpnp-fg-gen3: update SOC masking algorithm"
Linux Build Service Account [Thu, 7 Sep 2017 18:05:40 +0000 (11:05 -0700)]
Merge "power: qpnp-fg-gen3: update SOC masking algorithm"

6 years agoARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards
Gustavo Solaira [Wed, 6 Sep 2017 18:13:44 +0000 (11:13 -0700)]
ARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards

Add a node for a GPIO-based FAN cooling device for msm8996
CV2X boards. This GPIO has a single speed and can be controlled
from user space.

Change-Id: Iee427407f3c4032e1394c61dd1f225e24a091a99
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agodefconfig: msm: Enable GPIO-based FAN for msm8996-auto
Gustavo Solaira [Wed, 6 Sep 2017 17:55:22 +0000 (10:55 -0700)]
defconfig: msm: Enable GPIO-based FAN for msm8996-auto

Enable the GPIO FAN driver to enable control of GPIO based
fans for cooling on msm8996-auto devices.

Change-Id: I5494fae1c7ab75362bc6c71c4e731f0581b01995
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agomsm: kgsl: Limit the kgsl log frequency in kgsl_get_unmapped_area()
Venkateswara Rao Tadikonda [Tue, 29 Aug 2017 05:32:38 +0000 (11:02 +0530)]
msm: kgsl: Limit the kgsl log frequency in kgsl_get_unmapped_area()

Reduce the frequency of kgsl logging when kgsl driver failed to get
memory mapping for requested memory.

Change-Id: If1a8832a9aa0396e3c990916deec7949697be12d
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
6 years agomsm: kgsl: Protect the bind object against bad dereference
Sunil Khatri [Mon, 4 Sep 2017 08:35:03 +0000 (14:05 +0530)]
msm: kgsl: Protect the bind object against bad dereference

Sparse bind object are unbinded with bind id. This
can be exploited by any malicious application calling
unbind with same bind id again and again.

This can lead to a race condition between two threads
where one free the bind object and second thread uses
same object leading to bad dereference.

Change-Id: I542a008fc647489560667fb5016453a0c3448f7a
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
6 years agoMerge "drivers: net: can: Add K61 CAN controller driver"
Linux Build Service Account [Thu, 7 Sep 2017 07:46:05 +0000 (00:46 -0700)]
Merge "drivers: net: can: Add K61 CAN controller driver"

6 years agoMerge "diag: Support buffering mode for non-diag_id peripherals"
Linux Build Service Account [Thu, 7 Sep 2017 07:46:04 +0000 (00:46 -0700)]
Merge "diag: Support buffering mode for non-diag_id peripherals"

6 years agoMerge "lib/stackdepot.c: use __GFP_NOWARN for stack allocations"
Linux Build Service Account [Thu, 7 Sep 2017 07:46:03 +0000 (00:46 -0700)]
Merge "lib/stackdepot.c: use __GFP_NOWARN for stack allocations"

6 years agomsm: ipa: Cache CNE event
Mohammed Javid [Mon, 28 Aug 2017 19:35:46 +0000 (01:05 +0530)]
msm: ipa: Cache CNE event

Provide support to cache CNE event for debugging purpose.

Change-Id: I00d101d3b9a627d7aba3e4524ff301797ea6085e
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoMerge "diag: Proper Update of the PD packet buffer status and length"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:56 +0000 (12:55 -0700)]
Merge "diag: Proper Update of the PD packet buffer status and length"

6 years agoMerge "msm: mdss: Enable clocks for WFD setup"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:55 +0000 (12:55 -0700)]
Merge "msm: mdss: Enable clocks for WFD setup"

6 years agoMerge "msm: sde: Avoid NULL pointer dereference in cancel request"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:54 +0000 (12:55 -0700)]
Merge "msm: sde: Avoid NULL pointer dereference in cancel request"

6 years agoMerge "defconfig: msm: enable Linux Kernel Dump Test Tool"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:53 +0000 (12:55 -0700)]
Merge "defconfig: msm: enable Linux Kernel Dump Test Tool"

6 years agoMerge "msm: camera: Return -NOTTY on invalid ioctl command."
Linux Build Service Account [Wed, 6 Sep 2017 19:55:52 +0000 (12:55 -0700)]
Merge "msm: camera: Return -NOTTY on invalid ioctl command."

6 years agoMerge "cnss2: Increase QMI ATHDIAG maximum data size"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:51 +0000 (12:55 -0700)]
Merge "cnss2: Increase QMI ATHDIAG maximum data size"

6 years agomsm: ipa: ipa_usb: teth_prot and ttype validation
Skylar Chang [Tue, 29 Aug 2017 17:54:04 +0000 (10:54 -0700)]
msm: ipa: ipa_usb: teth_prot and ttype validation

Add input validation logic for accessing teth_prot and ttype
members.

Change-Id: I05780fb3b09616b7a9cf0c36f71e9f1e5e49f136
CRs-Fixed: 2091803
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
6 years agopower: qcom: smb135x: change OTG regulator ops to static
Subbaraman Narayanamurthy [Fri, 1 Sep 2017 01:33:16 +0000 (18:33 -0700)]
power: qcom: smb135x: change OTG regulator ops to static

Change the OTG regulator ops to static for smb1351 and smb135x
charger drivers.

Change-Id: Ide0c6461275f3ba74e0420e1d1a36c1e1f2bd18d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
6 years agopower: qpnp-fg-gen3: adjust ki coefficient for full soc dynamically
Subbaraman Narayanamurthy [Wed, 9 Aug 2017 02:28:37 +0000 (19:28 -0700)]
power: qpnp-fg-gen3: adjust ki coefficient for full soc dynamically

In certain conditions, after the battery SOC reaches 100%, SOC is
not getting updated during discharging. Based on the hardware
recommendation, adjust the Ki coefficient for full SOC so that
SOC can be updated faster during discharging.

While at it, remove prev_charge_status variable which is not
used really.

CRs-Fixed: 2089555
Change-Id: I54b7d86529c21c016ab777053895ccda9c7a2b35
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
6 years agopower: qpnp-fg-gen3: update SOC masking algorithm
Subbaraman Narayanamurthy [Wed, 26 Jul 2017 23:46:41 +0000 (16:46 -0700)]
power: qpnp-fg-gen3: update SOC masking algorithm

Currently, FULL_SOC and MONOTONIC_SOC registers are updated
multiple times when the recharge SOC threshold is close enough to
trigger the recharging frequently. This was leading to a SOC
fluctuation when SOC masking algorithm is enabled.

Rearrange charge_full_update used in SOC masking algorithm such
that FULL_SOC and MONOTONIC_SOC registers are updated just once
when the charge_full flag is cleared.

Also, when the device is rebooted/shutdown and if charge_full
flag is set, write to FULL_SOC with battery_soc and a full value
to MONOTONIC_SOC registers. This helps to maintain the same SOC
across a device reboot.

Change-Id: I95afa90f27e4c0f948f301ff8d6a1f84ae422ef0
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
6 years agoARM: dts: msm: Enable CAN controller for msm8996 CV2X boards
Gustavo Solaira [Wed, 23 Aug 2017 18:30:39 +0000 (11:30 -0700)]
ARM: dts: msm: Enable CAN controller for msm8996 CV2X boards

Add a device tree node for the SPI CAN controller to enable
a CAN network interface for msm8996 CV2X boards.

Change-Id: Ib9c1d63bf86e3b823aa8d762065ed374bdfeaa0e
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agodefconfig: msm: Enable the K61 CAN driver
Gustavo Solaira [Thu, 24 Aug 2017 05:53:27 +0000 (22:53 -0700)]
defconfig: msm: Enable the K61 CAN driver

Enable configuration for K61 CAN over SPI driver.

Change-Id: I801629ac04303582530bed354282960db8f9c9ab
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agocan: k61: Changes to support the mpc5746c controller
Gustavo Solaira [Thu, 24 Aug 2017 07:49:13 +0000 (00:49 -0700)]
can: k61: Changes to support the mpc5746c controller

Add new parameters to account for different MCUs that can
be used with this driver. These devices have different reset
sequences and number of bits per word supported via SPI. Add
bindings for the mpc5746c controller and make the reset signal
optional.

Change-Id: I616dd3cfedf18a6e21683e1c07551c57c62a675d
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agodrivers: net: can: Add K61 CAN controller driver
Abinaya P [Thu, 1 Dec 2016 12:55:03 +0000 (18:25 +0530)]
drivers: net: can: Add K61 CAN controller driver

This driver creates Network device of type CAN
and processes tx and rx frames that it sends and
receives over SPI protocol.

Change-Id: I54a8665d1b9eda7e9b1ff695bd67de312c410195
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
6 years agomsm: camera: Return -NOTTY on invalid ioctl command.
Trishansh Bhardwaj [Mon, 4 Sep 2017 05:32:14 +0000 (11:02 +0530)]
msm: camera: Return -NOTTY on invalid ioctl command.

Check validity of command before processing.

Change-Id: Icc5c57eac999b7c40fbb9505b2b88745167adc66
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
6 years agoMerge "ASoC: wsa881x: Fix wsa881x speaker damage"
Linux Build Service Account [Wed, 6 Sep 2017 08:42:39 +0000 (01:42 -0700)]
Merge "ASoC: wsa881x: Fix wsa881x speaker damage"

6 years agodiag: Support buffering mode for non-diag_id peripherals
Manoj Prabhu B [Tue, 29 Aug 2017 05:14:00 +0000 (10:44 +0530)]
diag: Support buffering mode for non-diag_id peripherals

The patch adds the support for buffering mode configuration
for peripherals not supporting diag_id.

CRs-Fixed: 2104591
Change-Id: I2ed34a5141a9b9042dc925c9109d22009b272484
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
6 years agousb: gadget: Update default class subclass and protocol for rndis
Hemant Kumar [Fri, 25 Aug 2017 23:15:28 +0000 (16:15 -0700)]
usb: gadget: Update default class subclass and protocol for rndis

This allows Host to load NDIS 6.0 driver for RNDIS over ethernet.
Design objectives of NDIS 6.0 is to enhance driver performance
and scalability. Observing higher peak tput (308Mbps --> 480Mbps)
for FTP transfer on live network. It resolves the data stall that
is being caused by the sudden transfer abort coming from the NDIS
5.0 Host driver.

Change-Id: I503a5573af71eb1b004c68abb64bb04d7e06f9af
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
6 years agoMerge "soc: qcom: ipc_router_glink_xprt: Add wakeup source in RX path"
Linux Build Service Account [Tue, 5 Sep 2017 20:45:24 +0000 (13:45 -0700)]
Merge "soc: qcom: ipc_router_glink_xprt: Add wakeup source in RX path"

6 years agocnss2: Increase QMI ATHDIAG maximum data size
Yue Ma [Tue, 5 Sep 2017 17:16:01 +0000 (10:16 -0700)]
cnss2: Increase QMI ATHDIAG maximum data size

Increase QMI ATHDIAG maximum data size to 6144 bytes so that it
can dump more bytes for debugging.

Change-Id: I21d6197ad67829c38586318d4e76a7c7fd4149c4
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agolib/stackdepot.c: use __GFP_NOWARN for stack allocations
Kirill A. Shutemov [Thu, 28 Jul 2016 22:49:10 +0000 (15:49 -0700)]
lib/stackdepot.c: use __GFP_NOWARN for stack allocations

This (large, atomic) allocation attempt can fail.  We expect and handle
that, so avoid the scary warning.

Change-Id: I3e5d7dbe7d264c2bbeab46db6e0cb8fc9a20e607
Link: http://lkml.kernel.org/r/20160720151905.GB19146@node.shutemov.name
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Rik van Riel <riel@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: 87cc271d5e4320d705cfdf59f68d4d037b3511b2
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
6 years agodrivers: media: broadcast: Fix security vulnerability issue
Udaya Bhaskara Reddy Mallavarapu [Tue, 5 Sep 2017 06:31:41 +0000 (12:01 +0530)]
drivers: media: broadcast: Fix security vulnerability issue

Information leak issue is reported in mpq_sdmx_log_level_write
function. Added check to validate count is not zero and initialize
the string.

Change-Id: Ieb2ed88c2d7d778c56be2ec3b9875270a9c74dce
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
6 years agommc: core: power off host if SD card resume fails
Can Guo [Thu, 27 Jul 2017 02:15:49 +0000 (10:15 +0800)]
mmc: core: power off host if SD card resume fails

Current SD card resume function does not handle card
init failure but only prints resume error message.
This change powers off mmc host before exit resume
if card init fails.

Change-Id: Idc27d8ed8769b92373bb9770f5e706b18e76404d
Signed-off-by: Can Guo <cang@codeaurora.org>
6 years agomsm: ais: isp: Check null pointer for VFE0 base
Rahul Sharma [Tue, 5 Sep 2017 06:49:59 +0000 (12:19 +0530)]
msm: ais: isp: Check null pointer for VFE0 base

Add NULL pointer check for vfe_base of VFE0.

CRs-Fixed: 1032715
Change-Id: Ie8ed5d14947d9894eb902ea514a1888be98961ef
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoMerge "qpnp-smb2: provide means to suspend dcin"
Linux Build Service Account [Tue, 5 Sep 2017 07:20:38 +0000 (00:20 -0700)]
Merge "qpnp-smb2: provide means to suspend dcin"