Commit graph

588049 commits

Author SHA1 Message Date
Linux Build Service Account
7ca6c92e65 Merge "regulator: qpnp-labibb: Handle LAB short circuit(SC) detection" 2017-04-19 19:27:26 -07:00
Linux Build Service Account
7514c164f1 Merge "usb: gadget: configfs: Replace strncpy with strlcpy" 2017-04-19 11:41:41 -07:00
Linux Build Service Account
1d9cf2a667 Merge "leds: qpnp-flash-v2: Enable charger mitigation" 2017-04-19 11:41:37 -07:00
Linux Build Service Account
1a597a13e8 Merge "arm64: cache: change ARCH_DMA_MINALIGN and L1_CACHE_SHIFT values" 2017-04-19 11:41:36 -07:00
Linux Build Service Account
f984c0f9a0 Merge "ARM: dts: msm: update VDD_APC margin adjustments for msm8998v2" 2017-04-19 11:41:35 -07:00
Linux Build Service Account
a69827fe6d Merge "defconfig: msm: enable vndbinder for sdm660 and msmcortex" 2017-04-19 11:41:34 -07:00
Subash Abhinov Kasiviswanathan
ae714a17b9 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>
2017-04-19 11:56:54 -06:00
Subash Abhinov Kasiviswanathan
6f6c1a1f8b 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>
2017-04-19 11:56:49 -06:00
Rajkumar Subbiah
4c368d38aa 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>
2017-04-19 10:43:53 -07:00
Kiran Gunda
be5977b833 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>
2017-04-19 04:53:47 -07:00
Amir Levy
7f7b911b32 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>
2017-04-19 14:35:12 +03:00
Kiran Gunda
35b84c47a5 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>
2017-04-19 16:36:46 +05:30
Manu Gautam
851175d661 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>
2017-04-19 04:05:56 -07:00
Shankar Ravi
b4391df0be msm: camera: Fix for NOC error in CCI
During stability runs, CCI dump registers are
accessed after the cci release call causing NOC
errors.Enable dump registers if necessary

Change-Id: Ib80bed8de0bdb68dc0ad72d7be8bd5e973ed7f57
Signed-off-by: Shankar Ravi <rshankar@codeaurora.org>
2017-04-19 16:30:06 +05:30
Gopikrishna Mogasati
296e5025fa 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>
2017-04-19 15:58:32 +05:30
Kiran Gunda
6c86753b0d 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>
2017-04-19 02:30:41 -07:00
Kiran Gunda
91a6162f19 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>
2017-04-19 14:47:26 +05:30
Neeraj Upadhyay
5e9e067d19 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>
2017-04-19 02:01:54 -07:00
Lingutla Chandrasekhar
4df9b7635e msm_11ad: reorder registration with memory dump table
Memory dump table doesn't support de registration, but
when ssr ramdump device creation failed, it frees
the buffer registered with Memory dump table also.

So re-order ramdump device creation to avoid freeing
memory dump table buffer.

Change-Id: I0ac595259159f3d3fe2e5c864dae8a6a1d6b4078
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-04-19 14:26:56 +05:30
Sandeep Panda
92e847bb7e 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>
2017-04-18 23:56:35 -07:00
Sarada Prasanna Garnayak
784db7a8b0 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>
2017-04-18 23:46:20 -07:00
Utkarsh Saxena
314c7a8de6 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>
2017-04-19 11:43:59 +05:30
Sandeep Panda
4086c86ed0 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>
2017-04-19 11:38:45 +05:30
Linux Build Service Account
1342831f8a Merge "qcom: smblib: report discharging in case of input OV" 2017-04-18 22:19:28 -07:00
Linux Build Service Account
518e9d19b5 Merge "msm: ipa3: allocate memory for DMA task on init" 2017-04-18 22:19:27 -07:00
Linux Build Service Account
849232eb3e Merge "msm: pcie: support QGIC MSI with SMMU fastmap enabled" 2017-04-18 22:19:26 -07:00
Linux Build Service Account
984ec0d1e7 Merge "msm: mdss: Wait for VSYNC after continuous splash handoff" 2017-04-18 22:19:24 -07:00
Linux Build Service Account
e34cc21861 Merge "usb: phy: qmp: Remove extra debug log" 2017-04-18 22:19:24 -07:00
Linux Build Service Account
aadfc6d284 Merge "power: smb-lib: WA to fix legacy cable detection" 2017-04-18 22:19:21 -07:00
Linux Build Service Account
64cf255adf Merge "soc: qcom: qpnp-haptic: Optimize updating RATE_CFG registers" 2017-04-18 22:19:19 -07:00
Linux Build Service Account
c5371f74c8 Merge "msm: mdss: reset cdm block after used" 2017-04-18 22:19:18 -07:00
Skylar Chang
021b9a458c msm: rmnet_ipa: fix security issue
Fix the security issue where mux channel name might
not be null-terminated in ipa wan driver.

Change-Id: I3ef440b62cf3861464fb60c1e7f65f2be5e39ed0
Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-04-18 17:39:45 -07:00
Linux Build Service Account
ce87c90172 Merge "lowmemorykiller: fix scan_mutex contention" 2017-04-18 13:57:02 -07:00
Linux Build Service Account
be57574adf Merge "soc: qcom: spcom: validate rx_buf in spcom_rx before usage" 2017-04-18 13:57:01 -07:00
Linux Build Service Account
dcdd543fe1 Merge "wil6210: add option to load FTM FW" 2017-04-18 13:56:59 -07:00
Linux Build Service Account
68cbe2822c Merge "mm: separate out the invocation of lowmemorykiller shrinker" 2017-04-18 13:56:59 -07:00
Linux Build Service Account
2dfa6e303f Merge "wil6210: Improve AP stop handling" 2017-04-18 13:56:57 -07:00
Linux Build Service Account
f574243fae Merge "regulator: qpnp-oledb: Add revid support for OLEDB driver" 2017-04-18 13:56:56 -07:00
Linux Build Service Account
fe484ee85a Merge "power: smb-lib: start CC2 removal WA when VBUS is low" 2017-04-18 13:56:55 -07:00
Linux Build Service Account
a4da2aadd9 Merge "ANDROID: Refactor fs readpage/write tracepoints." 2017-04-18 13:56:54 -07:00
Linux Build Service Account
74cf65d68c Merge "ANDROID: fs: FS tracepoints to track IO." 2017-04-18 13:56:53 -07:00
Linux Build Service Account
e46437e997 Merge "crypto: msm: Fix buffer overflow issue" 2017-04-18 13:56:52 -07:00
Linux Build Service Account
9fbdcef1d5 Merge "qcom: qnovo: allow charger error conditions to disable qnovo" 2017-04-18 13:56:50 -07:00
Liam Mark
4f83071078 iommu/arm-smmu: add support to configure IOVA range
Allow clients to specify the IOVA range for fastmap clients
via the DOMAIN_ATTR_GEOMETRY domain attribute.

Presently fastmap only allocates page tables for the IOVA
range specified during the create mapping call. However
clients may want to use IOVA addresses outside this range,
such as for their calls to iommu_map.

So allow clients to extend the available IOVA space by setting
the DOMAIN_ATTR_GEOMETRY domain attribute's
iommu_domain_geometry.aperture_start to
the new start address of the IOVA space and by setting
iommu_domain_geometry.aperture_end to the new end address of the
IOVA space.
The new IOVA space created by iommu_domain_geometry.aperture_start
and iommu_domain_geometry.aperture_end will be a superset of the
IOVA range which was created through the create mapping call.

The DOMAIN_ATTR_GEOMETRY domain attribute can only be set before
attaching.
Calls to set the DOMAIN_ATTR_GEOMETRY domain attribute can only
be used to extend the IOVA space, it cannot shrink the range.

Note that extending the IOVA range will not change the range of
IOVA addresses which will be available to the DMA APIs.

Change-Id: Ib389e019a022d98417884002de08115fb0fc9384
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2017-04-18 11:34:53 -07:00
Skylar Chang
e01629963c msm: ipa3: allocate memory for DMA task on init
On some conditions, such as reboot, the allocation context
for DMA task might be a user space processes with SIGKILL.
Pre allocate this buffer to avoid DMA allocation failure.

Change-Id: Ie0c5ecbb7aebbf03c42c2f8976aad40e9987fd4a
CRs-Fixed: 2032907
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-04-18 11:34:11 -07:00
Imran Khan
7b9683892c arm64: cache: change ARCH_DMA_MINALIGN and L1_CACHE_SHIFT values
This reverts 'commit 9730348075 ("arm64: Increase the max
granular size") and also sets ARM_DMA_MINALIGN to 128.
ARCH_DMA_MINALIGN is dependent on L1_CACHE_SHIFT but it should
be set to maximum *known* cache line size on ARMv8 systems to
avoid DMA coherecy issues. So setting ARM_DMA_MINALIGN to 128.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Change-Id: Ie771d1b693789fce8793538a6efddfe68e2a0043
Patch-mainline: linux-kernel @ 21/03/16, 17:14:03
Signed-off-by: Imran Khan <kimran@codeaurora.org>
2017-04-18 08:04:28 -07:00
Linux Build Service Account
50a43711dc Merge "ARM: dts: msm: Add reserved channel for MSM8998/SDM660/SDM630" 2017-04-18 06:29:59 -07:00
Linux Build Service Account
758e42fa64 Merge "ASoC: msm: qdsp6v2: Enable AFE sidetone based on mixer ctl setting" 2017-04-18 06:29:59 -07:00
Linux Build Service Account
90ec95150b Merge "ASoC: msm8998: Add check before dereferencing pointer" 2017-04-18 06:29:44 -07:00
Linux Build Service Account
b0f3600e32 Merge "clk: qcom: Update the hmss_gpll0_clk_src to 300MHz" 2017-04-18 06:29:44 -07:00