Commit Graph

1155690 Commits

Author SHA1 Message Date
Zhenhua Huang
ce1e722c1e modules.blocklist: Add modules to system_dlkm blocklist for blair
Move can and kheader modules to system_dlkm blocklist
instead of vendor module blocklist.

Change-Id: I9b50b5ed3982b1905d5c31b30180e0b2eed9450e
Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com>
2023-11-08 15:04:53 +08: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
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
Rakesh Kundaram
830c2c0857 soc: qcom: Add insufficient memory check in cdsprm driver
Add insufficient length check in cdsprm_rpmsg_callback to avoid
out of bound memory access.

Change-Id: Ie816cf1b02d9857cc6a6768122ea98b9ea3ef1a7
Signed-off-by: Rakesh Kundaram <quic_krakeshk@quicinc.com>
2023-09-06 10:16:17 +05:30
Manoj Prabhu B
cc58448eac memshare: Prevent possible integer overflow
Prevent possible integer overflow by sanitizing the alloc request
size coming from the client against allottable amount of memory.

Change-Id: I74cb0f7b0808f20299586969fd5c810d44c3e576
Signed-off-by: Manoj Prabhu B <quic_bmanoj@quicinc.com>
2023-09-05 21:28:28 -07:00
qctecmdr
e990bbe84a Merge "serial: msm_geni_serial: Handle vote_clock_off when rx data is inflight" 2023-09-05 19:31:45 -07:00
qctecmdr
1ae1f9eca5 Merge "soc: qcom: dmesg_dumper: get shared memory from carve out first" 2023-09-05 19:31:45 -07:00
qctecmdr
29ca553011 Merge "ANDROID: build: Switch to hermetic tools for DTC build" 2023-09-05 13:56:17 -07:00
John Moon
c8511316f2 ANDROID: build: avb_boot_img: Use hermetic tools
Currently, the avb_boot_img rule uses "openssl" from the host while
building. This causes a build error on hosts that do not have openssl
installed.

Since openssl is included in the prebuilt hermetic tools, let's update
the rule to use those instead.

Change-Id: Iddd95a3a74690bfe5e94733e810eed8800e77c39
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-09-05 12:16:55 -07:00
Viken Dadhaniya
dc3a05a9ab serial: msm_geni_serial: reconfigure baud rate and port setup
For HSUART we are doing the port setup only once during probe
and if system is entering into deep sleep without port close,
after the deep sleep exit QUP HW is not retaining register
configuration made as part of port setup and set_termios.

Added changes in the deep sleep exit path to do the port setup
and reconfigure uart to the previous baud rate.

Change-Id: Ieb7a1e5fd624de8985be19ff47f579c3d5e92e41
Signed-off-by: Yatish Kumar Singh <quic_yatishku@quicinc.com>
Signed-off-by: Viken Dadhaniya <quic_vdadhani@quicinc.com>
2023-09-05 15:33:41 +05:30
Prasanna S
b22b10aafe serial: msm_geni_serial: Pull RFR before stop_rx for uart
Pull the RFR line before doing stop_rx in uart driver.
This is to prevent any rx data to come into the uart rx fifo when
stop_rx is being executed.

Issue scenarios could be that during baud rate change/ runtime
suspend or any other place where stop_rx is used, there might
be a race between rx data entering uart rx fifo and using available
dma RX buffer and leading to cancel failure.
This scenarios resulting in data loss or invalid RX packet issues
further.

Change-Id: I92163c4997c1709269dce67a1d492533f710abfb
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2023-09-05 15:30:07 +05:30
Prasanna S
04410dc712 serial: msm_geni_serial: Prevent unclocked access in msm_geni_serial_flush
msm_geni_serial_flush is calling stop_tx_sequencer
while uart is in suspend state, resulting in unclocked
register access.

Use msm_geni_serial_stop_tx in msm_geni_serial_flush
which will check if device in suspend state.

Change-Id: I75712bc12a81e65637a026839f3ac6cc6f96f3e4
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2023-09-05 15:29:14 +05:30
Prasanna S
0571a72440 serial: msm_geni_serial: Updated uart flush for atomic context
Uart flush call causing the crash when called in atomic context.
Sleeping tasks getting called from GSI dma engine terminate
for tx channel through uart flush buffer.
So updated dma termination task to be handled through work queue.

Change-Id: Id1dcf1e79802bb6e8f5e1c6de3b43549668064dc
Signed-off-by: Zahir Shabbir Khan <quic_zshabbir@quicinc.com>
Signed-off-by: Aniket Randive <quic_arandive@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2023-09-05 15:28:04 +05:30
Prasanna S
0285cbaf5e serial: msm_geni_serial: Update wakeup byte handling mechanism
In current implementation, after vote_clock_off we check for wakeup
byte in UART Rx buffer. If wakeup byte is present, we send it to BT
Application else drop the rx bytes until wakeup byte 0xFD is received.
The problem with this implementation was if there was out of sync
between Tx and Rx and a packet was received after clock off, it
was checked for wakeup byte which resulted in drop of some rx bytes.

To mitigate above scenario change handling of wakeup byte mechanism
as below:
1. Check the rx packet for wakeup_byte only after runtime suspend
instead of vote clock off.
2. Check only the first byte of RX buffer.
3. If wakeup byte is received send it to BT appplication.
4. Else drop the whole bytes.

Change-Id: I1fea3b99193887d05ee7756df933abd94b6d71d3
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2023-09-05 15:24:14 +05:30