Commit graph

575880 commits

Author SHA1 Message Date
Linux Build Service Account
56f3d47776 Merge "qpnp-smb2: smb-lib: expose step charging via battery psy properties" 2016-10-06 01:06:56 -07:00
Linux Build Service Account
b7c342065e Merge "msm: sps: correct device base address for register dumping" 2016-10-06 01:06:55 -07:00
Linux Build Service Account
7782a824e1 Merge "ARM: dts: msm: Add Temperature sensor support for msmtriton" 2016-10-06 01:06:54 -07:00
Linux Build Service Account
1483f4d713 Merge "thermal: tsens: Enable TSENS for msmtriton" 2016-10-06 01:06:53 -07:00
Sunil Khatri
050ce1a558 msm: kgsl: Disable UCHE global filter
Disable UCHE global filter for invalidate/flush,
SP will handle the invalidate/flush for each SP
independently on A5XX GPUs.

CRs-Fixed: 1073853
Change-Id: I3daf3722cfbdfff080161f9a0248fd8096550328
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2016-10-05 23:43:18 -07:00
Taniya Das
e5335ad216 arm/arm64: Kconfig: Add support to use the CLK_QCOM for MSMfalcon
MSMfalcon requires to use COMMON_CLK and COMMON_CLK_QCOM as the clock
framework. Fix the following for CLK_QCOM
 - Add new configs for common clock framework.
 - Remove compilation of audio-ext for COMMON_CLK.
 - Remove ARCH hamster and cobalt from falcon defconfig.
 - Remove ARCH falcon from cobalt defconfig.

Change-Id: I560d62f9698ddf73848186a6740632735d574b0f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-06 10:17:35 +05:30
Linux Build Service Account
d1db9d219b Merge "soc: qcom: Use syncronization while freeing the qmi_client data" 2016-10-05 19:29:28 -07:00
Linux Build Service Account
7cfcfc9a09 Merge "Revert "scsi: ufs: gate ref_clk during aggressive clk gating"" 2016-10-05 19:29:27 -07:00
Linux Build Service Account
2721b89e03 Merge "msm: sensor: validate the i2c table index before use" 2016-10-05 19:29:26 -07:00
Linux Build Service Account
fa1a6d77a8 Merge "ARM: dts: msm: Update VMEM bw for msmcobalt" 2016-10-05 19:29:25 -07:00
Linux Build Service Account
8d467fa530 Merge "power: bcl: Listen to battery power supply notification for soc" 2016-10-05 19:29:25 -07:00
Linux Build Service Account
9d4ed2cb20 Merge "sched: Fix integer overflow in sched_update_nr_prod()" 2016-10-05 19:29:24 -07:00
Linux Build Service Account
52ae4541e4 Merge "msm: kgsl: Reschedule idle work in case transition to idle state fails" 2016-10-05 19:29:23 -07:00
Linux Build Service Account
165da9cba0 Merge "clk: msm: clock-osm: Fix for programming the APM threshold on MSMCOBALT" 2016-10-05 19:29:22 -07:00
Linux Build Service Account
5a534a3946 Merge "clk: msm: clock-osm: Fix check to write to the LLM OVERRIDE register" 2016-10-05 19:29:22 -07:00
Linux Build Service Account
3ee94074c3 Merge "rmnet_data: Changing format specifier to %pK" 2016-10-05 19:29:21 -07:00
Linux Build Service Account
7fe293fab6 Merge "defconfig: add the iommu options on msmfalcon" 2016-10-05 19:29:20 -07:00
Linux Build Service Account
d4ee4ea3cf Merge "coresight: hwtracing: fix dangling pointer issues" 2016-10-05 19:29:20 -07:00
Linux Build Service Account
ae90b14a59 Merge "input: synaptics_dsx: allocate heap memory for temp buf" 2016-10-05 19:29:19 -07:00
Linux Build Service Account
fb89803f09 Merge "sched: Add a device tree property to specify the sched boost type" 2016-10-05 19:29:18 -07:00
Linux Build Service Account
fa6c7033dc Merge "wil6210: extract firmware version from file header" 2016-10-05 19:29:18 -07:00
Linux Build Service Account
f88da36dc8 Merge "arm: topology: Allow specifying the CPU efficiency from device tree" 2016-10-05 19:29:17 -07:00
Linux Build Service Account
f9d64cd4c7 Merge "ARM: dts: msm: add support for qdss nodes on msmfalcon" 2016-10-05 19:29:16 -07:00
Linux Build Service Account
3ff37b4bac Merge "RFC: FROMLIST: cgroup: reduce read locked section of cgroup_threadgroup_rwsem during fork" 2016-10-05 19:29:13 -07:00
Deepak Katragadda
ad6061c9e0 clk: msm: clock-osm: Use read back instead of memory barrier on MSMCOBALT
Using memory barriers does not guarantee that the writes will
be completed before moving further unless the memory is marked
as strongly ordered. Use a read instead to make sure that the
previous writes take effect before the read can be processed
and we continue further.

CRs-Fixed: 1074277
Change-Id: Id1ec59664fb457c37dd63df008fbd6c540dffd67
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-10-05 18:06:30 -07:00
Hemant Kumar
1d7e5bc8f0 usb: gadget: f_gsi: Enable auto detect RNDIS device on windows OS
RNDIS IAD descriptor needs to get updated to support auto detection
of RNDIS device so that windows OS can load the RNDIS driver without
manually loading the driver.

Change-Id: Ia0cb418d886d6dd066d956c359a39af3ab47c9f2
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-10-05 17:53:38 -07:00
Prashanth Bhatta
0da8e4a21c icnss: Wait uninterruptible for unregister driver
When WLAN driver calls unregister driver, an event is posted to
event work queue and the calling thread waits for the event to
complete. In some cases like during suspend, calling thread gets
interrupted and wait_for_completion returns. Once it is returned,
WLAN module resources are freed including code segments and work
queue gets into Synchronous Abort.
Fix the issue by making unregister uninterruptible to make sure
WLAN driver clean-up happens gracefully without interrupted by
user space.

CRs-fixed: 1073854
Change-Id: Id0f8634641fa2be12ffe00ddbc96a9e400e40739
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-10-05 17:37:42 -07:00
Prashanth Bhatta
5972a06743 icnss: Prevent suspend while processing events
Power collapsing while processing events posted to work queue
causes stability issues because of suspending while in the
process of bring-up, bring-down or recovery. Prevent suspend
while processing events by calling pm_stay_awake().

CRs-fixed: 1073854
Change-Id: I6c7ae3b6e52529b14075fb2212bc2c5f76ae5730
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-10-05 17:36:53 -07:00
Patrick Bellasi
754a122792 sched/tune: add sysctl interface to define a boost value
The current (CFS) scheduler implementation does not allow "to boost"
tasks performance by running them at a higher OPP compared to the
minimum required to meet their workload demands.

To support tasks performance boosting the scheduler should provide a
"knob" which allows to tune how much the system is going to be optimised
for energy efficiency vs performance.

This patch is the first of a series which provides a simple interface to
define a tuning knob. One system-wide "boost" tunable is exposed via:
  /proc/sys/kernel/sched_cfs_boost
which can be configured in the range [0..100], to define a percentage
where:
  - 0%   boost requires to operate in "standard" mode by scheduling
         tasks at the minimum capacities required by the workload demand
  - 100% boost requires to push at maximum the task performances,
         "regardless" of the incurred energy consumption

A boost value in between these two boundaries is used to bias the
power/performance trade-off, the higher the boost value the more the
scheduler is biased toward performance boosting instead of energy
efficiency.

Change-Id: I59a41725e2d8f9238a61dfb0c909071b53560fc0
cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
Git-commit: 63c8fad2b06805ef88f1220551289f0a3c3529f1
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-4.4
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2016-10-05 17:24:23 -07:00
Syed Rameez Mustafa
475125d9f9 sched: Initialize HMP stats inside init_sd_lb_stats()
This ensures that the load balancer always works correctly even
without compiler optimizations.

Change-Id: I36408ae65833b624401e60edfb50c19cc061d7bf
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-10-05 17:24:22 -07:00
Xu Han
4091f39e19 ARM: dts: msm: Add a dtsi file for msmcobalt QRD device
Instead of using MTP dtsi, add a separate file for
msmcobalt QRD device.

CRs-fixed: 1069735
Change-Id: I8421d4a6ffef7657d3808de0fef95bdea400fe20
Signed-off-by: Xu Han <hanxu@codeaurora.org>
2016-10-05 16:18:46 -07:00
David Collins
8402e71863 regulator: cprh-kbss-regulator: add CPR aging adjustment support
Add support to read the initial CPR aging sensor skew fuse value
and to perform an aging measurement and subsequent voltage
adjustment.

Change-Id: I51a6762d026e7b5a4e39e957144f1b21c5ef121a
CRs-Fixed: 1048890
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-10-05 15:23:03 -07:00
David Collins
f49fa83627 regulator: cpr3-regulator: add support for CPRh aging adjustment
Add support to perform a CPR aging measurement and subsequent
target quotient and open-loop voltage adjustments for CPRh
controllers at registration time.

Change-Id: I3a48a912fb9dea37a6197c1a13c2b41454d2dcff
CRs-Fixed: 1048890
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-10-05 15:23:02 -07:00
Gaurav Kohli
120427c62d soc: qcom: Use syncronization while freeing the qmi_client data
Potential use after free possibility when trying to access qmi client
data in the ssr notification and root pd_down notification handling.

CRs-Fixed: 1074483
Change-Id: I5390810861dbc1da368757df2b20e5daa35bd081
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-05 14:55:47 -07:00
Venkat Gopalakrishnan
48ecffa1a0 Revert "scsi: ufs: gate ref_clk during aggressive clk gating"
This reverts commit ca91fa16a7 ("scsi: ufs: gate ref_clk during
aggressive clk gating").

Reverting this change as its causing stability issues.

Change-Id: Ia04d33d84b5622179f7a496daee5584d4e2dde91
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-10-05 14:27:33 -07:00
Mayank Rana
79bed203c1 dwc3-msm: Acquire lock for USB GSI endpoint related operations
There is possibility where any control request for USB GSI endpint
e.g. CLEAR_FEATURE racing against USB GSI endpoint operation. Hence
acquire lock for USB GSI endpoint related operations which involves
sending required USB commands for the endpoint operation.

Change-Id: If14af809c443e12bd64e54910602c4aeeca4f0df
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-10-05 13:49:13 -07:00
Harry Yang
e6cc001a18 qpnp-smb2: smb-lib: expose step charging via battery psy properties
Allow for easy track of step charging. Show step charging
status (enable/disable) and phases.

CRs-Fixed: 1052854
Change-Id: I525fcedda71c4928c61825faeea519355675457a
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-10-05 13:20:27 -07:00
Nicholas Troast
b95cf59a0f qcom-charger: add storm watch to qpnp-smb2 and smb138x-charger
Interrupts are subject to storming in bad or unexpected circumstances.
Add the necessary structures to detect interrupt storms using storm watch.

Change-Id: Id3491b6f8927cb1ae7cbc8260defa697ca555765
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-10-05 13:11:53 -07:00
Nicholas Troast
ada01758dc qcom-charger: add support to watch storm of events
Storm watch provides a simple API for tracking the occurrence of event
storms.

An event storm is defined as a cluster of events where there are
X events with no more than Y milliseconds between them, where X and Y
are configurable per event.

Querying whether a storm has occurred marks a new event.

Change-Id: Idf4bb1421d0dbec295f92f84174cd4bbc6130250
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-10-05 13:11:52 -07:00
Harry Yang
b44b90ad4c qcom-charger: Fix CC settings for PD session
CC_OUT is the signal/status to the PD that indicates which of
the CC line is active. When its low CC1 is active and when
high CC2 is active.

During Source -> Sink Power Role Swap, CC_OUT is reset default
low (CC1 = CC) when SW sets the UFP/SNK_EN_CMD bit, losing the
plug orientation info and causing USB PD message error if CC2
was the CC pin.

Fix this by ensuring that s/w overrides the CC_OUT signal to
reflect the actual one, in preparation for a possible upcoming
power

CRs-Fixed: 1050738
Change-Id: I5877666c39ac9cad713a5802521527dd8552440c
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-10-05 13:11:51 -07:00
Harshdeep Dhatt
a694afed7b msm: kgsl: Disable workaround on A540v2
Currently we have a workaround for A540 which inserts
WFI after every direct-render 3D mode and every 2D
mode draw. Add a check to enable this only on A540v1
as this workaround is not required for A540v2.

CRs-Fixed: 1072767
Change-Id: I679bbf68ee3dcc1aee30d56a646a42b6ff09fb6f
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-10-05 11:38:37 -06:00
Harshdeep Dhatt
eac51723e6 msm: kgsl: Add A540v2 to adreno gpulist
Also add adreno_is_a540v2 function

CRs-Fixed: 1072767
Change-Id: Ibf1d5058a1273e1f558afa3871e27c9d124956a5
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-10-05 11:38:21 -06:00
Mahesh Sivasubramanian
66510cc53c drivers: soc: qcom: system_stats: Use arch_counter_get_cntvct()
Upstream kernel has deprecated the use of arch_counter_get_cntpct() and the
drivers are expected to switch to arch_counter_get_cntvct.

Switch to using arch_counter_get_cntvct().

Change-Id: I3eeefff492889b57837a8334eb933c22d0e4917a
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-10-05 11:36:14 -06:00
Harshdeep Dhatt
fdb1ffc0cd ARM: dts: msm: Specify the temperature sensor name for msmcobalt
Specify the GPU temperature sensor name in the device tree.
This name is used to get the sensor's temperature by querying the
thermal driver API.

CRs-Fixed: 1064728
Change-Id: Ia93d93a442aa848cbd42a5fb8ecad5ef875f9abf
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-10-05 11:05:18 -06:00
Harshdeep Dhatt
1cf6397fff msm: kgsl: Add and link gpu sysfs nodes
Add new sysfs nodes which satisfy a generic format requested
by customer. Also add a new node to track GPU temperature.
Create links to these nodes at a generic location:

/sys/kernel/gpu/

CRs-Fixed: 1064728
Change-Id: I414a07ff4f9ee14b8f882d15644b06a73d5fcf76
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-10-05 11:05:07 -06:00
Ram Chandrasekar
6f1c232be3 thermal: lmh_lite: Page align all the buffers to TZ
All the buffers allocated for TZ related communication are not page
aligned. Make all the buffers page aligned.

Change-Id: I2640b20f35339449b9bf44c885e8baf9651596bc
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-05 10:54:43 -06:00
Ashish Jain
c88c6f97ce ASoC: msmcobalt: Update machine driver to support 32 bit format
Update msmcobalt machine driver to support S32LE format.
Also add support of 384Khz for USB_AUDIO_RX.

Change-Id: I576bd9c3c776ad5c24a15adf1447a9206dc61b89
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2016-10-05 08:33:01 -07:00
Ashish Jain
eb6adca118 ASoc: msm: Enable support for 32 bit format and 384Khz
Add support for 32 bit data format (SNDRV_PCM_FORMAT_S32_LE)
and sampling rate of 384Khz. Also update platform drivers
to use latest version of pcm media format command
ASM_MEDIA_FMT_MULTI_CHANNEL_PCM_V4.

Change-Id: I6b7ea860a398a7e4dd5f7e23ac3906ff0c6f2b3e
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2016-10-05 08:32:45 -07:00
Ashish Jain
5a60bc56b0 ASoC: msm: qdsp6v2: add support for latest version of media format command
Add support for ASM_MEDIA_FMT_MULTI_CHANNEL_PCM_V4
command. This command adds support to playback/record 32 bit data
in 32 bit word and also provides a way to inform DSP about the
endianness of the data.

Change-Id: I3b013bedde8ccfa97a02e255e237df0cf2de13b8
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2016-10-05 08:32:02 -07:00
Naresh Tanniru
ce3c3a600a ASoC: msm: qdsp6v2: support for configurable bit format for AFE encoder
Add support for configurable bit width for AFE encoder.
Add new mixer ctl to set for usecases which enables
configuring different input/output bit format
on AFE for usecases such as APTXHD encoder for 24bit input
and 16bit output.

Change-Id: I62326a097cbd71a3ec2b93a0120284d8f71f5d57
Signed-off-by: Naresh Tanniru <ntanniru@codeaurora.org>
2016-10-05 06:27:08 -07:00