OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agomsm: thermal: Update error handling of device offline
Ram Chandrasekar [Wed, 14 Dec 2016 23:28:31 +0000 (16:28 -0700)]
msm: thermal: Update error handling of device offline

When device enters suspend, the suspend framework disables CPU hotplug
functionality. During the suspend, any attempt from KTM to hotplug CPU
will return error and in this case, KTM wont clear the cpus_offlined
mask. In this case, the device framework assumes the core is still
online. Next time the device resumes from suspend the core
online attempt will be nacked by KTM. Thus the core will be offlined and
subsequent attempts to bring the core online using device framework will
fail.

Update KTM error handling to remove the CPUs from the cpus_offlined
mask, when device offline APIs return error. Thus KTM wont block suspend
framework from bringing the core online. Also, update KTM not to
evaluate new request to offline or online a core when the device is in
suspend entry or exit. The re-evaluation will be triggered when the
device exits suspend.

Change-Id: I334fd782a2c5d604cafb94f44832d9c700891ba2
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agoMerge "USB: dwc3: msm: Fail probe if core-clk-rate is not passed from dts"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:08 +0000 (12:18 -0800)]
Merge "USB: dwc3: msm: Fail probe if core-clk-rate is not passed from dts"

7 years agoMerge "USB: dwc3-msm: Check endpoint status and request queued or not first"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:06 +0000 (12:18 -0800)]
Merge "USB: dwc3-msm: Check endpoint status and request queued or not first"

7 years agoMerge "USB: dwc3-msm: Initialize DBM ep before BAM pipe reset"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:06 +0000 (12:18 -0800)]
Merge "USB: dwc3-msm: Initialize DBM ep before BAM pipe reset"

7 years agoMerge "ARM: msm: dts: Add regulator changes for msm8998-v2.1-interposer"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:05 +0000 (12:18 -0800)]
Merge "ARM: msm: dts: Add regulator changes for msm8998-v2.1-interposer"

7 years agoMerge "ARM: dts: msm: Add bluetooth node for msmfalcon"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:04 +0000 (12:18 -0800)]
Merge "ARM: dts: msm: Add bluetooth node for msmfalcon"

7 years agoMerge "ARM: dts: msm: add camera focus and snapshot nodes for MSMFALCON"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:03 +0000 (12:18 -0800)]
Merge "ARM: dts: msm: add camera focus and snapshot nodes for MSMFALCON"

7 years agoMerge "ARM: dts: msm: Add GPU mempools properties for msmfalcon"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:03 +0000 (12:18 -0800)]
Merge "ARM: dts: msm: Add GPU mempools properties for msmfalcon"

7 years agoMerge "clk: qcom: Update fmax tables and few frequencies clocks of MSMfalcon"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:02 +0000 (12:18 -0800)]
Merge "clk: qcom: Update fmax tables and few frequencies clocks of MSMfalcon"

7 years agoMerge "defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:01 +0000 (12:18 -0800)]
Merge "defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM"

7 years agoMerge "qpnp-fg-gen3: Use the correct property name to get fastcharge current"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:00 +0000 (12:18 -0800)]
Merge "qpnp-fg-gen3: Use the correct property name to get fastcharge current"

7 years agoMerge "ARM: dts: msm: rename battery profile used for msm8998 QRD"
Linux Build Service Account [Tue, 13 Dec 2016 20:18:00 +0000 (12:18 -0800)]
Merge "ARM: dts: msm: rename battery profile used for msm8998 QRD"

7 years agoMerge "usb: dwc3-msm: Set PROP_BOOST_CURRENT for direct attach devices"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:59 +0000 (12:17 -0800)]
Merge "usb: dwc3-msm: Set PROP_BOOST_CURRENT for direct attach devices"

7 years agoMerge "icnss: Remove dev reference"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:58 +0000 (12:17 -0800)]
Merge "icnss: Remove dev reference"

7 years agoMerge "msm: dvb: demux: compilation error fix for 32 bit version"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:57 +0000 (12:17 -0800)]
Merge "msm: dvb: demux: compilation error fix for 32 bit version"

7 years agoMerge "smb-lib: revert the boost back workaround for dc path"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:57 +0000 (12:17 -0800)]
Merge "smb-lib: revert the boost back workaround for dc path"

7 years agoMerge "dwc3: gadget: Increase TXFIFO size as 3KB with endless USB IN endpoint"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:56 +0000 (12:17 -0800)]
Merge "dwc3: gadget: Increase TXFIFO size as 3KB with endless USB IN endpoint"

7 years agoMerge "spcom: check buf size for send modified command"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:55 +0000 (12:17 -0800)]
Merge "spcom: check buf size for send modified command"

7 years agoMerge "spcom: check buf_size validity for user send command"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:54 +0000 (12:17 -0800)]
Merge "spcom: check buf_size validity for user send command"

7 years agoMerge "NFC: Inform CLF whenever eSE is powered off"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:54 +0000 (12:17 -0800)]
Merge "NFC: Inform CLF whenever eSE is powered off"

7 years agoMerge "spcom: check user space command size"
Linux Build Service Account [Tue, 13 Dec 2016 20:17:53 +0000 (12:17 -0800)]
Merge "spcom: check user space command size"

7 years agoclk: qcom: Update fmax tables and few frequencies clocks of MSMfalcon
Taniya Das [Tue, 13 Dec 2016 05:29:39 +0000 (10:59 +0530)]
clk: qcom: Update fmax tables and few frequencies clocks of MSMfalcon

The fmax corner frequencies have got updated, and also new frequencies have
been added for few clocks, so fix and update the same.

Change-Id: Ic6e2c2208a8971b07ed6ccfc8d63091e4692301f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoUSB: dwc3: msm: Fail probe if core-clk-rate is not passed from dts
Vijayavardhan Vennapusa [Tue, 6 Dec 2016 06:34:21 +0000 (12:04 +0530)]
USB: dwc3: msm: Fail probe if core-clk-rate is not passed from dts

Currently USB driver is not failing probe if USB core-clk-rate property
is not exist. This leads to USB enumeration failures across connect/
disconnect. Hence make core-clk-rate property mandatory and if in case
not defined, fail the probe. Also Fail probe if extcon property not
defined in case of OTG mode.

Also return error if dwc3_core_pre_init() fails during dwc3-msm_resume()
due to phy init fails and don't go ahead with setting up event buffers
as event buffers allocation is done.

Change-Id: I3927ad2f670e45acd10f8568857cf9f3434df657
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agoARM: msm: dts: Add regulator changes for msm8998-v2.1-interposer
Vijayavardhan Vennapusa [Mon, 28 Nov 2016 09:34:52 +0000 (15:04 +0530)]
ARM: msm: dts: Add regulator changes for msm8998-v2.1-interposer

Add required regulator changes in msm8998-v2.1-interposer-msmfalcon.dts
file for USB functionality to be working.

Change-Id: I3e4a43de0c1de6573fea8a52929f6c7af5259755
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agodefconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM
Chandana Kishori Chiluveru [Thu, 1 Dec 2016 09:12:02 +0000 (14:42 +0530)]
defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM

This change enables USB RNDIS and RMNET drivers for BAM2BAM communication.

Change-Id: Ibfd9d12503248a3589bbda94096d40856ccba2c4
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
7 years agoARM: dts: msm: Add bluetooth node for msmfalcon
Rupesh Tatiya [Mon, 12 Dec 2016 07:30:26 +0000 (13:00 +0530)]
ARM: dts: msm: Add bluetooth node for msmfalcon

Add bluetooth node for wcn3990 on msmfalcon. This change configures
various voltage regulator and clocks.

CRs-Fixed: 1100113
Change-Id: I403c9def4f90832174f45e21e6c6fceb4a77a2a0
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
7 years agousb: dwc3-msm: Set PROP_BOOST_CURRENT for direct attach devices
Jack Pham [Thu, 8 Dec 2016 03:25:02 +0000 (19:25 -0800)]
usb: dwc3-msm: Set PROP_BOOST_CURRENT for direct attach devices

If PMIC provides boost power for VBUS in host mode, it may
need to know the amount of current of an attached device
in order to optimize for overall power consumption. We can
pass the bMaxPower obtained from a device's configuration
descriptor when it is attached. This only affects devices
(including hubs) directly attached to the root port, as
any device downstream of a hub will either consume part of
the hub's budget or has external power.

Change-Id: I1ad2cfecb7a2f6bdeaced29a1753cdc1bf3849db
Signed-off-by: Jack Pham <jackp@codeaurora.org>
7 years agoARM: dts: msm: Add GPU mempools properties for msmfalcon
Rajesh Kemisetti [Mon, 12 Dec 2016 19:01:26 +0000 (00:31 +0530)]
ARM: dts: msm: Add GPU mempools properties for msmfalcon

Add initial set of configuration for GPU mempools
to reserve page pools at init time of kgsl driver.

Change-Id: I088aafe8cef621550b1776ca5a652c66e8ac5b62
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
7 years agoicnss: Remove dev reference
Yuanyuan Liu [Fri, 9 Dec 2016 18:02:30 +0000 (10:02 -0800)]
icnss: Remove dev reference

Remove dev reference in icnss_set_wlan_mac_address as
this function is called by external module and won't
be able to get ICNSS dev pointer.

CRs-Fixed: 1099641
Change-Id: I21c992676c41b6cdc3ea53722806e8d0be78d9d5
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
7 years agomsm: dvb: demux: compilation error fix for 32 bit version
Udaya Mallavarapu [Sat, 10 Dec 2016 17:08:26 +0000 (22:38 +0530)]
msm: dvb: demux: compilation error fix for 32 bit version

Compilation error fix for 32 bit version mpq demux common plugin

Change-Id: Id2472097e115f1c8d09886c1a1ceb01c4f5c5f4b
CRs-Fixed: 1090466
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
7 years agoARM: dts: msm: add camera focus and snapshot nodes for MSMFALCON
Himanshu Aggarwal [Mon, 12 Dec 2016 10:52:27 +0000 (16:22 +0530)]
ARM: dts: msm: add camera focus and snapshot nodes for MSMFALCON

MSM GPIO 64 is connected to Camera Focus Button and MSM GPIO 113 is
connected to Camera Snapshot Button. Add the nodes for these buttons
along with their pintrl configuration.

Change-Id: Ifc03c72233dcf1081fc3f2fed495d19e48bb8c7d
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
7 years agodwc3: gadget: Increase TXFIFO size as 3KB with endless USB IN endpoint
Mayank Rana [Wed, 21 Sep 2016 19:21:01 +0000 (12:21 -0700)]
dwc3: gadget: Increase TXFIFO size as 3KB with endless USB IN endpoint

Current code is resizing each USB IN endpoint's TXFIFO to 1KB if it is
not USB GSI endpoint or bursting is not enable. In some high throughput
test case where there is contention in terms of accessing DDR memory
through SNOC between USB3 and other peripheral PCIE, there are many
underrun errors (i.e. Bad Data Length/Bad CRC) observed. These errors
results into retransmision of USB packets and sometime dropping packets
causing diffrent kind of data stalls. Hence fix this issue by increasing
TXFIFO size as 3KB with endless USB IN endpoint (i.e. USB BAM2BAM
endpoint) which helps to successfully retransmit packets.

Change-Id: I73860a7bb252a0226b591a5f732e6a7b864911cf
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
7 years agoUSB: dwc3-msm: Check endpoint status and request queued or not first
Vijayavardhan Vennapusa [Tue, 12 Apr 2016 10:33:33 +0000 (16:03 +0530)]
USB: dwc3-msm: Check endpoint status and request queued or not first

When function driver calls dwc3_msm_ep_queue() to queue endless request,
first check endpoint status and whether any request already queued or not.
If that is the case, return error. Else go ahead with queuing request
to USB HW. This helps in resolving the crash seen when request is being
queued again.

Change-Id: I3d6a603c693d1df36719f57684ffad409e1a0e78
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
7 years agoUSB: dwc3-msm: Initialize DBM ep before BAM pipe reset
Vijayavardhan Vennapusa [Wed, 3 Feb 2016 13:52:23 +0000 (19:22 +0530)]
USB: dwc3-msm: Initialize DBM ep before BAM pipe reset

On new platforms, endpoint clock gating is added for dbm endpoints
with Synopsys USB3.0 controller. This hardware feature requires
initialization of DBM endpoint before BAM pipe reset for bam2bam mode
data transfers working. Hence change sequence such that do DBM endpoint
initialization first followed by BAM pipe reset and do start transfer
as last operation.

CRs-Fixed: 965207
Change-Id: Ib5bfd1a7d258fe336a4c9924850fc9223c1c81f6
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Configure MPM for qusb2phy_dpse_hv for msm8998"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:39 +0000 (23:06 -0800)]
Merge "ARM: dts: msm: Configure MPM for qusb2phy_dpse_hv for msm8998"

7 years agoMerge "mm: remove gup_flags FOLL_WRITE games from __get_user_pages()"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:39 +0000 (23:06 -0800)]
Merge "mm: remove gup_flags FOLL_WRITE games from __get_user_pages()"

7 years agoMerge "clk: msm: clock-osm: don't use version register to enable WDOG status"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:38 +0000 (23:06 -0800)]
Merge "clk: msm: clock-osm: don't use version register to enable WDOG status"

7 years agoMerge "ARM: dts: msm: enable the watchdog bark interrupt for smb138x"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:37 +0000 (23:06 -0800)]
Merge "ARM: dts: msm: enable the watchdog bark interrupt for smb138x"

7 years agoMerge "power: bcl: Add frequency mitigation as an optional property for BCL"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:36 +0000 (23:06 -0800)]
Merge "power: bcl: Add frequency mitigation as an optional property for BCL"

7 years agoMerge "ARM: dts: msm: Add BCL peripheral configs for pmfalcon"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:36 +0000 (23:06 -0800)]
Merge "ARM: dts: msm: Add BCL peripheral configs for pmfalcon"

7 years agoMerge "ARM: dts: msm: add qdss node support for msmtriton"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:35 +0000 (23:06 -0800)]
Merge "ARM: dts: msm: add qdss node support for msmtriton"

7 years agoMerge "sound: usb: Handle implicit feedback data endpoint properly"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:35 +0000 (23:06 -0800)]
Merge "sound: usb: Handle implicit feedback data endpoint properly"

7 years agoMerge "sched: Ensure proper task migration when a CPU is isolated"
Linux Build Service Account [Sat, 10 Dec 2016 23:43:17 +0000 (15:43 -0800)]
Merge "sched: Ensure proper task migration when a CPU is isolated"

7 years agoMerge "sched/core: Fix race condition in clearing hmp request"
Linux Build Service Account [Sat, 10 Dec 2016 23:43:16 +0000 (15:43 -0800)]
Merge "sched/core: Fix race condition in clearing hmp request"

7 years agoMerge "usb: phy: qusb2: Add support to vote for regulator L2a"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:45 +0000 (19:59 -0800)]
Merge "usb: phy: qusb2: Add support to vote for regulator L2a"

7 years agoMerge "msm: mdss: dp: correctly ref count the pll resources"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:42 +0000 (19:59 -0800)]
Merge "msm: mdss: dp: correctly ref count the pll resources"

7 years agoMerge "msm: vidc: Disable clocks in reverse order"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:40 +0000 (19:59 -0800)]
Merge "msm: vidc: Disable clocks in reverse order"

7 years agoMerge "msm: vidc: Fix kw issues"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:39 +0000 (19:59 -0800)]
Merge "msm: vidc: Fix kw issues"

7 years agoMerge "iommu: arm-smmu: Fix clock reference count error"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:38 +0000 (19:59 -0800)]
Merge "iommu: arm-smmu: Fix clock reference count error"

7 years agoMerge "ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:38 +0000 (19:59 -0800)]
Merge "ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data"

7 years agoMerge "ASoC: msm: enable DAP set license logic on 8998"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:37 +0000 (19:59 -0800)]
Merge "ASoC: msm: enable DAP set license logic on 8998"

7 years agoMerge "ASoC: soc: add a new dailink for VI recording"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:35 +0000 (19:59 -0800)]
Merge "ASoC: soc: add a new dailink for VI recording"

7 years agoMerge "ARM: dts: msm: Update camera GPIO, VREG config for msmfalcon interposer"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:35 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Update camera GPIO, VREG config for msmfalcon interposer"

7 years agoMerge "defconfig: msmfalcon: Enable audiosource gadget driver"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:34 +0000 (19:59 -0800)]
Merge "defconfig: msmfalcon: Enable audiosource gadget driver"

7 years agoMerge "defconfig: msmfalcon: enable the USB video class support"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:30 +0000 (19:59 -0800)]
Merge "defconfig: msmfalcon: enable the USB video class support"

7 years agoMerge "scsi: ufs: fix shutdown race condition"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:29 +0000 (19:59 -0800)]
Merge "scsi: ufs: fix shutdown race condition"

7 years agoMerge "ARM: dts: msm: add touch node for QTC800H in msm8998 QRD SKUK"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:29 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: add touch node for QTC800H in msm8998 QRD SKUK"

7 years agoMerge "power_supply: Add BOOST_CURRENT property"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:28 +0000 (19:59 -0800)]
Merge "power_supply: Add BOOST_CURRENT property"

7 years agoMerge "msm: ipa3: check the rx_door_bell value on disable"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:27 +0000 (19:59 -0800)]
Merge "msm: ipa3: check the rx_door_bell value on disable"

7 years agoMerge "qpnp-fg-gen3: Add support for PMFALCON in Fuel Gauge"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:26 +0000 (19:59 -0800)]
Merge "qpnp-fg-gen3: Add support for PMFALCON in Fuel Gauge"

7 years agoMerge "ASoC: wcd934x-dsp-cntl: fix the reset sequence"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:25 +0000 (19:59 -0800)]
Merge "ASoC: wcd934x-dsp-cntl: fix the reset sequence"

7 years agoMerge "include: clock: remove ifdef from header file"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:25 +0000 (19:59 -0800)]
Merge "include: clock: remove ifdef from header file"

7 years agoMerge "ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:24 +0000 (19:59 -0800)]
Merge "ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds"

7 years agoMerge "msm: thermal: Notify LMH DCVSh driver after freq mitigation request"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:23 +0000 (19:59 -0800)]
Merge "msm: thermal: Notify LMH DCVSh driver after freq mitigation request"

7 years agoMerge "ARM: dts: msm: Specify coresight trace ID for msm8998"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:21 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Specify coresight trace ID for msm8998"

7 years agoMerge "ARM: dts: msm: Add GPU coresight properties for msm8998"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:21 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add GPU coresight properties for msm8998"

7 years agoMerge "ARM: dts: msm: update wcn3990 node for msm8998 interposer"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:20 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: update wcn3990 node for msm8998 interposer"

7 years agoMerge "ARM: dts: msm: Attach device memory to lpass iommu on msmfalcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:19 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Attach device memory to lpass iommu on msmfalcon"

7 years agoMerge "msm: msm_bus: Reverse QoS Clocks Disabling Order"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:15 +0000 (19:59 -0800)]
Merge "msm: msm_bus: Reverse QoS Clocks Disabling Order"

7 years agoMerge "soc: qcom: pil: Use NULL check of resource pointer for restart register"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:13 +0000 (19:59 -0800)]
Merge "soc: qcom: pil: Use NULL check of resource pointer for restart register"

7 years agoMerge "ARM: dts: msm: Add pinctrl configuration for PMFALCOM L6/9/19"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:12 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add pinctrl configuration for PMFALCOM L6/9/19"

7 years agoMerge "ARM: dts: msm: Add missing properties for USB node for msmfalcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:12 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add missing properties for USB node for msmfalcon"

7 years agoMerge "defconfig: Add missing features for HW Encryption support"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:10 +0000 (19:59 -0800)]
Merge "defconfig: Add missing features for HW Encryption support"

7 years agoMerge "defconfig: msm: msm8998: enable LCDB driver"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:10 +0000 (19:59 -0800)]
Merge "defconfig: msm: msm8998: enable LCDB driver"

7 years agoMerge "media: dvb-core: Add feed state check before stop dvbdemux feed"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:09 +0000 (19:59 -0800)]
Merge "media: dvb-core: Add feed state check before stop dvbdemux feed"

7 years agoMerge "ARM: dts: msm: Add VOL_UP node for MSMFALCON and interposer"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:08 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add VOL_UP node for MSMFALCON and interposer"

7 years agoMerge "ARM: dts: msm: Enable core hang detect feature on msmfalcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:07 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Enable core hang detect feature on msmfalcon"

7 years agoMerge "phy: qcom-ufs: Modify the vdd-phy min-max range"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:07 +0000 (19:59 -0800)]
Merge "phy: qcom-ufs: Modify the vdd-phy min-max range"

7 years agoMerge "ARM: dts: msm: Specify the WLED interrupts properly for pmi8998/pm2falcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:05 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Specify the WLED interrupts properly for pmi8998/pm2falcon"

7 years agoMerge "ARM: dts: msm: Add PM support for msmfalcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:05 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add PM support for msmfalcon"

7 years agoMerge "ARM: dts: msm: Update clock mmss node for MSMfalcon/Triton"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:03 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Update clock mmss node for MSMfalcon/Triton"

7 years agoMerge "msm-core: use get_user() API to read userspace data/settings"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:03 +0000 (19:59 -0800)]
Merge "msm-core: use get_user() API to read userspace data/settings"

7 years agoMerge "ARM: dts: msm: Modify QRD interposer dts file for msm8998"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:02 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Modify QRD interposer dts file for msm8998"

7 years agoMerge "ASoc: msm: Add changes to support multiple meta key value pairs"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:01 +0000 (19:59 -0800)]
Merge "ASoc: msm: Add changes to support multiple meta key value pairs"

7 years agoMerge "iommu: io-pgtable-arm: Use correct bitmask for pgd entry"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:00 +0000 (19:59 -0800)]
Merge "iommu: io-pgtable-arm: Use correct bitmask for pgd entry"

7 years agoMerge "iommu: iommu-debug: Allow full dma_addr_t sized address for atos"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:00 +0000 (19:59 -0800)]
Merge "iommu: iommu-debug: Allow full dma_addr_t sized address for atos"

7 years agoARM: dts: msm: Configure MPM for qusb2phy_dpse_hv for msm8998
Hemant Kumar [Sat, 3 Dec 2016 04:11:39 +0000 (20:11 -0800)]
ARM: dts: msm: Configure MPM for qusb2phy_dpse_hv for msm8998

In host mode upon XO shutdown high speed and full speed device
connection is not getting detected because mpm is not configured
to monitor for Dp line state change.

Change-Id: I34e3f586b99b6ff1af1d2323d4f272ee3cca7fa2
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agomm: remove gup_flags FOLL_WRITE games from __get_user_pages()
Linus Torvalds [Thu, 13 Oct 2016 20:07:36 +0000 (13:07 -0700)]
mm: remove gup_flags FOLL_WRITE games from __get_user_pages()

This is an ancient bug that was actually attempted to be fixed once
(badly) by me eleven years ago in commit 4ceb5db9757a ("Fix
get_user_pages() race for write access") but that was then undone due to
problems on s390 by commit f33ea7f404e5 ("fix get_user_pages bug").

In the meantime, the s390 situation has long been fixed, and we can now
fix it by checking the pte_dirty() bit properly (and do it better).  The
s390 dirty bit was implemented in abf09bed3cce ("s390/mm: implement
software dirty bits") which made it into v3.9.  Earlier kernels will
have to look at the page state itself.

Also, the VM has become more scalable, and what used a purely
theoretical race back then has become easier to trigger.

To fix it, we introduce a new internal FOLL_COW flag to mark the "yes,
we already did a COW" rather than play racy games with FOLL_WRITE that
is very fundamental, and then use the pte dirty flag to validate that
the FOLL_COW flag is still valid.

Change-Id: I42e448ecacad4781b460c4c989026307169ba1b5
Reported-and-tested-by: Phil "not Paul" Oester <kernel@linuxace.com>
Acked-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Michal Hocko <mhocko@suse.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Willy Tarreau <w@1wt.eu>
Cc: Nick Piggin <npiggin@gmail.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-repo: https://chromium.googlesource.com/chromiumos/third_party/kernel.git
Git-commit: 19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agoqpnp-fg-gen3: Use the correct property name to get fastcharge current
Subbaraman Narayanamurthy [Fri, 9 Dec 2016 23:24:12 +0000 (15:24 -0800)]
qpnp-fg-gen3: Use the correct property name to get fastcharge current

Currently GEN3 FG driver reads "qcom,nom-batt-capacity-mah"
property from the battery profile device node to use that for
notifying fastcharge current to the charger driver. Change that
to use "qcom,fastchg-current-ma" property which seems to be more
appropriate. Update all the battery profiles that are used with
GEN3 FG to follow that.

Change-Id: I119e6af297b37a06a227475f712f938367fb65bc
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: rename battery profile used for msm8998 QRD
Subbaraman Narayanamurthy [Fri, 9 Dec 2016 23:18:47 +0000 (15:18 -0800)]
ARM: dts: msm: rename battery profile used for msm8998 QRD

To match with other battery profiles used for GEN3 fuel gauge,
rename the battery profile used for msm8998 QRD platform.

Change-Id: I9a12ac11b6bd303eb32b4e03e116281bca664d06
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agosched: Ensure proper task migration when a CPU is isolated
Syed Rameez Mustafa [Thu, 8 Dec 2016 01:00:27 +0000 (17:00 -0800)]
sched: Ensure proper task migration when a CPU is isolated

migrate_tasks() migrates all tasks of a CPU by using pick_next_task().
This works in the hotplug case as we force migrate every single task
allowing pick_next_task() to return a new task on every loop iteration.
In the case of isolation, however, task migration is not guaranteed
which causes pick_next_task() to keep returning the same task over and
over again until we terminate the loop without having migrated all the
tasks that were supposed to migrated.

Fix the above problem by temporarily dequeuing tasks that are pinned
and marking them with TASK_ON_RQ_MIGRATING. This not only allows
pick_next_task() to properly walk the runqueue but also prevents any
migrations or changes in affinity for the dequeued tasks. Once we are
done with migrating all possible tasks, we re-enqueue all the dequeued
tasks.

While at it, ensure consistent ordering between task de-activation and
setting the TASK_ON_RQ_MIGRATING flag across all scheduling classes.

Change-Id: Id06151a8e34edab49ac76b4bffd50c132f0b792f
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agosched/core: Fix race condition in clearing hmp request
Olav Haugan [Thu, 8 Dec 2016 00:36:14 +0000 (16:36 -0800)]
sched/core: Fix race condition in clearing hmp request

There is a race condition between clearing an HMP request for active
migration and the actual active migration. Active migration can he
half-way through doing the migration when the HMP request can be cleared
by another core. Move clearing of HMP request to the stopper thread to
avoid this.

Change-Id: I6d73b8f246ae3754ab60984af198333fd284ae16
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agosched/core: Prevent (user) space tasks from affining to isolated cpus
Olav Haugan [Thu, 8 Dec 2016 00:34:49 +0000 (16:34 -0800)]
sched/core: Prevent (user) space tasks from affining to isolated cpus

We don't want user space tasks to run on isolated cpus. If the affinity
mask that the user space task is trying to set only includes online
cpus that are isolated return error.

Also ensure that tasks do not get stuck on isolated cores. We are not
properly updating the mask that we check against the current CPU so we
might end up thinking we can run on the current CPU. Fix this.

Change-Id: I078d01e63860d1fc60fc96eb0c739c0f680ae983
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agopower: bcl: Add frequency mitigation as an optional property for BCL
Manaf Meethalavalappu Pallikunhi [Fri, 18 Nov 2016 10:03:31 +0000 (15:33 +0530)]
power: bcl: Add frequency mitigation as an optional property for BCL

For targets with LMH DCVSh hardware and OSM, BCL software frequency
mitigation is not required. Since hardware is doing the frequency
mitigation, there is no need for the HLOS BCL frequency mitigation.
So make the properties "qcom,mitigation-freq-khz" and
"qcom,thermal-handle" as optional properties.

Change-Id: I0062f3b39f00ff2f0e74affcffbcf1afd89d3b2f
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
7 years agoARM: dts: msm: Add BCL peripheral configs for pmfalcon
Manaf Meethalavalappu Pallikunhi [Tue, 25 Oct 2016 14:41:59 +0000 (20:11 +0530)]
ARM: dts: msm: Add BCL peripheral configs for pmfalcon

Add pmfalcon BCL peripheral related configs to enable the BCL
peripheral driver. Add configs like vbat interrupt, ibat interrupt,
vbat polling delay, ibat polling delay, etc.

Change-Id: I9d7cc82c50c1b09610f5a4eac86af4617389f23f
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
7 years agoARM: dts: msm: add qdss node support for msmtriton
Amey Telawane [Tue, 22 Nov 2016 12:48:52 +0000 (18:18 +0530)]
ARM: dts: msm: add qdss node support for msmtriton

Add support to enable qdss components on
msmtriton. Reuse msmfalcon coresight nodes
for msmtriton.

CRs-fixed: 1094175
Change-Id: I34a3ad2da7f8e267f0d570c0329ac9b73a43309e
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
7 years agoNFC: Inform CLF whenever eSE is powered off
Gaurav Singhal [Mon, 28 Nov 2016 11:53:58 +0000 (17:23 +0530)]
NFC: Inform CLF whenever eSE is powered off

When the eSE is powered off, the “system” needs to give
8ms to the capacitor connected on the SVDD line to discharge.

We should inform the FW we just powered off the eSE.

Change-Id: I864fd8f75ded6ab8c42ea36bcdadcdbe924e927d
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
7 years agoiommu: arm-smmu: Fix clock reference count error
Patrick Daly [Fri, 28 Oct 2016 01:08:01 +0000 (18:08 -0700)]
iommu: arm-smmu: Fix clock reference count error

When an atomic iommu domain attaches, an additional vote for both
clk_prepare, bus_bw, and regulator_enable must be held. The prior logic
only did this if the atomic domain was the first to attach to the iommu.
Fix this.

As a side effect, add reference counting for bus_bandwidth voting such
that a call to arm_smmu_enable_clock() followed by
arm_smmu_disable_clocks() will not always result in a bus bandwidth
vote of zero.

Change-Id: I7f88ea845a281c8c1def4f642e61262b53b60e1a
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
7 years agousb: phy: qusb2: Add support to vote for regulator L2a
Hemant Kumar [Fri, 2 Dec 2016 03:56:10 +0000 (19:56 -0800)]
usb: phy: qusb2: Add support to vote for regulator L2a

L2a is required to lock the phy PLL upon bus resume when
exiting from XO shutdown. This LDO powers REFGEN block
which is required to be powered on so that phy PLL gets
locked as part of wakeup from XO shutdown.

Change-Id: Ia0e3d574de7c78534832e4f8749672eb6fcde1f0
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agosound: usb: Handle implicit feedback data endpoint properly
Hemant Kumar [Wed, 7 Dec 2016 02:34:40 +0000 (18:34 -0800)]
sound: usb: Handle implicit feedback data endpoint properly

For the devices supporting implicit feedback over data endpoint
usb audio driver instantiates snd_usb_endpoint as sync_endpoint
even though there is no real usb sync endpoint exists. QMI driver
looks for usb endpoint if sync_endpoint is instantiated and bails
out if endpoint related context does not exist. This causes such
devices to not work. Hence do not bail out if sync ep context
does not exist and continue preparing the QMI response.

Change-Id: I7d96555573cfd6cca1ca56c877d78fde943f8100
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>