Commit Graph

3006 Commits

Author SHA1 Message Date
Patrick Daly
85a5b497a3 ARM: dts: msm: Use per-device genpd domain
Guidance from genpd team is to use a different power domain for each
device to avoid race condition in genpd framework when multiple devices
on same power domain runtime suspend in parallel.

Change-Id: I683ff80e5cef9583b65c14aa24db0f24d4ed981c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-20 14:39:14 -07:00
Patrick Daly
93bddeaaf3 ARM: dts: msm: Add interconnect vote for kgsl-smmu on sun
When all clients remove DDR bandwidth vote, DDR may power collapse.
As part of its shutdown sequence, it waits for an 'active' signal to
no longer be asserted by the gpu cx gdsc. Thus, if SW votes for the
gdsc to be active, but not for DDR bandwidth, this sequence may
get stuck.

Change-Id: I48d704f08cfe6d17159eb04d02f5ed123809f967
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-20 14:39:13 -07:00
QCTECMDR Service
c89771e26a Merge "ARM: dts: qcom: dt-bindings: Document qcom,sleep-clk-bcr quirk" 2024-08-20 07:30:09 -07:00
QCTECMDR Service
b491fa6563 Merge "ARM: dts: msm: pcie: Set ultrashort channel settings sun PCIe" 2024-08-20 03:06:39 -07:00
Linux Build Service Account
f647001f1f Merge "ARM: dts: msm: Add platform_mpam slc node for sun" into kernel.lnx.6.6.r1-rel 2024-08-20 02:53:15 -07:00
Prashanth K
c564e25a89 ARM: dts: qcom: dt-bindings: Document qcom,sleep-clk-bcr quirk
Newly added optional quirk "qcom,sleep-clk-bcr" adds delay of
200-250us after deasserting the USB3 BCR. This is needed on
some targets where sleep clk is used for BCR demet.

Change-Id: I88370838c29f679f2d2d90f565d3884d48bcdff2
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2024-08-20 11:55:55 +05:30
Saranya R
2ce01442f5 ARM: dts: msm: Spilt memdump entries to static and dynamic
Spilt memdump entries to static and dynamic dumps. Static dumps
are enabled by default. Dynamic mem dumps are enabled/disabled
using sysfs nodes and it's disabled in perf build.

Change-Id: I1f1f105d796391ec6e6001c249add9e8ba4b91ce
Signed-off-by: Saranya R <quic_sarar@quicinc.com>
2024-08-20 11:00:21 +05:30
Vivek Pernamitta
5d615962e8 ARM: dts: msm: pcie: Set ultrashort channel settings sun PCIe
Set RX settings mode to zero for Ultrashort channel
settings for sun PCIe controller.

Change-Id: I50b7896e6dabb2cda069c9242340dee02a225b8c
Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
2024-08-19 21:35:00 -07:00
Huang Yiwei
2bfbac17f5 ARM: dts: msm: Add platform_mpam slc node for sun
Add platform_mpam slc node for sun.

Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
Change-Id: I6d6f1eb03ea827b222eed65501df3ef3b7d60b46
2024-08-19 13:48:53 -07:00
Avinash Philip
35b90c55db dts: sun: Add Nodes for SLC MPAM support.
Support for MPAM SLC support

Signed-off-by: Avinash Philip <quic_avinashp@quicinc.com>
Change-Id: I6c17996b324ba2d3e11e90ef1af57cf30d44f9de
2024-08-19 13:48:21 -07:00
QCTECMDR Service
073b033833 Merge "ARM: dts: msm: Fix trust_ui_vm_mem alignment for Parrot" 2024-08-19 02:42:41 -07:00
QCTECMDR Service
ee84699fd2 Merge "ARM: dts: qcom: Add cold temperature mitigation cooling device" 2024-08-19 02:42:41 -07:00
Prakash Yadachi
b097308d9e ARM: dts: msm: Add memory and clock support for Parrot-VM
Add memory and clock support for qup for Parrot-VM target.

Change-Id: I2bdd7fea970fafc9c245277c31d5dc4003294734
Signed-off-by: Prakash Yadachi <quic_pyadachi@quicinc.com>
2024-08-19 12:01:43 +05:30
Linux Build Service Account
30f5433a53 Merge 4625e901da on remote branch
Change-Id: Ia1a9c1e5252450da76cad8e306d648ecb6539816
2024-08-18 12:52:45 -07:00
QCTECMDR Service
30a6c6b4d7 Merge "ARM: dts: msm: Add platform_mpam slc node for sun" 2024-08-17 09:52:09 -07:00
QCTECMDR Service
63b45e34ec Merge "ARM: dts: msm: Add initial device tree for parrot/ravelin vm" 2024-08-17 06:34:05 -07:00
Nitesh Kumar
c6abca418a ARM: dts: qcom: Add cold temperature mitigation cooling device
Add cx regulator cooling device to handle cold interrupt case
in parrot, it gets activated when cold temperatures interrupt
triggers.

Change-Id: I75c350ac3b30304e97e7bb2f2450f197b0a34900
Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2024-08-16 03:38:38 -07:00
Sneh Mankad
bfeba3fcee ARM: dts: msm: Add CPUIdle and PSCI related devices for tuna
Add idle states for CPUs and CPU clusters, added PSCI device,
to enable CPUs to enter deeper LPMs.
Disabled the idle states till Rumi validations are done.

Additionally. updated APPS RSC device to be in cluster power domain
to handle RSC activities when cluster is powering off.

Change-Id: I0dc50ff04bb480eb9ebdfa0bbaebfdf954c7c41b
Signed-off-by: Sneh Mankad <quic_smankad@quicinc.com>
2024-08-16 14:31:38 +05:30
Linux Image Build Automation
b1bc0e5e1f Revert "ARM: dts: msm: SLC SCID Heuristics support for sun"
This reverts commit 28cb435321.

Change-Id: Ieb0480fba1cb8b747a9ea96f48846066bf58ac25
Signed-off-by: Linux Image Build Automation <quic_ibautomat@quicinc.com>
2024-08-15 20:20:14 -07:00
Linux Image Build Automation
8174101022 Revert "dt-bindings: arm: msm: qcom,llcc: Add compatible for child node"
This reverts commit 522bab2225.

Change-Id: Iccb6279964c6423e2d6a20b44b2e5df15366399e
Signed-off-by: Linux Image Build Automation <quic_ibautomat@quicinc.com>
2024-08-15 20:20:01 -07:00
Linux Image Build Automation
826c6c4ad1 Revert "dts: sun: Add Nodes for SLC MPAM support."
This reverts commit 76a2be019a.

Change-Id: I9869483a7548eb5f2c3bbf2bd21c5622754d56d4
Signed-off-by: Linux Image Build Automation <quic_ibautomat@quicinc.com>
2024-08-15 20:19:49 -07:00
Linux Image Build Automation
c329d2eae7 Revert "ARM: dts: msm: Add platform_mpam slc node for sun"
This reverts commit 615c0e453f.

Change-Id: Ifc63385c42bab983b2603dcb92660baad17f966a
Signed-off-by: Linux Image Build Automation <quic_ibautomat@quicinc.com>
2024-08-15 20:19:37 -07:00
Linux Image Build Automation
69d47114bd Revert "ARM: dts: msm: Fix dependency between virtio-mem and mem-buf-msgq"
This reverts commit 00cd93793f.

Change-Id: I37af6633ca31668543ad12cf7584b9fdfee7fc18
Signed-off-by: Linux Image Build Automation <quic_ibautomat@quicinc.com>
2024-08-15 20:19:25 -07:00
Linux Image Build Automation
6b3c53ad88 Revert "dt-bindings: Document qcom,initial-movable-zone-size property"
This reverts commit 18f2c74330.

Change-Id: I7130537e2d1c7f761683b1161b0eaee875a7d811
Signed-off-by: Linux Image Build Automation <quic_ibautomat@quicinc.com>
2024-08-15 20:19:12 -07:00
Linux Image Build Automation
c8686bdc04 Revert "ARM: dts: msm: Add qcom,initial-movable-zone-size property"
This reverts commit c0fc43c3f7.

Change-Id: Iba58091938ab6a7d26090bf7fd8158ee209dab5d
Signed-off-by: Linux Image Build Automation <quic_ibautomat@quicinc.com>
2024-08-15 20:19:00 -07:00
Linux Image Build Automation
8f089d2f5e Revert "ARM: dts: msm: Increase virtio-mem maximum size"
This reverts commit 691880141b.

Change-Id: I0c3b6426ea3895affb7fe37dca526e2f7c7c18b0
Signed-off-by: Linux Image Build Automation <quic_ibautomat@quicinc.com>
2024-08-15 20:18:48 -07:00
Georgi Djakov
35f3c16d5e ARM: dts: msm: Add tui_test heap for sun-vm
The tui_test heap will be used by the large_dmabuf test
on sun-vm.

Change-Id: I84e5aee85c03e2cc809acc307509ce00aa74d967
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
2024-08-15 10:19:04 -07:00
Patrick Daly
29854f0195 ARM: dts: msm: Add interconnect vote for kgsl-smmu on sun
When all clients remove DDR bandwidth vote, DDR may power collapse.
As part of its shutdown sequence, it waits for an 'active' signal to
no longer be asserted by the gpu cx gdsc. Thus, if SW votes for the
gdsc to be active, but not for DDR bandwidth, this sequence may
get stuck.

Change-Id: I48d704f08cfe6d17159eb04d02f5ed123809f967
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-14 15:29:38 -07:00
QCTECMDR Service
a4b731a3d6 Merge "ARM: dts: qcom: Add Nodes for SLC MPAM support" 2024-08-14 03:25:38 -07:00
QCTECMDR Service
bf34df5bc6 Merge "ARM: dts: msm: Add a node for cpufreq cycle counter driver" 2024-08-13 22:14:21 -07:00
Huang Yiwei
63d17b94ea ARM: dts: msm: Add platform_mpam slc node for sun
Add platform_mpam slc node for sun.

Change-Id: Iacf470e2a8ca60277a817a4f8d159b5c75b80bc6
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2024-08-14 10:54:04 +08:00
QCTECMDR Service
8fe431f13c Merge "dt-bindings: Move qcom,cycle-cntr.yaml to correct location" 2024-08-13 19:13:25 -07:00
Gokul krishna Krishnakumar
8791d1c355 ARM: dts: msm: sun: add interconnects for soccp rproc
APPS needs to place proxy votes to ddr and cnoc when the SOCCP is in D0.

Change-Id: Idfa93910b51c6df033ea010480c1a8adeacd4af5
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2024-08-13 13:41:39 -07:00
Gokul krishna Krishnakumar
f7f2a9a731 ARM: dts: msm: sun: Add SOCCP_SOCCP_SPARE_REG0 to check SOCCP status
SOCCP_SOCCP_SPARE_REG0 is used to check D0 status of SOCCP.
TCSR_SOCCP_SLEEP_STATUS is used to check D3 status of SOCCP.

Change-Id: Icee37cddb0b7ef303962cab0d9a8f37a211a05da
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2024-08-13 13:40:10 -07:00
Patrick Daly
691880141b ARM: dts: msm: Increase virtio-mem maximum size
ZRAM is being disabled on tuivm due to observed stability issues due to
ZRAM's use of GFP_MEMALLOC. Increase maximum movable zone size to
compensate.

When kswapd swaps out pages, PF_MEMALLOC is set, which results in zram
ignoring the min_watermark, and lowmem_reserve. This is problematic
because we intend for movable memory to stay in ZONE_MOVABLE, rather
than falling back to ZONE_NORMAL. If the later occurs to such a high
degree that all ZONE_NORMAL memory is consumed, as is observed to be
the case during a "C2PA" testcase, attempts to plug in additional
ZONE_MOVABLE memory may fail due to requiring a small amount of
GFP_KERNEL memory.

Change-Id: Ic847e90514f80ccb91daa98849440d7a9b97f156
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-13 13:26:30 -07:00
Patrick Daly
c0fc43c3f7 ARM: dts: msm: Add qcom,initial-movable-zone-size property
"qcom,initial-movable-zone-size" creates a movable zone of the given size
before userspace starts. This is useful in a system where a userspace
component (psi-daemon) is used to hotplug in memory on a on-demand basis.

With swap disabled, the current tvm carveout size (68 Mb) hits
out-of-memory condition before psi-deamon is started.

Once psi-daemon is running, it detects the number of blocks added to the
movable zone via "qti_virtio_mem/kernel_plugged" sysfs file, and
can reduce or increment the number as necessary.

Change-Id: I5b62b6227e8a357ba3012979ed4bf937f1810437
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-13 13:26:29 -07:00
Patrick Daly
18f2c74330 dt-bindings: Document qcom,initial-movable-zone-size property
This property describes how large of a movable zone should be created
when the virtio_mem device probes.

Also, fix all errors reported by make dt_binding_check.

Change-Id: I487ad7592d54021ddbb3caddb20774d3e076c766
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-13 13:26:28 -07:00
Patrick Daly
00cd93793f ARM: dts: msm: Fix dependency between virtio-mem and mem-buf-msgq
The virtio-mem device has always had a dependency on mem-buf for plugging
in memory. Previously, the ordering was not a concern, since hotplug was
not done until userspace was up. However, in subsequent patches we
will instead hotplug in memory as soon as the virtio-mem device probes.

Change-Id: I9c4e4728a15ab32d65ffaea0ba2681a816a4abf0
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-13 13:26:27 -07:00
Huang Yiwei
615c0e453f ARM: dts: msm: Add platform_mpam slc node for sun
Add platform_mpam slc node for sun.

Change-Id: Iacf470e2a8ca60277a817a4f8d159b5c75b80bc6
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2024-08-13 13:26:25 -07:00
Avinash Philip
76a2be019a dts: sun: Add Nodes for SLC MPAM support.
Support for MPAM SLC support

Change-Id: Id98cc9e2d346d536905d92d0ef15ecf90ca8d162
Signed-off-by: Avinash Philip <quic_avinashp@quicinc.com>
2024-08-13 13:26:18 -07:00
Avinash Philip
522bab2225 dt-bindings: arm: msm: qcom,llcc: Add compatible for child node
Child node support for SCID heuristics compatible device.

Change-Id: Id1fb1e190181d39053dce629c6807262032744ad
Signed-off-by: Avinash Philip <quic_avinashp@quicinc.com>
2024-08-13 13:26:11 -07:00
Avinash Philip
28cb435321 ARM: dts: msm: SLC SCID Heuristics support for sun
Enables HEURISTICS SCID for sun.

Change-Id: I1f52aeb0000c5835236bf6c04cc3c51e87cdfedf
Signed-off-by: Avinash Philip <quic_avinashp@quicinc.com>
2024-08-13 13:26:10 -07:00
QCTECMDR Service
a42a64bb1e Merge "ARM: dts: msm: Update SLC SCID Heuristics property" 2024-08-13 12:29:04 -07:00
QCTECMDR Service
3a282c5a09 Merge "ARM: dts: msm: Add pmic-glink support and its clients for tuna" 2024-08-13 12:29:04 -07:00
Sai Harshini Nimmala
f0f1c41d9d dt-bindings: Move qcom,cycle-cntr.yaml to correct location
Bindings file for WALT cycle counter driver is in incorrect location.
Move it to the correct location where all other bindings files are
present.

Change-Id: I9e8ef0a87ac6b311931535a82ccf3c784bcdc896
Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
2024-08-13 11:46:25 -07:00
Hrishabh Rajput
e5e656ad48 ARM: dts: msm: Fix trust_ui_vm_mem alignment for Parrot
Parrot need to follow non-relocatable absolute addresses for VM due to
firmware constraints. VM kernel load address is the start address of the
vm_mem_region and build system requires the load address of the kernel
to be 2MB aligned.

This patch adjusts the start address of the trust_ui_vm_mem region for
Parrot to align to 2MB. This also means reducing its size by 1MB.

Change-Id: I1816ec5f6ff18f55ecc4dec39958d442151f8cb0
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
Signed-off-by: Swetha Chikkaboraiah <quic_schikk@quicinc.com>
2024-08-13 01:51:58 -07:00
Avinash Philip
12d8a87783 ARM: dts: qcom: Add Nodes for SLC MPAM support
Support for MPAM SLC support.

Change-Id: Id98cc9e2d346d536905d92d0ef15ecf90ca8d162
Signed-off-by: Avinash Philip <quic_avinashp@quicinc.com>
2024-08-13 06:46:01 +05:30
Avinash Philip
5993234e05 dt-bindings: Add new bindings for MPAM MSC
Binding document to support MPAM(Memory System Resource Partitioning
and Monitoring) MSC(Memory System Component) interface framework added
to support multiple MSC components. Currently SLC(System Level Cache)
MSC support integrated to MSC interface with API support to configure
SLC Capacity and monitors.

Change-Id: I866b0e8cd6106f86535baf004d25e81e406e3e12
Signed-off-by: Avinash Philip <quic_avinashp@quicinc.com>
2024-08-13 06:44:44 +05:30
QCTECMDR Service
6932695c34 Merge "ARM: dts: msm: Remove cpusys_vm region on sun" 2024-08-12 14:14:24 -07:00
Avinash Philip
55be01b6fc ARM: dts: msm: Update SLC SCID Heuristics property
Update vendor prefix qcom for heuristics SCID property.

Change-Id: I9a683f6ac543a2a7108986abd68f21c1df8a54bb
Signed-off-by: Avinash Philip <quic_avinashp@quicinc.com>
2024-08-12 23:58:10 +05:30