Commit Graph

1155705 Commits

Author SHA1 Message Date
Kalpak Kawadkar
ca18f5f9e0 dt-bindings: clock: Add support for GCC clocks on NIOBE
Add support of GCC_AGGRE_USB3_SEC_AXI_CLK, GCC_PCIE_1_PHY_AUX_CLK,
GCC_PCIE_1_PHY_AUX_CLK_SRC and GCC_USB30_PRIM_ATB_CLK clocks
on NIOBE platform.

Change-Id: I3587a847faa27f047abd5fe233cbc5e214ad6ce4
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
2023-09-13 17:25:55 +05:30
qctecmdr
c431f7dfe8 Merge "dma-heap: qcom: correct msm_dma_map_sgtable return value" 2023-09-12 11:02:52 -07:00
qctecmdr
ee98c266b0 Merge "slimbus: qcom-ngd-ctrl: Clear enabled IRQ's during power off" 2023-09-12 04:25:29 -07:00
qctecmdr
21099a2c52 Merge "serial: msm_geni_serial: Resource cleanup in rmmod path" 2023-09-12 04:25:28 -07:00
qctecmdr
9433fc2a02 Merge "clk: qcom: clk-alpha-pll: Snapshot of lucid pll ops update" 2023-09-12 01:58:49 -07:00
qctecmdr
2d62931ed3 Merge "wcd-usbss: Force reset RCO on surge event" 2023-09-12 01:58:49 -07:00
Kassey Li
5f9d49eb40 dma-heap: qcom: correct msm_dma_map_sgtable return value
__alloc_and_insert_iova_range return -ENOMEM  when there is no
suitable size, where dma_buf_map_attachment return -EINVAL which
is not accurate info.

Call trace:
alloc_iova+0x2cc/0x318
alloc_iova_fast+0x190/0x2c4
iommu_dma_alloc_iova+0xc0/0x180
iommu_dma_map_sg+0x1cc/0x3a0
dma_map_sg_attrs+0x44/0xbc
msm_dma_map_sg_attrs+0x398/0x6a4 [msm_dma_iommu_mapping]
qcom_sg_map_dma_buf+0xe4/0x14c [qcom_dma_heaps]
dma_buf_map_attachment+0xcc/0x1d8
fastrpc_mmap_create+0x3a8/0x938 [frpc_adsprpc]
fastrpc_internal_mmap+0x100/0x268 [frpc_adsprpc]
fastrpc_device_ioctl+0x620/0x2078 [frpc_adsprpc]
__arm64_sys_ioctl+0xa8/0xe4
invoke_syscall+0x58/0x11c
el0_svc_common+0xb4/0xf4
do_el0_svc+0x2c/0xb0
el0_svc+0x2c/0xa4
el0t_64_sync_handler+0x68/0xb4
el0t_64_sync+0x1a0/0x1a4

change this to follow upstream usage in
kernel/dma/mapping.c dma_map_sgtable.

Change-Id: I5cec3005a8759de820705c268fef18addb2a8899
Signed-off-by: Kassey Li <quic_yingangl@quicinc.com>
2023-09-12 08:33:31 +08:00
qctecmdr
1d2894c3cd Merge "Revert "ANDROID: build: Add --nocheck_bzl_visibility"" 2023-09-11 08:16:39 -07:00
qctecmdr
448c4d6649 Merge "clk: qcom: dispcc-pineapple: Add support for cliffs platform" 2023-09-11 00:47:48 -07:00
John Moon
3162b9648a Revert "ANDROID: build: Add --nocheck_bzl_visibility"
This reverts commit 71e862d942.

After properly switching to public kleaf APIs, we no longer need to
pass --nocheck_bzl_visibility to the build.

Change-Id: I3ff04efd2cbebdeb176f6b67b099f7a6ff6b2fab
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-09-09 14:00:35 -07:00
John Moon
787b33600b ANDROID: build: Switch to Kleaf super_image implementation
Currently, we use an in-tree definition of the super_image rule to
generate our super.img files. This rule depends on a private kleaf
API which is no longer visible to msm-kernel after an upstream
change.

To fix, we've upstreamed the super_image rule to kleaf which allows
usage of the private API. Accordingly, we need to make an update here
which uses the new super_image API from kleaf.

Change-Id: Ie904958a773061c83e33190cc9ad89a5467c738e
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-09-09 11:40:10 -07:00
qctecmdr
0f32661228 Merge "qcom: sysmon: Add support to skip transaction_id on old ssctl event" 2023-09-09 03:31:10 -07:00
qctecmdr
82f4bbd352 Merge "drivers: dcvs: pmu_lib: Pass physical CPUs to CPUCP" 2023-09-09 03:31:10 -07:00
qctecmdr
0c2f2f2893 Merge "serial: msm_geni_serial: check ioctl_count with auto_suspend enabled" 2023-09-09 03:31:09 -07:00
qctecmdr
97b216f3dd Merge "mpm: update config flag check for msm_mpm_enter_sleep" 2023-09-09 03:31:09 -07:00
qctecmdr
a5ffb04fa8 Merge "serial: msm_geni_serial: reconfigure baud rate and port setup" 2023-09-09 03:31:09 -07:00
qctecmdr
922f68faaf Merge "power: supply: Fix pmic-voter list duplication issue on kernel-6.1" 2023-09-09 03:31:08 -07:00
qctecmdr
512d0d96f9 Merge "drivers: Restore kaslr offset during hibernation" 2023-09-09 03:31:07 -07:00
qctecmdr
b5cf721e17 Merge "virt: gunyah: Pin every page in a contiguous block" 2023-09-09 01:15:58 -07:00
qctecmdr
5166dd1c79 Merge "soc: qcom: socinfo: Add soc-id support for Niobe" 2023-09-09 01:15:58 -07:00
qctecmdr
61d99e5c31 Merge "i2c: i2c-msm-geni: Add shutdown callback for i2c" 2023-09-09 01:15:57 -07:00
qctecmdr
46db71fc58 Merge "soc: qcom: Add insufficient memory check in cdsprm driver" 2023-09-09 01:15:57 -07:00
qctecmdr
4c273052b1 Merge "serial: msm_geni_serial: Make HW Flow off if CRSTCTS flag not set" 2023-09-09 01:15:56 -07:00
qctecmdr
a3035fa1f7 Merge "slimbus: qcom-ngd: Handle SSR and xfer message scenario" 2023-09-09 01:15:56 -07:00
qctecmdr
9a79ef7f41 Merge "ANDROID: build: Add --nocheck_bzl_visibility" 2023-09-08 02:11:44 -07:00
Prakruthi Deepak Heragu
783de06308 virt: gunyah: Pin every page in a contiguous block
Pin all the pages when physically contiguous pages are coalesced.

Change-Id: I91bc45130dd63a45b4e84f1de847db85ef5efacc
Signed-off-by: Prakruthi Deepak Heragu <quic_pheragu@quicinc.com>
2023-09-07 22:06:29 -07:00
Kalpak Kawadkar
48e93f459e clk: qcom: clk-alpha-pll: Snapshot of lucid pll ops update
Snapshot of updating lucid prepare callback to check pll calibration
status properly. Also add logic to properly slew the PLL when
HW_UPDATE_LOGIC_BYPASS bit is not set
commit 6e270ebf5893 ("clk: qcom: clk-alpha-pll: Update the lucid
pll ops").

Change-Id: I4ae488d8df6e60dcefdddcc3ab2a696f66e4a594
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
2023-09-07 20:46:34 -07:00
Visweswara Tanuku
bca469ebff i2c: i2c-msm-geni: Add shutdown callback for i2c
If the hardware is still accessing memory after SMMU translation
is disabled (as part of smmu shutdown callback), then the
IOVAs (I/O virtual address) which it was using will go on the bus
as the physical addresses which will result in unknown crashes
like NoC/interconnect errors.

So, implement shutdown callback for i2c driver to suspend the bus
during system "reboot" or "shutdown".

Change-Id: I58b719082a8d8beed4317b33691115c9e7031ec1
Signed-off-by: Srikanth Nanavalla <quic_snanaval@quicinc.com>
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
2023-09-07 07:40:15 -07:00
qctecmdr
cabc322a44 Merge "memshare: Prevent possible integer overflow" 2023-09-06 23:52:07 -07:00
qctecmdr
c5969be0f3 Merge "pinctrl: Add support in VM for Cliffs SoC" 2023-09-06 23:52:07 -07:00
qctecmdr
d71e3b7116 Merge "ANDROID: build: avb_boot_img: Use hermetic tools" 2023-09-06 23:52:06 -07:00
qctecmdr
c41ded12ac Merge "i2c: i2c-msm-geni: handle clear of tx water mark" 2023-09-06 23:52:06 -07:00
Amrit Anand
81b0ce73a5 soc: qcom: socinfo: Add soc-id support for Niobe
Add niobe target support to SoC name-id mapping list.

Change-Id: I1a881f3104ebac4387eb53ac0b88178ed0b71b58
Signed-off-by: Amrit Anand <quic_amrianan@quicinc.com>
2023-09-06 20:33:08 -07:00
Venkatakrishnaiah Pari
63c9ac8dbd drivers: Restore kaslr offset during hibernation
kaslr offset in IMEM is required to decode the ram dumps with
kaslr enabled kernel. Add hibernation callback to update IMEM cookie
during hibernation restore. Use syscore callbacks in this
case to restore the value as soon as possible.

Change-Id: I3fe618c56385362e796e52deb423a035f0e03707
Signed-off-by: Venkatakrishnaiah Pari <quic_vpari@quicinc.com>
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
2023-09-06 20:02:20 -07:00
Shreyas K K
c767d68585 soc: qcom: memory_dump: Restore memory_dump table during hibernation
Add hibernation callback to reinitialize memory_dump table
in IMEM during hibernation restore. Use syscore callbacks in
this case to reinitialize the value as soon as possible.

Change-Id: I243a354ce6ccb9f349684eb9b649d43d5b3ed519
Signed-off-by: Arun KS <arunks@codeaurora.org>
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
2023-09-06 20:01:58 -07:00
Song Xue
b56d6e9f4e qcom: sysmon: Add support to skip transaction_id on old ssctl event
Some older targets just support SSCTL_SUBSYS_EVENT_REQ, so add
paremeter like trascation_id_valid to skip trascation_id encode.
Meanwhile, if targets don't support SSCTL_SUBSYS_EVENT_WITH_TID_REQ,
it will retry with SSCTL_SUBSYS_EVENT_REQ.

Change-Id: I2d1a0fbc9e87fcbf246dabc3e686c2e6f60b46ed
Signed-off-by: Song Xue <quic_songxue@quicinc.com>
2023-09-07 10:22:52 +08:00
John Moon
71e862d942 ANDROID: build: Add --nocheck_bzl_visibility
Currently, we use a few internal Kleaf rules from our custom Bazel
rules. A recent upstream change restricted visibility of these rules
which causes build errors like:

Starlark file //build/kernel/kleaf/impl:common_providers.bzl is not
visible for loading from package //<pkg>. Check the file's
`visibility()` declaration.

While we work to transition to supported Kleaf APIs, let's pass
--nocheck_bzl_visbility to the build so that we can continue using
the private Kleaf APIs.

This change should be reverted after migrating to the Kleaf public
APIs.

Change-Id: I1cb807e9e97706e57296be9684842e5e972430ac
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-09-06 15:28:33 -07:00
qctecmdr
c577022ca5 Merge "clk: qcom: gcc-holi: Add qupv3 clocks modelling" 2023-09-06 11:22:06 -07:00
qctecmdr
d0d4f7b8e8 Merge "arm64: defconfig: Add initial configs for Niobe SoC" 2023-09-06 11:22:05 -07:00
qctecmdr
687026ab9f Merge "dwc3-msm-core: Remove usage of DWC31_LINK_GDBGLTSSM with POR" 2023-09-06 11:22:05 -07:00
qctecmdr
b90af60e59 Merge "Kconfig: Add support for Niobe chipset" 2023-09-06 11:22:04 -07:00
qctecmdr
3b750b3ee7 Merge "serial: msm_geni_serial: Prevent unclocked access in msm_geni_serial_flush" 2023-09-06 11:22:04 -07:00
qctecmdr
8723cb33f8 Merge "defconfig: remove socinfo_dt and virt_ssr from builtin modules" 2023-09-06 06:39:58 -07:00
qctecmdr
eb2e9edbf3 Merge "soc: qcom: pmic-pon-log: update PON fault reason map" 2023-09-06 06:39:57 -07:00
qctecmdr
8f5f0aaae4 Merge "spi: spi-msm-geni: Add default state in SPI event callback" 2023-09-06 06:39:57 -07:00
qctecmdr
c7d7863327 Merge "soc: qcom: hab: Fix Use-After-Free Vulnerabilities for import&unimport" 2023-09-06 06:39:56 -07:00
qctecmdr
954a9a6735 Merge "defconfig: Enable VM support for Cliffs SoC" 2023-09-06 06:39:56 -07:00
qctecmdr
6f4ae3ec8a Merge "bus: mhi: host: Increase MHI RDDM table size to 9" 2023-09-06 06:39:55 -07:00
Raghavendra Kakarla
2aea04b8e4 mpm: update config flag check for msm_mpm_enter_sleep
This patch updates the config flag check for the
msm_mpm_enter_sleep function definition.

Change-Id: Id654d3923fee3d012c59689bdc54088be5207c23
Signed-off-by: Raghavendra Kakarla <quic_rkakarla@quicinc.com>
2023-09-06 02:55:09 -07:00
Rakesh Kota
d4b7c962bb power: supply: Fix pmic-voter list duplication issue on kernel-6.1
pmic-voter.o has the vote aggregation logic that is used by SMB5,
SMB1355, SM1398 and QG drivers for controlling the state of
different charger parameters dynamically during operation,
by the registered voter clients.

On older 5.x kernel Makefile, pmic-voter.o was added to each
entry of these drivers, but only one shared instance
pmic-voter.o was getting created.

However, moving to the 6.x kernel, the same Makefile is now creating
one instance for each driver, which is leading to aggregation logic
going bad, as the votable_list is getting duplicated for each driver.

Fix this by exporting APIs in pmic-voter.c driver and remove
its object from other drivers except SMB5 charger driver.

Change-Id: Ied2ea205dd27ab10d41b5edddaac28c170bf4c0a
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
2023-09-06 14:57:47 +05:30