Commit Graph

1167889 Commits

Author SHA1 Message Date
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
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
QCTECMDR Service
a4f519bcfe Merge "soc: gic_intr_routing: Handle the class cpu via phandles" 2024-07-30 09:01:19 -07:00
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
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
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
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
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
Mukesh Ojha
6575a0de39 soc: gic_intr_routing: Handle the class cpu via phandles
class[0|1]_cpus[i] < num_possible_cpus() comparison can result
in wrong comparison if some of the cpu are disabled from
the firmware. Handle them properly via mentioning the class
cpus as phandles.

Change-Id: I83293ed8c93d3c55f7ce8a9697a2af2b89ecbd29
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
2024-07-24 01:55:13 -07:00
QCTECMDR Service
44d96b8531 Merge "bazel: Add support to build autoghgvm_lxc" 2024-07-23 09:55:21 -07:00
QCTECMDR Service
4821a5f056 Merge "usb: dwc3: msm-ops: Limit usage of maxpacket kretprobe to dwc3" 2024-07-23 06:25:04 -07:00
QCTECMDR Service
170b5e7d76 Merge "soc: qcom: powerstats fix to handle clock levels more than 16" 2024-07-23 06:25:01 -07:00
Uppalamarthi Sowmya
1a7953ce54 arm64: defconfig: Enable EMAC driver for 6155
Add support to enable EMAC driver for LA metal platform.

Change-Id: I6aeb44aa173d601a7794aebce50cb9143efedab9
Signed-off-by: Uppalamarthi Sowmya <quic_usowmya@quicinc.com>
2024-07-22 23:48:59 -07:00
Wei Liu
02c4d2170c bazel: Add support to build autoghgvm_lxc
Add autoghgvm_lxc build target for LVGVM kernel image via bazel
build system.

Change-Id: I56732a4c57f99d369fab32dd462b9278c17d70f2
Signed-off-by: Wei Liu <quic_wliu8@quicinc.com>
2024-07-22 19:29:45 -07:00
Wei Liu
ec31d76bfe defconfig: autoghgvm: add base config for autoghgvm_lxc
add base config for autoghgvm_lxc.

Change-Id: Ie811a5a2d3e05fcca2e1bce6207eb9c29ae3f770
Signed-off-by: Wei Liu <quic_wliu8@quicinc.com>
2024-07-22 19:28:32 -07:00
Krishna Kurapati
6109dea0ff usb: dwc3: msm-ops: Limit usage of maxpacket kretprobe to dwc3
Some customers are using usb_ep_set_maxpacket_limit in their own
driver where dwc variable wouldn't be present. Not much is known
about the customer's dabridge driver. The kreptrobes were put in place
to be counter operations that are to be done in dwc3 core but there
is no such limitation present in code. So when the actual exported
function is called, the kretprobe is also called causing a crash.

Change-Id: Iafbdde0413b65a7bdd764cb44dd658279d9e5a1d
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
2024-07-22 13:55:12 +05:30
Chandana Kishori Chiluveru
8b705c0efd q2spi-msm-geni: Add snapshot q2spi geni driver
Add snapshot of q2spi geni driver from qcom-6.6
'commit<67a44689f373f2> ("Merge "i3c: i3c-master-msm-geni:
Remove duplicated register dump call")'.

Change-Id: I9f21f7cf054343b55841e7f58df9e62201226988
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
2024-07-19 22:14:25 -07:00
QCTECMDR Service
5afd53b861 Merge "drivers: dcvs: memlat: Do not make ops NULL to support log flush" 2024-07-19 13:11:35 -07:00
QCTECMDR Service
efdf371c23 Merge "ufs: ufs-qcom: Fix pwr cmd timeout in s2d scenario" 2024-07-19 08:25:36 -07:00
Asit Shah
7c920f5b2a arm64: Kconfig: Add support for neo target
Add support for Neo in Kconfig.

Change-Id: I58e522618c75ddec0c837eb65fd97ed1d93c4f42
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-07-19 18:05:23 +05:30
QCTECMDR Service
7481c5ab05 Merge "drivers: emac_mdio_fe: Remove useless logs" 2024-07-19 04:53:04 -07:00
Shivnandan Kumar
e161c1e469 drivers: dcvs: memlat: Do not make ops NULL to support log flush
Do not make ops NULL to support log buf flush operation.
Even if CPUCP firmware does not support memlat DCVS on CPUCP
firmware side, it can still supports log flush operation.
So, to support log flush operation, ops need to be proper value.
If ops is NULL, then flush log buf also fails. Ensure that ‘ops’
retains a valid value upon encountering an error, provided that
memlat on ‘cpucp’ is disabled for all groups.

Change-Id: Ie11c8bd4ba66d5a8dd349e1a0de14f809e680350
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
2024-07-19 11:43:03 +05:30
jizho
ab9bd910af drivers: emac_mdio_fe: Remove useless logs
Remove useless logs in emac_mdio_fe.

Change-Id: I80a6c5ba94686ed647071204e9a81462ccddd547
Signed-off-by: jizho <quic_jizho@quicinc.com>
2024-07-18 19:55:05 -07:00
QCTECMDR Service
6aaf26f093 Merge "soc: qcom: qmi_interface: Add QMI ipc logging support" 2024-07-18 00:57:30 -07:00
QCTECMDR Service
0bf5b81663 Merge "net : stmmac: Add TSO support for VLAN" 2024-07-17 21:01:55 -07:00
QCTECMDR Service
e392c3d15c Merge "dma-buf: Set page owner while allocating from dma-buf pool" 2024-07-17 21:01:54 -07:00
QCTECMDR Service
861ebc4d71 Merge "drivers: gunyah: Add support for the Auto Gunyah LV VM target" 2024-07-17 21:01:54 -07:00
QCTECMDR Service
14ffd77bc9 Merge "soc: qcom: hab: Set vchan pointer when receiving export_desc" 2024-07-17 21:01:54 -07:00
QCTECMDR Service
efec2f9d44 Merge "soc: qcom: hab: Prevent out of bounds copy_to_user in hab_ioctl()" 2024-07-17 21:01:53 -07:00
QCTECMDR Service
ddd52f8f57 Merge "usb: phy: eusb2: Allow eud_detect_reg to be optional" 2024-07-17 21:01:52 -07:00
Madhu Pagadoju
a749bd679f soc: qcom: powerstats fix to handle clock levels more than 16
Powerstats fix to handle clock levels more than 16.

Change-Id: I45a79c972bd526d4cf2bdb9d535a2dff6c188ae4
Signed-off-by: Madhu Pagadoju <quic_mpagadoj@quicinc.com>
2024-07-18 02:47:36 +05:30
Sudha Vankudothu
35895e04a1 mmc: sdhci-msm: Remove printing tlmm physical address
Remove the debug log which leaks physical address,
eventhough tlmm is no longer used.

Change-Id: Ic8a4dd4343df2aaa16b02632f5038e74dc09a3aa
Signed-off-by: Sudha Vankudothu <quic_svankudo@quicinc.com>
Signed-off-by: Deepak Suresh <quic_deesur@quicinc.com>
2024-07-17 20:08:58 +05:30
Sudha Vankudothu
c66c235ea1 mmc: sdhci-msm: parse and configure TLMM iomem resource
Some host controllers may need additional TLMM registers to
be configured to enable the IO lines connected to it.

Change-Id: I5e4ea66f40e2b332c85155ed19e248e1a771f7c3
Signed-off-by: Sudha Vankudothu <quic_svankudo@quicinc.com>
Signed-off-by: Deepak Suresh <quic_deesur@quicinc.com>
2024-07-17 20:05:18 +05:30
Prasanna S
4855038b03 spi: spi_msm_geni: Don't bail out for LEVM usecase
As part of initial commit 'a0a208f93d57e4e8a5bb3d0529dd9caa9a4304fd
(serial: msm_geni_serial: Add SSR support for SSC QUPs")',
we are bailing out in spi_geni_prepare_message() and
spi_geni_unprepare_transfer_hardware() for LEVM usecase which is not
expected as xfer_prepared flag is set to false in
spi_geni_prepare_transfer_hardware().

If it is a LEVM usecase, set xfer_prepared flag to true in
spi_geni_prepare_transfer_hardware() and exit.

Change-Id: I7003e790b01b843535f1ca0efc6cd708d3e0cb28
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-07-17 15:11:13 +05:30
Uppalamarthi Sowmya
e104505614 net : stmmac: Add TSO support for VLAN
Enable TSO for Vlan interface.

Change-Id: I252e2e274c3039f23ee225149d820a0332de50fb
Signed-off-by: Uppalamarthi Sowmya <quic_usowmya@quicinc.com>
2024-07-17 14:11:20 +05:30