Enable the secure buffer driver on the AutoGHGVM platform
to support secure use cases.
Change-Id: I42ec8b7618403456271f1a1bdc2483e66bf478c2
Signed-off-by: Mahesh Kumar <quic_mahkumar@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>
In PHY calibration table for Gear 4, entries for registers
QSERDES_TX0_LANE_MODE_3 and QSERDES_TX1_LANE_MODE_3 are missing.
Hence, setting the right configuration for the above mentioned
registers.
Change-Id: Ia5c5560d14b2ecbf5b9ae32a423774394e71d527
Signed-off-by: Anjana Hari <quic_ahari@quicinc.com>
Fix the condition check that overrides the number of
smr/context banks in the system.
Change-Id: I242375ab711f3688a7c8a24e598d1e4a2a7fac17
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
We should close nonatomic handle which is already opened.
Change-Id: Id789f74e0cfbfa918bc7450a559fc0fdf51b65d2
Signed-off-by: Yuhang Ji <quic_yuhaji@quicinc.com>
Adding a provision to disable BDF Halt feature
through device tree flag based on BDF halt flag.
Change-Id: Ic2cc57d4e7938aaa492c9842abb24e4e8e68b651
Signed-off-by: Jyothi Kumar Seerapu <quic_jseerapu@quicinc.com>
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
Signed-off-by: Naga Rashmi Ayiluri <quic_nayiluri@quicinc.com>
Enable watchdog support for anorak.
Change-Id: I81b195570c692187c7ed27f262162c9b728fdd6f
Signed-off-by: amatariy <quic_amatariy@quicinc.com>
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
When byte-cntr irq count doesn't match up with the data size in
ETR sink, there will be delay issue to send the data to host.
Count the irq number in small size transfer function when such
case happens.
Change-Id: I60428e1d9916fd0dde8c87f3f81c8b887b7e448b
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
It fix the restore failure in hibernation.
Change-Id: I2b0fdcbb9f213e27941a56479157a52e6f822dd7
Signed-off-by: Raghava Chowdam <quic_rchowdam@quicinc.com>