So far we bypassed multi-descriptor changes for shared-se, now
enabled multi-descriptor changes for shared SE as well.
Multi-descriptor uses block event interrupt(bei) to receive interrupt
after transferring i2c messages specified by max number of transfers.
HW will transfer data corresponding to all tre's and generate interrupt
at the end of last transfer. In this implementation the number of
interrupts are reduced and also ensured that while hardware is
processing one set of tre's,software queues the next set of tre's
if available.
Change-Id: I983272681a7cbd99d4dab3d89e4f2b9edc8b3af7
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
currently i2c geni driver is handling gsi i2c read and write in
i2c_gsi_xfer function, due to multiple if conditions giving
cyclomatic complexity number error. To provide more readability
and reduce complexity segregated to two different functions
geni_i2c_gsi_write and geni_i2c_gsi_read.
Change-Id: Id9cfffd90c0378ba3e689e8c3713a9fabe20ea84
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
If it is a shared SE usecase, other EEs might have acquired
GSI lock which shall initiate the i2c transfers so line might
not be in good state. Hence we should not check the ios lines
state during the initiating the transfer in shared SE mode.
Removed the check condition to check for i2c geni ios lines state
for shared se in geni_i2c_xfer API.
Change-Id: Ibf517ecb3efe09a90e8c5e491d552bc0f148da46
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
During deep sleep, all regulators are turned off.
So, Set spm level to lvl 5 in case of deep sleep,
to ensure that appropriate SSU command is sent to
the ufs device.
For other senerios like s2idle, the spm level
must not be changed.
Change-Id: I404b4f61192488c87f09e664e11d1ec53a5f06d0
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
Enable CONFIG_RELAY to support streamfs APIs.
Change-Id: I565c3faaeced97523d8789f88bd5e0db179c0ce9
Signed-off-by: Xiaoning Ma <quic_mxiaonin@quicinc.com>
Add a valid address check for VirtIO minidump driver for autogvm.
Change-Id: I778e013e6db94dce7e60f1e0fe7107f502f43988
Signed-off-by: LADI RAM SAI <quic_lramsai@quicinc.com>
Pipeline fastpath is skipped when a cpu is already running a pipeline
task. It may happen that the current pipeline task and the task for
which we are finding the best cpu are same. This scenario arises during
load balancing on every scheduler tick, where we find the new best cpu
for the current task. Fix this by allowing pipeline fastpath if current
pipeline process on a cpu is same as the process for which we are
finding the best cpu.
Change-Id: Iaf935694c7c580b2e191793491130c1a3ccbedc4
Signed-off-by: Atul Pant <quic_atulpant@quicinc.com>
In the actual use of hab client, there will be a case where
a child thread is responsible for managing habmm_socket_open/close,
and other child threads use vcid for communication. If ctx->owner
is pid, then context_stat will display the pid of the child thread.
This is not what we want. We hope that context_stat will display the
pid of the main process, not the pid of a child thread under the
main process. Because the main process often has more information
for us to analyze and debug.
Change-Id: Ie33e114f6dc1c94dec3f409022ed6e397f91bd2e
Signed-off-by: Zelong Ren <quic_zeloren@quicinc.com>
Added support of "qcom,no-multi-smc-support" property from devicetree.
If this property is added in devicetree node, then multi SMC is not
supported from driver side.
Change-Id: I323ec21c7abfee66e65c14ea72e12dcec94eaded
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
path_lookupat() is capable of safely reading unmapped VAs, by using
load_unaligned_zeropad(). If an unmapped VA is read whilst the
function is being called, that resulting page fault will get
re-directed to __do_page_fault(), which will call fixup_exception() to
handle the aforementioned unmapped-VA-read.
Now consider some memory was still mapped at S1 but lent to another
Gunyah VM. path_lookupat() can then use load_unaligned_zeropad() on a
page that virtually borders - in the S1 VA space - the page that was
lent to the other VM, and end up trying to read content from that
page. Gunyah will then inject an syncrhonous external abort for a PTW
fault, which will map to do_sea(). Register a callback for
trace_android_rvh_try_fixup_sea(), which returns true if we can
attempt a fixup_exception() call in do_sea() to zero-pad the read to
the page that was lent away.
Change-Id: I30a85d33f6c52d902275a178191cd47a2336658a
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
walt code currently uses rcu_dereference to access rd->pd. As we are
not dereferencing the pointer use rcu_access_pointer instead of
rcu_dereference.
Change-Id: I5ef0d12de4ae89ce423b421d1d2de28fc7759c00
Signed-off-by: Ankit Sharma <quic_anshar@quicinc.com>
rproc->priv is incorrectly being dereferenced and assigned
without checking if rproc can be NULL however, the check
for this exist in the code, so fix this issue by doing
the handling appropriately.
(cherry picked from commit 2b05138c888f180a00c766f57dedb98a8863da0a).
Change-Id: I990a52ffc2a713c0e814fabfce4931e9bc1c3ac9
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
lts tag release.6.1.75+ introduced
the dependency for DWMAC_LOONGSON on MACH_LOONGSON64
hence this configuration brought up the difference between
gki and msm gen3auto configs,since STMMAC is being enabled
for gen3auto.
For mobile targets these all net drivers are disabled
so removed this config as it is not NA for auto targets also.
Change-Id: I6a5e9ed855b1aa2daf9f1fbca6e15814ebec8041
Signed-off-by: Madhu Ananthula <quic_mananthu@quicinc.com>
Signed-off-by: Deepak Suresh <quic_deesur@quicinc.com>
default_attrs field is not present anymore in kobj_type structure. Made
changes to use default_groups instead of default_attrs.
Additionally, following changes made to compile successfully with
default_groups field.
1) Added both attributes(bwprof and mon) in ATTRIBUTE_GROUP.
2) ATTRIBUTE_GROUP macro is also updated and needs "_attrs" instead
of "_attr". Updated changes to fix this.
3) Added format specifier to print variable in dev_err() call.
Change-Id: Ib796a78431ba607aa24150b7c42c9dd6797fafd3
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
Adding NULL check for subs in handle_uaudio_stream_req to avoid
potential null pointer dereferences in the code.
Possible scenario:
1. If find_substream returns NULL, the assignment to subs could
lead to a null pointer dereference in the subsequent code.
To handle this, we should check whether subs is null or not
2. get_data_interval_from_si function:
If req_msg->service_interval_valid is true and subs is null,
there could be a null pointer dereference. To avoid this,
ensure that subs is non-null before accessing it.
3. enable_audio_stream and disable_audio_stream functions:
Similar to the previous case, if subs is null, these functions
may encounter null pointer dereferences.
Change-Id: I85a4bbc1e6222baa6e3888ab54855a4672bc12c0
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
Compliance TypeC certification--TD 4.7.4 throws error saying "The put
does not cease USB communication" because currently the stop host
procedure set the role back to device and flushes the drd-work first
then disconnects phys. However the Analyzer by this time will consider
that the PHY is still active and therefore throw such error assuming
the test failed.
Fix this by moving the PHY disconnect notifiers before the role_switch
and flush work. Additionally disconnect ssphy first then the hsphy so
that the LFPS packets and be turned off as quickly as possible.
Change-Id: I6ea4665360dc8b92992672428d0563b8c1ea19e9
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
Enable config for governor and qcom stat driver. Also, added
required modules for enabled configs in anorak.bzl file.
Change-Id: I40eaead56ded3abf6c6ab43567bdbcc50e6f760a
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
Add snapshot of drv name on ANORAK from msm-5.10 branch to
get stats information
commit 4545acd1dc3c ("soc: qcom: sys_pm_vx: Add drv_names
for anorak").
Change-Id: I3ca54e4091a5d3555f3f77517cbf5752c7d7b1d2
Signed-off-by: Tushar Nimkar <quic_tnimkar@quicinc.com>
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>