Commit Graph

1156180 Commits

Author SHA1 Message Date
qctecmdr
ae3ec363f5 Merge "drivers: thermal: qcom: Add module description of rpm smd driver" 2023-09-22 08:16:19 -07:00
qctecmdr
af5fbcfe6c Merge "ANDROID: build: Remove super_image.bzl" 2023-09-22 08:16:18 -07:00
Chandana Kishori Chiluveru
4fa0577462 q2spi-msm-geni: Add q2spi interface drivers support
Add q2spi interface drivers support.

Change-Id: I8f3fb11ce654da8fb83fa0b46dd645b2449fb16e
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
2023-09-22 06:58:44 -07:00
Chandana Kishori Chiluveru
6dfef602a6 serial: msm_geni_serial: Move SE_DMA_TX_ATTR define to common header
This change will move SE_DMA_TX_ATTR define from serial driver to common
header file so that other protocol drivers also can use the address
definition from common header file.

Change-Id: I60b7e0051bddd9772a30385238c2d1fdbc991396
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
2023-09-22 06:58:15 -07:00
Anil Veshala Veshala
0f1d72a5b2 i3c-master-msm-geni: add changes for i3c counter values
In i3c transfer address phase during ACK we are seeing 1.8us
delay due to mixed bus counter values, this we can reduce max
up to 1us by updating counter values as per HPG. Updated counter
values as per HPG.

Change-Id: I03bf24091d3a21452fb291bfa73c42415bd88407
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2023-09-21 23:55:25 -07:00
Raghavendra Kakarla
b1d9bb74f5 arm64: defconfig: Enable power drivers for Pitti SoC
This patch enables rpm-smd, mpm, lpm governor and stats
drivers.

Change-Id: I0aa16a970115b3bdeb8b0a9fdd3d9d7b1a4bf1f1
Signed-off-by: Raghavendra Kakarla <quic_rkakarla@quicinc.com>
2023-09-21 23:15:09 -07:00
Huang Yiwei
fec8a6ddc9 soc: qcom: Only restore kaslr offset when kaslr is enabled
Add kaslr config check to avoid compile error when
CONFIG_RANDOMIZE_BASE is not defined.

Change-Id: Ic5616c56a11e3c6214e33fe796841bc86642bde5
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2023-09-22 14:04:44 +08:00
Huang Yiwei
ab68ec07a2 soc: qcom: Extend the default SHM timeout
Extend the default SHM timeout and also add the default timeout
to subsys required timeout to avoid conflict with SSR.

Change-Id: Ic0309904c984bdba779a2e6b37ba0f431c5dda73
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2023-09-22 13:33:29 +08:00
Jingyi Wang
13231e9053 soc: qcom: Refuse more SHM check request when it's already checking
When a SHM check is already in process, there's no need to check it
again, just refuse the new request to avoid problems. Use check_state
instead of check_count/report_count to make it more clear.

Change-Id: Ia650a669179cfc294e08db99920cd22b7e4ee885
Signed-off-by: Jingyi Wang <quic_jingyw@quicinc.com>
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2023-09-22 13:26:04 +08:00
Jingyi Wang
a3ec1aaccf soc: qcom: Add is_in_reset check to fix corner case
tmp_hma_info->connected is not sufficient to distinguish if hma
info is not initialied or hma is going to shutdown, usually we
handle reg req after receive QCOM_SSR_AFTER_POWERUP and it works
fine, but we may meet corner case such as QCOM_SSR_AFTER_POWERUP->
QCOM_SSR_BEFORE_SHUTDOWN->shm_reg_req_handler, which lead to
duplicate subsystem or spurious health check during shutdown.
Also, update hma_info to newest even we found duplicate subsystem.

Change-Id: I61e570618b490bd13bc022e6cfc3a6c6fa10a0da
Signed-off-by: Jingyi Wang <quic_jingyw@quicinc.com>
2023-09-22 13:24:40 +08:00
Kalpak Kawadkar
293ae2856c arm64: defconfig: Enable clock and gdsc drivers for NIOBE
Enable COMMON_CLK_QCOM and GDSC_REGULATOR drivers on NIOBE
platform.

Change-Id: I9f2107bee5acdc8a80bab18160a42266d00864fc
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
2023-09-22 09:36:58 +05:30
qctecmdr
0ca6e7644e Merge "sched/walt: make packing control nodes per cluster" 2023-09-21 19:06:36 -07:00
qctecmdr
f5f8b9928b Merge "i2c: i2c-msm-geni: create new function from probe" 2023-09-21 19:06:35 -07:00
badris
6a7f228baa msm_perf: Fix for recursive locking
Use cpuhp_setup_state_nocalls_cpuslocked instead of
cpuhp_setup_state_nocalls as cpus_read_lock is
already taken.

Using cpuhp_setup_state_nocalls_cpuslocked will avoid
potential recursive locking.

Change-Id: I4639510aa417d6cec73903e6d08ba7b527006314
Signed-off-by: badris <quic_badris@quicinc.com>
2023-09-21 11:49:44 -07:00
qctecmdr
586b0cd031 Merge "Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (bd65f1b) into qcom-6.1" 2023-09-21 08:22:42 -07:00
Vivek Pernamitta
9b92d60ebd Revert "bus: mhi: host: Disable preemption while processing data events"
Commit 9204f9fa1e ("bus: mhi: host: Disable preemption
while processing data events") replaced spin_lock_bh/unlock_bh
with spin_lock_spin_lock_irqsave/restore to disable preemption
to allow processing of all data ring elements with
parse_xfer_event() API. As part of processing data ring
elements uses read_lock_bh()/read_unlock_bh().

a. spin_lock_irqsave() -> disable interrupt on CPU, store into flags
b. read_lock_bh() -> calls local_irq_disable()
c. process data event ring
d. read_unlock_bh() -> calls local_irq_enable()
e. spin_lock_irqrestore() -> restores interrupt using flags before
   enabling interrupt

When CONFIG_TRAC_IRQFLAGS Kconfig is enabled,
raw_check_bogus_irq_restore() is checked to detect situation
where interrupts are already enable while trying to restore it.
Due to above nested usage of locking, there is WARN_ONCE() seen.

Change-Id: I3579c2bbb92f6ea9149a7c9550dedce36466eb52
Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
2023-09-21 19:43:24 +05:30
qctecmdr
61e24a5df7 Merge "ANDROID: Add specific directory for minidump on Blair" 2023-09-21 04:49:07 -07:00
qctecmdr
29fbd0cc4f Merge "defconfig / modules.list: Enable base memory modules for niobe" 2023-09-21 04:49:07 -07:00
Kalpak Kawadkar
33ad8cca79 clk: qcom: smd-rpm: Add support for clock handoff
During boot-up if the clock driver put across a initial high vote then
there is no way to remove these votes which can cause the corresponding
votes to be left always high till the CPU suspends causing power
regression. Thus introduce a device property which can remove the
initial votes from the clock driver and leave it up to the client to
keep a vote.

Change-Id: I068c87d06df908ee0ed0e58f69d46933b301ea6f
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
2023-09-21 04:00:33 -07:00
ruoyyang
c6d10ed271 defconfig: gen4auto: enable refgen
-m will block compile by "kernel modules are built but not copied".
Set to -y.

Change-Id: I8fa380f3e60520511a4097d7e7671a1b7615cb30
Signed-off-by: ruoyyang <quic_ruoyyang@quicinc.com>
2023-09-21 01:51:29 -07:00
Sarosh Hasan
189384611c net: stmmac: Enable Serdes driver
Configured and enabled Serdes driver for SGMMI/USXGMII interface.

Change-Id: I110694184bba7d5fb1266a8488fe8b39d4a0454a
Signed-off-by: Sarosh Hasan <quic_sarohasa@quicinc.com>
2023-09-21 00:56:51 -07:00
qctecmdr
08884c8004 Merge "defconfig: pineapple_tuivm: add minidump support" 2023-09-21 00:38:04 -07:00
Android Build Coastguard Worker
6d6f7a7476 Snap for 10840754 from 3157cbfe25 to android14-6.1-keystone-qcom-release
Change-Id: Ia9b158ce70eafc71b7774f13094426cae049472d
2023-09-21 07:25:33 +00:00
qctecmdr
1ef2051bbf Merge "net: stmmac: Change DMA and MTL HW address and add HSR seq programming" 2023-09-20 22:34:41 -07:00
qctecmdr
cd07296f34 Merge "drivers: remoteproc: Disable Auto Boot for MonacoAU Rprocs" 2023-09-20 22:34:41 -07:00
qctecmdr
1c80d5f31f Merge "rpm-smd: Remove redundant spinlocks which are not required" 2023-09-20 22:34:40 -07:00
Visweswara Tanuku
fd9f879759 serial: msm_geni_serial: Retry sending Rx data if tty_insert_flip_string fails
Sometimes tty_insert_flip_string fails when trying to send
large data due to memory allocation failure in tty layer.

Allocation in tty layer can fail due to higher order page
request, hence retry sending data to tty layer in chunks
of 512 bytes which uses zero order pages.

Change-Id: I99dcde0421e07eda61fac19fdc0f45f986c1434c
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
2023-09-20 21:42:43 -07:00
Stephen Dickey
c00042bcd3 sched/walt: make packing control nodes per cluster
To enhance tuning capability, ensure that the idle_enough and
util_thres_pct control nodes can be tuned per cluster, enabling
different levels of demand and util comparison per cluster.
These nodes are used only in the packing_cpu fastpath decision
making, for rt and cfs.

Change-Id: I29131d9dbce0e29b74cef69fe153bd009eb4fd58
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
2023-09-20 14:17:14 -07:00
Stephen Dickey
d96859ba80 ANDROID: abi_gki_aarch64_qcom: update abi symbols
Add android_rvh_cgroup_force_migration and other symbols.

Symbols added:
   __traceiter_android_rvh_cgroup_force_kthread_migration
   __tracepoint_android_rvh_cgroup_force_kthread_migration

Bug: 184594949
Bug: 301261126
Change-Id: I8ffed8f422a33f141edc95d1b65a07b8fe30b424
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
(cherry picked from commit 5b0878fc61)
2023-09-20 13:39:32 -07:00
Pavankumar Kondeti
89b1916f96 ANDROID: cgroup: Add android_rvh_cgroup_force_kthread_migration
In Android GKI, CONFIG_FAIR_GROUP_SCHED is enabled [1] to help
prioritize important work. Given that CPU shares of root cgroup
can't be changed, leaving the tasks inside root cgroup will give
them higher share compared to the other tasks inside important
cgroups. This is mitigated by moving all tasks inside root cgroup to
a different cgroup after Android is booted. However, there are many
kernel tasks stuck in the root cgroup after the boot.

It is possible to relax kernel threads and kworkers migrations under
certain scenarios. However the patch [2] posted at upstream is not
accepted. Hence add a restricted vendor hook to notify modules when a
kernel thread is requested for cgroup migration. The modules can relax
the restrictions forced by the kernel and allow the cgroup migration.

[1] f08f049de1
[2] https://lore.kernel.org/lkml/1617714261-18111-1-git-send-email-pkondeti@codeaurora.org

Bug: 184594949
Bug: 301261126
Change-Id: I445a170ba797c8bece3b4b59b7a42cdd85438f1f
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
[quic_dickey@quicinc.com: port to android-mainline kernel]
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
(cherry picked from commit 7551a1a2a1)
2023-09-20 13:39:17 -07:00
Fei Yang
bd76568aa8 defconfig: pineapple_tuivm: add minidump support
Add minidump support on pineapple_tuivm platform.

Change-Id: I946d640616b0a9abe7be6bebf95fed6b29b6b7bd
Signed-off-by: Fei Yang <quic_feiyan@quicinc.com>
2023-09-20 07:15:51 -07:00
qctecmdr
22931d1ab9 Merge "soc: qcom: minidump: Split SMEM and RM access from common logic" 2023-09-20 04:45:53 -07:00
qctecmdr
e3ec1083f3 Merge "serial: msm_geni_serial: Correct HS uart voting" 2023-09-20 04:45:52 -07:00
qctecmdr
2424dfa6ad Merge "pinctrl: Rename sdc_data function in cliffs" 2023-09-20 02:36:50 -07:00
qctecmdr
e5233e277f Merge "remoteproc: qcom_spss: Add support for QMP message to AOP" 2023-09-20 02:36:49 -07:00
qctecmdr
dae750d354 Merge "Virtio-spi: Add snapshot of virtio SPI frontend driver" 2023-09-20 02:36:48 -07:00
qctecmdr
5314c6ff1e Merge "soc: qcom: minidump: Do not copy content from address around X* registers" 2023-09-20 02:36:48 -07:00
keystone-kernel-automerger
3157cbfe25 Merge android14-6.1-2023-08_r4 into HEAD
* commit '5c1ed513eded33d20e713b1d346e5766251ac98b':
  ANDROID: GKI: Update symbol list for xiaomi
  ANDROID: vendor_hooks: export cgroup_threadgroup_rwsem
  ANDROID: GKI: Update symbol list for xiaomi
  ANDROID: vendor_hooks:vendor hook for percpu-rwsem

Change-Id: If18accea139ba3bbac0db069fad65553ed39b2f5
Signed-off-by: keystone-kernel-automerger <keystone-kernel-automerger@google.com>
2023-09-20 07:28:42 +00:00
Pratyush Brahma
1f21793175 defconfig / modules.list: Enable base memory modules for niobe
Enable base memory modules for niobe by enabling configs and adding
relevant modules for first stage loading.

Change-Id: Ia71f1263b814976d326b782305895358dad2602e
Signed-off-by: Pratyush Brahma <quic_pbrahma@quicinc.com>
2023-09-19 22:48:37 -07:00
Sarosh Hasan
6ad6119e38 net: stmmac: Change DMA and MTL HW address and add HSR seq programming
Change base address for DMA and MTL registers for direwolf.
A new function ethqos_configure_mac_v3() has been created for
HSR sequence programming for Gen4. ethqos_rgmii_macro_init()
function has been modularised by creating new functions to
configure rgmii macro for different speeds.

Change-Id: I1bc925dd4a9af6013d6838ebaa1ba25073f9b64b
Signed-off-by: Sarosh Hasan <quic_sarohasa@quicinc.com>
2023-09-19 20:54:56 -07:00
qctecmdr
38766b54dc Merge "soc: qcom: pdr: Add pdr_add_service_lookup() for service lookup" 2023-09-19 11:47:46 -07:00
Mukesh Ojha
0ee6654c00 soc: qcom: minidump: Do not copy content from address around X* registers
There was a debug feature on minidump to collect content around
pointers present in panicked cpu registers from X0-X30. PC, LR,
SP. and it was having check present before copy the contents about
address need to be kernel mapped and not hyp assigned. We should
be able to do most of the checking present as well but tracking
the buffers which are assigned to other VMID through
qcom_scm_assign_mem() and since it is upstream API and adding magic
value to each PFN and restore it if there is failure is kind of
overhead for such a debug feature, ideally it should have done on
client side but doing at the client is very difficult task to do
as there are many users of this API.

For now, we are cleaning this up, unless we know the user of this
information and it is worth doable.

Change-Id: I638877063a4c8c6dabb7d16bcc4eeb63f5108fba
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
2023-09-19 10:41:22 -07:00
qctecmdr
d33c65ffab Merge "net: qrtr: Destroy xarray on endpoint unregister" 2023-09-19 09:55:30 -07:00
Darshankumar Jagdishchandra Thakkar
03b428168c rtc: rtc-pm8xxx: Assign power management operations
Assign the power management operations defined in the pm8xxx_rtc_pm_ops
structure to the platform driver pm field.

Change-Id: Ifd1eeaf0ae106037a73ff4ef3f7155dfa9894caa
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2023-09-19 06:33:13 -07:00
Nitesh Kumar
688cefbd1e drivers: thermal: qcom: Add module description of rpm smd driver
Add module description rpm smd driver.

Change-Id: Ia0cc2118ac23cde7cd8b30d8b9087f1448f2596e
Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2023-09-19 18:47:46 +05:30
Nitesh Kumar
e5b69f5b54 drivers: thermal: qcom: Add module description of CX ipeak driver
Add module description of CX ipeak driver.

Change-Id: If66980fbcb6410e800f2e000db1972d7ee7dbf32
Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2023-09-19 18:46:07 +05:30
Sindhura Ganda
30c4242337 remoteproc: qcom_spss: Add support for QMP message to AOP
Add spss to the list of rprocs, who usually send message up
and down notification message to AOP and  also move
out common code from qcom_q6v5_pas to qcom_common
so that it can be used by SPSS rproc driver.

Change-Id: Idbe0774c57d9959a15873e2c71a604dc98435313
Signed-off-by: Sindhura Ganda <quic_sganda@quicinc.com>
2023-09-19 04:33:31 -07:00
Maya Erez
546678fa51 mmc: sdhci-msm: Add partial initialization support
This change adds the ability to partially initialize
the MMC card by using card Sleep/Awake sequence (CMD5).
Card will be sent to Sleep state during runtime/system
suspend and will be woken up during runtime/system resume.
By using this sequence the card doesn't need full initialization
which gives time reduction in system/runtime resume path.

Change-Id: Ic4fcc1563cee2503513e6a0f9d3f00eb7b58ad51
Signed-off-by: Maya Erez<quic_merez@quicinc.com>
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Ram Prakash Gupta <quic_rampraka@quicinc.com>
Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com>
2023-09-19 14:26:37 +05:30
Priyansh Jain
b2c635102d drivers: thermal: Update cpu hotplug driver to handle partial CPU's
Add changes to create cooling device name as per alias defined in
devicetree.

Change-Id: I8d9d119372e2daaeadeab6fb97a0f5c053f0200d
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2023-09-19 01:54:58 -07:00
Song Xue
296bb63a19 ANDROID: Add specific directory for minidump on Blair
Add specific directory for minidump module in blair.bzl.

Change-Id: Idb36eb6e21e7e4ea9f0b305e205c554abb8bcdec
Signed-off-by: Song Xue <quic_songxue@quicinc.com>
2023-09-19 16:02:12 +08:00