Commit Graph

1168777 Commits

Author SHA1 Message Date
Navya Vemula
e6ac656a86 arm64: defconfig: Enable socinfo and smem drivers for Seraph SoC
Enable socinfo and dependent drivers for Seraph SoC.
Add socinfo and dependency modules in first stage list.

Change-Id: I80937e6ecf97e13c5e980434e52f4acd6b45c3d3
Signed-off-by: Navya Vemula <quic_nvemula@quicinc.com>
2024-08-24 10:35:37 +05:30
Navya Vemula
17e5be797a defconfig: Enable pinctrl config for Seraph SoC
Add pinctrl config to support pin control in Seraph SoC. Add seraph
pinctrl module to list of first stage module list. Add dependent
QCOM_SCM config support and SCM module for seraph SoC.

Change-Id: I9703ff9b04eb6646008f52226b600e8e90470cb7
Signed-off-by: Navya Vemula <quic_nvemula@quicinc.com>
2024-08-24 10:33:34 +05:30
QCTECMDR Service
7cd339d42e Merge "soc: qcom: sysmon: Add null check for add_delta_time" 2024-08-13 13:36:25 -07:00
QCTECMDR Service
4eb8957387 Merge "drivers: nvmem: qfprom: Add keepout_regions for pineapple" 2024-08-13 13:36:25 -07:00
QCTECMDR Service
ddfcd39924 Merge "icc: dt-bindings: Add snapshot of endpoint IDs for interconnects for Neo" 2024-08-13 13:36:24 -07:00
QCTECMDR Service
f19948a686 Merge "coresight: tmc: etf: Free its buffer and set NULL when etf can't be enabled" 2024-08-13 08:27:42 -07:00
QCTECMDR Service
287a3b8b89 Merge "firmware: scm: Add checks for NULL pointer dereference" 2024-08-13 08:27:41 -07:00
QCTECMDR Service
d34faa6089 Merge "net: stmmac: Enable Deep sleep support" 2024-08-12 13:14:20 -07:00
Odelu Kukatla
085040c09f icc: dt-bindings: Add snapshot of endpoint IDs for
interconnects for Neo

Add master and slave ID constants for all Qualcomm Technologies, Inc.
Neo interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.
This is a snapshot taken from 5.10 kernel.
commit c1275fdbd5e2 ("icc: dt-bindings: add endpoint IDs for
interconnects for Neo").

Change-Id: I2c0e62f96ba6288b6903f0dd13a2d68aa7b3ec49
Signed-off-by: Odelu Kukatla <quic_okukatla@quicinc.com>
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
2024-08-12 08:29:17 -07:00
Srinath Pandey
a94a1330a1 net: stmmac: Add support for driver remove operation
Add driver remove feature for making
rmmod dwmac-qcom-eth successful.

Change-Id: If6334979a1f603fdd6d99a8d189ed84aa3a3afc7
Signed-off-by: Srinath Pandey <quic_srinpand@quicinc.com>
2024-08-12 01:59:13 -07:00
Shashank Shekhar
ff2b9fdf51 net: stmmac: Enable Deep sleep support
Add support for Deep sleep in ethernet driver.

Change-Id: I6255580b909088c0908674e446ca9d7599051498
Signed-off-by: Shashank Shekhar <quic_sshe@quicinc.com>
2024-08-11 23:36:29 -07:00
Wasim Nazir
ebd0bcb25c soc: qcom: sysmon: Add null check for add_delta_time
sysmon_smem_power_stats_extended pointer will be NULL
in case of invalid dsp_id.
Add NULL check for invalid dsp_id cases.

Change-Id: If4fe03051ff6388307ff137b55d4e15b2e0f88f1
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
2024-08-12 12:01:14 +05:30
yingdeng
8a01c3ed0f coresight: tmc: etf: Free its buffer and set NULL when etf can't be enabled
In function tmc_enable_etf_sink_sysfs, the local variable buf
was allocated and assigned to drvdata->buffer, and buf will be
freed because etf can't be enabled, but drvdata->buffer
still point to the address.
So in function tmc_read_unprepare_etb, beacause drvdata->mode
is CS_MODE_DISABLED, local variable buf was assigned by
drvdata->buf and free again.

Change-Id: I7d25e7db0a983fc134e8d8dfb954936233f0d167
Signed-off-by: yingdeng <quic_yingdeng@quicinc.com>
2024-08-11 22:35:11 -07:00
Wasim Nazir
c787ac5c9f firmware: scm: Add checks for NULL pointer dereference
Add macro to check for __scm pointer before accessing.
Also add check for device pointer.

Change-Id: Ib3ef303fd9574bedd87077dcd62a480066d7a7d8
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
2024-08-12 11:02:18 +05:30
QCTECMDR Service
46f5c0a0c2 Merge "bindings: clock: qcom: Snapshot for clock bindings on NEO" 2024-08-09 20:10:24 -07:00
QCTECMDR Service
1d2d060fae Merge "arm64: defconfig: Enable PDC, CPUidle goverrnor, stats driver for neo" 2024-08-09 02:11:27 -07:00
QCTECMDR Service
25804bc944 Merge "ufs: qcom: Create sysfs node "ufs_pm_mode"" 2024-08-08 22:37:29 -07:00
QCTECMDR Service
12df14f1b4 Merge "Revert "soc: qcom: hgsl: enable memflag for hgsl allocation"" 2024-08-08 14:42:22 -07:00
QCTECMDR Service
a83c3694ff Merge "rpmsg: native: Remove IRQF_ONESHOT flag" 2024-08-08 11:08:49 -07:00
Ram Kumar Dwivedi
4ab95acc04 ufs: qcom: Create sysfs node "ufs_pm_mode"
In some HQX targets (where Linux is running as guest OS),
when S2R is triggered from host OS, the GVM is sent to
Deep Sleep state.

Since Deep Sleep is getting triggered from Guest point of view,
ufs spm level is set to 5, Power OFF SSU command is sent to the
ufs device and all regulators are turned off from ufs. But since
it is actually an S2R event from Host PoV, the  regulators are
not turned off by the PMIC. This is causing power leakage.

To fix this issue, create a sysfs node "ufs_pm_mode". The Host OS
will write to this node which the event (S2R or Deep Sleep) is
getting triggered at the Host. UFS will set the correct spm level
accordingly. For S2R case, the default spm level is retained while
for Deep Sleep it is set to 5.

The default value for this node is 0( which is set during ufs init).
This means it will not set anything unless "S2R" or "DEEPSLEEP" is
explicitly written to the node.

ufs_pm_mode can have three values: "NONE","S2R","DEEPSLEEP":

1. When "NONE" is written to sysfs node: the spm level
   is set to 5 for deep sleep and existing spm value
   left unchanged for s2idle case.

2. When "S2R" is written to the node: the default spm level
   value is retained.

3. When "DEEPSLEEP" is written to the node: the spm level
   is set to 5.

Change-Id: I232449cf93a3b37652897e74a621bf219302b76b
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
2024-08-08 18:31:27 +05:30
Jeyaprabu J
bb0fd5f452 Revert "soc: qcom: hgsl: enable memflag for hgsl allocation"
This reverts commit 4cacf64319.

Reason for revert: Regressing Performance.

Change-Id: Ib69607b76cca91fc525cbc5cd86b4bc547b80253
Signed-off-by: Jeyaprabu J <quic_jeyaprab@quicinc.com>
Signed-off-by: Vishakh <quic_jeyaprab@quicinc.com>
2024-08-08 03:17:58 -07:00
Kalpak Kawadkar
9fd9595d11 bindings: clock: qcom: Snapshot for clock bindings on NEO
Add snapshot of clock handles for CAMCC/DISPCC/GCC/GPUCC/VIDEOCC/TCSRCC
on NEO so that clients can request on the clock ids,from msm-5.10 branch
commit e42f1c7f152e ("bindings: clock: qcom: Add support for
clock IDs for Neo").

Change-Id: If1ed852cb3e7cf91da1953beaaeeda309288ab14
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
2024-08-08 12:48:18 +05:30
Dhaval Radiya
0222920c9e arm64: defconfig: Enable PDC, CPUidle goverrnor, stats driver for neo
This change enables PDC, CPUidle governor and various stats drivers.

Change-Id: If2e61f913a2fc350c13ae8c9c0cbde926a4c48b7
Signed-off-by: Dhaval Radiya <quic_dradiya@quicinc.com>
2024-08-08 11:56:00 +05:30
QCTECMDR Service
9cfdeb74ee Merge "hwspinlock: qcom: Provide function to bust hwspinlock" 2024-08-07 22:47:17 -07:00
QCTECMDR Service
ffa1703968 Merge "soc: qcom: rpmh: shift spin_lock_init before cpu_pm_register_notifier" 2024-08-07 22:47:16 -07:00
Pranav Mahesh Phansalkar
ba3c82504e rpmsg: native: Remove IRQF_ONESHOT flag
Remove IRQF_ONESHOT flag as it disables incoming interrupts
while running threaded irq.

Change-Id: Ieb045e8aee3fc3b179fc7e7517064ba1c76a4483
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
2024-08-07 22:04:03 -07:00
QCTECMDR Service
83cd56ed58 Merge "modules.list.msm.autogvm: Keep stub regulator to first stage" 2024-08-07 07:27:46 -07:00
QCTECMDR Service
a1c603ec59 Merge "usb: phy: qusb: Fix for USBNOC issue in stability" 2024-08-07 07:27:45 -07:00
QCTECMDR Service
88e712d907 Merge "build: Add bazel support for Neo LA" 2024-08-07 07:27:45 -07:00
QCTECMDR Service
a1e62beffe Merge "soc: qcom: rpmh: add cam_rsc check in rpmh_rsc_get_device() API" 2024-08-07 07:27:45 -07:00
QCTECMDR Service
b8f2e10b77 Merge "build: bazel: Enable compilation for Seraph SoC" 2024-08-07 07:27:44 -07:00
Richard Maina
422eacf6fc hwspinlock: qcom: Provide function to bust hwspinlock
Implement a new operation qcom_hwspinlock_bust() which
can be invoked to bust any locks that are in use when
a remoteproc is stopped or crashed.

Change-Id: I0486d5345a47007f254f17c4b88f802a6c962e3a
Signed-off-by: Richard Maina <quic_rmaina@quicinc.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Link: https://lore.kernel.org/r/20240529-hwspinlock-bust-v3-1-c8b924ffa5a2@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Git-commit: 73100deb59c3892e280234fcc0171a5376c71788
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_deesin@quicinc.com: Adding bust api in core hwspinlock module
 is breaking KMI, so exporting bust function from qcom hwspilock module
 to avoid dependency on core hwspinlock function]
Signed-off-by: Deepak Kumar Singh <quic_deesin@quicinc.com>
2024-08-07 00:46:33 -07:00
Sneh Mankad
591653de4d soc: qcom: rpmh: shift spin_lock_init before cpu_pm_register_notifier
cpu_pm_notifier is acquiring the spinlock before it is initialized,
leading to spinlock with bad magic,
hence moving the initialization prior to that.

Change-Id: Ibae81d3bc2338dd0be5f2bc509cec559b121fc73
Signed-off-by: Sneh Mankad <quic_smankad@quicinc.com>
2024-08-07 11:42:08 +05:30
Sneh Mankad
57c9b20c84 soc: qcom: rpmh: add cam_rsc check in rpmh_rsc_get_device() API
This API is only meant for getting Camera RSC device,
hence preventing any other client to use it for any other device.

Change-Id: I6b1cef1cd98eb1d0c5fa92b67a2af141022ec7a3
Signed-off-by: Sneh Mankad <quic_smankad@quicinc.com>
2024-08-06 16:45:17 +05:30
Navya Vemula
af3839c345 build: bazel: Enable compilation for Seraph SoC
Add initial files to build Seraph with bazel.

Change-Id: I5e9677c43a0a31ddec8c0808c22af7f054b8107c
Signed-off-by: Navya Vemula <quic_nvemula@quicinc.com>
2024-08-06 12:19:58 +05:30
Auditya Bhattaram
5a09efd218 drivers: nvmem: qfprom: Add keepout_regions for pineapple
Add keepout_regions for pineapple.

Change-Id: I54840adc0ec5c4f3124495d5b2d5c763bf41390d
Signed-off-by: Auditya Bhattaram <quic_audityab@quicinc.com>
2024-08-06 11:14:58 +05:30
QCTECMDR Service
1f9023b537 Merge "leds: leds-qti-flash: update HW strobe config for external LEDs" 2024-08-05 16:02:06 -07:00
QCTECMDR Service
72bc7678b1 Merge "glink: native: Check the return value of native rx" 2024-08-05 01:46:26 -07:00
Jayasri Bhattacharyya
0bf975d671 usb: phy: qusb: Fix for USBNOC issue in stability
The power needs to be switched ON before operating over the phy,
in case set_suspend is not called, the power is not ON.
Without dp dm and  extcon, there might be cases when qusb_init
gets called without power ON.

Perform power on specifically during qusb init and maintain the
reference count by checking newly introduced flags power_enabled/
clk_enabled.

Change-Id: I529d619359f7320f12ce747fc0f24421f65a9973
Signed-off-by: Jayasri Bhattacharyya <quic_jbhattac@quicinc.com>
2024-08-05 00:15:06 -07:00
QCTECMDR Service
3024e8cdc1 Merge "modules.list.msm.neo-la: Add build configs for Neo LA" 2024-08-04 13:56:29 -07:00
QCTECMDR Service
1ddf35eea8 Merge "remoteproc: pas: Update panic handler priority" 2024-08-04 10:16:31 -07:00
QCTECMDR Service
0f32d53d3e Merge "pcie: msm: Add support to handle PERST GPIO when FMD mode is enable" 2024-08-04 10:16:31 -07:00
QCTECMDR Service
cd1621edd7 Merge "remoteproc: pas: Add Data Synchronization barrier before reading tcsr reg" 2024-08-04 10:16:30 -07:00
QCTECMDR Service
9f7969cc89 Merge "bazel: remove all in-tree modules for autoghgvm_lxc" 2024-08-04 10:16:30 -07:00
QCTECMDR Service
ce6738cfc9 Merge "usb: phy: eusb2: Add 10us delay in eusb2 phy init" 2024-08-04 10:16:29 -07:00
Srinivasarao Pathipati
140cf74d5e defconfig: sdmsteppeauto: remove DWMAC_LOONGSON for sdmsteppeauto
lts tag release.6.1.75+ introduced
the dependency for DWMAC_LOONGSON on MACH_LOONGSON64
hence this configuration brought up the difference between
gki and msm sdmsteppeauto configs,since STMMAC is being enabled
for sdmsteppeauto.

For mobile targets these all net drivers are disabled
so removed this config as it is not NA for auto targets also.

Change-Id: I73ec8ba66fd005debc4f675a7a1015fa02442efc
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2024-08-03 10:30:42 +05:30
QCTECMDR Service
90cf81b49c Merge "Merge keystone/android14-6.1-keystone-qcom-release.6.1.78+ (075ce55) into qcom-6.1" 2024-08-02 05:05:29 -07:00
QCTECMDR Service
6c0e9d45c2 Merge "defconfig: don't disable CONFIG_SPI_ZYNQMP_GQSPI" 2024-08-02 05:05:28 -07:00
Wei Liu
94be87df73 bazel: remove all in-tree modules for autoghgvm_lxc
remove all in-tree modules for autoghgvm_lxc.

Change-Id: I1eeee689ec4ad0c36474c293ccb02bcbe9ca78a0
Signed-off-by: Wei Liu <quic_wliu8@quicinc.com>
2024-07-31 02:51:36 -07:00
Gokul krishna Krishnakumar
c61660bfe4 remoteproc: pas: Add Data Synchronization barrier before reading tcsr reg
Add memory barrier for data syncronization before reading the TCSR
config register. The value written at Sub System is mismatching the
read back value at APPS.

Change-Id: I74862f6d8aa54a67988eca2fb9569e23cc89844a
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
2024-07-31 02:10:29 -07:00