Commit graph

887,953 commits

Author SHA1 Message Date
Guru Das Srinagesh
b7f3dca981 leds: qti-flash: Allow dynamic symmetry current redistribution
Currently, when symmetry is enabled, current redistribution occurs only
when a switch is turned on after being disabled initially. Enable
current redistribution to occur on the fly as long as a switch is
enabled. This applies to both torch and flash devices.

Illustrative example:

user0	user3	Torch0	Torch3	Comment
500	0	250	250	(average of user set values)
150	0	75	75	(150 + 0 / 2)
150	100	125	125	(150 + 100 / 2).

Change-Id: I5f832e4fa669a9662d45592c5c3a512df07f7255
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-07-27 11:45:58 -07:00
qctecmdr
cf47a88635 Merge "scripts: gki: Disable DEBUG_FS for user variant builds" 2020-07-24 05:35:52 -07:00
qctecmdr
e140d708bc Merge "cpuidle: lpm-levels: Remove dependency on QGKI" 2020-07-24 05:35:52 -07:00
qctecmdr
7eeabad75c Merge "arm64: defconfig: remove mass storage as module" 2020-07-24 05:35:51 -07:00
qctecmdr
c08fc62dee Merge "mm/oom_kill: Online memory before running oom-killer" 2020-07-24 05:35:51 -07:00
qctecmdr
bccedceede Merge "scsi: ufs: Support query the spm/rpm level from device tree" 2020-07-24 05:35:51 -07:00
qctecmdr
6a0fedb06d Merge "pinctrl: set gpio 4 and 5 for qup14" 2020-07-24 05:35:50 -07:00
qctecmdr
0cfa8998e3 Merge "clk: qcom: clk-alpha-pll: Add support for Lucid EVO PLL" 2020-07-24 05:35:50 -07:00
qctecmdr
5c84a3c750 Merge "mhi: core: Error handling for pending packets in mission_mode" 2020-07-24 05:35:49 -07:00
qctecmdr
e5d856962d Merge "rpmsg: glink: Update signals interface" 2020-07-23 19:13:20 -07:00
qctecmdr
ca81e969e7 Merge "coresight: cti: Add sys interface to show max trigger number" 2020-07-23 19:13:20 -07:00
qctecmdr
aab3d4b120 Merge "usb: gadget: Fix interface descriptor fields for QTI functions" 2020-07-23 19:13:19 -07:00
qctecmdr
816aefccc5 Merge "usb: dwc3: gadget: Rate limit error message within ep_dequeue() API" 2020-07-23 19:13:19 -07:00
qctecmdr
a54a082997 Merge "adsprpc: set QoS only to silver cluster" 2020-07-23 19:13:18 -07:00
Mayank Rana
b0ffe3d223 usb: dwc3: gadget: Rate limit error message within ep_dequeue() API
With USB QDSS software path disable case, usb_qdss_close() API tries to
dequeue all queued USB requests which may have been already moved to
cancelled list and unlikely available as those may have been already
given back from end xfer command. There are more than 200 USB request
and quick enable/disable of USB QDSS software path results into error
message flooding serial console possibly causign watchdog timeout.
Hence rate limit error message with ep_dequeue() API.

Change-Id: I78dbffc5ec5e1b5d8d0df91da6aded398c988be9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-07-23 10:14:26 -07:00
Xiaojun Sang
147465cd66 pinctrl: set gpio 4 and 5 for qup14
Make GPIO 4 and 5 support qup14 functionality.

Change-Id: I2111e0c19eacfc1d200d69069b76a12fbc99e145
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-07-23 19:28:45 +08:00
qctecmdr
8ac77746dc Merge "mm/memory_hotplug: Fix try_online_one_block() logic" 2020-07-23 03:07:12 -07:00
qctecmdr
0646fd8d0d Merge "defconfig: lahaina-qgki: enable system PM violators driver" 2020-07-23 03:07:12 -07:00
qctecmdr
9a81de62a9 Merge "usb: f_qdss: Cleanup control interface as no longer in use" 2020-07-23 03:07:10 -07:00
Vivek Pernamitta
ce91ce71f1 mhi: core: Error handling for pending packets in mission_mode
Clearing pending packets global reference count in mhi_controller
only when channel is in mission mode in error handling mechanism
with command completion timeout in mhi prepeare channel.

Change-Id: Ib86b4f2a2ff5f28d27cf6174f65987d4f9ca1aea
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2020-07-22 23:55:10 -07:00
Tushar Nimkar
6bba50349f cpuidle: lpm-levels: Remove dependency on QGKI
Fix compilation issue for lpm driver when dependency on QGKI is removed.
Also this patch remove QGKI dependency from QTI_DDR_STATS_LOG,
QCOM_SOC_SLEEP_STATS configs and defines CONFIG_QGKI_LPM_IPI_CHECK config.

Change-Id: I60c7d5d173a8739a72f0a9c3ceb8cbb357154618
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2020-07-23 10:49:33 +05:30
qctecmdr
86db7a0567 Merge "msm: pcie: add DRV enabled status for each RC" 2020-07-22 18:52:10 -07:00
qctecmdr
fe54d0ddee Merge "clk: qcom: gcc: Update GCC code for HOLI" 2020-07-22 18:52:10 -07:00
qctecmdr
28924f2da1 Merge "clk: qcom: shima: Update frequency tables and VDD data" 2020-07-22 18:52:09 -07:00
qctecmdr
54bc5a866d Merge "msm: cvp: Increase delay during AXI reset pulse" 2020-07-22 18:52:09 -07:00
qctecmdr
c74f51057b Merge "irqchip: mpm: Update mpm mapping for tsense interrupts for holi" 2020-07-22 18:52:09 -07:00
qctecmdr
ebed0f6461 Merge "msm: kgsl: Use correct gpudev for A660 GPU variant" 2020-07-22 18:52:08 -07:00
qctecmdr
ce059a4d06 Merge "crypto: msm: Fix null pointer dereference" 2020-07-22 18:52:08 -07:00
qctecmdr
2e2b090573 Merge "usb: gadget: f_midi: Avoid invalid pointer access" 2020-07-22 18:52:08 -07:00
Chris Lew
790be8ba3d rpmsg: glink: Update signals interface
Update the serial signal interface for rpmsg and glink to match the
android common kernel abi.

Change ABI whitelist to use renamed APIs for rpmsg_get/set_signals().

Change-Id: If531efa835b0bfb8405a5dfd265025b5c2754a61
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-07-22 17:26:51 -07:00
Isaac J. Manjarres
9a2809ba47 mm/oom_kill: Online memory before running oom-killer
Attempt to online memory before invoking the oom-killer
to alleviate the memory pressure in the system as quickly
as possible, without sacrificing performance/user-experience
by invoking the oom-killer.

Change-Id: I0cf3c50fcd022cd282731bccb54bfbad45878bb1
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-07-22 13:48:01 -07:00
Isaac J. Manjarres
8873011c08 mm/memory_hotplug: Fix try_online_one_block() logic
The logic to walk through the memory blocks in the movable
zone is not correct. When memory at either extreme of the movable
zone is offlined, the start of the movable zone is adjusted such that
it no longer accounts for the block that was offlined--if the block
is at the beginning of the movable zone--or the span of the movable
zone is adjusted such that it no longer covers the block that was
offlined--if the block is at the end of the movable zone. Similarly,
when the entire zone is offlined, the zone's start pfn and span are
set to 0. So, when looking for a block to online, we end up ignoring
some of the blocks at the extremes of the movable zone, or the entire
zone.

Thus, walk through all of the present memory blocks in the system when
deciding to online a block.

Change-Id: I1e1def049f672a1710c5916dfd7de70d3ef68e71
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-07-22 13:47:28 -07:00
Isaac J. Manjarres
82202b6f97 mm/memory_hotplug: Fix deadlock in try_online_one_block()
There is a possible scenario where the system can deadlock
itself when it is low on memory, and attempts to online
a memory block. Consider the following scenario:

 -A thread in userspace onlines a memory block through sysfs-
 state_store() /* Acquires the device_hotplug_lock */
 device_online()
 memory_subsys_online()
 memory_block_change_state()
 memory_block_action()
 online_pages()
 memory_notify(MEM_GOING_ONLINE, ...)
 online_page_ext()
 alloc_page_ext()
 __alloc_pages_nodemask(GFP_KERNEL, ...)
 /* System enters into a critically low memory state */
 out_of_memory()
 try_online_one_block() /* Invokes lock_device_hotplug() and deadlocks */

Fix deadlock by introducing and using trylock_device_hotplug()
instead of lock_device_hotplug().

Change-Id: I52bc8075ae713c50e3c381216f3616ce8366cf31
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-07-22 13:45:55 -07:00
qctecmdr
8a429d00aa Merge "msm: adsprpc: remove use of vfs_stat API in the fastrpc driver" 2020-07-22 12:28:37 -07:00
qctecmdr
52fdd4f0ca Merge "fsa4480: Fix headset not detected during system suspend" 2020-07-22 12:28:37 -07:00
qctecmdr
12652534c7 Merge "input: touchscreen: synaptics_tcm: Fix Propagation" 2020-07-22 12:28:37 -07:00
qctecmdr
2420ab8623 Merge "msm: ipa: Add ipa hw and gsi changes for holi" 2020-07-22 12:28:36 -07:00
Vatsal Bucha
1f87c16e25 fsa4480: Fix headset not detected during system suspend
Headset is not detected after system goes into suspend
as sufficient delay is not given after pm_stay_awake
for system to wakeup. Implementing freezable workqeueue
after pm_stay_awake resolves the issue.

Change-Id: Ia104a1577004a4242470f3b4150be23698fc92b1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-22 18:41:26 +05:30
Jagadeesh Kona
51b504feaf clk: qcom: shima: Update frequency tables and VDD data
Update frequency tables, VDD data, PLL configuration and
halt check settings for all clock controllers as per the
latest frequency plan.

Change-Id: I8f698fb7b1d10b980916d7387c3cfb800f8b2d19
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-07-22 18:34:50 +05:30
Saurabh Sahu
af6ee7a8eb clk: qcom: gcc: Update GCC code for HOLI
Update the freq tbl for camss_tfe_clk_src, csi3phytimer
clks, ope_clk src, gpll8 lval and usb BCRs for HOLI.

Change-Id: I7e34a7027e1fd0a84ec26cc5815b0b247e1da3e3
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-07-22 17:20:50 +05:30
Raghavendra Kakarla
831d1f3021 irqchip: mpm: Update mpm mapping for tsense interrupts for holi
Update the mpm pin to tsense interrupt mapping so that
tsense interrupts can wakeup the APSS from deep sleep.

Change-Id: I41a69571a6621ec41c6185e1052be2c6e95ba1eb
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-07-22 12:42:40 +05:30
Saurabh Sahu
9ab4e2eae6 dt-bindings: clock: Update GCC clock ids for HOLI
Add clock id for camss_mclk4_clk, csi3phytimer_clk
csi3phytimer_clk_src and usb bcrs for HOLI.

Change-Id: I0acab96149aedee355e036cf44d104b73a348ff9
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-07-22 09:50:36 +05:30
Prasad Sodagudi
20bbd46847 scripts: gki: Disable DEBUG_FS for user variant builds
DEBUG_FS is enabled in {target}-gki_defconfig for supporting
internal test teams requirements. But android requirement is
that, DEBUG_FS should be disabled for user builds. So add
support to merge debugfs.config fragment for user builds.

Change-Id: I584db74375ce968fd2eacbe03548f07f73416152
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-07-21 15:30:57 -07:00
Tanwee Kausar
d6ccbf749e crypto: msm: Fix null pointer dereference
Fixing possible null pointer dereference of sg_src
when nbytes exceed.

Change-Id: I91a2a274f11646bc65c4eb0d14a82d4ed81f4e42
Signed-off-by: Tanwee Kausar <tkausar@codeaurora.org>
2020-07-21 15:16:57 -07:00
Lina Iyer
7d8ae6cc81 defconfig: lahaina-qgki: enable system PM violators driver
Enable system PM violators driver for QGKI on Lahaina.

Change-Id: I6dcb7be5813866d1cb0e080865d86f6aede734dc
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-07-21 11:47:04 -06:00
qctecmdr
c322899f4a Merge "pci: pci-msm-msi: Update the msi address size" 2020-07-21 09:43:29 -07:00
qctecmdr
d348dc8523 Merge "usb: dwc3: gadget: WARN on no-resource status" 2020-07-21 09:43:28 -07:00
qctecmdr
58c512c7b7 Merge "cnss2: Add debug assert on idle restart timeout" 2020-07-21 09:43:27 -07:00
qctecmdr
694fb7b30a Merge "defconfig: lahaina: enable DSCP based match" 2020-07-21 09:43:26 -07:00
qctecmdr
58797d8685 Merge "mmc: sdhci-msm: Update DDR_CONFIG reg with HSR value if supplied" 2020-07-21 09:43:25 -07:00