'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>
Due to hardware constraints some of the clients
need support for dma32.
Change-Id: Iaa7705d8d4106e5b7946dba879b9fc11c3f232f9
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
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>
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>
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>
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>
Add support for MHI bootup timeout status to debug FW ready timeout.
Change-Id: I2a5fa631dc9649d7f5438a06632f15a04d29be1f
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
Enable gcc, gpucc, mmss clock controller configs
support for SDM660 platform.
Change-Id: Icdd82aabb19a8cf4ac0bcd189f33a4ff0f7c414d
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
Add a config fragment for disabling DEBUG_FS.
Change-Id: Ia9e2f54cac558d9b31fa7ff700b77808d45e8bc9
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
Enable CONFIG_HID_NINTENDO to Switch Pro Controller
support.
Change-Id: Ie48ea0de4a9de87ccf9ab014d38d8d269fbc8019
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
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>
Modify the irq_count print debug level from info to debug.
Change-Id: I1c5677414b2a97fc2697b003620a80d8843589a7
Signed-off-by: zhaochen <zhaochen@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>