Commit Graph

1130118 Commits

Author SHA1 Message Date
qctecmdr
762d3e0b9a Merge "defconfig: pineapple: enable tmecom and hwkm" 2022-11-18 15:21:15 -08:00
qctecmdr
937267bb46 Merge "spi: spi-msm-geni: Keep IRQ disabled while requesting an IRQ" 2022-11-18 15:21:14 -08:00
qctecmdr
2df1d35e0b Merge "defconfig: pineapple-gki: enable regulator OCP notifier driver" 2022-11-18 15:21:13 -08:00
qctecmdr
7ae6acdb7b Merge "coresight-tmc: set StopOnFl bit for etf" 2022-11-18 15:21:12 -08:00
qctecmdr
5e00cbace8 Merge "remoteproc: qcom_q6v5_pas: Map modem DSM memory ownership to MPSS" 2022-11-18 15:21:10 -08:00
qctecmdr
d977260b19 Merge "build: Refactor build_with_bazel.py to discover targets" 2022-11-18 11:59:19 -08:00
qctecmdr
c0d8c0c5b1 Merge "build: adding top-level DDK headers definition" 2022-11-18 11:59:19 -08:00
qctecmdr
ce5e2d75b4 Merge "build: Export UAPI headers as Bazel cc_library" 2022-11-18 11:59:18 -08:00
qctecmdr
1aacc3bc8b Merge "soc: qcom: Add v19 support for socinfo" 2022-11-18 11:59:18 -08:00
qctecmdr
93bd469ba9 Merge "soc: qcom: qcom_stats: Fix the DDR stats entry offset" 2022-11-18 11:59:16 -08:00
qctecmdr
71694d1b47 Merge "msm:abi_gki: Add v4l2,video,display and gpu api to export symbols list" 2022-11-17 18:53:06 -08:00
Gokul krishna Krishnakumar
7b161ee9c9 remoteproc: qcom_q6v5_pas: Map modem DSM memory ownership to MPSS
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>
2022-11-17 12:48:16 -08:00
Gokul krishna Krishnakumar
a5235ba22e remoteproc: qcom_q6v5_pas: Add flag for dsm region setup
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>
2022-11-17 12:48:07 -08:00
Gokul krishna Krishnakumar
f5e30fb6c7 remoteproc: qcom_q6v5_pas: Add support to setup mpss dsm mem region
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>
2022-11-17 12:45:33 -08:00
Soumen Ghosh
105298b2e1 msm:abi_gki: Add v4l2,video,display and gpu api to export symbols list
Adding symbols in abi file.

Change-Id: Ia8736cb08208353c4fc29b00cb61b1e41a79aa3b
Signed-off-by: Soumen Ghosh <quic_soumeng@quicinc.com>
2022-11-17 12:45:12 -08:00
Gaurav Kashyap
ec5eb04dfe defconfig: pineapple: enable tmecom and hwkm
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>
2022-11-17 08:57:53 -08:00
Mao Jinlong
b134d14e96 coresight-tmc: set StopOnFl bit for etf
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>
2022-11-17 04:13:42 -08:00
Maulik Shah
ea31d19faa soc: qcom: qcom_stats: Fix the DDR stats entry offset
Fix the DDR stats entry offset.

Change-Id: I4783d65c5d71721b6dc5fff1b39517377a8e2cbb
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2022-11-15 14:08:59 +05:30
Mukesh Kumar Savaliya
6ab16af158 spi: spi-msm-geni: Keep IRQ disabled while requesting an IRQ
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>
2022-11-15 13:56:03 +05:30
Naman Jain
1f35818a0e soc: qcom: Add v19 support for socinfo
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>
2022-11-15 11:47:19 +05:30
David Collins
83433ccb22 defconfig: pineapple-gki: enable regulator OCP notifier driver
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>
2022-11-14 18:40:37 -08:00
David Collins
b76b5edc79 defconfig: pineapple-gki: enable QFPROM and TSENS drivers
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>
2022-11-14 18:40:37 -08:00
John Moon
13a5aa4fac build: Export UAPI headers as Bazel cc_library
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>
2022-11-14 16:02:01 -08:00
John Moon
c45c4b798b build: Refactor build_with_bazel.py to discover targets
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>
2022-11-14 15:59:51 -08:00
Gaurav Kashyap
e0fc08d3c0 soc: qcom: Decouple hwkm and fbe modules
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>
2022-11-14 15:22:12 -08:00
John Moon
7f1305d0f5 build: adding top-level DDK headers definition
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>
2022-11-14 15:08:01 -08:00
John Moon
f59bdfb286 build: Add top-level rule definition in bazel extensions
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>
2022-11-14 15:06:47 -08:00
John Moon
8503690aa2 build: Add support for Bazel VM builds
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>
2022-11-14 15:05:22 -08:00
NITIN LAXMIDAS NAIK
3f0a6daf18 abi_gki_aarch64_qcom: add sync and __copy symbol
Added kernel symbols for presil-pineapple.

Change-Id: I0b050d54ba4be4a75a736cf7daa6bb79263856b0
Signed-off-by: NITIN LAXMIDAS NAIK <quic_nitinlax@quicinc.com>
2022-11-14 12:15:28 -08:00
qctecmdr
f852a8b67d Merge "drivers: dcvs: memlat: check return value of devm_protocol_get" 2022-11-12 07:59:21 -08:00
qctecmdr
8d66e1d64b Merge "drivers: dcvs: bwmon: add ab_scale" 2022-11-12 07:59:19 -08:00
qctecmdr
025e33318e Merge "defconfig: pineapple: Enable CONFIG_REGMAP_QTI_DEBUGFS{_ALLOW_WRITE}" 2022-11-11 17:04:36 -08:00
qctecmdr
0146cbfa86 Merge "arm-smmu: Fix compilation issue in CB interrupt selftest" 2022-11-11 17:04:33 -08:00
qctecmdr
fe600bc810 Merge "ARM: config: msm: Enable BAM config for Pineapple" 2022-11-11 17:04:30 -08:00
qctecmdr
73ecad8643 Merge "soc: hw-fence: Add MSM_HW_FENCE_FLAG_SIGNALED_BIT" 2022-11-11 17:04:30 -08:00
qctecmdr
4e4d361474 Merge "abi_gki_aarch64_qcom: Update list of symbols" 2022-11-11 17:04:29 -08:00
qctecmdr
6fabe4da7a Merge "tmc-usb: Add drop data size count" 2022-11-11 17:04:29 -08:00
qctecmdr
a4be16c25f Merge "soc: hw_fence: add support for 64-bit client_data" 2022-11-11 17:04:27 -08:00
qctecmdr
6a0b4f3c39 Merge "pci: msm: Use the platform_get_irq_byname API" 2022-11-11 17:04:25 -08:00
qctecmdr
fa561d1bbe Merge "defconfig: pineapple-gki: Enable BCL peripheral and soc driver" 2022-11-11 17:04:23 -08:00
qctecmdr
a97ea251ac Merge "modules.list.msm.pineapple: Add WALT module" 2022-11-11 17:04:20 -08:00
qctecmdr
04a37de2a2 Merge "net: qrtr: Update data_len when padding large skbs" 2022-11-11 17:04:18 -08:00
qctecmdr
2fb9ec5be7 Merge "soc: qcom : tmecom: add support for v4 policy" 2022-11-11 13:35:11 -08:00
qctecmdr
dacc8de3d0 Merge "ARCH: arm: configs: Enable CONFIG_IPA3 on Pineapple" 2022-11-11 13:35:09 -08:00
qctecmdr
553a8b2012 Merge "defconfig: pineapple-gki: Enable the mem-offline driver" 2022-11-11 13:35:07 -08:00
qctecmdr
2c0f8bf90a Merge "clk: qcom: videocc-pineapple: Add VIDEO_CC_XO_CLK_ARES" 2022-11-11 13:35:07 -08:00
qctecmdr
6e4382ba68 Merge "driver: thermal: sdpm: Add a snapshot of sdpm clock notifier driver" 2022-11-11 13:35:05 -08:00
qctecmdr
a9f455f3dc Merge "wcd939x-usbss: Add i2c driver for wcd939x usbss" 2022-11-11 13:35:03 -08:00
Shivnandan Kumar
7d10568691 drivers: dcvs: memlat: check return value of devm_protocol_get
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>
2022-11-11 07:12:00 -08:00
Shivnandan Kumar
79df1ba3d3 drivers: dcvs: bwmon: add ab_scale
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>
2022-11-11 07:07:53 -08:00