Poll for ipa_dma_disable prior to entering mhi suspend, until it returns
success. this is to prevent IPA disable failure in case on
pending transfers.
Change-Id: I38143284447b86ce34c47e100e6fe0c23cf28f0b
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Nitesh Gupta <nitegupt@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
Print subsystem notify event string for wpss & modem instead of
event code. Print proper file type in log while downloading BDF
and REGDB file. Log the error immediately if request_firmware
API get fail.
Change-Id: I32a07895faf2bce640e0bfe89e348c36b02c5150
Signed-off-by: Vijay Patil <vijaylil@codeaurora.org>
The CH completion commands are sent in async fashion, whereas the ch
cmd ack event is send in a sync fashion. This can lead to the host
receiving completions post the reset ch ack. These ch completion
events post ch reset would be treated as OOS events.
Making changes to send cmd ack events in async fashion to maintain the
ordering that is being sent to the host.
Change-Id: Ib2d568ea1d69486f3d1ebf4e7b209bba3315eba5
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
Diag client uses asynchronous writes for data transfer.
Adding write_iter API in mhi to support the same.
Change-Id: If14ebdd4aa848046abd15ea93d939691c6962fcd
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
This change overrides the GSI mode flag, as generally for any TVM
usecase we enable la-vm flag. So that should be sufficient to manage
the TVM enabled SE instance.
This way any requirement of the GSI mode should not be conflicting or
impacting TVM or non GSI usecases.
Change-Id: I8c8ab8edb3866139ac07d1af55ddf294807b027b
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Configure QoS settings during probe for all nodes instead of
each node individually upon first client request.
Change-Id: I66e8776c8c27ca55382bca78e963ca8db1055637
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
By default pinctrl driver is disabling wakeup capability for gpios
for which interrupt is not registered. This could cause wakeup from
L1SS sleep not working. Hence fix it by enabling/disabling wakeup
capability for clkreq gpio as part of DRV suspend/resume handling.
Change-Id: If8fcb0a3a638c560bfe1f614aa00b7fd872c6b98
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Currently, header test puts videodev2.h into exclude list,
which avoid its inclusion while performing header test.
There are few camera headers which includes videodev2.h
and fails to compile during header test on some
host machine. Ideally, the headers files which includes
videodev2.h should get excluded from header test as they
eventually becomes incompatible due to videodev2.h .
This patch add camera headers to exclude list.
Change-Id: Ia8b7dc8ec635d568a026b948854448c77aae7770
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
Currently, we are partially freeing private once last file is
closed but closing last file doesn't necessarily means that
all refcount on private is also put. This results in having a
partially initialized private struct which is not yet freed
and also can't be re-used. As a result if an application is
just opening and closing kgsl device in a loop we will end up
allocating and initializing a new private every time. This also
allows application to mis-use this and create more than allowed
limit of 200 contexts as they can use newly created private to
create new context every time.
To fix this, keep private intact until last refcount is put.
This ensures we can re-use same private if same pid is doing
kgsl open and close repeatedly and also ensures that an app
can't breach 200 context limit.
Change-Id: Ia1d1071275c7691a3d50bc15477b71387c5806d6
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Remove IPA offload config as IOSSv1 glue driver has also been
removed for Realtek.
Change-Id: I3007c300a27cac1eda114109a6f085efb4b4abb3
Signed-off-by: Akshaya Damodaran <adamodar@codeaurora.org>
Changed logic to find Lower Band Limit from Search Up from current
channel with Wrap enable to tuning to Lower Band Limit + chan space
and Search Down with Wrap disable.
Change-Id: I79a686238d96db5dd5df9436b346b465435ae4f5
Signed-off-by: Prateek Raj Singh <pratsing@codeaurora.org>
Currently, there is an application on Mac that it will send
ClearFeature(halt_ep) request before transfering USB data.
If the device receives the ClearFeature(halt_ep) request, the
started requests would be removed and restart the transfer.
However, userspace services don't know this behavior. The services
will free the requests instead of retry and resend the requests.
It will cause the USB host can't get response so that it will try
to recover by issuing a reset signal.
Finally, it will take the infinite loop.
send reqeust > reset > re-enumeration > send request > reset > ...
To avoid this symptom, this patch will keep the started requests
so that userspace services didn't free the requests.
Bug: 178904115
Bug: 177879761
Signed-off-by: Ray Chi <raychi@google.com>
Change-Id: I52acf48871fd7f86cfcc51fb41c67d21ea895d69
Signed-off-by: Saravana Kannan <saravanak@google.com>
Git-commit: 92de566762db61b138765a26e4afaacc7d7f7816
Git-Repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Collect the ram dumps when process is
initialized and process is not cleaned
on DSP to fix UAF on init memory.
Change-Id: I3ddae176039efa57e057eca730e7ed1cec706484
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
This change will add support to vote for SMPS node if
regulator handle is provided in DTS source.
Change-Id: I7519b6c2b93c85a4f4bf7e26ca0b72ef03df094b
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
Move the logging of CPUFreq HW debug registers from debugfs to
sysfs under /sys/kernel/qcom-cpufreq-hw.
Change-Id: I2d23052d013125ee69de852dcec621c104f0d50a
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
Crash observed when insmod and rmmod of nf_conntrack_sip.ko module
is triggered.
Change-Id: I3b0710509a0625e49d5582894d8d3e1b11c0f445
Signed-off-by: Paras Jain <parassin@codeaurora.org>
Some PMICs such as PM5100 does not have the HBOOST peripheral
for haptics input supply. Add a new compatible string to avoid
accessing the non-existent HBOOST peripheral and also make the
necessary configurations required for hpwr supply.
Change-Id: I84301115706ee59984f7b051bc467d1537bbad29
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Sysmon subsystem driver exposes API to query various
SoC level Q6 load, power statistics from the shared
memory exported by the remote processor.
Change-Id: I84da55d0f72a0c9d0c4a90a78d8589079aa9b93e
Signed-off-by: Bavyasritha Alahari <alahari@codeaurora.org>
Add geni_ios changes to log RFR line status in GENI_IOS register.
Also set GENI FORCE_DEFAULT after performing TX/RX Abort Sequence.
Change-Id: I995e5cd864cd1f54dd295b82d887c8df3452e706
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
During system suspend/resume testing, when console is in suspended
state and clocks are OFF. Seems UART console used to dump some info on
console and leading to NOC fault.
To fix this issue add defensive check in msm_geni_serial_start_tx() api.
Change-Id: I27edd7814e28946449afe256f72f7cb1c868822e
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
PCI RC driver is removing EP shadow support to restore EP's config space.
So update cnss driver accordingly.
Change-Id: I562de4b338dcf2204d73b9d5fafebf9e597c7b42
Signed-off-by: Paul Zhang <paulz@codeaurora.org>
The SDXLEMUR CPU PLL uses a non-standard sequence for latching new
configurations. Using the standard lucid_5lpe ops for this PLL means the
latch won't be asserted and the PLL will run at the original frequency
from before the update.
Change-Id: Ia1cb8b7fd116e17a937b961e5907082097e27bfd
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
The lucid_5lpe PLL used for the CPU on SDX targets uses a custom
mechanism to assert the latch. Add ops that can be used for this.
Change-Id: I24f8e3db2b908e34e4d0560841f1f5fdcfd215af
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
The lucid_5lpe PLL has multiple registers past 0x3C, including the
ALPHA_VAL and SSC registers. Since we currently set max_register to
0x3C, this causes read failures on ALPHA_VAL in in
alpha_pll_lucid_recalc_rate(). This function ignores the regmap_read()
return codes, which results in the frac variable being uninitialized.
The CPU PLL doesn't currently use fractional operation, so it should
always be zero in HW. But the uninitialized frac variable causes random,
small increases to the calculated frequency.
Specifying max_register is optional, so just remove it and allow the
full range we define in devicetree.
Change-Id: I3549c249f2dfbad5c056de584864b0e1a3eeb912
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>