Commit graph

582807 commits

Author SHA1 Message Date
Linux Build Service Account
4274d1ddbd Merge "qcom-charger: smb2: fix kernel log flooding by charger driver" 2017-02-08 17:48:04 -08:00
Linux Build Service Account
98f3f9832b Merge "msm: mdss: Correct video interface setup for AVR feature" 2017-02-08 17:48:03 -08:00
Linux Build Service Account
a3863eb11e Merge "msm: ext_display: update hpd and notify for HDMI" 2017-02-08 17:48:02 -08:00
Linux Build Service Account
74717404f7 Merge "msm: mdss: fix mdp vbif qos priorities" 2017-02-08 17:48:01 -08:00
Linux Build Service Account
c08dbd7160 Merge "msm: mdss: Skip ping pong wait when panel is reported dead" 2017-02-08 17:48:00 -08:00
Linux Build Service Account
cdf7b60f9d Merge "power: supply: qcom: fix OTG soft start failure with higher capacitance" 2017-02-08 17:47:59 -08:00
Linux Build Service Account
0a2cd3d49f Merge "ARM: dts: msm: update nt35597 truly panel init sequence" 2017-02-08 17:47:58 -08:00
Linux Build Service Account
5a1c2adb5c Merge "icnss: After recovery probe if not done already" 2017-02-08 17:47:58 -08:00
Linux Build Service Account
075735536c Merge "ARM: dts: msm: update truly fhd panel init sequence" 2017-02-08 17:47:53 -08:00
Linux Build Service Account
1e319a1d2d Merge "regulator: qpnp-oledb-regulator: correct various coding style issues" 2017-02-08 17:47:45 -08:00
Linux Build Service Account
c14db37507 Merge "regulator: qpnp-lcdb-regulator: correct various coding style issues" 2017-02-08 17:47:44 -08:00
Linux Build Service Account
530b3e3cf2 Merge "regulator: qpnp-labibb-regulator: correct various coding style issues" 2017-02-08 17:47:44 -08:00
Linux Build Service Account
2c9038e7d1 Merge "leds: leds-qpnp-wled: correct various coding style issues" 2017-02-08 17:47:43 -08:00
Linux Build Service Account
331a26c52b Merge "leds: leds-qpnp-flash-v2: correct various coding style issues" 2017-02-08 17:47:43 -08:00
Linux Build Service Account
3fc3c69db9 Merge "leds: leds-qpnp-flash: correct various coding style issues" 2017-02-08 17:47:42 -08:00
Linux Build Service Account
4c61075032 Merge "leds: leds-qpnp: correct various coding style issues" 2017-02-08 17:47:41 -08:00
Linux Build Service Account
b6ec54aa3e Merge "qcom: qnovo: Fix QNOVO IADC_OFFSET, STRM_CTRL and PPCNT settings" 2017-02-08 17:47:41 -08:00
Linux Build Service Account
61eadab792 Merge "ARM: dts: msm: Configure PMI8998 GPIO6 for discharge FET ctrl signal" 2017-02-08 17:47:40 -08:00
Linux Build Service Account
47d0a67935 Merge "ARM: dts: msm: update the DT properties for display port on SDM660" 2017-02-08 17:47:39 -08:00
Linux Build Service Account
52ea397825 Merge "iio: qcom-tadc: set all threshold comparators directions" 2017-02-08 17:47:34 -08:00
Linux Build Service Account
3a6de8f9a9 Merge "net: support __alloc_skb to always use GFP_DMA" 2017-02-08 17:47:30 -08:00
Linux Build Service Account
d412bf2a8c Merge "msm: ADSPRPC: Check for buffer overflow condition" 2017-02-08 17:47:30 -08:00
Deepak Katragadda
60478db49d clk: msm: clock-mmss-8998: Park the MMNOC AHB RCG at XO when its disabled
To avoid running into issues with the MMNOC RCG being enabled due
to an enable request from a non-linux entity whilst the linux code
has disabled its parents, park the RCG at CXO when its disabled.

Change-Id: Ib55bb7a202736a207bb8cb94c20b5030af5bea49
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2017-02-08 17:35:59 -08:00
Ram Chandrasekar
0c86f63b8e msm: thermal: update LMH DCVSh even when cores are offline
KTM right now won't update the mitigation frequency cap to LMH DCVSh if
all the cores in a cluster are offline. It will notify the LMH DCVSh
when at least one core is online. Due to race condition, there is a
possibility that this update can be missed or cores will be running
unmitigated for a short duration after being online.

LMH DCVSh hardware can accept the frequency cap even when the cores are
offline and apply the cap later when the cores are brought back online.
So in KTM update the LMH DCVSh hardware, even if the cores are offline
to avoid any race condition.

Change-Id: Idc04c35a9c5de66cfd8edb4150106ed65f9f4bf1
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2017-02-08 12:58:08 -07:00
Prasad Sodagudi
5dbeb97af8 arm64: gettimeofday change for timer rollover condition
Adding a check in gettimeofday api for timer rollover
condition.

Change-Id: I50c36e5983f05700e49987f6e24c1b17f38a9e1f
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-02-08 10:22:03 -08:00
Manoj Kumar AVM
48b0c8c280 msm: ext_display: increase timeout value to 5 seconds
For targets not having a HAL component, a userspace testapp has
to be manually run to trigger a frame update which will in-turn
trigger the unblank sequence.
This testapp needs to be run within the specified timeout value
of the hpd_comp. Current value of 2 seconds is not enough and
causes false errors and subsequent failures.

Increase timeout value to 5 seconds to avoid false timeouts for
no framework cases.

CRs-Fixed: 1115561
Change-Id: I14f64f781c19268510128f5fa819e7fd0d33c78b
Signed-off-by: Manoj Kumar AVM <manojavm@codeaurora.org>
2017-02-08 10:21:26 -08:00
Rajesh Kemisetti
e12ca1eb7b msm: kgsl: Add support for A508 GPU on SDM630
Add new GPU ID: A508 and corresponding VBIF and initial
settings on SDM630.

Change-Id: If1cd782beb50098a69a9d05acb083ef4b0465766
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-02-08 21:53:15 +05:30
Andrey Markovytch
a1cd6239e4 ice: fix issue with losing ICE key configuration during reset
TZ is called to restore key configuration in case of UFS reset

Change-Id: Id434e7f9ec6befdce97f52fd350957b66adcb15f
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2017-02-08 04:35:20 -08:00
Neeraj Upadhyay
c74187e5c8 regulator: cpr4: null terminate of_match_table
Null terminate cpr4_mmss_regulator_match_table with
'{}', to fix the error reported from KASAN.

Change-Id: Ib991fe5ce57e9e12132c3c836e1e807cb0afad22
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-08 16:34:20 +05:30
Sarada Prasanna Garnayak
0f8cc9f012 ARM: dts: msm: update wcn3990 wlan module device node for APQ8998
Add proper status flag in wcn3990 wlan module device node to
enable the ath10k SNOC platform driver probe for the APQ8998
target. The wcn3990 wlan module doesn't have any register
resource to request so remove invalid  register base address
from the device node handle.

CRs-Fixed: 2003852
Change-Id: I554063ac8d8da3c4bbca29a2ba8e216323c7a9e0
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-02-08 02:53:27 -08:00
Rupesh Tatiya
7bfc6fbfee ARM: dts: msm: Add slimbus slave device for wcn3990 on sdm630
Slimbus is used as audio transport for Bluetooth & FM between sdm630 &
wcn3990. Add device tree entry for wcn3990 slimbus slave device in sdm630.

Change-Id: Ie5ee241e0a952b61e84682a289c69d10877cedd1
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2017-02-08 16:18:32 +05:30
Shiraz Hashim
aad00ec265 defconfig: enable CONFIG_FREE_PAGES_RDONLY for sdm660
Enable CONFIG_FREE_PAGES_RDONLY for 32bit sdm660, that
marks freed kernel pages as read-only.

Change-Id: I532dc10fc6aee5200275550eb1df7d1e6cf195e9
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-02-08 16:12:17 +05:30
Shiraz Hashim
f7abb9acbd arm: mm: add missing pieces for CONFIG_FREE_PAGES_RDONLY
CONFIG_FREE_PAGES_RDONLY, which marks freed kernel pages
as read-only missed the Kconfig and an interface to mark
pages as read-only for 32 bit system. Add them.

Change-Id: Ibb5020a44323fb50febd66e16ca448da8ecb352c
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-02-08 16:12:16 +05:30
Shiraz Hashim
154827ce27 defconfig: Align sdm660 arm32 defconfig with arm64
Align arm32 and arm64 sdm660 defconfig with respect to
iommu configs and remove cma size selection as it is to be
moved to device tree.

Change-Id: I5c5f88c05dce9f58d29d56d9cfea2b0d785d665a
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-02-08 16:11:04 +05:30
Shiraz Hashim
01ede3637b defconfig: msm: update mmap randomness for sdm660
CTS malloc tests on Android 'N' expects higher entropy in
mmap returned address. Present value of mmap random bits
is not providing enough variations for 32 bit tasks.

Increase mmap_rnd_bits for 32bit and mmap_rnd_compat_bits
for 64bit targets to value of 16.

Change-Id: I1cb88cb1f1fc2a8dc7e27eb54b8c0b2a3eb37843
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-02-08 16:11:04 +05:30
Shiraz Hashim
f39623177b arm: mm: program ptes for access restriction
CONFIG_RODATA allows strict kernel mapping permissions to
be followed and accordingly maps regions as read-only,
not-executable etc. correspondingly. CONFIG_RODATA however
assumes all memory regions to be SECTION_SIZE aligned and
section mapped for performance reasons.

With CONFIG_FORCE_PAGES, we force all kernel mappings as
page mapped thus breaking CONFIG_RODATA.

Provide provision to apply permissions at page (pte)
level, if CONFIG_RODATA does not find section mapping.

Change-Id: I8dbf5c3741836bc63a231d8a471cf0306662993b
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-02-08 16:11:00 +05:30
Pavankumar Kondeti
9c32e32899 sched: fix bug in auto adjustment of group upmigrate/downmigrate
sched_group_upmigrate tunable can accept values greater than
100%. Don't limit it to 100% while doing the auto adjustment.

Change-Id: I3d1c1e84f2f4dec688235feb1536b9261a3e808b
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-02-08 15:07:45 +05:30
Vijayavardhan Vennapusa
94cd6c197a USB: u_data_ipa: Fix pm_runtime usage count in case of error
If disconnect happens before connect_work start executing, then
there is a chance that connect_work returns with port_usb NULL.
Due to this, port->is_connected will be NULL and disconnect_work
returns with this check, but not decremented pm_usage count, which
is incremented before scheduling connect_work in ipa_data_connect.
Hence fix this by decrementing pm_usage count in connect_work if
port_usb is NULL.

Change-Id: Ic60f2addcf07375429e0858d3c7a376a35132750
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-02-08 14:29:20 +05:30
Tirupathi Reddy
9e38e5398a ARM: dts: msm: Update MEM ACC corner mapping for APC0/1 for sdm660
Use NOM ACC settings up to TURBO voltage corner for APC0/1 for
sdm660.

CRs-Fixed: 2003900
Change-Id: Id1c82a7e1681e028d0426fe0565d88faa6588ab5
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-02-08 14:03:29 +05:30
Laura Abbott
9c2442a7a9 arm: highmem: Add support for flushing kmap_atomic mappings
The highmem code provides kmap_flush_unused to ensure all kmap
mappings are really removed if they are unused. This code does not
handle kmap_atomic mappings since they are managed separately.
This prevents an issue for any code which relies on having absolutely
no mappings for a particular page. Rather than pay the penalty of
having CONFIG_DEBUG_HIGHMEM on all the time, add functionality
to remove the kmap_atomic mappings in a similar way to kmap_flush_unused.

Change-Id: Ieb25da809b377b1fae1629e2cb75f8aebc1c1bca
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2017-02-08 13:40:38 +05:30
Shiraz Hashim
8c98573eaf ARM: dts: msm: configure default CMA region for sdm630
Configure the size of the default CMA region to 32 MB in
DT for sdm630.

Configuring the default CMA region in the DT is cleaner
than using CONFIG_CMA_SIZE_MBYTES since it is easier to
configure per target and the alloc ranges can be specified
in DT.

Change-Id: I329ae0aa9cffeed7c30e44749c15fbb83c58b599
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-02-08 13:40:30 +05:30
Amir Samuelov
01f5735306 spcom: abort server pending rx when SP reset (SSR) detected
An spcom server that is waiting for request, but has no client connected,
will not get RX-ABORT or REMOTE-DISCONNECT notification,
that should cancel the server pending rx operation.

Change-Id: I52f69ac4bd0b53c60e2115761569d967bb77ea0e
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-02-07 22:46:06 -08:00
Pavankumar Kondeti
3b315a544a defconfig: msm: enable SCHED_AUTOGROUP for sdm660
This config is already enabled in all other variants but missed
in the 32 bit debug defconfig.

Change-Id: I7b1cb538eaf63305eba171c7453c1459c802eb41
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-02-08 11:19:11 +05:30
Ashay Jaiswal
b3f4a97dc3 qcom-charger: smb2: fix kernel log flooding by charger driver
Power supply framework expects all registered power_supply
entities(except "battery" psy) to support ONLINE property.
"usb-main" psy doesn't support ONLINE property and prints
error for unsupported properties in get_property function.
Update error prints to debug in get-property function of
"usb-main" to prevent log flooding.

Change-Id: I270a93fe2e48d368f13e74e63c48613c1a4fb693
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-02-08 10:27:52 +05:30
Pavankumar Kondeti
b61c01f52f sched: remove sched_new_task_windows tunable
The sched_new_task_windows tunable is set to 5 in the scheduler
and it is not changed from user space. Remove this unused tunable.

Change-Id: I771e12b44876efe75ce87a90e4e9d69c22168b64
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-02-08 09:46:57 +05:30
Phani Kumar Uppalapati
0e608ded2e ASoC: wcd934x: add DSD support for lineout path
Add DSD playback support for Lineout path for wcd934x
codec.

Change-Id: Icb1853cda01561fb78ee9cfc2058c58d982a2f7f
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2017-02-07 20:00:33 -08:00
Nicholas Troast
969526076d power: supply: qcom: fix OTG soft start failure with higher capacitance
Currently hardware based OTG soft start will fail when enabling OTG with
high capacitance.

Fix this by implementing a software based OTG soft start sequence in
addition to the underlying hardware OTG soft start.

This soft start workaround will begin when an OTG over-current interrupt
is triggered.

Change-Id: I2f3fd5f1bb6e792b2b353eb241d83548e33f563b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 16:45:59 -08:00
Anirudh Ghayal
6e1f3205b4 qpnp: smb2: Add charger frequency config for PM660
The clock to the PM660 charger has to be configured in the
CHG_FREQ module instead of CHG_MISC. Also, the charger
frequencies for PM660 and PMI8998 are different, add
logic to handle that.

CRs-Fixed: 1104287
Change-Id: I5f4daf9354b209226a03b4f8026e20be8a73348b
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-02-08 05:51:24 +05:30
Hemant Kumar
65719399a2 usb: dwc3: Set core clk rate to default upon device remove notification
commit 1eec2157d8 ("usb: dwc3: Update core clock rate based on
USB port speed.") only sets clk rate for HS/FS/LS device add notification.
In case super speed device is plugged in after LS/FS/HS device unplug in
absence of runtime suspend, core clk rate remains at high speed core clk
rate. Fix this issue by setting the core clk rate back to default when
a device is being removed from root hub.

Change-Id: I0ac37b7ff08a9a297441304eb2cfaff398d44bb9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-02-07 15:13:13 -08:00
Siena Richard
d323731631 drivers: soc: add mutex to prevent response being processed twice
Add a mutex to prevent two threads from processing the same response
at the same time. This ensures responses are processed completely and
sequentially.

CRs-Fixed: 1116015
Change-Id: Id2ef32edb939f8af2850b54bd6f6f447939c0732
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2017-02-07 15:02:16 -08:00