Commit graph

814678 commits

Author SHA1 Message Date
qctecmdr
b447e0316c Merge "defconfig: sdm660 : enable ZONE_DMA32" 2020-08-25 00:53:32 -07:00
Ajay Agarwal
6d13f2e15c usb: gadget: u_ether: Add skb check in eth_start_xmit
'Commit 145c3d9be206 ("usb: u_ether: Prevent dropping multicast
packet in rmnet ip mode")' removed skb check from eth_start_xmit
function. While ndo_start_xmit are typically expected never to be
called with NULL SKBs, for NCM function this xmit function is
called with NULL SKB initially which then uses the 'wrap' routine
to create valid SKBs. But this null SKB is getting dereferenced
before 'wrap' routine could run on it when in ethernet mode.
Fix this by bringing in the skb check.

Change-Id: I9d40f70190eb91ecc848b71c4ce31a656c60a28d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2020-08-25 11:17:07 +05:30
qctecmdr
fdf4e3445a Merge "defconfig: msm: Add config fragment for DEBUG_FS disablement" 2020-08-24 15:33:13 -07:00
qctecmdr
564ac72af9 Merge "defconfig: sdm : Add clock configs for SDM660" 2020-08-24 15:33:13 -07:00
qctecmdr
ab9ac44074 Merge "cnss2: Add additional PBL registers to debug dumps" 2020-08-24 15:33:12 -07:00
Chetan C R
cfbfe9f7d2 defconfig: sdm660 : enable ZONE_DMA32
Due to hardware constraints some of the clients
need support for dma32.

Change-Id: Iaa7705d8d4106e5b7946dba879b9fc11c3f232f9
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
2020-08-24 07:38:17 -07:00
Shyam Kumar Thella
2de1d5de13 leds: qti-flash: Disable flash LED channel after De-strobe
Currently when a flash/torch device is disabled, ITARGET of the channel
is programmed to 0 by qti_flash_led_disable() before the channel is
de-strobed. This is causing a ramp down of the flash LED channel during
disable. Fix this by programming target current to 0 only after channel
is de-strobed.

Change-Id: Ie566f4e75b8af8c27b7b9a828823a9bfddc48bb6
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-08-24 19:48:48 +05:30
Shyam Kumar Thella
46749b3e9a leds: qti-flash: Disable flash LED when brightness is set to 0
Disable the flash LED channel when a brightness of 0 is set

As flash/torch devices can be enabled and disabled using switch as well
as from sysfs, reset the state of flash/torch devices when they are
disabled instead of doing it in switch disable.

Change-Id: If8ffb22d8c72a94325a1e9237778b810a152a293
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-08-24 19:23:22 +05:30
Naman Padhiar
01ba6a77aa icnss2: Check for WLAN mode before pm resume
Check for WLAN mode ON before calling exit power save
QMI to FW. Need this protection in case of IDLE shutdown
with PM suspend/resume.
During IDLE shutdown mode off will be sent to FW. Now if
APSS goes into PM suspend/resume. As part of resume exit
power save QMI will be sent to FW. As FW is in MODE off
state so FW rejects this QMI req.
To protect sending exit power save QMI request in mode off
state add check for WLAN MODE as mode on.

Change-Id: Ibd3f6461966e5122a9648b92a79f35bedcc35d8d
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-08-24 19:19:16 +05:30
Mohammed Siddiq
ea63b37bd7 cnss2: Add debug dump for Wlan FW PBL and SBL for HST
Primary and secondary bootloader debug data is required to debug
FW initialization issues. Add support to dump debug data for
PBL and SBL for Hastings.

Change-Id: If5c3a5c76a4b073bc6122f8a866592515fe277ad
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-08-24 17:49:02 +05:30
Manikandan Mohan
de71bd2467 cnss2: Debug changes for FW ready timeout
Add support for MHI bootup timeout status to debug FW ready timeout.

Change-Id: I2a5fa631dc9649d7f5438a06632f15a04d29be1f
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-08-24 17:39:03 +05:30
Nitin Rawat
a69de1580d Revert "scsi: ufs: Make clock scaling path PM Safe"
This reverts commit 4d21c0e4e4 as
it may cause mutex lockup issue as per below stack.

  schedule_preempt_disabled+0x18/0x28
  __mutex_lock_common+0x5f8/0x1068
  mutex_lock_nested+0x40/0x50
  devfreq_monitor_suspend+0x24/0x68
  devfreq_simple_ondemand_handler+0x74/0x98
  devfreq_suspend_device+0x78/0x90
  ufshcd_suspend+0x138/0x870
  ufshcd_runtime_suspend+0x44/0x1f0
  ufshcd_pltfrm_runtime_suspend+0x1c/0x28
  pm_generic_runtime_suspend+0x34/0x48
  __rpm_callback+0x164/0x278
  rpm_suspend+0x4e4/0x828
  rpm_idle+0x5bc/0x600
  __pm_runtime_idle+0x84/0xa8
  ufshcd_devfreq_target+0x144/0x330
  update_devfreq+0xec/0x1c0
  devfreq_monitor+0x34/0x90

Hence Reverting this.

Change-Id: I189c2724acebafc60a5d8103039342751d9b4b1e
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-08-24 16:26:49 +05:30
qctecmdr
efddec0379 Merge "clk: qcom: Add the clock controller drivers for SDM660" 2020-08-24 03:54:13 -07:00
qctecmdr
23d89ad26b Merge "power: qpnp-qg: Do not round-up/down battery SOC in BASS" 2020-08-24 03:54:12 -07:00
qctecmdr
f4bf2e3e31 Merge "diag: Do not USB write_done if MHI has gone down" 2020-08-24 03:54:12 -07:00
qctecmdr
ab42af6e3d Merge "cnss2: Add debug dump for Wlan FW PBL and SBL" 2020-08-24 03:54:12 -07:00
Chetan C R
fd24fe5dca defconfig: sdm : Add clock configs for SDM660
Enable gcc, gpucc, mmss clock controller configs
support for SDM660 platform.

Change-Id: Icdd82aabb19a8cf4ac0bcd189f33a4ff0f7c414d
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
2020-08-24 02:40:47 -07:00
Tengfei Fan
5eb545d445 defconfig: msm: Add config fragment for DEBUG_FS disablement
Add a config fragment for disabling DEBUG_FS.

Change-Id: Ia9e2f54cac558d9b31fa7ff700b77808d45e8bc9
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
2020-08-24 01:18:04 -07:00
Tengfei Fan
1db0096538 defconfig: msm: enable CONFIG_HID_NINTENDO
Enable CONFIG_HID_NINTENDO to Switch Pro Controller
support.

Change-Id: Ie48ea0de4a9de87ccf9ab014d38d8d269fbc8019
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
2020-08-24 01:17:43 -07:00
Manoj Prabhu B
590c931702 diag: Do not USB write_done if MHI has gone down
Race condition in handling MHI read channel buffers while external
proc has gone down and USB connect and disconnect events is prevented
by not freeing the read channel buffer when USB has notified write_done
if MHI has gone down.

Change-Id: I725b5115947390c7659047ac6848a797e1854a93
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2020-08-24 12:37:04 +05:30
qctecmdr
ddf0c0be03 Merge "icnss2: Remove voltage vote for vdd-cx-mx after probe" 2020-08-23 20:47:49 -07:00
qctecmdr
b1754c703b Merge "soc: qcom: watchdog: Modify some debug level" 2020-08-23 20:47:48 -07:00
zhaochen
0eb205bf81 soc: qcom: watchdog: Modify some debug level
Modify the irq_count print debug level from info to debug.

Change-Id: I1c5677414b2a97fc2697b003620a80d8843589a7
Signed-off-by: zhaochen <zhaochen@codeaurora.org>
2020-08-24 09:52:19 +08:00
qctecmdr
851c66e2cc Merge "clk: qcom: Add support to initialize & handle dynamic update for alpha plls" 2020-08-23 17:29:31 -07:00
qctecmdr
49dd3c0aac Merge "ARM: msm: Add board config support for 32 bit scuba iot" 2020-08-23 09:21:24 -07:00
Amit Nischal
6f9b76b462 clk: qcom: Add support to initialize & handle dynamic update for alpha plls
Add support to do initial configuration for alpha plls and votable
alpha PLLs need to have the fsm mode enabled as part of the
initialization using flag 'SUPPORTS_FSM_MODE'.

Alpha PLLs can support two kinds of input signals, normal and latched.
The normal input is directly passed to the core, while the latched input
requires a latch and acknowledge sequence to be performed for the
changed input to propagate.

Alpha PLLs can support dynamic update with both kind of input signals.
The ones which support this using a latched interface however need to
follow the latch/wait-for-ack sequence to be performed when the rate
changes. Mark these with a new flag 'SUPPORTS_DYNAMIC_UPDATE' to handle
this as part of clk_alpha_pll_set_rate().

PLLs could require post div to be set at runtime, add a vco_data which
could be used for these settings.

Change-Id: Ia0b9a2a52a3b33b7b68409c19c460d717eb5c1e2
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-08-23 14:45:01 +05:30
qctecmdr
9432cb5d99 Merge "soc: qcom: ramdump: Abort user-space read if timed-out" 2020-08-22 07:02:37 -07:00
Manikandan Mohan
45ae54cbc6 cnss2: Fix SBL logging for invalid log location address
Fix SBL log dump for invalid log location address. Also remove
SBL / PBL dumping from forced FW assert handler as it is
needed only to debug pre mission mode failures.

Change-Id: I9e7f84ca8f0b9afc8c9d035f068169c03c3be5f9
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-08-22 17:24:05 +05:30
Manikandan Mohan
0da05e3232 cnss2: Add additional PBL registers to debug dumps
Add additional PBL registers to debug dumps.

Change-Id: Id45f545840a66519152a3c0b813da6eee435fcc2
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-08-22 17:23:16 +05:30
Manikandan Mohan
7825260b90 cnss2: Add debug dump for Wlan FW PBL and SBL
Primary and secondary bootloader debug data is required to debug
FW initialization issues. Add support to dump debug data for
PBL and SBL for HSP.

Change-Id: I0626e38f1e2dfa02749033b2657c1567c15afe80
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-08-22 17:19:35 +05:30
qctecmdr
b3839e130a Merge "cqhci: Set the supported dun size" 2020-08-22 02:42:33 -07:00
qctecmdr
e4da850721 Merge "ipa: msm: printing rp wp values if channel stop fails" 2020-08-21 19:10:47 -07:00
qctecmdr
8049103a55 Merge "cnss2: Use correct timer for forcing FW assert" 2020-08-21 15:51:17 -07:00
Michael Adisumarta
cf35fcf839 ipa: msm: printing rp wp values if channel stop fails
Dumping rp and wp of the channel, if it fails to reset/stop.

Change-Id: Ie0ebec5ec2cc6be987fdbb0548a911d530da75fd
Acked-by: Suhas Mallesh <smallesh@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-08-21 12:33:26 -07:00
qctecmdr
f559642d33 Merge "msm: kgsl: Remove VM_MAYWRITE flag to restrict mprotect" 2020-08-21 08:09:44 -07:00
Taniya Das
0582ab7354 clk: qcom: Add the clock controller drivers for SDM660
Add drivers for global clock controller, multimedia clock
controller and peripheral gpu clock driver to support gpu
PLLs and RCGs.
This snapshot of the gcc-sdm660, gpucc-sdm660
and  mmcc-sdm660  driver as of msm-4.14 'commit
4d7da9f5ed3ac19c8 (" Merge "defconfig: sa8195: Enable
config for dyn splash"")'.

Change-Id: Ida7f5b5a3a7aaf275ef9e2d96ee6c67033aad9ca
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-08-21 16:26:27 +05:30
qctecmdr
be423d1021 Merge "power: qpnp-smblite: Add power-supply properties" 2020-08-21 00:17:31 -07:00
Raghavendra Rao Ananta
372075a960 soc: qcom: ramdump: Abort user-space read if timed-out
It's possible that the user-space process can be woken up
very late to collect the ramdumps by which time, the ramdump
collection timer would have expired. Following this, the PIL
driver unmaps the memory and continues. The user-space process
has no way to know about this and can make an attempt to read
the unmapped memory, thus resulting in a data abort.

Hence, notify the user-space process that the ramdump timer
has expired such that it can reset its state machine.

Also add the srcu related symbols to the allowed-list and update
the ABI snapshot accordingly.

Change-Id: Idb92d98406a9032c999c82e2089213883c5a65eb
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-21 11:17:55 +05:30
qctecmdr
1fd0ff5414 Merge "mm/vmalloc.c: fix __purge_vmap_area_lazy takes long time" 2020-08-20 20:51:35 -07:00
qctecmdr
3f0be94790 Merge "cnss2: print message for abrupt device reset to PBL" 2020-08-20 16:12:31 -07:00
qctecmdr
13db774c7a Merge "soc: qcom: Add new socid for Lito in socinfo" 2020-08-20 16:12:31 -07:00
qctecmdr
06b0516104 Merge "soc: qcom: socinfo: Add support for Scuba iot soc-id" 2020-08-20 16:12:30 -07:00
qctecmdr
9ca604af3f Merge "spi: spi-qcom-geni: Clear the RX fifo if FIFO has data after timeout" 2020-08-20 16:12:30 -07:00
qctecmdr
7a9dbb3a73 Merge "fs: crypto: Fix the memory leak while eviction of inode" 2020-08-20 16:12:30 -07:00
Michael Adisumarta
d2474ce3a3 msm: ipa: debugfs: Update keep_awake to use PM APIs
Update the keep_awake script to call into IPA PM and
add/remove dummy clients to change the clk vote dynamically
based on the loaded device's power thresholds.

Change-Id: Ifaa4ef1e312428245605008998ac59afddf09d99
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-08-20 11:58:58 -07:00
Qingqing Zhou
90474bbbc2 mm/vmalloc.c: fix __purge_vmap_area_lazy takes long time
The issue is that CTS case testIntermediateSurfaceRecording fails.
Camera thread is delayed because of ion-deferred-free thread which
takes long time. When the issue happens, _ion_buffer_destroy calls
__purge_vmap_area_lazy to free the vmap area in purge list, inside
__purge_vmap_area_lazy it calls flush_tlb_kernel_range(start, end)
before free the vmap area, but sometimes vmap areas may be far apart,
then the range=end-start will be very large due to vmalloc saving
feature and carveouts being used for vmalloc, and purge not aware of
this, flush_tlb_kernel_range will take long time in that case. Call
flush_tlb_all if range is bigger than VMALLOC_END-VMALLOC_START to
fix the issue.

Change-Id: Ifcd4f4b53accee4a92ae4d97e24e0da588229671
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2020-08-20 23:21:11 +08:00
qctecmdr
eaca6c21a9 Merge "sched/walt: Improve the scheduler" 2020-08-20 06:51:36 -07:00
qctecmdr
625b940c9f Merge "defconfig: msm: enable QCOM_INITIAL_LOGBUF for Bengal/Scuba" 2020-08-20 06:51:36 -07:00
qctecmdr
f9f6fac91c Merge "sched: add 144fps to the list of supported fps" 2020-08-20 06:51:35 -07:00
qctecmdr
d3b3320c72 Merge "power: qpnp-smb2/5: Report TIME_TO_FULL_NOW and CHARGE_FULL_DESIGN" 2020-08-20 06:51:35 -07:00