OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agobinder: prevent kptr leak by using %pK format specifier
Nick Desaulniers [Wed, 17 Aug 2016 23:00:08 +0000 (16:00 -0700)]
binder: prevent kptr leak by using %pK format specifier

Works in conjunction with kptr_restrict.
Bug: 30143283

Change-Id: Ibe0053e8bd4d8219098ba09041d66fcd5b4592fd
Git-repo: https://android.googlesource.com/kernel/msm.git
Git-commit: b884cbf06200b18e660514a30293931a61126ef5
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
7 years agoMerge "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4"
Linux Build Service Account [Wed, 26 Oct 2016 20:13:25 +0000 (13:13 -0700)]
Merge "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4"

7 years agoMerge "clk: osm: msm: allow WDOG status register to be enabled via debugfs"
Linux Build Service Account [Wed, 26 Oct 2016 20:13:24 +0000 (13:13 -0700)]
Merge "clk: osm: msm: allow WDOG status register to be enabled via debugfs"

7 years agoMerge "msm: mdss: fix crash when wrong params are passed on the esd config"
Linux Build Service Account [Wed, 26 Oct 2016 20:13:22 +0000 (13:13 -0700)]
Merge "msm: mdss: fix crash when wrong params are passed on the esd config"

7 years agoMerge "icnss: Do top level reset when timeout to pull register state"
Linux Build Service Account [Wed, 26 Oct 2016 20:13:21 +0000 (13:13 -0700)]
Merge "icnss: Do top level reset when timeout to pull register state"

7 years agoMerge "mdss: display-port: add support for hdcp 2.2"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:43 +0000 (01:10 -0700)]
Merge "mdss: display-port: add support for hdcp 2.2"

7 years agoMerge "icnss: Stay awake during recovery"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:40 +0000 (01:10 -0700)]
Merge "icnss: Stay awake during recovery"

7 years agoMerge "ASoC: wcd934X: Update TX gain correctly after decimator enable"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:39 +0000 (01:10 -0700)]
Merge "ASoC: wcd934X: Update TX gain correctly after decimator enable"

7 years agoMerge "ASoC: wcd9335: Update TX gain correctly after decimator enable"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:39 +0000 (01:10 -0700)]
Merge "ASoC: wcd9335: Update TX gain correctly after decimator enable"

7 years agoMerge "ARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:36 +0000 (01:10 -0700)]
Merge "ARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms"

7 years agoMerge "clk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:35 +0000 (01:10 -0700)]
Merge "clk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag"

7 years agoMerge "lpm-levels: Change _WARN_printf to pr_err when residency < 0"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:34 +0000 (01:10 -0700)]
Merge "lpm-levels: Change _WARN_printf to pr_err when residency < 0"

7 years agoMerge "clk: Check for failure at clk_change_rate"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:33 +0000 (01:10 -0700)]
Merge "clk: Check for failure at clk_change_rate"

7 years agoMerge "ARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:33 +0000 (01:10 -0700)]
Merge "ARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2"

7 years agoMerge "msm: vidc: Update log level for power collpase"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:32 +0000 (01:10 -0700)]
Merge "msm: vidc: Update log level for power collpase"

7 years agoMerge "msm: vidc: Check ion_handle for errors"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:31 +0000 (01:10 -0700)]
Merge "msm: vidc: Check ion_handle for errors"

7 years agoMerge "iommu/arm-smmu: on domain destroy invlidate domain cfg"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:29 +0000 (01:10 -0700)]
Merge "iommu/arm-smmu: on domain destroy invlidate domain cfg"

7 years agoMerge "msm: camera: sensor: Update CSI PHY setting for msmcobalt"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:28 +0000 (01:10 -0700)]
Merge "msm: camera: sensor: Update CSI PHY setting for msmcobalt"

7 years agoMerge "msm: camera: Restructure data handling to be more robust"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:27 +0000 (01:10 -0700)]
Merge "msm: camera: Restructure data handling to be more robust"

7 years agoMerge "msm: camera: AV timer support for HAL3"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:26 +0000 (01:10 -0700)]
Merge "msm: camera: AV timer support for HAL3"

7 years agoMerge "msm: sensor: Adding mutex for actuator power down operations"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:25 +0000 (01:10 -0700)]
Merge "msm: sensor: Adding mutex for actuator power down operations"

7 years agoMerge "msm_serial_hs: Add defensive checks due to sudden port close"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:24 +0000 (01:10 -0700)]
Merge "msm_serial_hs: Add defensive checks due to sudden port close"

7 years agoMerge "coresight: tmc: skip tmc read if mem allocaiton failed"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:06 +0000 (18:31 -0700)]
Merge "coresight: tmc: skip tmc read if mem allocaiton failed"

7 years agoMerge "sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:05 +0000 (18:31 -0700)]
Merge "sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()"

7 years agoMerge "soc: qcom: use interruptible wait_for_completion API"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:04 +0000 (18:31 -0700)]
Merge "soc: qcom: use interruptible wait_for_completion API"

7 years agoMerge "ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:04 +0000 (18:31 -0700)]
Merge "ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2"

7 years agoMerge "ASoC: msmcobalt: Add independent clock support on codec"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:03 +0000 (18:31 -0700)]
Merge "ASoC: msmcobalt: Add independent clock support on codec"

7 years agoMerge "ASoC: wcd934x: Update CPR register defaults"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:02 +0000 (18:31 -0700)]
Merge "ASoC: wcd934x: Update CPR register defaults"

7 years agoMerge "drivers: soc: Initialize return var to default value"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:01 +0000 (18:31 -0700)]
Merge "drivers: soc: Initialize return var to default value"

7 years agoMerge "soc: qcom: Use a deferrable timer base for the msm watchdog"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:00 +0000 (18:31 -0700)]
Merge "soc: qcom: Use a deferrable timer base for the msm watchdog"

7 years agoMerge "qpnp-fg-gen3: Fix storing nominal capacity to actual capacity"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:58 +0000 (18:30 -0700)]
Merge "qpnp-fg-gen3: Fix storing nominal capacity to actual capacity"

7 years agoMerge "USB: pd: Fix compilation issues for 32 bit support"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:57 +0000 (18:30 -0700)]
Merge "USB: pd: Fix compilation issues for 32 bit support"

7 years agoMerge "ASoC: wcd9335: Fix register sequence for CPE configuration"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:55 +0000 (18:30 -0700)]
Merge "ASoC: wcd9335: Fix register sequence for CPE configuration"

7 years agoMerge "ASoC: msmcobalt: Add CPE ECPP DAI instance for ECPP path"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:55 +0000 (18:30 -0700)]
Merge "ASoC: msmcobalt: Add CPE ECPP DAI instance for ECPP path"

7 years agoMerge "ARM: msm: dts: add second CPE session for msmcobalt"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:55 +0000 (18:30 -0700)]
Merge "ARM: msm: dts: add second CPE session for msmcobalt"

7 years agosched: Set curr/prev_window_cpu pointers to NULL in sched_exit()
Syed Rameez Mustafa [Tue, 25 Oct 2016 01:37:14 +0000 (18:37 -0700)]
sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()

trace_sched_update_task_ravg relies on NULL pointers to ensure that
it doesn't access them. Make sure that when a task exits, these
pointers are set to NULL. Otherwise any call to update_task_ravg()
between sched_exit() and releasing the task structure will access
bogus pointers. In some cases those memory locations are unmapped
and cause a kernel panic.

Change-Id: I9eebb4fb35aca2c8424bfb29ae9d833650dc5ad4
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agoclk: osm: msm: allow WDOG status register to be enabled via debugfs
Osvaldo Banuelos [Thu, 20 Oct 2016 22:00:16 +0000 (15:00 -0700)]
clk: osm: msm: allow WDOG status register to be enabled via debugfs

Enabling WDOG status register by default has power penalty.
Add support to allow the register to be configured via debugfs
instead.

CRs-Fixed: 1081757
Change-Id: I13156d82f544cd28a1579c23b18182c879c85767
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
7 years agosoc: qcom: use interruptible wait_for_completion API
Vidyakumar Athota [Thu, 20 Oct 2016 00:55:26 +0000 (17:55 -0700)]
soc: qcom: use interruptible wait_for_completion API

Device suspend fails because of un-interruptible blocking read
function. Use wait_for_completion_interruptible API instead of
wait_for_completion to allow device suspend.

Change-Id: Ia537e776d0b322d56cd6003f95cdded5e695ceeb
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
7 years agoicnss: Do top level reset when timeout to pull register state
Yuanyuan Liu [Mon, 24 Oct 2016 17:13:48 +0000 (10:13 -0700)]
icnss: Do top level reset when timeout to pull register state

When system timeouts to pull register state, we do wsi error
recovery, which causes an AHB bus hang. Fix this by doing top
level reset instead of wsi error recovery.

CRs-Fixed: 1080014
Change-Id: Ic5dbac9c2cd31f3193ede7cdc64249f7514e3e98
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
7 years agoARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2
David Collins [Fri, 21 Oct 2016 22:21:07 +0000 (15:21 -0700)]
ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2

Enable VDD_GFX CPR aging adjustments for MSMCOBALTv2 parts with
CPR fusing revision greater than or equal to 2.  At most 15 mV
can be added onto the open-loop and closed-loop voltage as a
result of an aging measurement at runtime.  This maximum 15 mV
adjustment was previously accounted for in the fixed open-loop
and closed-loop voltage adjustments.  Therefore, remove 15 mV
from both the open-loop and closed-loop voltage adjustments for
all corners.

Change-Id: I44487bfcb4e21d76948cd836ad2dae18bc3d22f4
CRs-Fixed: 1081084
Signed-off-by: David Collins <collinsd@codeaurora.org>
7 years agoASoC: msmcobalt: Add independent clock support on codec
Sudheer Papothi [Fri, 21 Oct 2016 22:15:35 +0000 (03:45 +0530)]
ASoC: msmcobalt: Add independent clock support on codec

WCD9335 codec has single master clock supply widget for both
playback and recording paths. Adding separate clock supply
for playback and recording paths will help handle low power
audio recording usecases without affecting playback usecases.
Change is to enable separate clock supply widgets for playback
and recording paths.

CRs-Fixed: 1022917
Change-Id: Ia02a1ffed911498dd6eb5df246e6da68a7802a92
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
7 years agoASoC: wcd934x: Update CPR register defaults
Phani Kumar Uppalapati [Thu, 6 Oct 2016 23:25:36 +0000 (16:25 -0700)]
ASoC: wcd934x: Update CPR register defaults

Update wcd934x codec register defaults to enable
CPR hardware block for reducing the power consumption
in rock bottom sleep mode.

CRs-Fixed: 1081673
Change-Id: Ib75655d52e5d85d649ebfcb971caf3f5b0b6dc80
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
7 years agodrivers: mfd: Mark CPR bank registers as volatile
Phani Kumar Uppalapati [Mon, 24 Oct 2016 21:46:54 +0000 (14:46 -0700)]
drivers: mfd: Mark CPR bank registers as volatile

Mark CPR bank registers as volatile so that
writes to these registers get updated correctly
in hardware.

CRs-Fixed: 1081673
Change-Id: I92d0511b4e9912dfa346378784d811f6606df205
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
7 years agoqpnp-fg-gen3: Fix storing nominal capacity to actual capacity
Subbaraman Narayanamurthy [Mon, 24 Oct 2016 21:05:44 +0000 (14:05 -0700)]
qpnp-fg-gen3: Fix storing nominal capacity to actual capacity

Currently, nominal capacity is stored back to the actual capacity
only when the actual capacity is non-zero. However, that can be
true when the battery is inserted for the first time. This makes
the actual capacity to be stored only when a capacity learning
cycle completes. Other algorithms like to use actual capacity
before that. Fix it.

Change-Id: I346085ec722f491f96181ef1beb383710b441f4b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agosoc: qcom: Use a deferrable timer base for the msm watchdog
Vikram Mulukutla [Fri, 14 Oct 2016 23:13:24 +0000 (16:13 -0700)]
soc: qcom: Use a deferrable timer base for the msm watchdog

It is possible that normal CFS latencies in the presence of
very heavy task load causes timer migration to be delayed
in hotplug paths. This may in turn prevent the watchdog kthread
from waking up, resulting in a bark.

Technically the watchdog is supposed to be a last-resort
failure recovery; even in this stressful hotplug scenario
the device is *usable*, just incredibly slow. It is arguable
that the watchdog should not have fired in this case, and
the petting mechanism should handle this scenario.

Move the timer to a deferrable timer base. We are really not
using the "deferrable" aspect of the timer, but the fact that
we (msm) also changed deferrable timers to run on any CPU.
This underlying change will allow the watchdog timer to be
handled on any CPU.

This completely depends on the fact that we don't have to
pet the watchdog when *all* CPUs go idle, which would
make sense from a power perspective anyway.

Change-Id: Ie389e28ff890a805854f921e4cd491a296a32925
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
7 years agocoresight: tmc: skip tmc read if mem allocaiton failed
Satyajit Desai [Sat, 22 Oct 2016 00:24:48 +0000 (17:24 -0700)]
coresight: tmc: skip tmc read if mem allocaiton failed

Add NULL pointer check to ensure that we do copy to user only
when we were able to allocate memory for ETR.

Change-Id: I09b4bc37617811fd4acd86a7e4f5ef91630675df
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
7 years agosmb-lib: update displaying battery overvoltage in health property
Subbaraman Narayanamurthy [Sat, 22 Oct 2016 00:30:46 +0000 (17:30 -0700)]
smb-lib: update displaying battery overvoltage in health property

Currently, smb2 charger is configured to not end the charging
cycle when battery overvoltage occurs. However, when the battery
overvoltage status is read, it will be displayed through health
property. Improve this by reading the battery voltage and check
whether it is within 40mV headroom above float voltage. If it is
above that threshold then continue with displaying overvoltage
status.

CRs-Fixed: 1079363
Change-Id: I45847f446c91c80a5110d80b59a0ae4b8e2c40e5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoUSB: pd: Fix compilation issues for 32 bit support
Vijayavardhan Vennapusa [Fri, 21 Oct 2016 09:47:12 +0000 (15:17 +0530)]
USB: pd: Fix compilation issues for 32 bit support

Compilation errors are seen from qpnp-pdphy.c and policy_engine.c
drivers, when try to compile for 32 bit support. Hence fix those
errors for 32 bit support getting compiled successfully.

Change-Id: I0c496a73feb83c640f9a135f98ec393d1096b205
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agomsm: vidc: Update log level for power collpase
Praneeth Paladugu [Tue, 11 Oct 2016 23:49:13 +0000 (16:49 -0700)]
msm: vidc: Update log level for power collpase

Update Power collapse log messages to VIDC_PROF to be in
sync with other clock related logs. Today these logs are
at VIDC_DBG and VIDC_INFO which also has lot of other logs.

Change-Id: Id69802df24c4eaf4d8e9bc0c438d250090f9a38f
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
7 years agolpm-levels: Change _WARN_printf to pr_err when residency < 0
Raju P.L.S.S.S.N [Wed, 12 Oct 2016 05:53:55 +0000 (11:23 +0530)]
lpm-levels: Change _WARN_printf to pr_err when residency < 0

Change _WARN_printf to pr_err as former prints stack and
register dump in logs which is not necessary.

Change-Id: Ib0323014017818668a4a634e463f751fd5e9d24a
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
7 years agomdss: display-port: add support for hdcp 2.2
Ajay Singh Parmar [Wed, 17 Aug 2016 19:19:04 +0000 (12:19 -0700)]
mdss: display-port: add support for hdcp 2.2

Add support for HDCP (High-Bandwidth Digital Content Protect)
version 2.2 for DisplayPort. Define interfaces to interact with
Trust Zone and DisplayPort drivers. Hookup with TZ's kernel
module and send-receive HDCP 2.2 messages to-from sink using
DP's aux channel.

Change-Id: Id77e77ee628667dacc7a714c553b5ce5beafa9bb
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agomsm: mdss: dp: parse all sink/link status fields on HPD IRQ
Tatenda Chipeperekwa [Tue, 18 Oct 2016 18:46:13 +0000 (11:46 -0700)]
msm: mdss: dp: parse all sink/link status fields on HPD IRQ

Parse all the sink/link status fields on HPD IRQ. These
fields contain update sink/link status and are needed in
order to determine whether link re-training will be
required. Furthermore, this action is mandatory as per
CTS compliance specification 1.2a.

CRs-Fixed: 1076516
Change-Id: I8c8fef768fa22c1a52f42596e3707e9b0e2c8e4d
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agoARM: dts: msm: add display device to framebuffer on msmcobalt
Tatenda Chipeperekwa [Fri, 14 Oct 2016 20:10:58 +0000 (13:10 -0700)]
ARM: dts: msm: add display device to framebuffer on msmcobalt

Add the display interface device to the framebuffer device to
enable clients that use the sysfs mechanism access to APIs
exposed by the display interface.

CRs-Fixed: 1077559
Change-Id: Ia14939b035a2fb3d964f6f78899dfa2e21b275e8
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agomsm: mdss: fix parsing of external display platform device
Tatenda Chipeperekwa [Fri, 14 Oct 2016 18:22:20 +0000 (11:22 -0700)]
msm: mdss: fix parsing of external display platform device

Fix the parsing of the external display platform device by making
use of the framebuffer and display interface platform devices to
find the correct handle.

CRs-Fixed: 1077559
Change-Id: Ifde6d8e042eb651893a1760bdc942a349bf190b7
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agomsm: mdss: dp: restrict Vx and Px to within allowable range
Tatenda Chipeperekwa [Mon, 3 Oct 2016 22:25:01 +0000 (15:25 -0700)]
msm: mdss: dp: restrict Vx and Px to within allowable range

Restrict the combinations of voltage swing levels and
pre-emaphasis levels to within the allowable range as per
DP v1.3 specification. Furthermore, set the bits to indicate
the sink when the maximum voltage or pre-emaphasis level
supported has been reached.

CRs-Fixed: 1076516
Change-Id: Ibd5ccc5e24248780df70b5ac7ec7a82511abf688
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agomsm: mdss: dp: add support for link re-training
Tatenda Chipeperekwa [Tue, 11 Oct 2016 22:25:22 +0000 (15:25 -0700)]
msm: mdss: dp: add support for link re-training

Add support for link re-training after the main link is already
trained and active. Parse the requested lane count and link
bandwidth from the DPCD when hpd_irq is high, and re-train
the main link once the display, and therefore timing generator,
has been turned off.

CRs-Fixed: 1076516
Change-Id: Ifa1b609c532aa601f30e334e87a768bdda78958d
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agoicnss: Stay awake during recovery
Prashanth Bhatta [Fri, 21 Oct 2016 16:25:02 +0000 (09:25 -0700)]
icnss: Stay awake during recovery

During recovery, there is a chance of suspending if WLAN FW takes a
while to come-up. Stay awake during recovery.

CRs-fixed: 1081218
Change-Id: I57c54da77500e38fcace367f70befed741e0e70d
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
7 years agoMerge "icnss: Unregister the driver operations when probe fails"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:59 +0000 (11:26 -0700)]
Merge "icnss: Unregister the driver operations when probe fails"

7 years agoMerge "smb1351-charger: Fix possible Null pointer dereference"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:58 +0000 (11:26 -0700)]
Merge "smb1351-charger: Fix possible Null pointer dereference"

7 years agoMerge "ARM: dts: msm: Update VDD_APC CPR RO scaling factors for msmcobalt v2"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:57 +0000 (11:26 -0700)]
Merge "ARM: dts: msm: Update VDD_APC CPR RO scaling factors for msmcobalt v2"

7 years agoMerge "qpnp-fg-gen3: Backup the learned capacity during capacity learning"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:57 +0000 (11:26 -0700)]
Merge "qpnp-fg-gen3: Backup the learned capacity during capacity learning"

7 years agoMerge "soc: qcom: glink_spi_xprt: Add support for WDSP SSR"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:56 +0000 (11:26 -0700)]
Merge "soc: qcom: glink_spi_xprt: Add support for WDSP SSR"

7 years agoMerge "input: touchscreen: Add force fw_update support via sysfs entry"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:55 +0000 (11:26 -0700)]
Merge "input: touchscreen: Add force fw_update support via sysfs entry"

7 years agoMerge "input: touchscreen: Add debugfs entries for GTP controller"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:54 +0000 (11:26 -0700)]
Merge "input: touchscreen: Add debugfs entries for GTP controller"

7 years agoMerge "msm: kgsl: Remove use of uninitialized variable"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:54 +0000 (11:26 -0700)]
Merge "msm: kgsl: Remove use of uninitialized variable"

7 years agoMerge "iommu: arm-smmu: Fix a possible null pointer dereference"
Linux Build Service Account [Sat, 22 Oct 2016 07:02:23 +0000 (00:02 -0700)]
Merge "iommu: arm-smmu: Fix a possible null pointer dereference"

7 years agoMerge "qpnp-fg-gen3: update the FCC unit while notifying charger"
Linux Build Service Account [Sat, 22 Oct 2016 07:02:22 +0000 (00:02 -0700)]
Merge "qpnp-fg-gen3: update the FCC unit while notifying charger"

7 years agoMerge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4
Runmin Wang [Sat, 22 Oct 2016 01:00:55 +0000 (18:00 -0700)]
Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4

* msm-4.4/tmp-510d0a3f:
  Linux 4.4.11
  nf_conntrack: avoid kernel pointer value leak in slab name
  drm/radeon: fix DP link training issue with second 4K monitor
  drm/i915/bdw: Add missing delay during L3 SQC credit programming
  drm/i915: Bail out of pipe config compute loop on LPT
  drm/radeon: fix PLL sharing on DCE6.1 (v2)
  Revert "[media] videobuf2-v4l2: Verify planes array in buffer dequeueing"
  Input: max8997-haptic - fix NULL pointer dereference
  get_rock_ridge_filename(): handle malformed NM entries
  tools lib traceevent: Do not reassign parg after collapse_tree()
  qla1280: Don't allocate 512kb of host tags
  atomic_open(): fix the handling of create_error
  regulator: axp20x: Fix axp22x ldo_io voltage ranges
  regulator: s2mps11: Fix invalid selector mask and voltages for buck9
  workqueue: fix rebind bound workers warning
  ARM: dts: at91: sam9x5: Fix the memory range assigned to the PMC
  vfs: rename: check backing inode being equal
  vfs: add vfs_select_inode() helper
  perf/core: Disable the event on a truncated AUX record
  regmap: spmi: Fix regmap_spmi_ext_read in multi-byte case
  pinctrl: at91-pio4: fix pull-up/down logic
  spi: spi-ti-qspi: Handle truncated frames properly
  spi: spi-ti-qspi: Fix FLEN and WLEN settings if bits_per_word is overridden
  spi: pxa2xx: Do not detect number of enabled chip selects on Intel SPT
  ALSA: hda - Fix broken reconfig
  ALSA: hda - Fix white noise on Asus UX501VW headset
  ALSA: hda - Fix subwoofer pin on ASUS N751 and N551
  ALSA: usb-audio: Yet another Phoneix Audio device quirk
  ALSA: usb-audio: Quirk for yet another Phoenix Audio devices (v2)
  crypto: testmgr - Use kmalloc memory for RSA input
  crypto: hash - Fix page length clamping in hash walk
  crypto: qat - fix invalid pf2vf_resp_wq logic
  s390/mm: fix asce_bits handling with dynamic pagetable levels
  zsmalloc: fix zs_can_compact() integer overflow
  ocfs2: fix posix_acl_create deadlock
  ocfs2: revert using ocfs2_acl_chmod to avoid inode cluster lock hang
  net/route: enforce hoplimit max value
  tcp: refresh skb timestamp at retransmit time
  net: thunderx: avoid exposing kernel stack
  net: fix a kernel infoleak in x25 module
  uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h MIME-Version: 1.0
  bridge: fix igmp / mld query parsing
  net: bridge: fix old ioctl unlocked net device walk
  VSOCK: do not disconnect socket when peer has shutdown SEND only
  net/mlx4_en: Fix endianness bug in IPV6 csum calculation
  net: fix infoleak in rtnetlink
  net: fix infoleak in llc
  net: fec: only clear a queue's work bit if the queue was emptied
  netem: Segment GSO packets on enqueue
  sch_dsmark: update backlog as well
  sch_htb: update backlog as well
  net_sched: update hierarchical backlog too
  net_sched: introduce qdisc_replace() helper
  gre: do not pull header in ICMP error processing
  net: Implement net_dbg_ratelimited() for CONFIG_DYNAMIC_DEBUG case
  samples/bpf: fix trace_output example
  bpf: fix check_map_func_compatibility logic
  bpf: fix refcnt overflow
  bpf: fix double-fdput in replace_map_fd_with_map_ptr()
  net/mlx4_en: fix spurious timestamping callbacks
  ipv4/fib: don't warn when primary address is missing if in_dev is dead
  net/mlx5e: Fix minimum MTU
  net/mlx5e: Device's mtu field is u16 and not int
  openvswitch: use flow protocol when recalculating ipv6 checksums
  atl2: Disable unimplemented scatter/gather feature
  vlan: pull on __vlan_insert_tag error path and fix csum correction
  net: use skb_postpush_rcsum instead of own implementations
  cdc_mbim: apply "NDP to end" quirk to all Huawei devices
  bpf/verifier: reject invalid LD_ABS | BPF_DW instruction
  net: sched: do not requeue a NULL skb
  packet: fix heap info leak in PACKET_DIAG_MCLIST sock_diag interface
  route: do not cache fib route info on local routes with oif
  decnet: Do not build routes to devices without decnet private data.
  parisc: Use generic extable search and sort routines
  arm64: kasan: Use actual memory node when populating the kernel image shadow
  arm64: mm: treat memstart_addr as a signed quantity
  arm64: lse: deal with clobbered IP registers after branch via PLT
  arm64: mm: check at build time that PAGE_OFFSET divides the VA space evenly
  arm64: kasan: Fix zero shadow mapping overriding kernel image shadow
  arm64: consistently use p?d_set_huge
  arm64: fix KASLR boot-time I-cache maintenance
  arm64: hugetlb: partial revert of 66b3923a1a0f
  arm64: make irq_stack_ptr more robust
  arm64: efi: invoke EFI_RNG_PROTOCOL to supply KASLR randomness
  efi: stub: use high allocation for converted command line
  efi: stub: add implementation of efi_random_alloc()
  efi: stub: implement efi_get_random_bytes() based on EFI_RNG_PROTOCOL
  arm64: kaslr: randomize the linear region
  arm64: add support for kernel ASLR
  arm64: add support for building vmlinux as a relocatable PIE binary
  arm64: switch to relative exception tables
  extable: add support for relative extables to search and sort routines
  scripts/sortextable: add support for ET_DYN binaries
  arm64: futex.h: Add missing PAN toggling
  arm64: make asm/elf.h available to asm files
  arm64: avoid dynamic relocations in early boot code
  arm64: avoid R_AARCH64_ABS64 relocations for Image header fields
  arm64: add support for module PLTs
  arm64: move brk immediate argument definitions to separate header
  arm64: mm: use bit ops rather than arithmetic in pa/va translations
  arm64: mm: only perform memstart_addr sanity check if DEBUG_VM
  arm64: User die() instead of panic() in do_page_fault()
  arm64: allow kernel Image to be loaded anywhere in physical memory
  arm64: defer __va translation of initrd_start and initrd_end
  arm64: move kernel image to base of vmalloc area
  arm64: kvm: deal with kernel symbols outside of linear mapping
  arm64: decouple early fixmap init from linear mapping
  arm64: pgtable: implement static [pte|pmd|pud]_offset variants
  arm64: introduce KIMAGE_VADDR as the virtual base of the kernel region
  arm64: add support for ioremap() block mappings
  arm64: prevent potential circular header dependencies in asm/bug.h
  of/fdt: factor out assignment of initrd_start/initrd_end
  of/fdt: make memblock minimum physical address arch configurable
  arm64: Remove the get_thread_info() function
  arm64: kernel: Don't toggle PAN on systems with UAO
  arm64: cpufeature: Test 'matches' pointer to find the end of the list
  arm64: kernel: Add support for User Access Override
  arm64: add ARMv8.2 id_aa64mmfr2 boiler plate
  arm64: cpufeature: Change read_cpuid() to use sysreg's mrs_s macro
  arm64: use local label prefixes for __reg_num symbols
  arm64: vdso: Mark vDSO code as read-only
  arm64: ubsan: select ARCH_HAS_UBSAN_SANITIZE_ALL
  arm64: ptdump: Indicate whether memory should be faulting
  arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC
  arm64: Drop alloc function from create_mapping
  arm64: prefetch: add missing #include for spin_lock_prefetch
  arm64: lib: patch in prfm for copy_page if requested
  arm64: lib: improve copy_page to deal with 128 bytes at a time
  arm64: prefetch: add alternative pattern for CPUs without a prefetcher
  arm64: prefetch: don't provide spin_lock_prefetch with LSE
  arm64: allow vmalloc regions to be set with set_memory_*
  arm64: kernel: implement ACPI parking protocol
  arm64: mm: create new fine-grained mappings at boot
  arm64: ensure _stext and _etext are page-aligned
  arm64: mm: allow passing a pgdir to alloc_init_*
  arm64: mm: allocate pagetables anywhere
  arm64: mm: use fixmap when creating page tables
  arm64: mm: add functions to walk tables in fixmap
  arm64: mm: add __{pud,pgd}_populate
  arm64: mm: avoid redundant __pa(__va(x))
  arm64: mm: add functions to walk page tables by PA
  arm64: mm: move pte_* macros
  arm64: kasan: avoid TLB conflicts
  arm64: mm: add code to safely replace TTBR1_EL1
  arm64: add function to install the idmap
  arm64: unmap idmap earlier
  arm64: unify idmap removal
  arm64: mm: place empty_zero_page in bss
  arm64: mm: specialise pagetable allocators
  asm-generic: Fix local variable shadow in __set_fixmap_offset
  Eliminate the .eh_frame sections from the aarch64 vmlinux and kernel modules
  arm64: Fix an enum typo in mm/dump.c
  arm64: kasan: ensure that the KASAN zero page is mapped read-only
  arch/arm64/include/asm/pgtable.h: add pmd_mkclean for THP
  arm64: hide __efistub_ aliases from kallsyms
  Linux 4.4.10
  drm/i915/skl: Fix DMC load on Skylake J0 and K0
  lib/test-string_helpers.c: fix and improve string_get_size() tests
  ACPI / processor: Request native thermal interrupt handling via _OSC
  drm/i915: Fake HDMI live status
  drm/i915: Make RPS EI/thresholds multiple of 25 on SNB-BDW
  drm/i915: Fix eDP low vswing for Broadwell
  drm/i915/ddi: Fix eDP VDD handling during booting and suspend/resume
  drm/radeon: make sure vertical front porch is at least 1
  iio: ak8975: fix maybe-uninitialized warning
  iio: ak8975: Fix NULL pointer exception on early interrupt
  drm/amdgpu: set metadata pointer to NULL after freeing.
  drm/amdgpu: make sure vertical front porch is at least 1
  gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading
  nvmem: mxs-ocotp: fix buffer overflow in read
  USB: serial: cp210x: add Straizona Focusers device ids
  USB: serial: cp210x: add ID for Link ECU
  ata: ahci-platform: Add ports-implemented DT bindings.
  libahci: save port map for forced port map
  powerpc: Fix bad inline asm constraint in create_zero_mask()
  ACPICA: Dispatcher: Update thread ID for recursive method calls
  x86/sysfb_efi: Fix valid BAR address range check
  ARC: Add missing io barriers to io{read,write}{16,32}be()
  ARM: cpuidle: Pass on arm_cpuidle_suspend()'s return value
  propogate_mnt: Handle the first propogated copy being a slave
  fs/pnode.c: treat zero mnt_group_id-s as unequal
  x86/tsc: Read all ratio bits from MSR_PLATFORM_INFO
  MAINTAINERS: Remove asterisk from EFI directory names
  writeback: Fix performance regression in wb_over_bg_thresh()
  batman-adv: Reduce refcnt of removed router when updating route
  batman-adv: Fix broadcast/ogm queue limit on a removed interface
  batman-adv: Check skb size before using encapsulated ETH+VLAN header
  batman-adv: fix DAT candidate selection (must use vid)
  mm: update min_free_kbytes from khugepaged after core initialization
  proc: prevent accessing /proc/<PID>/environ until it's ready
  Input: zforce_ts - fix dual touch recognition
  HID: Fix boot delay for Creative SB Omni Surround 5.1 with quirk
  HID: wacom: Add support for DTK-1651
  xen/evtchn: fix ring resize when binding new events
  xen/balloon: Fix crash when ballooning on x86 32 bit PAE
  xen: Fix page <-> pfn conversion on 32 bit systems
  ARM: SoCFPGA: Fix secondary CPU startup in thumb2 kernel
  ARM: EXYNOS: Properly skip unitialized parent clock in power domain on
  mm/zswap: provide unique zpool name
  mm, cma: prevent nr_isolated_* counters from going negative
  Minimal fix-up of bad hashing behavior of hash_64()
  MD: make bio mergeable
  tracing: Don't display trigger file for events that can't be enabled
  mac80211: fix statistics leak if dev_alloc_name() fails
  ath9k: ar5008_hw_cmn_spur_mitigate: add missing mask_m & mask_p initialisation
  lpfc: fix misleading indentation
  clk: qcom: msm8960: Fix ce3_src register offset
  clk: versatile: sp810: support reentrance
  clk: qcom: msm8960: fix ce3_core clk enable register
  clk: meson: Fix meson_clk_register_clks() signature type mismatch
  clk: rockchip: free memory in error cases when registering clock branches
  soc: rockchip: power-domain: fix err handle while probing
  clk-divider: make sure read-only dividers do not write to their register
  CNS3xxx: Fix PCI cns3xxx_write_config()
  mwifiex: fix corner case association failure
  ata: ahci_xgene: dereferencing uninitialized pointer in probe
  nbd: ratelimit error msgs after socket close
  mfd: intel-lpss: Remove clock tree on error path
  ipvs: drop first packet to redirect conntrack
  ipvs: correct initial offset of Call-ID header search in SIP persistence engine
  ipvs: handle ip_vs_fill_iph_skb_off failure
  RDMA/iw_cxgb4: Fix bar2 virt addr calculation for T4 chips
  Revert: "powerpc/tm: Check for already reclaimed tasks"
  arm64: head.S: use memset to clear BSS
  efi: stub: define DISABLE_BRANCH_PROFILING for all architectures
  arm64: entry: remove pointless SPSR mode check
  arm64: mm: move pgd_cache initialisation to pgtable_cache_init
  arm64: module: avoid undefined shift behavior in reloc_data()
  arm64: module: fix relocation of movz instruction with negative immediate
  arm64: traps: address fallout from printk -> pr_* conversion
  arm64: ftrace: fix a stack tracer's output under function graph tracer
  arm64: pass a task parameter to unwind_frame()
  arm64: ftrace: modify a stack frame in a safe way
  arm64: remove irq_count and do_softirq_own_stack()
  arm64: hugetlb: add support for PTE contiguous bit
  arm64: Use PoU cache instr for I/D coherency
  arm64: Defer dcache flush in __cpu_copy_user_page
  arm64: reduce stack use in irq_handler
  arm64: Documentation: add list of software workarounds for errata
  arm64: mm: place __cpu_setup in .text
  arm64: cmpxchg: Don't incldue linux/mmdebug.h
  arm64: mm: fold alternatives into .init
  arm64: Remove redundant padding from linker script
  arm64: mm: remove pointless PAGE_MASKing
  arm64: don't call C code with el0's fp register
  arm64: when walking onto the task stack, check sp & fp are in current->stack
  arm64: Add this_cpu_ptr() assembler macro for use in entry.S
  arm64: irq: fix walking from irq stack to task stack
  arm64: Add do_softirq_own_stack() and enable irq_stacks
  arm64: Modify stack trace and dump for use with irq_stack
  arm64: Store struct thread_info in sp_el0
  arm64: Add trace_hardirqs_off annotation in ret_to_user
  arm64: ftrace: fix the comments for ftrace_modify_code
  arm64: ftrace: stop using kstop_machine to enable/disable tracing
  arm64: spinlock: serialise spin_unlock_wait against concurrent lockers
  arm64: enable HAVE_IRQ_TIME_ACCOUNTING
  arm64: fix COMPAT_SHMLBA definition for large pages
  arm64: add __init/__initdata section marker to some functions/variables
  arm64: pgtable: implement pte_accessible()
  arm64: mm: allow sections for unaligned bases
  arm64: mm: detect bad __create_mapping uses
  Linux 4.4.9
  extcon: max77843: Use correct size for reading the interrupt register
  stm class: Select CONFIG_SRCU
  megaraid_sas: add missing curly braces in ioctl handler
  sunrpc/cache: drop reference when sunrpc_cache_pipe_upcall() detects a race
  thermal: rockchip: fix a impossible condition caused by the warning
  unbreak allmodconfig KCONFIG_ALLCONFIG=...
  jme: Fix device PM wakeup API usage
  jme: Do not enable NIC WoL functions on S0
  bus: imx-weim: Take the 'status' property value into account
  ARM: dts: pxa: fix dma engine node to pxa3xx-nand
  ARM: dts: armada-375: use armada-370-sata for SATA
  ARM: EXYNOS: select THERMAL_OF
  ARM: prima2: always enable reset controller
  ARM: OMAP3: Add cpuidle parameters table for omap3430
  ext4: fix races of writeback with punch hole and zero range
  ext4: fix races between buffered IO and collapse / insert range
  ext4: move unlocked dio protection from ext4_alloc_file_blocks()
  ext4: fix races between page faults and hole punching
  perf stat: Document --detailed option
  perf tools: handle spaces in file names obtained from /proc/pid/maps
  perf hists browser: Only offer symbol scripting when a symbol is under the cursor
  mtd: nand: Drop mtd.owner requirement in nand_scan
  mtd: brcmnand: Fix v7.1 register offsets
  mtd: spi-nor: remove micron_quad_enable()
  serial: sh-sci: Remove cpufreq notifier to fix crash/deadlock
  ext4: fix NULL pointer dereference in ext4_mark_inode_dirty()
  x86/mm/kmmio: Fix mmiotrace for hugepages
  perf evlist: Reference count the cpu and thread maps at set_maps()
  drivers/misc/ad525x_dpot: AD5274 fix RDAC read back errors
  rtc: max77686: Properly handle regmap_irq_get_virq() error code
  rtc: rx8025: remove rv8803 id
  rtc: ds1685: passing bogus values to irq_restore
  rtc: vr41xx: Wire up alarm_irq_enable
  rtc: hym8563: fix invalid year calculation
  PM / Domains: Fix removal of a subdomain
  PM / OPP: Initialize u_volt_min/max to a valid value
  misc: mic/scif: fix wrap around tests
  misc/bmp085: Enable building as a module
  lib/mpi: Endianness fix
  fbdev: da8xx-fb: fix videomodes of lcd panels
  scsi_dh: force modular build if SCSI is a module
  paride: make 'verbose' parameter an 'int' again
  regulator: s5m8767: fix get_register() error handling
  irqchip/mxs: Fix error check of of_io_request_and_map()
  irqchip/sunxi-nmi: Fix error check of of_io_request_and_map()
  spi/rockchip: Make sure spi clk is on in rockchip_spi_set_cs
  locking/mcs: Fix mcs_spin_lock() ordering
  regulator: core: Fix nested locking of supplies
  regulator: core: Ensure we lock all regulators
  regulator: core: fix regulator_lock_supply regression
  Revert "regulator: core: Fix nested locking of supplies"
  videobuf2-v4l2: Verify planes array in buffer dequeueing
  videobuf2-core: Check user space planes array in dqbuf
  USB: usbip: fix potential out-of-bounds write
  cgroup: make sure a parent css isn't freed before its children
  mm/hwpoison: fix wrong num_poisoned_pages accounting
  mm: vmscan: reclaim highmem zone if buffer_heads is over limit
  numa: fix /proc/<pid>/numa_maps for THP
  mm/huge_memory: replace VM_NO_THP VM_BUG_ON with actual VMA check
  memcg: relocate charge moving from ->attach to ->post_attach
  cgroup, cpuset: replace cpuset_post_attach_flush() with cgroup_subsys->post_attach callback
  slub: clean up code for kmem cgroup support to kmem_cache_free_bulk
  workqueue: fix ghost PENDING flag while doing MQ IO
  x86/apic: Handle zero vector gracefully in clear_vector_irq()
  efi: Expose non-blocking set_variable() wrapper to efivars
  efi: Fix out-of-bounds read in variable_matches()
  IB/security: Restrict use of the write() interface
  IB/mlx5: Expose correct max_sge_rd limit
  cxl: Keep IRQ mappings on context teardown
  v4l2-dv-timings.h: fix polarity for 4k formats
  vb2-memops: Fix over allocation of frame vectors
  ASoC: rt5640: Correct the digital interface data select
  ASoC: dapm: Make sure we have a card when displaying component widgets
  ASoC: ssm4567: Reset device before regcache_sync()
  ASoC: s3c24xx: use const snd_soc_component_driver pointer
  EDAC: i7core, sb_edac: Don't return NOTIFY_BAD from mce_decoder callback
  toshiba_acpi: Fix regression caused by hotkey enabling value
  i2c: exynos5: Fix possible ABBA deadlock by keeping I2C clock prepared
  i2c: cpm: Fix build break due to incompatible pointer types
  perf intel-pt: Fix segfault tracing transactions
  drm/i915: Use fw_domains_put_with_fifo() on HSW
  drm/i915: Fixup the free space logic in ring_prepare
  drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()
  drm/i915: skl_update_scaler() wants a rotation bitmask instead of bit number
  drm/i915: Cleanup phys status page too
  pwm: brcmstb: Fix check of devm_ioremap_resource() return code
  drm/dp/mst: Get validated port ref in drm_dp_update_payload_part1()
  drm/dp/mst: Restore primary hub guid on resume
  drm/dp/mst: Validate port in drm_dp_payload_send_msg()
  drm/nouveau/gr/gf100: select a stream master to fixup tfb offset queries
  drm: Loongson-3 doesn't fully support wc memory
  drm/radeon: fix vertical bars appear on monitor (v2)
  drm/radeon: forbid mapping of userptr bo through radeon device file
  drm/radeon: fix initial connector audio value
  drm/radeon: add a quirk for a XFX R9 270X
  drm/amdgpu: fix regression on CIK (v2)
  amdgpu/uvd: add uvd fw version for amdgpu
  drm/amdgpu: bump the afmt limit for CZ, ST, Polaris
  drm/amdgpu: use defines for CRTCs and AMFT blocks
  drm/amdgpu: when suspending, if uvd/vce was running. need to cancel delay work.
  iommu/dma: Restore scatterlist offsets correctly
  iommu/amd: Fix checking of pci dma aliases
  pinctrl: single: Fix pcs_parse_bits_in_pinctrl_entry to use __ffs than ffs
  pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce
  xen kconfig: don't "select INPUT_XEN_KBDDEV_FRONTEND"
  Input: pmic8xxx-pwrkey - fix algorithm for converting trigger delay
  Input: gtco - fix crash on detecting device without endpoints
  netlink: don't send NETLINK_URELEASE for unbound sockets
  nl80211: check netlink protocol in socket release notification
  powerpc: Update TM user feature bits in scan_features()
  powerpc: Update cpu_user_features2 in scan_features()
  powerpc: scan_features() updates incorrect bits for REAL_LE
  crypto: talitos - fix AEAD tcrypt tests
  crypto: talitos - fix crash in talitos_cra_init()
  crypto: sha1-mb - use corrcet pointer while completing jobs
  crypto: ccp - Prevent information leakage on export
  iwlwifi: mvm: fix memory leak in paging
  iwlwifi: pcie: lower the debug level for RSA semaphore access
  s390/pci: add extra padding to function measurement block
  cpufreq: intel_pstate: Fix processing for turbo activation ratio
  Revert "drm/amdgpu: disable runtime pm on PX laptops without dGPU power control"
  Revert "drm/radeon: disable runtime pm on PX laptops without dGPU power control"
  drm/i915: Fix race condition in intel_dp_destroy_mst_connector()
  drm/qxl: fix cursor position with non-zero hotspot
  drm/nouveau/core: use vzalloc for allocating ramht
  futex: Acknowledge a new waiter in counter before plist
  futex: Handle unlock_pi race gracefully
  asm-generic/futex: Re-enable preemption in futex_atomic_cmpxchg_inatomic()
  ALSA: hda - Add dock support for ThinkPad X260
  ALSA: pcxhr: Fix missing mutex unlock
  ALSA: hda - add PCI ID for Intel Broxton-T
  ALSA: hda - Keep powering up ADCs on Cirrus codecs
  ALSA: hda/realtek - Add ALC3234 headset mode for Optiplex 9020m
  ALSA: hda - Don't trust the reported actual power state
  x86 EDAC, sb_edac.c: Repair damage introduced when "fixing" channel address
  x86/mm/xen: Suppress hugetlbfs in PV guests
  arm64: Update PTE_RDONLY in set_pte_at() for PROT_NONE permission
  arm64: Honour !PTE_WRITE in set_pte_at() for kernel mappings
  sched/cgroup: Fix/cleanup cgroup teardown/init
  dmaengine: pxa_dma: fix the maximum requestor line
  dmaengine: hsu: correct use of channel status register
  dmaengine: dw: fix master selection
  debugfs: Make automount point inodes permanently empty
  lib: lz4: fixed zram with lz4 on big endian machines
  dm cache metadata: fix cmd_read_lock() acquiring write lock
  dm cache metadata: fix READ_LOCK macros and cleanup WRITE_LOCK macros
  usb: gadget: f_fs: Fix use-after-free
  usb: hcd: out of bounds access in for_each_companion
  xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers
  usb: xhci: fix wild pointers in xhci_mem_cleanup
  xhci: resume USB 3 roothub first
  usb: xhci: applying XHCI_PME_STUCK_QUIRK to Intel BXT B0 host
  assoc_array: don't call compare_object() on a node
  ARM: OMAP2+: hwmod: Fix updating of sysconfig register
  ARM: OMAP2: Fix up interconnect barrier initialization for DRA7
  ARM: mvebu: Correct unit address for linksys
  ARM: dts: AM43x-epos: Fix clk parent for synctimer
  KVM: arm/arm64: Handle forward time correction gracefully
  kvm: x86: do not leak guest xcr0 into host interrupt handlers
  x86/mce: Avoid using object after free in genpool
  block: loop: fix filesystem corruption in case of aio/dio
  block: partition: initialize percpuref before sending out KOBJ_ADD

Conflicts:
arch/arm64/Kconfig
arch/arm64/include/asm/cputype.h
arch/arm64/include/asm/hardirq.h
arch/arm64/include/asm/irq.h
arch/arm64/include/asm/mmu_context.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpuinfo.c
arch/arm64/kernel/setup.c
arch/arm64/kernel/smp.c
arch/arm64/kernel/stacktrace.c
arch/arm64/mm/init.c
arch/arm64/mm/mmu.c
arch/arm64/mm/pageattr.c
mm/memcontrol.c

CRs-Fixed: 1069136
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Change-Id: Ie9a16debd0578331a66947376f3b787a7bb54d65

7 years agoqpnp-fg-gen3: fix the error in showing battery temperature
Subbaraman Narayanamurthy [Fri, 21 Oct 2016 23:55:09 +0000 (16:55 -0700)]
qpnp-fg-gen3: fix the error in showing battery temperature

Battery temperature can take negative values. FG driver reads it
as an unsigned value and hence the negative reading is treated as
a huge integer value. Fix it.

CRs-Fixed: 1081146
Change-Id: I63e8863efb91af891dbcbfc070dfdcd833ea3ad4
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Change pinctrl settings for BLSP1 UART3 for msmcobalt"
Linux Build Service Account [Sat, 22 Oct 2016 00:16:06 +0000 (17:16 -0700)]
Merge "ARM: dts: msm: Change pinctrl settings for BLSP1 UART3 for msmcobalt"

7 years agoMerge "msm: gsi: add command stats"
Linux Build Service Account [Sat, 22 Oct 2016 00:16:05 +0000 (17:16 -0700)]
Merge "msm: gsi: add command stats"

7 years agoMerge "defconfig: Enable generic cpu cooling device for msmcobalt"
Linux Build Service Account [Sat, 22 Oct 2016 00:16:04 +0000 (17:16 -0700)]
Merge "defconfig: Enable generic cpu cooling device for msmcobalt"

7 years agoMerge "driver: thermal: msm_lmh_dcvs: Match the hardware frequency to OPP"
Linux Build Service Account [Sat, 22 Oct 2016 00:16:03 +0000 (17:16 -0700)]
Merge "driver: thermal: msm_lmh_dcvs: Match the hardware frequency to OPP"

7 years agoMerge "driver: thermal: msm_lmh_dcvs: Register LMH DCVS cooling device"
Linux Build Service Account [Sat, 22 Oct 2016 00:16:03 +0000 (17:16 -0700)]
Merge "driver: thermal: msm_lmh_dcvs: Register LMH DCVS cooling device"

7 years agoARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms
Subbaraman Narayanamurthy [Wed, 19 Oct 2016 22:48:13 +0000 (15:48 -0700)]
ARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms

WLED module supports 4 sinks but the display panel used in
msmcobalt CDP, MTP and QRD platforms needs only 2 sinks.
Configure it correctly to reduce the power consumption and
to ensure proper operation.

CRs-Fixed: 1031663
Change-Id: I75507a6f7ef409b5135afa1a913f2bee501b7b12
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2
David Collins [Fri, 14 Oct 2016 22:45:24 +0000 (15:45 -0700)]
ARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2

Update the VDD_GFX CPR regulator device RO scaling factor values
in order to match the latest hardware guidelines determined via
characterization.

Change-Id: I01f3b0d99e711a26358f9cc0bc1692a60cc74f64
CRs-Fixed: 1080409
Signed-off-by: David Collins <collinsd@codeaurora.org>
7 years agoASoC: wcd9335: Fix register sequence for CPE configuration
Bhalchandra Gajare [Thu, 23 Jun 2016 04:06:48 +0000 (21:06 -0700)]
ASoC: wcd9335: Fix register sequence for CPE configuration

Currently during disabling the EC PP path (Echo cancellation Ping
Pong), the driver is also disabling other data routing controls in
the register. This is causing existing voice activation use-case
using CPE (Codec Processing Engine) to fail as there is no valid
data that is sent to the processing engine. Fix the register sequence
to avoid this issue.

CRs-fixed: 1034169
Change-Id: I2e2b50aeb770ca523cf70e2c0768e38ee56e39eb
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
7 years agoASoC: msmcobalt: Add CPE ECPP DAI instance for ECPP path
Shiv Maliyappanahalli [Wed, 27 Jul 2016 20:59:36 +0000 (13:59 -0700)]
ASoC: msmcobalt: Add CPE ECPP DAI instance for ECPP path

Add support for CPE(Codec Processing Engine) second voice
wakeup session using ECPP(Echo cancellation Ping-Pong) hardware
path. This allows to enable two concurrent CPE sessions, one
on MAD(Mic Always-on Detection) and the other on ECPP.

Change-Id: I280057b17188757f586562f45f32ecf28595e045
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
7 years agoARM: msm: dts: add second CPE session for msmcobalt
Shiv Maliyappanahalli [Wed, 27 Jul 2016 20:49:18 +0000 (13:49 -0700)]
ARM: msm: dts: add second CPE session for msmcobalt

Add additional platform dai for CPE (Codec Processing Engine)
to handle two CPE sessions simultaneously. Change adds another
instance of platform driver.

Change-Id: Id5eee88e87e1e5d68ce34f43b4c85c6b48886b82
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
7 years agoARM: dts: msm: Change pinctrl settings for BLSP1 UART3 for msmcobalt
Girish Mahadevan [Fri, 7 Oct 2016 18:28:23 +0000 (12:28 -0600)]
ARM: dts: msm: Change pinctrl settings for BLSP1 UART3 for msmcobalt

Modify the sleep state settings for BLSP1 UART3 pins to optimize power
when the usecase isn't in play.

Change-Id: I1405a8561b1ecb2e3da87ed8b26fb087433a1c11
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
7 years agomsm: gsi: add command stats
Skylar Chang [Fri, 21 Oct 2016 17:15:04 +0000 (10:15 -0700)]
msm: gsi: add command stats

Add debug statistics for GSI commands in order to
improve debug capabilities

Change-Id: Iee80fd2bf4b549665a12791009f0cf5ecc7653b9
CRs-Fixed: 1079245
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agodefconfig: Enable generic cpu cooling device for msmcobalt
Ram Chandrasekar [Wed, 19 Oct 2016 17:35:17 +0000 (11:35 -0600)]
defconfig: Enable generic cpu cooling device for msmcobalt

Enable generic cpu cooling device for msmcobalt.

Change-Id: If042fdae3102390dca6d5b1e257b38504b14320f
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agodriver: thermal: msm_lmh_dcvs: Match the hardware frequency to OPP
Ram Chandrasekar [Wed, 7 Sep 2016 01:25:18 +0000 (19:25 -0600)]
driver: thermal: msm_lmh_dcvs: Match the hardware frequency to OPP

The hardware frequency that LMH DCVSh hardware has requested may not
match an actual frequency of CPU. The OSM hardware will aggregate and
match this request to a nearest frequency mentioned in the clock plan.
The current lmh dcvs driver exposes this request without matching to
a frequency value in the OPP table.

In order to reflect the final mitigated frequency, match the mitigation
frequency request from LMH DCVSh to a nearest CPU frequency floor
in OPP table.

Change-Id: Iffc380898eac33f6c30c3808eb38d7bb499f5769
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agodriver: thermal: msm_lmh_dcvs: Register LMH DCVS cooling device
Ram Chandrasekar [Wed, 19 Oct 2016 17:01:43 +0000 (11:01 -0600)]
driver: thermal: msm_lmh_dcvs: Register LMH DCVS cooling device

The LMH DCVS hardware along with different monitoring algorithms, also
provides support for HLOS to vote for a CPU mitigation request. The
hardware will aggregate this request and will place the aggregated
mitigation request to OSM. The generic CPU cooling device doesn't take
advantage of this platform CPU mitigation feature.

Register the LMH DCVSh device as a platform cpu cooling device. When
registered, thermal CPU cooling device will place the mitigation request
with the LMH DCVSh hardware bypassing the cpufreq software. This will
allow faster mitigation action.

Also, thermal core framework exposes standard sysfs interfaces for
querying the cooling device state. Using this sysfs interface, users
can query the instantaneous CPU frequency mitigation request from
LMH DCVSh hardware.

Change-Id: I23762895d04dd6f1da8bb496f2a4cf22c1b34216
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agodrivers: thermal: cpu_cooling: allow platform freq mitigation
Lina Iyer [Tue, 23 Feb 2016 20:08:31 +0000 (13:08 -0700)]
drivers: thermal: cpu_cooling: allow platform freq mitigation

cpu device can be controlled by a hardware platform device and in those
cases the cpu cooling device interface should communicate with the
platform device instead of the cpufreq module.

Allow platform drivers to register with CPU cooling with their frequency
mitigation functions. This allows the cpu cooling interface to
communicate the frequency mitigations to the platform driver directly.

Change-Id: I47960b002bf1bce1cd588de2892de46793a95562
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agoclk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag
Amit Nischal [Fri, 21 Oct 2016 15:40:56 +0000 (21:10 +0530)]
clk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag

BRANCH_HALT_NO_CHECK_ON_DISABLE flag is no longer required
for the clocks with no branch halt status check status during
clock disable so removing the usage of the flag.

Change-Id: Id58f1bf1f5b1b68acc8fe3d4d79450730f466f0b
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
7 years agoclk: qcom: Remove BRANCH_HALT_NO_CHECK_ON_DISABLE flag
Amit Nischal [Fri, 21 Oct 2016 15:38:02 +0000 (21:08 +0530)]
clk: qcom: Remove BRANCH_HALT_NO_CHECK_ON_DISABLE flag

Remove BRANCH_HALT_NO_CHECK_ON_DISABLE flag for the clocks
with no branch halt status check during clock disable as
same functionality can be obtained with BRANCH_VOTED flag
so replacing the existing flag with BRANCH_VOTED flag.

Change-Id: I17935e4aa6144e3825e6922d95f671f9cecc0fe3
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
7 years agoMerge "input: misc: pat9125: add sysfs for suspend-resume test"
Linux Build Service Account [Fri, 21 Oct 2016 14:20:45 +0000 (07:20 -0700)]
Merge "input: misc: pat9125: add sysfs for suspend-resume test"

7 years agoclk: Check for failure at clk_change_rate
Taniya Das [Tue, 14 Jun 2016 11:09:56 +0000 (16:39 +0530)]
clk: Check for failure at clk_change_rate

The clock rate set could fail, thus check for failure and abort clock rate
change in case the clk_set_rate fails.

Change-Id: I3a3a03f8c0c261b1f89c33e1247e3dbf889a8d26
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoMerge "fg-util: fix a possible buffer overflow"
Linux Build Service Account [Fri, 21 Oct 2016 01:37:46 +0000 (18:37 -0700)]
Merge "fg-util: fix a possible buffer overflow"

7 years agoMerge "sched/core_ctl: Move header file to global location"
Linux Build Service Account [Fri, 21 Oct 2016 01:37:45 +0000 (18:37 -0700)]
Merge "sched/core_ctl: Move header file to global location"

7 years agosmb1351-charger: Fix possible Null pointer dereference
Abhijeet Dharmapurikar [Tue, 13 Sep 2016 17:36:48 +0000 (10:36 -0700)]
smb1351-charger: Fix possible Null pointer dereference

The adc notification callback assumes that it will end up selecting
the correct state. However, if the parameters are outside the
expected values, the code could end up dereferencing a null pointer.

Fix this by returning before that pointer is dereferenced.

Change-Id: I42642b475a1032c3a7395336381f3bd6c1396dde
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agoicnss: Unregister the driver operations when probe fails
Sameer Thalappil [Thu, 20 Oct 2016 23:28:17 +0000 (16:28 -0700)]
icnss: Unregister the driver operations when probe fails

When WLAN driver initialization fails unregister the driver operations.

CRs-Fixed: 1077763
Change-Id: I7c7c3f98f9685711268e221fc83f2c831b02a294
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
7 years agoiommu/arm-smmu: on domain destroy invlidate domain cfg
Liam Mark [Thu, 20 Oct 2016 20:50:45 +0000 (13:50 -0700)]
iommu/arm-smmu: on domain destroy invlidate domain cfg

Invalidate the domain cfg when destroying the domain
otherwise this can cause issues on subsequent attaches.
For example if the cfb cbndx is not cleared then a new
context won't get assigned to the domain.

Change-Id: If576c6c8a7da90c4ce3f1061df4b3ba0dce495e1
Signed-off-by: Liam Mark <lmark@codeaurora.org>
7 years agoiommu: arm-smmu: Fix a possible null pointer dereference
Patrick Daly [Thu, 20 Oct 2016 20:20:15 +0000 (13:20 -0700)]
iommu: arm-smmu: Fix a possible null pointer dereference

Reported by static analysis tools. generic_device_group() may return
NULL on an error case.

Change-Id: I33e8e859e99d4f7c4616aeee1da8214497e30625
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
7 years agoARM: dts: msm: Update VDD_APC CPR RO scaling factors for msmcobalt v2
Osvaldo Banuelos [Sun, 16 Oct 2016 17:57:51 +0000 (10:57 -0700)]
ARM: dts: msm: Update VDD_APC CPR RO scaling factors for msmcobalt v2

Update the VDD_APC0 and VDD_APC1 CPR RO scaling factors
for msmcobalt v2 to match the latest hardware characterization
guidelines.

CRs-Fixed: 1080409
Change-Id: I8250304e918f55d233e9b3f01c57f297f73e74ba
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
7 years agoMerge "defconfig: msm: avoid compilation of MDSS DP driver for 32-bit msmfalcon"
Linux Build Service Account [Thu, 20 Oct 2016 19:04:31 +0000 (12:04 -0700)]
Merge "defconfig: msm: avoid compilation of MDSS DP driver for 32-bit msmfalcon"

7 years agoMerge "msm: kgsl: Add sysfs control for pwrscale"
Linux Build Service Account [Thu, 20 Oct 2016 19:04:30 +0000 (12:04 -0700)]
Merge "msm: kgsl: Add sysfs control for pwrscale"

7 years agoMerge "ASoC: wcd934x: fix click and pop in Tx path"
Linux Build Service Account [Thu, 20 Oct 2016 19:04:30 +0000 (12:04 -0700)]
Merge "ASoC: wcd934x: fix click and pop in Tx path"

7 years agoMerge "sched: don't bias towards waker cluster when sched_boost is set"
Linux Build Service Account [Thu, 20 Oct 2016 19:04:29 +0000 (12:04 -0700)]
Merge "sched: don't bias towards waker cluster when sched_boost is set"