OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "msm: mdss: Populate alpha for compat"
Linux Build Service Account [Mon, 24 Apr 2017 13:47:47 +0000 (06:47 -0700)]
Merge "msm: mdss: Populate alpha for compat"

7 years agoMerge "ARM: dts: msm: Fix RX sensitivity issue for SSPHY for SDM660"
Linux Build Service Account [Mon, 24 Apr 2017 13:47:46 +0000 (06:47 -0700)]
Merge "ARM: dts: msm: Fix RX sensitivity issue for SSPHY for SDM660"

7 years agoMerge "wcnss: fix the potential memory leak and heap overflow"
Linux Build Service Account [Mon, 24 Apr 2017 13:47:45 +0000 (06:47 -0700)]
Merge "wcnss: fix the potential memory leak and heap overflow"

7 years agoMerge "msm: mdss: Separate PP programming to advanced and deferred modes"
Linux Build Service Account [Mon, 24 Apr 2017 13:47:44 +0000 (06:47 -0700)]
Merge "msm: mdss: Separate PP programming to advanced and deferred modes"

7 years agoMerge "defconfig: msm8998: Use RCU_NOCB for RCU subsystem"
Linux Build Service Account [Mon, 24 Apr 2017 06:13:02 +0000 (23:13 -0700)]
Merge "defconfig: msm8998: Use RCU_NOCB for RCU subsystem"

7 years agoMerge "msm: mdss: check for audio support before notifying frameworks"
Linux Build Service Account [Sat, 22 Apr 2017 00:57:38 +0000 (17:57 -0700)]
Merge "msm: mdss: check for audio support before notifying frameworks"

7 years agoMerge "msm: mdss: add debug bus support for dsi block"
Linux Build Service Account [Sat, 22 Apr 2017 00:57:37 +0000 (17:57 -0700)]
Merge "msm: mdss: add debug bus support for dsi block"

7 years agoMerge "FROMLIST: 9p: fix a potential acl leak"
Linux Build Service Account [Sat, 22 Apr 2017 00:57:36 +0000 (17:57 -0700)]
Merge "FROMLIST: 9p: fix a potential acl leak"

7 years agoMerge "soc: qcom: pil: Avoid possible buffer overflow during Modem boot"
Linux Build Service Account [Sat, 22 Apr 2017 00:57:35 +0000 (17:57 -0700)]
Merge "soc: qcom: pil: Avoid possible buffer overflow during Modem boot"

7 years agoFROMLIST: 9p: fix a potential acl leak
Cong Wang [Tue, 13 Dec 2016 18:33:34 +0000 (10:33 -0800)]
FROMLIST: 9p: fix a potential acl leak

(https://lkml.org/lkml/2016/12/13/579)

posix_acl_update_mode() could possibly clear 'acl', if so
we leak the memory pointed by 'acl'. Save this pointer
before calling posix_acl_update_mode() and release the memory
if 'acl' really gets cleared.

Reported-by: Mark Salyzyn <salyzyn@android.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Greg Kurz <groug@kaod.org>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@sandia.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Bug: 32458736
Change-Id: Ia78da401e6fd1bfd569653bd2cd0ebd3f9c737a0
Git-repo: https://android.googlesource.com/kernel/msm/
Git-commit: 7c780387c931f63fe67830c817f65c1272512bb1
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agoMerge "arm: dma-mapping: add iova size alignment check"
Linux Build Service Account [Fri, 21 Apr 2017 16:41:40 +0000 (09:41 -0700)]
Merge "arm: dma-mapping: add iova size alignment check"

7 years agoMerge "lpm-levels: Select lpm for isolated cpu when sleep is disabled"
Linux Build Service Account [Fri, 21 Apr 2017 16:41:39 +0000 (09:41 -0700)]
Merge "lpm-levels: Select lpm for isolated cpu when sleep is disabled"

7 years agoMerge "arm: dma-mapping: set the proper bitmap size"
Linux Build Service Account [Fri, 21 Apr 2017 16:41:38 +0000 (09:41 -0700)]
Merge "arm: dma-mapping: set the proper bitmap size"

7 years agoMerge "staging: android: sync: Limit sync log dumping"
Linux Build Service Account [Fri, 21 Apr 2017 16:41:36 +0000 (09:41 -0700)]
Merge "staging: android: sync: Limit sync log dumping"

7 years agoMerge "ARM: dts: msm: Add dts setting for a530 DRM on msm8996"
Linux Build Service Account [Fri, 21 Apr 2017 16:41:36 +0000 (09:41 -0700)]
Merge "ARM: dts: msm: Add dts setting for a530 DRM on msm8996"

7 years agoMerge "iommu: iommu-debug: assign iova space for fastmap client"
Linux Build Service Account [Fri, 21 Apr 2017 16:41:34 +0000 (09:41 -0700)]
Merge "iommu: iommu-debug: assign iova space for fastmap client"

7 years agoMerge "drivers: cpuidle: lpm-levels: add lpm_debug to Minidump"
Linux Build Service Account [Fri, 21 Apr 2017 16:41:33 +0000 (09:41 -0700)]
Merge "drivers: cpuidle: lpm-levels: add lpm_debug to Minidump"

7 years agoMerge "soc: qcom: Add Minidump support"
Linux Build Service Account [Fri, 21 Apr 2017 16:41:33 +0000 (09:41 -0700)]
Merge "soc: qcom: Add Minidump support"

7 years agomsm: mdss: Separate PP programming to advanced and deferred modes
Sravan Kumar D.V.N [Fri, 7 Apr 2017 16:52:31 +0000 (22:22 +0530)]
msm: mdss: Separate PP programming to advanced and deferred modes

Deferring all the PP features programming to post pingpong done
in command mode panels causing performance issues in certain
use cases. To fix this, defer only the programming of features
with single buffered registers and program features with double
buffered registers before wait for pingpong.

Change-Id: I6a1e8114b50c558f667bde4db5c0ba57009d6f50
Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Add overlay files for 8998 QRD boards"
Linux Build Service Account [Fri, 21 Apr 2017 07:37:37 +0000 (00:37 -0700)]
Merge "ARM: dts: msm: Add overlay files for 8998 QRD boards"

7 years agoMerge "char: msm_smd_pkt: Add snapshot of SMD packet driver"
Linux Build Service Account [Fri, 21 Apr 2017 07:37:36 +0000 (00:37 -0700)]
Merge "char: msm_smd_pkt: Add snapshot of SMD packet driver"

7 years agoMerge "clk: msm: clock-mmss-8998: Set non_local_children flag for mdp_clk_src"
Linux Build Service Account [Fri, 21 Apr 2017 07:37:35 +0000 (00:37 -0700)]
Merge "clk: msm: clock-mmss-8998: Set non_local_children flag for mdp_clk_src"

7 years agoMerge "diag: Split data stream for User PDs on LPASS"
Linux Build Service Account [Fri, 21 Apr 2017 07:37:34 +0000 (00:37 -0700)]
Merge "diag: Split data stream for User PDs on LPASS"

7 years agoMerge "ANDROID: ion: Fix uninitialized variable"
Linux Build Service Account [Fri, 21 Apr 2017 07:37:33 +0000 (00:37 -0700)]
Merge "ANDROID: ion: Fix uninitialized variable"

7 years agoMerge "ANDROID: ion: Protect kref from userspace manipulation"
Linux Build Service Account [Fri, 21 Apr 2017 07:37:32 +0000 (00:37 -0700)]
Merge "ANDROID: ion: Protect kref from userspace manipulation"

7 years agoMerge "scsi: ufs: fix issue with scaling up gear"
Linux Build Service Account [Fri, 21 Apr 2017 07:37:31 +0000 (00:37 -0700)]
Merge "scsi: ufs: fix issue with scaling up gear"

7 years agoMerge "Perf: arm64: disable irq for hotplug offline"
Linux Build Service Account [Fri, 21 Apr 2017 07:37:30 +0000 (00:37 -0700)]
Merge "Perf: arm64: disable irq for hotplug offline"

7 years agoARM: dts: msm: Fix RX sensitivity issue for SSPHY for SDM660
Vijayavardhan Vennapusa [Fri, 21 Apr 2017 05:23:58 +0000 (10:53 +0530)]
ARM: dts: msm: Fix RX sensitivity issue for SSPHY for SDM660

Fix RX sensitivity issue for SSPHY data lines for SDM660 by
writing zero value to PERIPH_SS_USB3PHY_QSERDES_RXA/B_RX_MODE_00
registers. Otherwise it could cause superspeed enumeration failure
with some Host machines.

Change-Id: I065c2a37f962e21809f9d810e1884e0eca08943e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agoarm: dma-mapping: add iova size alignment check
Charan Teja Reddy [Thu, 20 Apr 2017 13:54:21 +0000 (19:24 +0530)]
arm: dma-mapping: add iova size alignment check

On 32bit systems, bitmap storing the iova information is stored in per
page and each page represents the 128MB of IOVA. So, for the
alloc_iova() to return the requested range, iova size should be aligned
to 128MB.

Change-Id: I66eb15cdbb3d6730cc4d84cad9f0c652f91278d6
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
7 years agowcnss: fix the potential memory leak and heap overflow
Sarada Prasanna Garnayak [Mon, 17 Apr 2017 08:59:57 +0000 (14:29 +0530)]
wcnss: fix the potential memory leak and heap overflow

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 store and retrieve operation
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 and avoid usage of
global pointer during the device file read and write operation.

CRs-Fixed: 2015858
Change-Id: Ib5b57eb86dcb4e6ed799b5222d06396eaabfaad3
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agolpm-levels: Select lpm for isolated cpu when sleep is disabled
Maulik Shah [Tue, 18 Apr 2017 15:18:44 +0000 (20:48 +0530)]
lpm-levels: Select lpm for isolated cpu when sleep is disabled

Isolated cpu can enter to wfi if sleep is disabled and stay in
wfi until it wakes up and selects deeper lpm again.

Select cpu lpm for isolated cpu when sleep is disabled.

Change-Id: Id936ebaac0118d48d07e74aff7569f93b8b98b8b
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
7 years agostaging: android: sync: Limit sync log dumping
Deepak Kumar [Thu, 20 Apr 2017 13:00:19 +0000 (18:30 +0530)]
staging: android: sync: Limit sync log dumping

Dump sync logs only when a fence is not signalled
for SYNC_DUMP_TIME_LIMIT or more. This is necessary
to reduce CPU hogging because of excessive sync logs
dumped due to fence timeouts which are less than
SYNC_DUMP_TIME_LIMIT and are harmless.

Change-Id: Id21a02925dd45a01361d096048a25d1879ebde9e
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
7 years agoarm: dma-mapping: set the proper bitmap size
Charan Teja Reddy [Tue, 18 Apr 2017 13:15:19 +0000 (18:45 +0530)]
arm: dma-mapping: set the proper bitmap size

Set the size of bitmap area properly to ensure the proper iova address
to be returned by the bitmap_() API's through alloc_iova(). The current
implementation causes the bitmap index search out of bounds of a page
which can lead to the randomn corruption issues.

Change-Id: Ie57ca0b7465c91d318145ed270b7d47d822c8eeb
Fixes:I88ddd98a76b ("arm/arm64: dma-mapping: Fix iova region size")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
7 years agoiommu: iommu-debug: assign iova space for fastmap client
Sudarshan Rajagopalan [Fri, 21 Apr 2017 00:39:20 +0000 (17:39 -0700)]
iommu: iommu-debug: assign iova space for fastmap client

With fast mapping, the iova range is zero in the absence of
mapping object from the client. In such case, set the iova
space using the DOMAIN_ATTR_GEOMETRY dommain attribute.

CRs-Fixed: 2020868
Change-Id: I28790728c02ecb2d0a921bf5a218fb8b16662619
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
7 years agoMerge "msm_11ad: set geometry attr when SMMU stage1 is enabled"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:38 +0000 (16:10 -0700)]
Merge "msm_11ad: set geometry attr when SMMU stage1 is enabled"

7 years agoMerge "ARM: dts: msm: Add device tree for 8998 MTP with 4k display"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:37 +0000 (16:10 -0700)]
Merge "ARM: dts: msm: Add device tree for 8998 MTP with 4k display"

7 years agoMerge "clk: msm: clock-local2: Fix get_rate ops for branch clock"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:36 +0000 (16:10 -0700)]
Merge "clk: msm: clock-local2: Fix get_rate ops for branch clock"

7 years agoMerge "defconfig: arm64: msmcortex: Enable IP6_NF_IPTABLES_128"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:35 +0000 (16:10 -0700)]
Merge "defconfig: arm64: msmcortex: Enable IP6_NF_IPTABLES_128"

7 years agoMerge "msm: mdss: fix race condition during mdp debugfs release"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:34 +0000 (16:10 -0700)]
Merge "msm: mdss: fix race condition during mdp debugfs release"

7 years agoMerge "msm: mdss: dp: gracefully handle cable disconnect"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:27 +0000 (16:10 -0700)]
Merge "msm: mdss: dp: gracefully handle cable disconnect"

7 years agoMerge "msm: mdss: dp: fix HDCP 1.x state transitions"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:26 +0000 (16:10 -0700)]
Merge "msm: mdss: dp: fix HDCP 1.x state transitions"

7 years agoMerge "msm: camera: isp: add bound check to handle array out of access"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:24 +0000 (16:10 -0700)]
Merge "msm: camera: isp: add bound check to handle array out of access"

7 years agoMerge "msm: camera: Add spinlock protection for flags in CCI driver"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:24 +0000 (16:10 -0700)]
Merge "msm: camera: Add spinlock protection for flags in CCI driver"

7 years agoMerge "msm: camera: isp: Use the frame id from correct source"
Linux Build Service Account [Thu, 20 Apr 2017 23:10:22 +0000 (16:10 -0700)]
Merge "msm: camera: isp: Use the frame id from correct source"

7 years agoANDROID: ion: Fix uninitialized variable
Daniel Rosenberg [Tue, 4 Apr 2017 21:27:16 +0000 (14:27 -0700)]
ANDROID: ion: Fix uninitialized variable

Fix an uninitialized variable in user_ion_handle_put_nolock

Change-Id: Ia634b790661089ad01aca8e5975984435463d148
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 34276203
[d-cagle@codeaurora.org: Add commit message]
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agoANDROID: ion: Protect kref from userspace manipulation
Daniel Rosenberg [Sat, 4 Feb 2017 04:37:06 +0000 (20:37 -0800)]
ANDROID: ion: Protect kref from userspace manipulation

This separates the kref for ion handles into two components.
Userspace requests through the ioctl will hold at most one
reference to the internally used kref. All additional requests
will increment a separate counter, and the original reference is
only put once that counter hits 0. This protects the kernel from
a poorly behaving userspace.

Bug: 34276203

Change-Id: Ibc36bc4405788ed0fea7337b541cad3be2b934c0
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Git-repo: https://android.googlesource.com/kernel/msm/
Git-commit: 20abfcc16884a5af973a5e91dd013ddd789c44f4
[d-cagle@codeaurora.org: Resolve style issues]
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agoscsi: ufs: fix issue with scaling up gear
Subhash Jadavani [Tue, 18 Apr 2017 18:06:22 +0000 (11:06 -0700)]
scsi: ufs: fix issue with scaling up gear

Commit <be0960374> ("scsi: ufs: scale up the gear in 2 steps") introduced
a bug where we would not scale up the gear to HS-G3 if
UFS_DEVICE_QUIRK_HS_G1_TO_HS_G3_SWITCH quirk isn't enabled for UFS device.
Fix this by allowing HS-G3 scaling irrespective of quirk state.

Change-Id: Id6a958fb2908ae773283bcdd3dc871292e56f4ce
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
7 years agoARM: dts: msm: Add overlay files for 8998 QRD boards
Puja Gupta [Thu, 13 Apr 2017 21:14:37 +0000 (14:14 -0700)]
ARM: dts: msm: Add overlay files for 8998 QRD boards

Add 8998 QRD board specific device tree overlay files.

CRs-Fixed: 2034685
Change-Id: I13b8e53aaad4c1c0582513b79b3efc82cf9a82a5
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
7 years agomsm: mdss: Populate alpha for compat
Animesh Kishore [Thu, 20 Apr 2017 16:46:22 +0000 (22:16 +0530)]
msm: mdss: Populate alpha for compat

Copy alpha explicitly from 32 bit layer structure
to 64 bit layer structure.

CRs-Fixed: 2034181

Change-Id: Iba3e291a828975b8f909956405922d2564427092
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
7 years agodiag: Split data stream for User PDs on LPASS
Manoj Prabhu B [Thu, 20 Apr 2017 07:15:32 +0000 (12:45 +0530)]
diag: Split data stream for User PDs on LPASS

This patch segregates different PD data onto separate buffers
and then onto its own data stream.

CRs-Fixed: 2019189
Change-Id: I09c4e1a7da0ccd3ba3e025e9f13da0fbcb95f103
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
7 years agoMerge "msm: ipa3: disable statuses for modem pipes on SSR"
Linux Build Service Account [Thu, 20 Apr 2017 11:41:02 +0000 (04:41 -0700)]
Merge "msm: ipa3: disable statuses for modem pipes on SSR"

7 years agoMerge "iommu/io-pgtable-fast: invalidate TLBs on unmap"
Linux Build Service Account [Thu, 20 Apr 2017 11:41:00 +0000 (04:41 -0700)]
Merge "iommu/io-pgtable-fast: invalidate TLBs on unmap"

7 years agoMerge "iommu/io-pgtable-fast: fix sign extension position"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:59 +0000 (04:40 -0700)]
Merge "iommu/io-pgtable-fast: fix sign extension position"

7 years agoMerge "iommu/arm-smmu: add support to configure IOVA range"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:58 +0000 (04:40 -0700)]
Merge "iommu/arm-smmu: add support to configure IOVA range"

7 years agoMerge "net: ipv6: Optimize ipv6 packet matching"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:57 +0000 (04:40 -0700)]
Merge "net: ipv6: Optimize ipv6 packet matching"

7 years agoMerge "wcnss: fix the buffer overflow in MAC address store sysfs"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:56 +0000 (04:40 -0700)]
Merge "wcnss: fix the buffer overflow in MAC address store sysfs"

7 years agoMerge "ARM: dts: msm: Add PBS trigger support for OLEDB for PM660A"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:55 +0000 (04:40 -0700)]
Merge "ARM: dts: msm: Add PBS trigger support for OLEDB for PM660A"

7 years agoMerge "msm: mdss: dp: always set default resolution"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:54 +0000 (04:40 -0700)]
Merge "msm: mdss: dp: always set default resolution"

7 years agoMerge "msm: mdss: Ensure MDSS GDSC switched off during FB PM suspend"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:53 +0000 (04:40 -0700)]
Merge "msm: mdss: Ensure MDSS GDSC switched off during FB PM suspend"

7 years agoMerge "msm: mdss: make panel status check and dfps update exclusive"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:51 +0000 (04:40 -0700)]
Merge "msm: mdss: make panel status check and dfps update exclusive"

7 years agoMerge "ARM: dts: msm: enable register read based ESD for sdm660"
Linux Build Service Account [Thu, 20 Apr 2017 11:40:49 +0000 (04:40 -0700)]
Merge "ARM: dts: msm: enable register read based ESD for sdm660"

7 years agochar: msm_smd_pkt: Add snapshot of SMD packet driver
Dhoat Harpal [Wed, 12 Apr 2017 14:18:14 +0000 (19:48 +0530)]
char: msm_smd_pkt: Add snapshot of SMD packet driver

This snapshot is taken as of
msm-3.18 'commit 7e1165aac628 ("Merge drivers: iio: bmi160:
Enabled the buffering support for BMI160 Sensor")'

CRs-Fixed: 2035593
Change-Id: I2951e77f226062d82e84a26fce6ab932b9685223
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
7 years agosoc: qcom: pil: Avoid possible buffer overflow during Modem boot
Kishor PK [Thu, 30 Mar 2017 08:53:37 +0000 (14:23 +0530)]
soc: qcom: pil: Avoid possible buffer overflow during Modem boot

Buffer overflow can occur if MBA firmware size exceeds 1MB.
So validate size before copying the firmware.

CRs-Fixed: 2001803
Change-Id: I070ddf85fbc47df072e7258369272366262ebf46
Signed-off-by: Kishor PK <kpbhat@codeaurora.org>
7 years agoclk: msm: clock-mmss-8998: Set non_local_children flag for mdp_clk_src
Amit Nischal [Tue, 18 Apr 2017 05:13:21 +0000 (10:43 +0530)]
clk: msm: clock-mmss-8998: Set non_local_children flag for mdp_clk_src

For some use cases, mdp clock source needs to be parked at a safe
frequency when it is disabled and force enabled in order to execute
a safe dynamic switch. Add support for the same by adding
non_local_children flag.

Change-Id: Idcbaef90fdfcb80e93b00c61a91e5eadaabfbf56
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
7 years agomsm_11ad: set geometry attr when SMMU stage1 is enabled
Maya Erez [Thu, 20 Apr 2017 05:43:10 +0000 (08:43 +0300)]
msm_11ad: set geometry attr when SMMU stage1 is enabled

When SMMU stage1 is enabled, set IOVA base and end in geometry
attr to allow PCIe driver to map the GIC MSI address.

Change-Id: I7826a941823a6204143ea077a45c71b22316699b
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agodrivers: cpuidle: lpm-levels: add lpm_debug to Minidump
Lingutla Chandrasekhar [Thu, 30 Mar 2017 12:51:48 +0000 (18:21 +0530)]
drivers: cpuidle: lpm-levels: add lpm_debug to Minidump

Minidump only collect parts of memory which are registered
to its table. So add lpm_debug buffer to Minidump table.

Change-Id: I8635542411a560a88530ffbbfe033cd48d3507dc
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
7 years agosoc: qcom: Add Minidump support
Lingutla Chandrasekhar [Fri, 20 Jan 2017 08:16:34 +0000 (13:46 +0530)]
soc: qcom: Add Minidump support

Add Minidump support for clients to get minimum required data
at the time of system crash. The Minidump table resides in SMEM,
BOOT(SBL) will iterate the table entries and dumps out (to USB/Flash)
the data in address location.

Any client can register to this table with static or known addresses,
as currently Minidump doesn't support dumping of dynamic data structures.

To simplify post processing, we create an ELF header, where each entry in
the minidump table is a section in elf header.
If Memory dump table enabled, Dump all data entries registered with MDT.

Enable Minidump:
echo mini > /sys/kernel/dload/dload_mode

Change-Id: I0fc8d21aef71ded34a498426ee3d7f86b063a639
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
7 years agoclk: msm: clock-local2: Fix get_rate ops for branch clock
Amit Nischal [Fri, 14 Apr 2017 06:31:05 +0000 (12:01 +0530)]
clk: msm: clock-local2: Fix get_rate ops for branch clock

For branch clocks having aggr_sibling_rates flag as set, get_rate()
always returns the parents rate despite the branch clocks prepare
status. Fix the same by adding a check for branch prepare status
and aggr_sibling_rates flag value.

Change-Id: If0ba62e178f14bc5fd8ec6007a67538a9b97285b
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
7 years agoMerge "msm: ipa: Fix to use GFP_DMA and add check for dma_map_single"
Linux Build Service Account [Thu, 20 Apr 2017 02:27:30 +0000 (19:27 -0700)]
Merge "msm: ipa: Fix to use GFP_DMA and add check for dma_map_single"

7 years agoMerge "ARM: dts: msm8998: remove extra simulator panel nodes"
Linux Build Service Account [Thu, 20 Apr 2017 02:27:29 +0000 (19:27 -0700)]
Merge "ARM: dts: msm8998: remove extra simulator panel nodes"

7 years agoMerge "diag: Add validity check for process descriptor"
Linux Build Service Account [Thu, 20 Apr 2017 02:27:28 +0000 (19:27 -0700)]
Merge "diag: Add validity check for process descriptor"

7 years agoMerge "regulator: qpnp-oledb: Add support for LAB_VREG_NOT_OK notifier"
Linux Build Service Account [Thu, 20 Apr 2017 02:27:27 +0000 (19:27 -0700)]
Merge "regulator: qpnp-oledb: Add support for LAB_VREG_NOT_OK notifier"

7 years agoMerge "regulator: qpnp-labibb: Handle LAB short circuit(SC) detection"
Linux Build Service Account [Thu, 20 Apr 2017 02:27:26 +0000 (19:27 -0700)]
Merge "regulator: qpnp-labibb: Handle LAB short circuit(SC) detection"

7 years agoMerge "usb: gadget: configfs: Replace strncpy with strlcpy"
Linux Build Service Account [Wed, 19 Apr 2017 18:41:42 +0000 (11:41 -0700)]
Merge "usb: gadget: configfs: Replace strncpy with strlcpy"

7 years agoMerge "leds: qpnp-flash-v2: Enable charger mitigation"
Linux Build Service Account [Wed, 19 Apr 2017 18:41:41 +0000 (11:41 -0700)]
Merge "leds: qpnp-flash-v2: Enable charger mitigation"

7 years agoMerge "arm64: cache: change ARCH_DMA_MINALIGN and L1_CACHE_SHIFT values"
Linux Build Service Account [Wed, 19 Apr 2017 18:41:36 +0000 (11:41 -0700)]
Merge "arm64: cache: change ARCH_DMA_MINALIGN and L1_CACHE_SHIFT values"

7 years agoMerge "ARM: dts: msm: update VDD_APC margin adjustments for msm8998v2"
Linux Build Service Account [Wed, 19 Apr 2017 18:41:35 +0000 (11:41 -0700)]
Merge "ARM: dts: msm: update VDD_APC margin adjustments for msm8998v2"

7 years agoMerge "defconfig: msm: enable vndbinder for sdm660 and msmcortex"
Linux Build Service Account [Wed, 19 Apr 2017 18:41:34 +0000 (11:41 -0700)]
Merge "defconfig: msm: enable vndbinder for sdm660 and msmcortex"

7 years agodefconfig: arm64: msmcortex: Enable IP6_NF_IPTABLES_128
Subash Abhinov Kasiviswanathan [Tue, 18 Apr 2017 21:42:19 +0000 (15:42 -0600)]
defconfig: arm64: msmcortex: Enable IP6_NF_IPTABLES_128

This enables 128 bit matching in ip6tables to help
optimize cases where there is no match required.

This shows a rough improvement of 40Mbps in a UDPv6
downlink test using iperf.

CRs-Fixed: 2034577
Change-Id: I093069b17f21cfbbe60b2bd941f8e2dfef562401
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
7 years agonet: ipv6: Optimize ipv6 packet matching
Subash Abhinov Kasiviswanathan [Tue, 18 Apr 2017 21:22:01 +0000 (15:22 -0600)]
net: ipv6: Optimize ipv6 packet matching

iptables matching for ipv6 always has a mask if an address is
specified for match. Adding a check for mask prior to that
helps to improve performance as it avoids the masked comparison.
This is achieved by defining a new feature IP6_NF_IPTABLES_128
which allows to perform 128 bit arithmetic while matching.

CRs-Fixed: 2034577
Change-Id: I9ffd34e29d1b06ad74545d4751aa0e1ea06ded49
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
7 years agoARM: dts: msm: Add device tree for 8998 MTP with 4k display
Rajkumar Subbiah [Tue, 11 Apr 2017 17:13:47 +0000 (13:13 -0400)]
ARM: dts: msm: Add device tree for 8998 MTP with 4k display

The 4k display variant of the 8998 MTP has a new device subtype.
Creating a new device tree file with the default panel set to
4k command mode to support this MTP variant.

Change-Id: I1f1eee1baf2bfb1f452e724b55536674a9d6d973
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
7 years agoARM: dts: msm: Add PBS trigger support for OLEDB for PM660A
Kiran Gunda [Tue, 21 Feb 2017 10:23:28 +0000 (15:53 +0530)]
ARM: dts: msm: Add PBS trigger support for OLEDB for PM660A

OLEDB driver needs to configure the PBS RAM sequence for
disabling the OLEDB pull down during the module disable.
Add it for PM660A.

Change-Id: I8a969125faa14b2011714ad5bd98a1f9a0f5b649
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
7 years agomsm: ipa3: disable statuses for modem pipes on SSR
Amir Levy [Wed, 19 Apr 2017 11:35:12 +0000 (14:35 +0300)]
msm: ipa3: disable statuses for modem pipes on SSR

On SSR scenario disable statuses for modem producer pipes.
Since modem is not up these statuses are redundant and are
not read by any EE.

Change-Id: I6e7a475d74902f7c5d1b9083f9f7935d3ed2c7c9
CRs-Fixed: 2034903
Signed-off-by: Amir Levy <alevy@codeaurora.org>
7 years agoregulator: qpnp-oledb: Clear SPARE_CTL register during disable
Kiran Gunda [Fri, 14 Apr 2017 06:55:20 +0000 (12:25 +0530)]
regulator: qpnp-oledb: Clear SPARE_CTL register during disable

OLEDB_SPARE_CTL register bit is set by the PBS during the display enable
and is used during the display suspend to trigger the PBS event.
Hence, move clearing of the OLEDB_SPARE_CTL register to regulator disable.
Also enable the force_pd_ctl only for DRAX-A revisions <=2.0.

Change-Id: I339cefc91f94f772bc4f84e85f2471e1a73e4aed
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
7 years agousb: gadget: configfs: Replace strncpy with strlcpy
Manu Gautam [Tue, 28 Mar 2017 05:58:24 +0000 (11:28 +0530)]
usb: gadget: configfs: Replace strncpy with strlcpy

Use safer version of strcpy i.e. strlcpy instead of
strncpy for NULL terminated strings.

Change-Id: I5e2800d1d539545744a1b1231e1d589a7c92797a
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
7 years agodiag: Add validity check for process descriptor
Gopikrishna Mogasati [Mon, 17 Apr 2017 22:02:41 +0000 (03:32 +0530)]
diag: Add validity check for process descriptor

This fix checks the validity of memory device session's
process descriptor before issuing a signal to it while
subsystem restart is performed. This fix avoids accessing
of cleaned-up process descriptor's fields.

CRs-Fixed: 2034816
Change-Id: I2725d3348fbeb8290c887cccea4bca6d41c5b184
Signed-off-by: Gopikrishna Mogasati <gmogas@codeaurora.org>
7 years agoregulator: qpnp-oledb: Add support for LAB_VREG_NOT_OK notifier
Kiran Gunda [Fri, 24 Mar 2017 10:18:51 +0000 (15:48 +0530)]
regulator: qpnp-oledb: Add support for LAB_VREG_NOT_OK notifier

Register a notifier callback for LAB_VREG_NOT_OK, which is triggered
by the LABIBB driver when short circuit(SC) is detected on the LAB
rail. Disable the OLEDB module upon receiving the LAB_VREG_NOT_OK
notification.

Change-Id: Ia3cc19d9a3c2f32acc413677a9ea4b3100464cd2
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
7 years agoregulator: qpnp-labibb: Handle LAB short circuit(SC) detection
Kiran Gunda [Fri, 24 Mar 2017 06:59:39 +0000 (12:29 +0530)]
regulator: qpnp-labibb: Handle LAB short circuit(SC) detection

On certain PMICs, there is no short circuit (SC) detection available
in LAB module. Add support to detect it manually and disable LAB/IBB
module upon SC detection. In addition, notify it to OLEDB driver to
disable OLEDB module.

Change-Id: I2a9dc5b1ae8ece45c85b3992026c7f389fd4d135
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
7 years agodefconfig: msm: enable vndbinder for sdm660 and msmcortex
Neeraj Upadhyay [Tue, 18 Apr 2017 17:30:10 +0000 (23:00 +0530)]
defconfig: msm: enable vndbinder for sdm660 and msmcortex

Restore default android binder domains. As 'binder,hwbinder,vndbinder'
is the default, this change enables vndbinder.

Change-Id: I48ce75fc6090ad3d9a5b66ca437acbde5a913751
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agomsm: mdss: add debug bus support for dsi block
Sandeep Panda [Fri, 24 Feb 2017 06:06:59 +0000 (11:36 +0530)]
msm: mdss: add debug bus support for dsi block

Add support to dump dsi debug bus registers to memory
or print in xlog. This will be helpful in analyzing HW
behavior more precisely while debugging DSI stability
issues.

Change-Id: I7735897d9f24ca06e15015cf0d277bfe800b35bf
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
7 years agowcnss: fix the buffer overflow in MAC address store sysfs
Sarada Prasanna Garnayak [Mon, 17 Apr 2017 14:10:24 +0000 (19:40 +0530)]
wcnss: fix the buffer overflow in MAC address store sysfs

Invalid typecast in MAC address store sysfs entry method
causing device crash due to the buffer overflow.

To fix the above issue check the length of the userspace MAC
address before write. Update the datatype and parsing method
to store the userspace MAC address.

CRs-Fixed: 2034549
Change-Id: I0d4709c5b623c8333a99991c042552df1e7da923
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agomsm: ipa: Fix to use GFP_DMA and add check for dma_map_single
Utkarsh Saxena [Fri, 14 Apr 2017 14:01:07 +0000 (19:31 +0530)]
msm: ipa: Fix to use GFP_DMA and add check for dma_map_single

IPAv2 hardware works with 32 bit addressing,
so allocate a kernel memory using GFP_DMA flag
which is processed by IPA hardware.

Add a error check for return of dma_map_single
using dma_mapping_error API.

Change-Id: I08e3eec8e9b2d81f945283a72338c0a8f23e2ac9
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
7 years agomsm: mdss: check for audio support before notifying frameworks
Sandeep Panda [Tue, 21 Jun 2016 09:54:37 +0000 (15:24 +0530)]
msm: mdss: check for audio support before notifying frameworks

In the current implementation DBA driver always assumes
the TV connected is supporting audio. However if the TV
connected is in DVI mode or it's EDID does not contain
any audio block then it will not support audio data.
Hence after parsing EDID, check if the connected TV has
support for audio and accordingly configure and send HPD
events to audio framework.

Change-Id: Id1d175b9c0c1c07bcb4447eeaa907a17c15df098
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
7 years agoMerge "qcom: smblib: report discharging in case of input OV"
Linux Build Service Account [Wed, 19 Apr 2017 05:19:29 +0000 (22:19 -0700)]
Merge "qcom: smblib: report discharging in case of input OV"

7 years agoMerge "msm: ipa3: allocate memory for DMA task on init"
Linux Build Service Account [Wed, 19 Apr 2017 05:19:28 +0000 (22:19 -0700)]
Merge "msm: ipa3: allocate memory for DMA task on init"

7 years agoMerge "msm: pcie: support QGIC MSI with SMMU fastmap enabled"
Linux Build Service Account [Wed, 19 Apr 2017 05:19:27 +0000 (22:19 -0700)]
Merge "msm: pcie: support QGIC MSI with SMMU fastmap enabled"

7 years agoMerge "msm: mdss: Wait for VSYNC after continuous splash handoff"
Linux Build Service Account [Wed, 19 Apr 2017 05:19:25 +0000 (22:19 -0700)]
Merge "msm: mdss: Wait for VSYNC after continuous splash handoff"

7 years agoMerge "usb: phy: qmp: Remove extra debug log"
Linux Build Service Account [Wed, 19 Apr 2017 05:19:24 +0000 (22:19 -0700)]
Merge "usb: phy: qmp: Remove extra debug log"

7 years agoMerge "power: smb-lib: WA to fix legacy cable detection"
Linux Build Service Account [Wed, 19 Apr 2017 05:19:21 +0000 (22:19 -0700)]
Merge "power: smb-lib: WA to fix legacy cable detection"

7 years agoMerge "soc: qcom: qpnp-haptic: Optimize updating RATE_CFG registers"
Linux Build Service Account [Wed, 19 Apr 2017 05:19:20 +0000 (22:19 -0700)]
Merge "soc: qcom: qpnp-haptic: Optimize updating RATE_CFG registers"