Commit graph

894,318 commits

Author SHA1 Message Date
Deepak Kumar
8abd7613b7 msm: kgsl: Add snapshot memory region in minidump only once
As snapshot can be recollected and snapshot size can vary on
each recollection if we add snapshot region in minidump during
each recollection then we need to remove it and add it again
to ensure proper snapshot size is captured in minidump. To
avoid this add snapshot region to minidump once and with complete
snapshot memory size. Also, take care of removing it during close
to ensure minidump doesn't try to access already freed memory region.

Change-Id: I5eded015c0544a03eec835da57b6aaf64defc139
Signed-off-by: Deepak Kumar <[email protected]>
2021-02-23 11:23:50 +05:30
Saurabh Ambulkar
8f19a0570c dcc_v2: suppress the log for dcc list on success
Suppress the log when dcc list on success.

Change-Id: I81de3e360f53e4a2935703c11caf04902b45105b
Signed-off-by: Saurabh Ambulkar <[email protected]>
2021-02-22 21:38:54 -08:00
Sarthak Garg
e5ac7ee2f8 mmc: core: Set host->bus_refs properly when card is set as corrupted
With rapid hotplug test case there could be a corner case when the SD card
can go bad and removed quickly even before we try to reset the card as
part of recovery.

This will lead to reset failure with ENOMEDIUM and since recovery failed
so we set the corrupted_card flag and try to remove the card.
Since corrupted_card will be set so as part of rescan we'll remove the
card and return before setting the bus_refs properly leading to card not
getting detected after this.

Only return after setting host->bus_refs properly when card is set as
corrupted.

Change-Id: Id14790f9b28d8fa58d31b034be48db5486ccfcb7
Signed-off-by: Sarthak Garg <[email protected]>
2021-02-23 10:58:54 +05:30
Tony Truong
dd0a9ded12 msm: pcie: remove unnecessary global PCI device table
Having a global PCI device table share between all PCIe ports
is not necessary. There is potential race conditions if required
locks are present. remove the global PCI device table completely
and utilize the bus list for each PCIe port instead.

Change-Id: I48ebc086fcf56e4b9a9496615e4185c3893ae278
Signed-off-by: Tony Truong <[email protected]>
2021-02-22 16:39:22 -08:00
Wesley Cheng
50a6d30ef2 usb: gadget: cser: Requeue OUT USB requests if ECONNRESET is received
During enumeration, the host can send a clear feature EP_HALT.  When
the UDC receives this command, it will cancel any pending requests and
return -ECONNRESET to the function driver.  Since the clear EP_HALT
occurs after the cser driver has already submitted the OUT USB reqs,
there is no other method to restart these transfers.  Resubmit OUT
reqs specifically when ECONNRESET is seen.

Change-Id: I925170d389048f84579c9b53128effdbef5c9d6a
Signed-off-by: Wesley Cheng <[email protected]>
2021-02-22 16:38:25 -08:00
Tony Truong
ec6e4416b1 switch: qcom: initialize parb_phase to 0
If none of the "if" conditions are met, an uninitialized
parb_phase will be used. Initialize parb_phase so that it can
be handled properly.

Change-Id: I682ece7330cd257566ea740c4498bc786ae95588
Signed-off-by: Tony Truong <[email protected]>
2021-02-22 16:13:59 -08:00
Patrick Daly
b6ac46db74 arm-smmu: Fix iommu group refcount leak
If a client defines the qcom,iommu-group property, and the iommu group
does not yet exist, of_get_device_group will create a new group with a
refcount of one. The following call to iommu_group_ref_get() increments
the refcount unnecessarily and causes a resource leak.

If a client defines the qcom,iommu-group property, and the iommu group
already exists, modify __bus_lookup_iommu_group() to return with
an additional refcount.

Change-Id: I5c9e62e50737ee4128a591ea2b14a0d47a1be162
Signed-off-by: Patrick Daly <[email protected]>
2021-02-22 13:18:01 -08:00
katamoni sai abhilash
bd3584a6f1 firmware: qcom_scm: Fix compilation with QCOM_SCM config
Fix the compilation issue caused by QCOM_SCM and QCOM_SCM_QCPE
config flags by removing the redundancy of having a separate
qcom_scm-smc_qcpe.c file for adding QCPE support.

Change-Id: Idaa998565464ebeef16990afdc2de2c1a3094a5e
Signed-off-by: katamoni sai abhilash <[email protected]>
2021-02-22 21:34:15 +05:30
Shreyas K K
e92611f82b defconfig: Enable PMU support for sdmsteppeauto
Enable PMU support on sdmsteppeauto target.

Change-Id: I93d39359c0ef8c6b50ef1d846a414ab9f0b3ec8d
Signed-off-by: Shreyas K K <[email protected]>
2021-02-22 19:16:13 +05:30
Shreyas K K
676dd11745 defconfig: Enable Devfreq support for sdmsteppeauto
Enable Devfreq monitors, devices, and governors on
sdmsteppeauto target.

Change-Id: I8b206eb3f6efa8e52807352f4edb2f32542c90df
Signed-off-by: Shreyas K K <[email protected]>
2021-02-22 19:15:11 +05:30
Shreyas K K
a1f650c8de defconfig: Enable core hang detect for sdmsteppeauto
Enable core hang detect support on sdmsteppeauto targets.

Change-Id: I992252cda7a5d95cc559fdf3635dec49cca2da7f
Signed-off-by: Shreyas K K <[email protected]>
2021-02-22 19:14:10 +05:30
Shreyas K K
6a66341782 defconfig: Enable service locator and notifier for sdmsteppeauto
Enable service locator and service notifier support on sdmsteppeauto
target.

Change-Id: I8cd97abd03b9f91178bdc6efce08d18e743d5c08
Signed-off-by: Shreyas K K <[email protected]>
2021-02-22 19:12:58 +05:30
Shreyas K K
ee033423a4 defconfig: Enable LLCC driver for sdmsteppeauto
Enable LLCC driver for sdmsteppeauto target.

Change-Id: I6956378e827fc2b445af6106c72eb7ec0ae722ca
Signed-off-by: Shreyas K K <[email protected]>
2021-02-22 19:12:11 +05:30
Venkata Rao Kakani
cae095080f defconfig: quinvmauto: Enable Uncompressed kernel
Enable Uncompressed kernel for gvm to get kernel parsed
from host.

Change-Id: I659409112aab8ea78de81e94969053aa2e57fe23
Signed-off-by: Venkata Rao Kakani <[email protected]>
2021-02-22 17:34:14 +05:30
Venkata Rao Kakani
d8c670d79e defconfig: quinvmauto: Enable DM_INIT
Enable DM_INIT to support dm-mod.create command line parameter
to mount dm-verity enabled system partition.

Change-Id: Ia9afb608d216f0b3295fa2ebb4d6aebc0a497ef0
Signed-off-by: Venkata Rao Kakani <[email protected]>
2021-02-22 17:28:24 +05:30
Veera Vegivada
528cfb77a9 phy: qcom-ufs: Fix LF markings
Update with proper LF markings.

Change-Id: I2f655fd16b0d98cb96f3ab0893de2099105e5830
Signed-off-by: Veera Vegivada <[email protected]>
2021-02-22 16:12:50 +05:30
Wu Gao
c630041763 defconfig: Disable CONFIG_CNSS2_DEBUG for perf build
Disable CONFIG_CNSS2_DEBUG for perf build on SDX65.

Change-Id: I4f685385d28230c08afa8057b201d9e26f8cb202
Signed-off-by: Wu Gao <[email protected]>
2021-02-22 18:16:11 +08:00
Jishnu Prakash
0e83ac3b49 backlight: qcom-spmi-wled: update check for OVP fault in probe
When OVP fault is detected during WLED driver probe, SW first needs to
confirm that OVP event is sustained over a minimum time duration
before fixing it. After reading fault status and seeing OVP is set,
add time delay equal to OVP_INT_TIMER value, and ensure OVP fault
is still seen, before running auto calibration algorithm.

Change-Id: I4fbc75fa1f63af53fe2e1b5298e0e277cc8a74b8
Signed-off-by: Jishnu Prakash <[email protected]>
2021-02-22 00:52:30 -08:00
Pradeep P V K
0fdd07ada6 mtd: msm_qpic_nand: Enable Pagescope read feature on sdxlemur
Enable Pagescope read feature on sdxlemur also remove the
software workaround that made for pagescope read feature
on qpic 2.0 controllers because this got fixed on sdxlemur.

Change-Id: I61a2e16d308f80096628024030148a2d6e822ea8
Signed-off-by: Pradeep P V K <[email protected]>
2021-02-22 13:53:45 +05:30
Yogesh Lal
0c7dfb5103 pinctrl: qcom: Correct sdc1 rclk offset for Shima
Correct the SDC1 rclk offset for configuration for
Shima.

Change-Id: I8c8661870edaa28c621ac1d4c95fa0b44fd518fc
Signed-off-by: Yogesh Lal <[email protected]>
2021-02-22 12:46:11 +05:30
Veera Vegivada
b3a8fb9500 interconnect: qcom: update prio for gpu_tc of scshrike
Update the priority based on the hw recommendation.

Change-Id: I6a53adf7f6c8b4584d146637fd7a4a094fa2dea8
Signed-off-by: Veera Vegivada <[email protected]>
2021-02-22 11:52:31 +05:30
Shreyas K K
e7c24883b3 defconfig: gen3auto: Enable boot stats and boot marker
Enable boot stats driver and boot time marker config
options for gen3auto targets.

Change-Id: If9b24937d2fe1df9f8a3eb5f0e8ee1d0b4c4d28f
Signed-off-by: Shreyas K K <[email protected]>
2021-02-22 11:19:03 +05:30
Chandana Kishori Chiluveru
3f42369d8f slim-msm-ngd: Fix unbalanced core irq disable from ndg_slim_enable
The 'commit 5adc2a6e19 ("slim-msm-ngd: Disable core irq
in SSR/PDR Down notification")' added irq_enable and disable from
ngd_slim_enable function. irq will be enabled only if msm_slim_qmi_init
success where as disabled by default in else block. If QMI init is
failed we will disable the IRQ twice during SSR testing.

As the interrupt line is not enabled, capability exchange is timing out and
leading to freed memory access inside ngd_xfer_msg.

Move irq enable in ndg_slim_enable without depending on QMI init.

Change-Id: Id32b0d283b1653bb4085231694031b0df126cf4b
Signed-off-by: Chandana Kishori Chiluveru <[email protected]>
2021-02-22 10:54:55 +05:30
Udipto Goswami
dd34ce10d8 usb: dwc3: Enable parkmode for Gen1 controllers
Commit 8799bc1e517f ("usb: dwc3: Disable parkmode for Gen1 controllers")
was added to disable the park mode which is a debug feature. But, doing
this indirectly affect the host mode throughput for targets using Gen1
controllers in HS mode.

Therefore enabling park mode only for HS to improve the throughput
numbers in host mode.

Change-Id: Iea9e44d0ed0f9e2f9bba6731cae29229d9b46bb1
Signed-off-by: Udipto Goswami <[email protected]>
2021-02-21 20:33:25 -08:00
Lakshit Tyagi
d517d32a3f msm: Add config option for AQC glue driver
Add kernel config option for AQC glue driver for IOSSv2.

Change-Id: I70b328962867c9ef66428beb0cbd895285615094
Signed-off-by: Lakshit Tyagi <[email protected]>
2021-02-21 05:12:52 -08:00
Phanindra Babu Pabba
79489487a7 defconfig: Enable qseecom for sdxnightjar
Add config flag to enable qseecom and
TZ diag log drivers for sdxnightjar.

Change-Id: I68017faf02c1ca8f1f6a68ef01b93cb436abc04a
Signed-off-by: Phanindra Babu Pabba <[email protected]>
2021-02-20 02:23:27 -08:00
qctecmdr
98ed180626 Merge "usb: dwc3: Add debugfs entry to toggle compliance pattern" 2021-02-19 22:41:25 -08:00
qctecmdr
c63c285927 Merge "msm: pcie: add sysfs entry to output PCIe link ASPM stats" 2021-02-19 22:41:24 -08:00
qctecmdr
d7006445cf Merge "usb: dwc3-msm: Prevent switch to peripheral for host-mode only core" 2021-02-19 22:41:24 -08:00
qctecmdr
4918c41c06 Merge "msm: kgsl: Signal dump_gate only when worker finishes work" 2021-02-19 22:41:24 -08:00
qctecmdr
30bc6cb0a6 Merge "input: touchscreen: nt36xxx: Use disable/enable irq wake in LA to LE" 2021-02-19 22:41:23 -08:00
qctecmdr
04707ce95b Merge "tty: serial: msm: Add suspend resume support" 2021-02-19 22:41:23 -08:00
qctecmdr
78e3282dfd Merge "Kbuild: Support nested composite objects" 2021-02-19 22:41:22 -08:00
Deepak Kumar
cfc73b1e63 msm: kgsl: Access map_count only if entry is successfully allocated
In kgsl_mem_entry_create, access map_count only if entry is allocated
successfully to avoid invalid access.

Change-Id: I57bce1aec2da6a27b6d13dbee96ed86a45c9660c
Signed-off-by: Deepak Kumar <[email protected]>
2021-02-19 23:35:25 +05:30
Ritesh Kumar
e44ea45369 input: touchscreen: nt36xxx: Use disable/enable irq wake in LA to LE
Touch uses gpio as irq in LA. As per latest change from pinctrl,
wakeup bit is disabled/enabled when disable_irq/enable_irq is called.
During transtion from LA to LE, disable_irq is called leading to
wakeup bit getting disabled and in LE Touch interrupts does not come.
So, use disable_irq_wake to disable Touch interrupts while transition
from LA to LE and use enable_irq_wake to enable back Touch interrupts
while transition from LE to LA.

Change-Id: Iad3391af40535d51daeef881c3d62b3ec893fff2
Signed-off-by: Ritesh Kumar <[email protected]>
2021-02-19 07:18:04 -08:00
qctecmdr
cb6f97e574 Merge "drivers: soc: Add support for SM6150 llcc driver" 2021-02-19 05:45:46 -08:00
qctecmdr
b76d27384f Merge "defconfig: gen3auto: Enable Socinfo driver" 2021-02-19 05:45:45 -08:00
qctecmdr
e7a67c2747 Merge "Perf: Enable pmuv3 on 32 bit kernel" 2021-02-19 05:45:45 -08:00
qctecmdr
1db319056f Merge "smcinvoke: Update the correct result from qseecom" 2021-02-19 05:45:45 -08:00
qctecmdr
f5d108f404 Merge "msm: ep_pcie: Changes to avoid handle_perst_wq schedule out" 2021-02-19 05:45:45 -08:00
Aniket Randive
e5dc88d6c2 spi: spi-msm-geni: Set the mode1 for SPI slave
Spi slave will support only mode1, so set the CPHA parameter
for spi slave.

wrongly added condition by merge conflict, hence removing it.

Change-Id: I37f9b159b01c9253de1a9e8b46e41160fa940660
Signed-off-by: Aniket Randive <[email protected]>
2021-02-19 18:31:57 +05:30
Kavya Nunna
69a7ad9a03 power: smb1351: Remove otg_vreg support for charger
In the current deign, it is expected for the charger driver
to detect OTG and enable it without the USB driver to
explicitly enable it. As this support exists in the driver,
remove the OTG regulator configuration.

Change-Id: I165b144a2a8be88b493142de3a4a645e07f06253
Signed-off-by: Kavya Nunna <[email protected]>
2021-02-19 17:30:53 +05:30
Pankaj Gupta
7a7d99de04 msm: kgsl: Signal dump_gate only when worker finishes work
Currently we are accessing snapshot structure after signaling
dump_gate. In corner cases this worker can get preempted
before driver reads this variable, and eventually client
dumps the snapshot and snapshot object gets released.
When worker gets back in execution it will read freed memory
and will case kernel panic.
To fix this race, do completion for dump_gate after finishing
work in worker kgsl_snapshot_save_frozen_objs.

Change-Id: Iaf3c9f9e75a6e3e19653d2d166e2da624796ec98
Signed-off-by: Pankaj Gupta <[email protected]>
Signed-off-by: Deepak Kumar <[email protected]>
2021-02-19 17:25:17 +05:30
qctecmdr
6753ae03b3 Merge "i2c-msm-geni: Bypass ICC vote check for LE when dumping register" 2021-02-19 01:29:08 -08:00
qctecmdr
12af436ce6 Merge "usb: dwc3: Handle race between composition switch and cable disconnect" 2021-02-19 01:29:07 -08:00
qctecmdr
d2087f76fa Merge "defconfig: enable memory dump for perf build on sdxnightjar" 2021-02-19 01:29:07 -08:00
qctecmdr
91801e9520 Merge "Add support for new versions for BT chip" 2021-02-19 01:29:06 -08:00
qctecmdr
e39b3087c2 Merge "drivers: qcom: boot_stats: Update function signature" 2021-02-19 01:29:06 -08:00
qctecmdr
31e40c1439 Merge "drivers: qcom: socinfo: Add support for ADP hardware type" 2021-02-19 01:29:06 -08:00
qctecmdr
7c1dca2311 Merge "driver: soc: adsp vote: QMI driver to send ADSP vote" 2021-02-19 01:29:06 -08:00