Commit graph

581044 commits

Author SHA1 Message Date
Manoj Prabhu B
87e224427f ARM: dts: msm: Allocate memory for diag client for SDM630
This patch enables allocation of 5MB for new diag client
of memshare.

CRs-Fixed: 1107794
Change-Id: Ibfbd9c2fc13860b647c1411e6c60f4a543683993
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-01-05 18:16:06 +05:30
Meera Gande
4c59120d7b msm: camera: isp: Update UB Size for SDM660
The UB size has been updated to 64KB for
SDM660.

Change-Id: I6493574b17f7ad458476f6e25a8aef19c0befdae
Signed-off-by: Meera Gande <mgande@codeaurora.org>
2017-01-05 16:57:56 +05:30
Linux Build Service Account
2116b44bd3 Merge "ARM: dts: msm: Add APC0/1 CPR instances for sdm660" 2017-01-05 02:09:06 -08:00
Linux Build Service Account
ed4ef900e9 Merge "sched: Delete heavy task heuristics in prediction code" 2017-01-05 02:09:05 -08:00
Linux Build Service Account
54aaf0328a Merge "thermal: tsens: Remove calibration functions" 2017-01-05 02:09:04 -08:00
Linux Build Service Account
e48066aa5f Merge "msm: mdss: advertize hdr support on msm8998" 2017-01-05 02:09:03 -08:00
Linux Build Service Account
3ef2b6c93c Merge "msm: mdss: avoid possible infinite loop on kmalloc failure" 2017-01-05 02:09:02 -08:00
Linux Build Service Account
8b24b9db96 Merge "msm: mdss: fix cwb output buffer memory leak" 2017-01-05 02:09:01 -08:00
Linux Build Service Account
c4ae5b8690 Merge "ARM: dts: msm: Introduce bus topology for sdm630" 2017-01-05 02:09:01 -08:00
Linux Build Service Account
53a6c09ff4 Merge "msm: mdss: fix programming of scaler lut_ctrl register" 2017-01-05 02:09:00 -08:00
Linux Build Service Account
6b5c6d44ea Merge "msm: sde: move config validation earlier to stream on" 2017-01-05 02:08:59 -08:00
Linux Build Service Account
1841235aad Merge "ARM: dts: msm: add support for truly panel in dsc mode" 2017-01-05 02:08:58 -08:00
Linux Build Service Account
dbbac4f76f Merge "sched: Fix new task accounting bug in transfer_busy_time()" 2017-01-05 02:08:58 -08:00
Linux Build Service Account
24df0afae9 Merge "ppp: take reference on channels netns" 2017-01-05 02:08:57 -08:00
Linux Build Service Account
0cb304caa5 Merge "msm: kgsl: Add Zap shader name for A512 GPU on SDM660" 2017-01-05 02:08:56 -08:00
Linux Build Service Account
fa69f96bbb Merge "msm: mdss: rename dsi phy version for msm8996 and sdm660" 2017-01-05 02:08:55 -08:00
Linux Build Service Account
a5d7c799af Merge "msm: mdss: Set default fps for dedicated WB" 2017-01-05 02:08:50 -08:00
Linux Build Service Account
fbc0f1b44f Merge "msm: mdss: Memset commit structure in compat path" 2017-01-05 02:08:49 -08:00
Linux Build Service Account
11e1f7acff Merge "msm: mdss: Add sysfs node for mdss to give runtime fps" 2017-01-05 02:08:48 -08:00
Linux Build Service Account
d4e1fb98bd Merge "msm: mdss: Allow WB to use first available control path" 2017-01-05 02:08:48 -08:00
Linux Build Service Account
9bcaa86e0c Merge "msm: mdss: Fix potential NULL pointer dereference in mdss smmu driver" 2017-01-05 02:08:47 -08:00
Linux Build Service Account
7da94c32a4 Merge "msm: mdss: print fence name during sync fence timeouts" 2017-01-05 02:08:47 -08:00
Linux Build Service Account
afc76e01c9 Merge "msm: mdss: Fix compat IOCTLS in rotator and primary" 2017-01-05 02:08:46 -08:00
Linux Build Service Account
dfc703f24a Merge "msm: mdss: Fix potential NULL pointer dereferences" 2017-01-05 02:08:46 -08:00
Linux Build Service Account
fff2d13b25 Merge "msm: mdss: Initialize pan_name array to 0 and handle error case" 2017-01-05 02:08:45 -08:00
Linux Build Service Account
ee57bbcc67 Merge "msm: mdss: Update WB OT settings for SDM660" 2017-01-05 02:08:45 -08:00
Linux Build Service Account
0aac3e19af Merge "qpnp-fg-gen3: add support for configuring ESR filter coefficients" 2017-01-05 02:08:42 -08:00
AnilKumar Chimata
ecbe2e6f80 qseecom: Rename clock handle names
Rename clock handles as per de-initialization sequence,
which is required to avoid the dangling pointers.

Change-Id: I9e0715e2a47f318acc414605ce8e624c432d6665
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2017-01-05 15:27:00 +05:30
Srinivas Rao L
21047b3dc2 lpm-levels: Do not consider cluster residency in suspend
If cluster deepest low power mode is disabled in idle path, the
residencies are recalculated and the max_residency for the shallower
mode becomes ~0 even if deepest mode is not disabled in suspend path.
Because of this while the cluster mode is selected during suspend,
it selects shallower mode instead of deepest mode available.

During suspend ignore the residency to select the cluster level
low power mode.

Change-Id: I812e33ad45e563b88c478d5d70296d5bd488438f
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
2017-01-05 15:26:23 +05:30
Harry Yang
a154041d04 qcom-charger: Fix crash due to null ptr access of pl psy
pl psy access is guarded by pl_disable_votable, disabled in PMI
probe. Accessing parallel psy before it is available will cause
crash.

Fix this by allowing access to parallel psy only after all the
initial votes have been cast on pl_disable_votable in probe.

CRs-Fixed: 1101600
Change-Id: Idd289229f45c31cf8fd234339b6738bd241283bd
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-01-04 22:59:39 -08:00
Veerabhadrarao Badiganti
b1d2009d04 mmc: core: Enable HS mode first in the device and then in the host
While switching to HS mode, high speed mode timing should be selected
in the device before changing the clock frequency in the host.

But present driver first updates the frequency in host and then selects
HS mode in device while selecting HS400 mode. This is a spec violation.
Updated the sequence to comply with spec.

Change-Id: I5b2c1f724d820daf9c0bca8651cf85bd0ff67655
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-01-05 12:28:52 +05:30
Harry Yang
d9a8a3b2e1 qcom-charger: typec legacy cable detection
Currently the legacy cable bit is always asserted during off mode
PON via USBIN. This causes PD to be disallowed even when a
non-legacy cable is attached in off mode.

Fix this by always allowing PD upon USBIN attach PON, but keep the
normal legacy detection flow for all subsequent insertions.

CRs-Fixed: 1107607
Change-Id: I20acd75643955b6d2144389159a0dad41f01a532
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-01-04 22:57:17 -08:00
Laxminath Kasam
dc8d39270d ARM: dts: msm: add audio device node for qrd msm8998 interposer
Add support for required node for audio of qrd msm8998
interposer with tasha codec.

CRs-Fixed: 1088193
Change-Id: Ib3f91e3f8df014f3d1c78b4fd12f8f9c2d262209
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-01-05 14:37:53 +08:00
Pavan Kumar Chilamkurthi
2ef580d634 msm: camera: fd: Call fd buffer done on active buffer
Call fd hw buffer done on current active buffer always,
irrespective of current fd state.

Change-Id: I26018b25a9cd9fb266ccc87da76610d4db45a98e
CRs-Fixed: 1093918
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2017-01-04 22:36:56 -08:00
Udaya Bhaskara Reddy Mallavarapu
15d83b644a media: dvb-core: Fix for dvb_ringbuffer merge conflict
resolve the dvb_ringbuffer merge conflicts due to
v4.4-16.09-android-tmp branch merging.

CRs-Fixed: 1086706
Change-Id: Ic5ec87d48e86fd9504fed7232286cf81b46c4035
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
2017-01-05 11:25:26 +05:30
Taniya Das
103f5f9265 clk: qcom: osm: remove ioremaps from panic callback
Calling ioremap() in clk_osm_panic_callback() can result in
BUG() when the kernel is panic-ing. It is not safe to use
ioremap() in atomic context. Map the debug registers at probe
time instead.

Change-Id: I4009ea6e10df2dc8649cf0b0c1a5b6398d3c689e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-05 11:20:14 +05:30
Osvaldo Banuelos
3da98b2c15 clk: msm: clock-osm: remove ioremaps from panic callback
Calling ioremap() in clk_osm_panic_callback() can result in
BUG() when the kernel is panic-ing. It is not safe to use
ioremap() in atomic context. Map the debug registers at probe
time instead.

CRs-Fixed: 1086427
Change-Id: Ie14be6ee9ffbcb09009d5d05235e20f6ac215fa0
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2017-01-05 10:09:01 +05:30
Abhijeet Dharmapurikar
9c3c098aa2 pmic-voter: Allow forcing a value via debug interface
Forcing a certain value on the result of the votable is a very
desireable feature to speed up debugging.

For this create a debugfs dir per votable and implement following debugfs
files
- status : This is the same as the earlier one which dumps clients and
	 their values and results.
- force_val : The value of the vote to force. This will be an integer
		value for min/max votables and should be a boolean value
		for set_any votables.
- force_active: This flag activates or deactives the force mode.

Note that writing to the force active flags always invokes the callback
when present even if the same value is being set. When activated the
callback is called with the result set to force_val and the client set to
"DEBUG_FORCE_CLIENT".

While activated, other clients are allowed to vote, their votes are
noted and the effective values tracked internally are updated. Only the
callback is skipped. This internal tracking of the effective values help
in switching back quickly to the voted results once the force mode is
deactivated IOW  When deactivated the callback is called with the result
and client set to the effective ones which could have been the same as
the ones prior to force activation or could have been updated by
the calls to vote() while force was activte.

Also, note that while force is activated, the calls to
get_effective_result and get_effective_client return the force_val
and "FORCE_DEBUG_CLIENT" instead of the internal effective values. This
provides consistency with callback values.

Change-Id: Id9eb5b27675e3ed53176175c13e0d654783bcf08
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-01-04 18:52:44 -08:00
Subbaraman Narayanamurthy
c38c85e7e2 ARM: dts: msm: Specify the interrupts properly for haptics on pm660
Interrupts are not specified correctly for haptics device on
pm660. Fix it.

Change-Id: I4a34c82c67b32276d64b74a9dd49bf5568c800dd
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-04 17:49:31 -08:00
Subbaraman Narayanamurthy
0b3390952c ARM: dts: msm: Specify the interrupts properly for haptics on pmi8998
Interrupts are not specified correctly for haptics device on
pmi8998. Fix it.

Change-Id: I9c98c7adacba359e35dec291a034c54bccf3cfbd
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-04 17:46:51 -08:00
Kumar Behera
77c4aba67d msm: cpp: Fix for integer overflow in cpp
Due to integer overflow ,the bound check in config frame function
may pass and this may allow user to access invalid buffer. This
fix takes care of proper bound and don't allow integer overflow.

CRs-Fxied: 1097709
Change-Id: I504ad591633afaba82268b5ee27a321691d75c80
Signed-off-by: Kumar Behera <mohanb@codeaurora.org>
2017-01-04 16:39:10 -08:00
Walter Yang
38a83df036 ASoC: msm-cpe-lsm: cleanup ioctl functions
Some of the ioctl command handling is not properly using the
copy_from_user interface. Fix these issues and cleanup the ioctl
functions to make sure there is no illegal memory access.

CRs-Fixed: 1090482
Change-Id: Ib18e4b132d3487a3103335768aad5df2ebe13f2d
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-01-04 16:17:05 -08:00
Rohit Gupta
f43931e819 sched: Delete heavy task heuristics in prediction code
Heavy task prediction code needs further tuning to avoid any
negative power impact. Delete the code for now instead of adding
tunables to avoid inefficiencies in the scheduler path.

Change-Id: I71e3b37a5c99e24bc5be93cc825d7e171e8ff7ce
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2017-01-04 15:55:29 -08:00
Tirupathi Reddy
065bd0b8a0 ARM: dts: msm: Add APC0/1 CPR instances for sdm660
Add CPR device nodes with required configuration for supporting
closed-loop operation for APC0/1 CPR instances in sdm660.

CRs-Fixed: 1105923
Change-Id: I6c085f7fb3a491b595f27c959468589b741cd2c0
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-01-05 05:25:27 +05:30
Rohit Gupta
e6993466cf cpufreq_interactive: Allow hispeed_freq to work with prediction
hispeed_freq can still be useful with some versions of predictive
load based scaling. So, allow that.

Change-Id: I84ce1e2b6e7e839bd278aa3deaac21f4cd8503a8
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2017-01-04 15:55:23 -08:00
Linux Build Service Account
b1cb986a8f Merge "ARM: dts: msm: Add G-Link SPI transport device for sdm630" 2017-01-04 15:40:19 -08:00
Linux Build Service Account
8c3460d38c Merge "ARM: dts: msm: Add G-Link SPI transport device for sdm660" 2017-01-04 15:40:18 -08:00
Linux Build Service Account
6c1b5be1fe Merge "nf: IDLETIMER: Use fullsock when querying uid" 2017-01-04 15:40:17 -08:00
Linux Build Service Account
4752ef6f66 Merge "ARM: dts: msm: Enable red LED blinking for pm660" 2017-01-04 15:40:17 -08:00
Liam Mark
39e2ea6dd4 iommu: arm-smmu: Set context bank page table coherency
Currently the coherency of an iommu's page table is
dictated by the coherency of the iommu device.

Allow clients to force a context bank's page table as
coherent.

Change-Id: I89ad9b6033eb54be876f8c6bcddec35a148d840b
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2017-01-04 14:20:14 -08:00