Replace the hyp_assign_phys with upstream friendly qcom_scm_assign_mem.
dsm memory region is needed by MPSS PDs, this call reassigns the
ownership to MPSS.
Change-Id: I1ae7e61d1bc74d45bb1bc58b762c5d3d59e12501
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Some targets don't have dsm region to be setup by
remoteproc, so add a flag to check if we need to setup
the dsm region or not and enable for pineapple.
Change-Id: I1cdfa7ef05c3a59878ae4b07d5e0c776962a075b
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
MPSS DSM mem region is needed by Modem PDs. This change
sets it up before bringing MPSS out of reset.
Change-Id: Ic882b678f373deb5c61e250f8620b5dd4c092ee2
Signed-off-by: Satya Durga Srinivasu Prabhala <quic_satyap@quicinc.com>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Enable the following modules on pineapple, required
to use HWKM operations in TME.
CONFIG_MSM_TMECOM_QMP=m
CONFIG_QTI_HW_KEY_MANAGER=m.
Change-Id: If587bdd8e0c9d351e26c8fccea5807b01d7231b5
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
Set StopOnFl bit for etf to stop trace when FLUSH
is completed.
Change-Id: Idda16fcf1190960ac225c42ef41eaf01d8c286f2
Signed-off-by: Yuanfang Zhang <quic_yuanfang@quicinc.com>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
we are specifically enabling an IRQ at resume/suspend time, hence
keep it disabled while registering for an interrupt. Else this
results into double enablement and kernel dumps stack.
Change-Id: I6a0675d34ba307bbbd76f6e958bc1ffe7bfb2c66
Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
Add support for version 19 in socinfo which introduces fields
for reading fuse values to determine number of clusters,
boot cluster and boot core.
Change-Id: I0cce5109785fdd7b649b2185da7a9aff3cbdf5d0
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
Enable CONFIG_REGULATOR_QTI_OCP_NOTIFIER so that consumers can
receive notifications about regulator over-current (OCP) events.
Change-Id: I617c16aaba2d45bdc67721a9edb4880b63786e7e
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
Enable the qcom-qfprom and qcom-tsens drivers. This is
needed so that the qcom-spmi-temp-alarm driver can be compiled.
Change-Id: Iae6ff0def8b575da9ad5ae0c3b106c5f0f7eddc5
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
There's currently no way for userspace programs building with
Bazel to ingest the kernel UAPI headers. Kleaf generates a tarball
of the headers, but a Bazel cc_binary rule cannot use that as an
input.
Define a native Bazel header-only cc_library which userspace
programs can use to build with the kernel's UAPI headers. For
example:
cc_binary(
name = "foo",
srcs = ["foo.c"],
deps = ["//msm-kernel:kalama_gki_uapi_header_library"],
)
Change-Id: Ib884d9123e4ffd0bead97e8cebb5a3456e73b2a6
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
Currently, the build_with_bazel.py script has an internal list
of targets. As we add/subtract targets, this becomes more difficult
to maintain. It also makes adding extra targets defined by
msm_kernel_extensions.bzl a manual process.
Instead, query the Bazel DAG to dynamically determine the
build targets based on input target name.
Change-Id: Id39889260b8f8af5c0c157ff091ee6e0d253c90f
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
Currently HWKM and FBE module compilations are bound
to each other, separate this out to remove the
dependencies.
Change-Id: I7735e14d95f332eff9e5ad7a6de9947e0ce9420d
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
Currently, kernel_module() Kleaf rules will automatically include
kernel headers based on the input kernel_build parameter.
The new ddk_module() rule requires kernel headers to be explicitly
exported to the build system.
Change-Id: I3b4808270e0c70adf38ba382000172d7b81fda61
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
Currently, the only rules that can be defined in msm_kernel_extensions.bzl
are invoked for each target. If a rule just needs to be declared once at
the top level, there's no way to do that.
Add and invoke a new macro from the top-level to enable this functionality.
Change-Id: I239c0e44f6938dee7dda4c0cb1434f9bf925b13c
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
Currently, only legacy build.sh support exists for VM
builds.
Add Bazel support for these builds.
Change-Id: I10b221aa4a6633240b984eff333e15f5cd8b82cd
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
Validate return value of devm_protocol_get.
Currently only NULL pointer is checked but
we should also check if returned pointer is
valid pointer or not. If it is not valid pointer
then it can lead to crash.
Change-Id: If7c6e275bae0df42511cc915215bfe434d2053e3
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
Expose ab_scale tunable to scale ab vote based
on user space input.
Change-Id: I66a766c72897814bccd6f6ff8cb298fd51b17c0b
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>