Commit graph

583038 commits

Author SHA1 Message Date
Linux Build Service Account
264fc8202f Merge "ARM: dts: msm: Update MEM ACC corner mapping for APC0/1 for sdm630" 2017-02-11 01:25:06 -08:00
Linux Build Service Account
30acf3e7e9 Merge "drm/msm: Use dma_sync_sg_for_device() to flush cache for new buffers" 2017-02-11 01:25:04 -08:00
Pavankumar Kondeti
a4fbda7844 core_ctl: redo offline_delay_ms tunable implementation
The offline_delay_ms tunable is supposed to give hysteresis
effect by delaying the CPU isolation. The current implementation
is not enforcing this correctly due to which we see a CPU is
getting isolated immediately in the next evaluation cycle.

Allow isolating a CPU only if offline_delay_ms is passed
after since the last time we isolated/unisolated/evaluated
without changing the need CPUs.

Change-Id: I9681a11dea1ffa07b2fda6cc9a40af9b453bf553
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-02-11 10:25:12 +05:30
Sathish Ambley
3c6901ee67 msm: ADSPRPC: Set the device node in the session context
Set the device node associated with the session while creating
the context to allow for dma operations.

Change-Id: I7937a7bd533a9be09453144e20f7ecca3f3cc0ef
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-02-10 18:55:18 -08:00
Subbaraman Narayanamurthy
6825d0dd4f qpnp-fg-gen3: add support for configuring slope limit coefficients
Slope limit coefficient is used to define the maximum change in
battery SOC. There is a requirement to configure slope limit
coefficient based on charging status and battery temperature
threshold. Add support for it through the following properties.

- qcom,slope-limit-temp-threshold
- qcom,slope-limit-coeffs

Possibe values allowed for slope limit coefficient is 0 to 31.

Change-Id: I41eacb13734f1692a16c1b011c58a488e46515ec
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 18:20:07 -08:00
Jack Pham
da9c7fa2a5 usb: pd: Update uevent parameters during hard reset
Ensure that a few of the parameters (SELECTED_PDO, REQUESTED_PDO,
RDO) are properly cleared out during hard reset and a uevent
update is sent to notify userspace clients.

Also, don't reset src_cap_id upon disconnect. This makes it a
a monotonically increasing value upon every connection so that
clients can distinguish when a new PD session is established.
Demote it to a u16 in order to have a smaller wraparound (65535).

Change-Id: I622ad1155b3680d3f616d5e9a835d4c6cbca3636
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-02-10 17:42:29 -08:00
Jack Pham
47fdec0cf1 usb: pd: Make select_pdo_store() wait until request goes through
When sending a request through the 'select_pdo' sysfs file,
make sure the request has gone through and is acknowledged
by the source before returning. This allows for checking if
the request was rejected so that an error can be returned.

Rename the 'swap_complete' completion variable to 'is_ready'
so it can be reused in this context. Also add a mutex so that
select_pdo will not contend with a dual_role swap.

Change-Id: Ie8b088faa15c67915e3bd96972b4f59f0cc66afe
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-02-10 17:42:06 -08:00
Subbaraman Narayanamurthy
6f4dec2b0c qcom: qpnp-smb2: Reset switcher_power_ok irq count when USBIN_UV fires
Currently when 3 switcher_power_ok interrupts are seen within a
second, the driver thinks that the switcher is reverse boosting
and suspends USB input path.

However, switcher_power_ok could happen 3 times within a second
while AICL is run from a charger collapse, a valid usecase which
ends up in an USB suspended state.

Note that AICL run caused switcher_power_ok is accompanied by an
USBIN_UV interrupt. Use that to distinguish reverse boost Vs AICL
runs. In particular, reset the switcher_power_ok interrupt count
updated by storm_watch when an USBIN_UV interrupt is seen.

Change-Id: I6817c66319f9af03ac28324a8d863876fdadafb3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 16:57:58 -08:00
Subbaraman Narayanamurthy
2b9d6a362f qcom: smb-lib: make smb_irq_info common for smb2 and smb138x chargers
Since the interrupt information for both smb2 and smb138x charger
devices are almost common, abstract it to a single smb_irq_info
struct. Also, keep an interrupt index for every interrupt which
can be used when necessary.

Change-Id: I4e42dd15a46b59c1a9c27412ca6fdff281fa71ec
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 16:57:53 -08:00
Subbaraman Narayanamurthy
1f0f1184a0 qcom: storm-watch: add support to reset storm count
There are some circumstances where we have to reset the storm
watch interrupt count. Add support for it.

Change-Id: Iacbeb3258d53010aab8ba881d10de773fe54dd93
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 16:57:48 -08:00
Prashanth Bhatta
24e08ffdd7 icnss: Remove unused IPC logging mechanism
IPC logging long mechanism was added to capture reset logic
register access log to be captured into a separate buffer so that
those logs wont obscure with main driver logs. Now that reset
sequence is moved to WLAN FW so there is no need for the IPC
logging mechanism.

CRs-fixed: 2005481
Change-Id: I1d983a5f5aa0293598303bda23f9adbc04303458
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2017-02-10 16:42:45 -08:00
Harry Yang
8a3c043c63 qcom: qnovo: Update fcc and fv through batt psy
To force qnovo FCC and FV through parallel framework
more conveniently, batt psy is bridged to replace votable
in qnovo driver. The two properties are -
POWER_SUPPLY_PROP_CURRENT_QNOVO and
POWER_SUPPLY_PROP_VOLTAGE_QNOVO.

CRs-Fixed: 2004173
Change-Id: I40b179fe5535e0209fcdbc1cb7e64cbfdf45a14b
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 16:36:51 -08:00
Harry Yang
491c847cd2 qpnp-smb2: expose forcing fcc/fv values via battery psy
CURRENT_QNOVO and VOLTAGE_QNOVO allow "forcing" fast charge
current and float voltage value, implemented around votable
such that one can have previlige in FCC and FV voting.

CRs-Fixed: 2004173
Change-Id: I2df30220aa89e15c4bace9980990f227218a5bdd
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 16:36:50 -08:00
Nicholas Troast
580b03cf01 smb-lib: add ICL settled value to IRQ debug print
Print the ICL settled value within the icl-changed IRQ handler.

Change-Id: I5553abecfc5e32b24bef3525f532f4b3505c0757
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:49 -08:00
Fenglin Wu
13c4202dde smb-lib: fix slave BCL for HVDCP3
Currently, fixed 5V adapter voltage is used for calculating slave FCC.
When HVDCP 3.0 is used it skews the desired FCC distribution. Fix this
by using the HVDCP3 pulse count to determine the actual adapter voltage
when limiting the slave battery current.

Change-Id: Ib4735ffe7b6287a3e57e0f74eb24c13c6a2b7a5a
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:48 -08:00
Nicholas Troast
d86ba09f57 power_supply: add INPUT_VOLTAGE_SETTLED property
INPUT_VOLTAGE_SETTLED is the negotiated adapter voltage setting.

Change-Id: I2ac529a77e8ed007c908c4f37eea718a80bc11d3
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:47 -08:00
Nicholas Troast
c9329b856e ARM: dts: msm: enable the chg-state-change IRQ for SMB138X
The chg-state-change IRQ will be used to notify when the parallel slave
charger changes its charge state. Enable it.

Change-Id: Ia57db8ec5f2263b62217c235725ee9caa07f86e4
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:47 -08:00
Nicholas Troast
e9fc341735 smb138x-charger: add handler for slave chg state change
Add an IRQ handler function that notifies when the slave charge state
changes.

Change-Id: I359ed08c5ad289ceeabd6fa8720a959c74b6bb5e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:46 -08:00
Linux Build Service Account
d42f45ccce Merge "net: support __netdev_alloc_frag to always use GFP_DMA" 2017-02-10 15:47:10 -08:00
Linux Build Service Account
aa5e93343f Merge "msm: kgsl: Fix Integer overflow in sparse_bind related functions" 2017-02-10 15:47:09 -08:00
Harry Yang
5e55ca1847 power_supply: Add CURRENT_QNOVO and VOLTAGE_QNOVO properties
CURRENT_QNOVO - force fast charge current value
VOLTAGE_QNOVO - force float voltage value

CRs-Fixed: 2004173
Change-Id: I7569052fd2cb6d1ce9a3a8e69e79b950a6c62d57
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 15:31:19 -08:00
Harry Yang
d6e0cf48db qcom: smb-lib: remove FCC_MAX votable
FCC_MAX votable was introduced as an intermediate votable used by
Qnovo driver for fast charge current vote, but does not fit in
the new requirement that Qnovo force its vote value.

Remove it.

CRs-Fixed: 2004173
Change-Id: Iff8b74113550f808546d61ef864f3935fc5d61fa
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 15:30:37 -08:00
Ashay Jaiswal
97b2a779b2 qpnp-smb2: Add DT option for enabling input suspend on fake battery
Input suspend on fake battery feature is by default enabled in the
software, add a DT property to enable/disable the feature.

Change-Id: I06bda6c72010699f4be24ff6044fe3bb248b06fb
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 15:14:18 -08:00
Subbaraman Narayanamurthy
5c458cc2f8 leds: qpnp-flash-v2: add delay between LMH mitigation and LED strobe
As per the hardware recommendation, a delay of 500 us is needed
after LMH mitigation is enabled by software and before the flash
LED is strobed. Add it.

Change-Id: Ib70efbb7267510ffb9d95c4aba8566bf6e777c0f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 12:54:40 -08:00
Tony Truong
146047ddb0 msm: mhi: fix latent issues in MHI drivers
Incorrect checks in MHI drivers may crash the system.
Fix these checks so that MHI drivers will handle the
errors gracefully.

Change-Id: I462263799c2e76573300ed43b51e39ecba42914b
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-02-10 12:04:51 -08:00
Runmin Wang
82b6e4d903 arm64: process: Update the kernel offset
Kernel address is relocated to the VMALLOC region. Update the check
to use KIMAGE_VADDR.

Change-Id: Ie2539a78a8180a3dbc2c8075a891e99892d809f2
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-02-10 11:59:33 -08:00
Skylar Chang
038d0bef5f msm: ipa3: fix race condition in SSR
On pipe setup, enable data path should happen for after
all pipe resources are allocated.
This change prevents a race condition where the pipe is enabled
before RX buffers are submitted to IPA.
Then, when buffers are submitted to IPA there is a race between
submitting the buffers and getting RX packets.

CRs-Fixed: 1096357
Change-Id: Ic32924b6893bb8c7813b1b8e68e03b5e09560b69
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-02-10 11:40:30 -08:00
Runmin Wang
ac69bcf1f0 defconfig: msm: Enable EL2 tlb handler
Enable QCOM_EL2_TLB_HANDLER so that tlb conflict is handled
by EL2.

Change-Id: I8af8be929293e5419d58712d742cb62fb82f8897
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-02-10 10:34:55 -08:00
Prasad Sodagudi
0b8561aff0 arm64: raise exception to EL2 for sync aborts
Raise exception to EL2 for every EL1 sync data aborts,
so that EL2 handles the TLB conflicts.

Change-Id: Ib140599e23c399b23c12ddbeb59979d6caf5d38e
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-02-10 10:34:40 -08:00
Suresh Reddy Yellala
b1d18ea6ed config: Add new file msmcortex_mediabox_defconfig
APQ8098 Display driver is moving away from Framebuffer (CONFIG_FB)
configuration to DRM  (CONFIG_DRM) configuration.

Change-Id: Ibe19318682fcd127b5f32096ae4445ec7d2d42dd
Signed-off-by: Suresh Reddy Yellala <suresh@codeaurora.org>
2017-02-10 10:09:57 -08:00
Abhinav Kumar
ed55c7a2a3 defconfig: disable drm/kms driver in msm defconfig
Disable drm/kms driver in msm and
perf defconfigs

Change-Id: I538fc73bd8b0c4217db10281e20462488a3e746d
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-02-10 09:37:26 -08:00
Linux Build Service Account
45ad5727c9 Merge "ASoC: msm: qdsp6v2: Add INT3 Tx port for LSM" 2017-02-10 06:46:05 -08:00
Linux Build Service Account
1f2a86994e Merge "drivers: soc: add mutex to prevent response being processed twice" 2017-02-10 06:46:05 -08:00
Linux Build Service Account
af6d354a11 Merge "ARM: dts: msm: add SMB1351 charger node for SDM660 MTP" 2017-02-10 06:46:04 -08:00
Linux Build Service Account
564ead6a58 Merge "qpnp-smb2: support POWER_SUPPLY_PROP_CTM_CURRENT_MAX" 2017-02-10 06:46:02 -08:00
Linux Build Service Account
1a78d46209 Merge "power_supply: add DIE_HEALTH and CONNECTOR_HEALTH properties" 2017-02-10 06:46:01 -08:00
Linux Build Service Account
2283a0e090 Merge "defconfig: arm64: msm-perf: Enable MSM_TZ_LOG" 2017-02-10 06:46:00 -08:00
Linux Build Service Account
9cfe21ae68 Merge "soc: qcom: Add support for Cx iPeak limit driver" 2017-02-10 06:45:59 -08:00
Linux Build Service Account
00b3ef62c0 Merge "USB: qc_rndis: Fix aggregation parameters settings issue" 2017-02-10 06:45:58 -08:00
Linux Build Service Account
9be7e2fad6 Merge "ARM: dts: msm: Add APC0/1 CPR instances for sdm630" 2017-02-10 06:45:56 -08:00
Linux Build Service Account
1603ea92b1 Merge "defconfig: msm: Enable CONFIG_MMC_RING_BUFFER for sdm660" 2017-02-10 06:45:56 -08:00
Linux Build Service Account
c8fbebb199 Merge "driver-core: cpu: Make isolate node read-only" 2017-02-10 06:45:55 -08:00
Linux Build Service Account
d01d82d616 Merge "qpnp-smb2: Make CURRENT_MAX property writeable for usb_psy" 2017-02-10 06:45:54 -08:00
Linux Build Service Account
f85e7d3750 Merge "ASoC: msm: qdsp6v2: Add endianness control for USB devices" 2017-02-10 06:45:53 -08:00
Linux Build Service Account
ddb5ca1fc6 Merge "msm: rndis_ipa: Fix to incorrect state transition" 2017-02-10 06:45:52 -08:00
Linux Build Service Account
1dc780eb62 Merge "clk: qcom: Add qpnp clock divider support" 2017-02-10 06:45:46 -08:00
Govind Singh
9133dafdff ath10k: converge TLV and HL1.0 params and API
HL1.0 wmi type configuration is overlapped with wmi
TLV type configuration.

converge TLV and HL1.0 params and API to remove
redundant code.

Change-Id: Ia41b300ca810495acfdab9f014f59d8cfa839ae3
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-02-10 06:15:17 -08:00
Amit Nischal
ca6532efe2 tracing: Add clock trace events only for COMMON_CLK_MSM
Clock trace events related to msm clock framework are
not required to be part of available events other that
CLK_MSM config so add the support for the same by
adding a config check.

Change-Id: I93e8d9604a58c0cb48be723d5845591e7a4b7861
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-02-10 18:59:48 +05:30
Tirupathi Reddy
b2a1e066fc defconfig: Enable FG GEN3 and QNOVO configs for sdm660 32-bit
Enable the GEN3 Fuel Gauge driver and Qnovo pulse charging engine
for sdm660 32-bit platform.

CRs-Fixed: 2005232
Change-Id: Ib6a158e7e6ee55fb348dc2ef7e4eb7d40f3051a5
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-02-10 18:20:56 +05:30
Tirupathi Reddy
5e090adb96 qcom: qnovo: fix 32-bit compilation
Make division operations in qpnp-qnovo 32-bit compatible.

CRs-Fixed: 2005232
Change-Id: I3dd5eed9cad8b2d054993305f1c737bc81418b5f
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-02-10 18:19:32 +05:30