Commit Graph

1169355 Commits

Author SHA1 Message Date
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
Wei Liu
f32c9f673e defconfig: autoghgvm: refine configs for LV GVM booting
To ensure the configs is optimized and workable for LV booting,
we need to refine the configs:

1. remove SWIOTLB_NONLINEAR and VIRTIO_MMIO_SWIOTLB as bounce
buffers are no longer used for LV GVM Virtio device.
2. disable ZONE_DMA, otherwise general SWIOTLB init will fail,
which causes kernel panic.
3. Set all modules as in-built.

Change-Id: If4fbf5ecf7391bc16e3d75b803444a67cc884e43
Signed-off-by: Wei Liu <quic_wliu8@quicinc.com>
2024-07-31 01:55:45 -07:00
Mukesh Ojha
a700c40491 remoteproc: pas: Update panic handler priority
Currently, both remoteproc and wdog driver panic handler has the
same priority due to which both gets registered one after the other.

Having the same priority breaks WDOG panic handler which should be
called as early as possible otherwise we will the devices gets
stuck if any of previous handlers gets stuck due to some reason
like sleep while atomic etc.,

Fix this by correcting the priorities as

dload_mode => INT_MAX
wdog => INT_MAX - 1
rproc => INT_MAX - 2
minidump => INT_MAX - 3
va-minidump => INT_MAX - 4, INT_MAX - 5 .

Change-Id: I79e454c7c671bbc83e5fac86e16717c3e09a06ce
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2024-07-31 13:55:32 +05:30
QCTECMDR Service
6d31934676 Merge "defconfig: niobe: Enable khungtask enhancements" 2024-07-31 01:09:57 -07:00
QCTECMDR Service
4087f2aaff Merge "soc: qcom: socinfo: Add support for version 21" 2024-07-31 01:09:56 -07:00
Vivek Pernamitta
edb802e961 pcie: msm: Add support to handle PERST GPIO when FMD mode is enable
When FMD mode is enabled, deassert the perst signal if perst is already
in asserted state and do not allow it to be reasserted.

Change-Id: I45105f189214f683d718ab96a1db30cd2bc80667
Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
2024-07-31 11:29:28 +05:30
QCTECMDR Service
a4f519bcfe Merge "soc: gic_intr_routing: Handle the class cpu via phandles" 2024-07-30 09:01:19 -07:00
Jishnu Prakash
6537605fb3 leds: leds-qti-flash: update HW strobe config for external LEDs
Make HW strobe signal level triggered instead of edge triggered for
external LEDs based on HW side recommendation.

Change-Id: I8c88646a252b58923c08bff0459c3f53a94f1bcd
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
2024-07-30 11:22:01 +05:30
Uttkarsh Aggarwal
35b5a592d5 usb: phy: eusb2: Add 10us delay in eusb2 phy init
According to Table No. 4 in HPG, the power-on reset must
be asserted for at least 10us after all supplies have ramped up.

Change-Id: I086ff86e50cf9846beb422901d61954ddcc47ff5
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-07-29 21:18:54 -07:00
Sumedha Phadnis
76afc06676 modules.list.msm.autogvm: Keep stub regulator to first stage
Moving stub regulator loading to first stage to solve
pci noc error.

Change-Id: I6ef934a4054ea6dc6f3d99a471753fca4908ad50
Signed-off-by: Sumedha Phadnis <quic_phadnis@quicinc.com>
2024-07-30 06:32:08 +05:30
QCTECMDR Service
9797da1d98 Merge "mmc: sdhci-msm: Declare three instances of host structure pointer" 2024-07-29 14:01:37 -07:00
QCTECMDR Service
984a99ba02 Merge "dmaengine: msm_gpi: fix gpi terminate sequence issue" 2024-07-29 09:30:29 -07:00
Asit Shah
a5d86b4d37 build: Add bazel support for Neo LA
Add bazel build support for Neo LA platform.

Change-Id: I529549bf4e111e735c01c27833906e919c4d39c6
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-07-29 19:13:36 +05:30
Yash Jain
450c52772b modules.list support for loading gpucc in first stage
- Add support for loading gpucc-sm8150 in first stage init.

Change-Id: Icc42894ff33d4359fc92a0c84d29facca7ef4e16
Signed-off-by: Yash Jain <quic_yashmj@quicinc.com>
2024-07-29 15:48:50 +05:30
QCTECMDR Service
8a3caca12a Merge "spi: spi_msm_geni: Don't bail out for LEVM usecase" 2024-07-28 23:54:58 -07:00
QCTECMDR Service
09d82c0df3 Merge "i2c: i2c-msm-geni.c: fix to avoid access unmap buffers" 2024-07-28 23:54:57 -07:00
QCTECMDR Service
e859f94746 Merge "soc: qcom: socinfo: Add support for version 21" 2024-07-28 23:54:57 -07:00
QCTECMDR Service
7bf554e1d4 Merge "mmc: sdhci-msm: Remove printing tlmm physical address" 2024-07-28 23:54:56 -07:00
Prasanna S
8490544909 i2c: i2c-master-msm-geni: add null pointer check in GSI error call back
Currently i2c geni driver doesn't have null pointer check condition
in GSI error call back function. If any invalid error is coming from GSI,
i2c geni driver is accessing null pointer which is causing crash.
To solve this added null pointer checks in GSI call back error functions.

Change-Id: I5034bd01c3eb554109890eb071e9087a1dd7cbd6
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-07-28 07:26:40 -07:00
Amrit Anand
796402b024 defconfig: niobe: Enable khungtask enhancements
Enable khungtask enhancement for features like
black/while list, monitor iowait process, etc.

While at it, remove khungtask config from vendor
consolidate build as it is enabled for all builds
via gki.

Change-Id: I98e57379d8cb587163107a3b874b8be1cf966b46
Signed-off-by: Amrit Anand <quic_amrianan@quicinc.com>
2024-07-26 06:17:31 -07:00
Anil Veshala Veshala
5ac419bf3e dmaengine: msm_gpi: fix gpi terminate sequence issue
Recently terminate sequence got updated for q2spi as per hpg.
Which is impacting other protocols and leading to regression.
To solve this terminate sequence added separately for q2spi,
rest all protocols will use older terminate sequence.

Change-Id: I00b6699e7fc1af533e29b732ede75ea03290b595
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2024-07-26 18:46:44 +05:30
Krishna Chaithanya Reddy G
80e5d22d07 dmaengine: msm_gpi: Update gpi_terminate_all sequence as per HPG
Currently in gpi_terminate_all function, we are performing reset
whenever stop channel failed for corresponding tx/rx channel but
we need to reset for both the channels and reprogram the channel
context and also performing gpi_noop operation on both tx and rx
channel if stop cmd is success.

Change-Id: Ia7811f5659b82674033d530b076255f581b91c74
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
2024-07-26 18:46:12 +05:30
Krishna Chaithanya Reddy G
3a2778ffcb dmaengine: gpi: Update channel ring read pointer during error case
Currently in the gpi_process_xfer_compl_event() function, when an
unexpected error occurs on the RX channel, we free the TX channel
descriptor. This is followed by receiving a TX event, which results
in an event without a pending descriptor error. Consequently, we
return without updating the channel read pointer, leading to an
insufficient space in channel rings error.

So,updating the channel ring tx and rx read pointer when we get
error event without a pending descriptor.

Change-Id: I3ecbe915fa96e9e82a3a84751351242dc9314d71
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
2024-07-26 18:45:52 +05:30
Prasanna S
b93e384474 i2c: i2c-master-msm-geni: add null pointer check in GSI error call back
Currently i2c geni driver doesn't have null pointer check condition
in GSI error call back function. If any invalid error is coming from GSI,
i2c geni driver is accessing null pointer which is causing crash.
To solve this added null pointer checks in GSI call back error functions.

Change-Id: I5034bd01c3eb554109890eb071e9087a1dd7cbd6
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-07-26 05:22:49 -07:00
Krishna Chaithanya Reddy G
69e80c60c4 i2c: i2c-msm-geni.c: fix to avoid access unmap buffers
For i2c multi descriptor case when transfers ongoing,
sometimes we are getting nack from the slaves. In this case
i2c geni driver un mapping the buffers without gsi terminate.
In this scenario gsi hw is accessing unmapped buffers, which
is leading to smmu crash. To solve this added gsi error
check before buffer unmap, with this logic gsi terminate
sequence is followed by buffer unmap.

Change-Id: I67fab8352bbd8b66c5e6563984be89050d782f40
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
2024-07-26 05:19:15 -07:00
Asit Shah
842e992e8f modules.list.msm.neo-la: Add build configs for Neo LA
Add first stage, systemdlkm blocklist and vendor blocklist modules
files for Neo LA platform.

Change-Id: I1ac9e4d56a4c4ac38f335c38ec282a9c4c767aee
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-07-26 14:11:05 +05:30
Venkata Talluri
ffe786942e arm64: defconfig: Add initial configs for Neo LA target
Add initial configs to generate the gki and consolidated variants of the
defconfigs meant to support the Neo LA target.

Change-Id: I94cb1d5d56fd3027e3d02a507217b3cbdc1b02a0
Signed-off-by: Venkata Talluri <quic_vtalluri@quicinc.com>
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-07-26 14:07:40 +05:30
QCTECMDR Service
8fff36db32 Merge "soc: qcom: minidump: Fix the region register fail issue" 2024-07-25 14:54:19 -07:00
QCTECMDR Service
2ac11283fd Merge "arm64: defconfig: Enable EMAC driver for 6155" 2024-07-25 14:54:18 -07:00
Pratham Pratap
7e6adc573e usb: repeater: Add eUSB2 i2c repeater driver
Add snapshot of support of eUSB2 i2c repeater driver.
This change adds eUSB2 i2c repeater driver.This driver provides reset,
initialization and power up/down interfaces for eUSB2 repeater.
commit 5732d2fbffeb ("usb: repeater: Add eUSB2 i2c repeater driver").

Change-Id: I88be05f81bba3c670eb981f6085a2f11fadd6a7f
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
Signed-off-by: Shubham Chouhan <quic_schouhan@quicinc.com>
2024-07-25 18:18:43 +05:30
Pratham Pratap
b06481e004 usb: phy: Enable auto-resume WA if repeater doesn't support
Add snapshot of support of auto-resume WA for the revision of
repeaters that doesn't support the feature.
commit c5b632332b948 ("usb: phy: Enable auto-resume WA if
repeater doesn't support").

Change-Id: Ie0556bce34bbc2d321ed821c6beb7ba4a43f3ffd
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
Signed-off-by: Shubham Chouhan <quic_schouhan@quicinc.com>
2024-07-25 18:12:58 +05:30
QCTECMDR Service
8292eb622d Merge "q2spi-msm-geni: Add snapshot q2spi geni driver" 2024-07-25 01:41:09 -07:00
QCTECMDR Service
8014132cd9 Merge "net: stmmac: Add NULL pointer dereference checks" 2024-07-25 01:41:08 -07:00
QCTECMDR Service
ffa20ad134 Merge "sound: usb: usb_audio_qmi_svc: Set QMI return status correctly on error" 2024-07-25 01:41:08 -07:00
QCTECMDR Service
f659f9c2bb Merge "arm64: Kconfig: Add support for neo target" 2024-07-25 01:41:08 -07:00
Fei Yang
8cb1a31218 soc: qcom: minidump: Fix the region register fail issue
Fix the region register fail issue on Resource Manager VM when
client call minidump add region API. Variable 'md_init_done'
should be set as global type when used between two or more files.

Change-Id: I1ca57f7f58435ef0ca1db91317d2e6db7a22599a
Signed-off-by: Fei Yang <quic_feiyan@quicinc.com>
2024-07-25 11:36:01 +08:00
Shashank Shekhar
517bca7a0e net: stmmac: Add NULL pointer dereference checks
Unchecked dereferences that could potentially result
in a NULL pointer dereference have been removed.
Additionally, variable that had the potential to remain
uninitialized has been eliminated to protect the program
from unpredictable outcomes.

Change-Id: I715fdf846dd07b22b11d5ae0430020f6922fa559
Signed-off-by: Shashank Shekhar <quic_sshe@quicinc.com>
2024-07-24 08:55:11 -07:00
Wesley Cheng
3488d3d84c sound: usb: usb_audio_qmi_svc: Set QMI return status correctly on error
In some of the exit early conditions, the ret value is not overridden with
an error code.  This would lead to a condition where the QMI response
status would be zero (success), while other fields are not properly
populated.  The error condition in question is:

uaudio_err("invalid substream\n");

Address this by setting the ret value manually in case of an error
condition.  This would allow for the audio DSP to treat the QMI response as
a failure versus attempting to continue processing it.  The issue was
seen if the audio device is disconnected shortly after attempting to
start the audio session.

Change-Id: Ibf4198bb15ba490f665accba2f8459cfc4810b34
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
2024-07-24 05:19:35 -07:00
Linux Build Service Account
96af3647c9 Merge "spi: spi_msm_geni: Don't bail out for LEVM usecase" into kernel.lnx.6.1.r2-rel 2024-07-24 04:25:34 -07:00