Commit graph

894,770 commits

Author SHA1 Message Date
qctecmdr
e0d0ced759 Merge "soc: qcom: pil: Refine error handling for SCM ICC client" 2021-02-24 06:59:34 -08:00
qctecmdr
bcb98f59d0 Merge "dt-bindings: add required macro definitions for SSPHY registers" 2021-02-24 06:59:33 -08:00
qctecmdr
ab195f7450 Merge "msm: mhi_dev: Update num_reqs for ADB channel" 2021-02-24 06:59:33 -08:00
qctecmdr
9009fb4d7e Merge "usb: dwc3: Enable parkmode for Gen1 controllers" 2021-02-24 06:59:32 -08:00
qctecmdr
ce2b2d67c5 Merge "firmware: qcom_scm: Fix compilation with QCOM_SCM config" 2021-02-24 06:59:32 -08:00
qctecmdr
b8cb5d94c9 Merge "usb: gadget: cser: Requeue OUT USB requests if ECONNRESET is received" 2021-02-24 06:59:32 -08:00
Package Warehouse Build User
b9d505e558 Merge "usb: function: Clear function suspend related flags on config reset" into msm-5.4 2021-02-24 06:28:13 -08:00
Package Warehouse Build User
e4fe3f8351 Merge "mtd: msm_qpic_nand: Enable Pagescope read feature on sdxlemur" into msm-5.4 2021-02-24 06:28:07 -08:00
Package Warehouse Build User
5bbe9895c1 Merge "msm: Add config option for AQC glue driver" into msm-5.4 2021-02-24 06:27:55 -08:00
Package Warehouse Build User
72d7b411a9 Merge "USB: Fix compilation errors with host stack disabled" into msm-5.4 2021-02-24 06:27:36 -08:00
Package Warehouse Build User
98dbd89763 Merge "msm: ipa3: Adding IPA defconfig WLAN dependent on this flag" into msm-5.4 2021-02-24 06:27:16 -08:00
Package Warehouse Build User
1f316795dd Merge "defconfig: Enable PMU support for sdmsteppeauto" into msm-5.4 2021-02-24 06:10:21 -08:00
Package Warehouse Build User
254f2ee0da Merge "slim-msm-ngd: Fix unbalanced core irq disable from ndg_slim_enable" into msm-5.4 2021-02-24 06:08:38 -08:00
Package Warehouse Build User
a5cc0741d2 Merge changes I8b206eb3,I992252cd into msm-5.4
* changes:
  defconfig: Enable Devfreq support for sdmsteppeauto
  defconfig: Enable core hang detect for sdmsteppeauto
2021-02-24 06:03:57 -08:00
Package Warehouse Build User
e9d68d5a29 Merge changes I8cd97abd,I6956378e into msm-5.4
* changes:
  defconfig: Enable service locator and notifier for sdmsteppeauto
  defconfig: Enable LLCC driver for sdmsteppeauto
2021-02-24 05:58:58 -08:00
Package Warehouse Build User
bcb0ae1b30 Merge "pinctrl: qcom: Update configuration for Monaco" into msm-5.4 2021-02-24 05:57:23 -08:00
Jishnu Prakash
1306820724 power: supply: smb1390: Add support to make SMB1390 driver GKI compliant
Add support for charge pump master and slave power supplies through IIO
devices and properties under them through IIO channels under the device.

Change-Id: I60e4ae948401ce006c731c5cc09334b7aee7ce07
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2021-02-24 14:46:35 +05:30
Amir Levy
1e52b5bfc0 msm: ipa: IPAv5 ULSO
Adding struct definitiond and updating
existing definitions.

Change-Id: I3c894c4a26f7165ca342b5ccb5aa441c7862d094
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2021-02-24 11:03:15 +02:00
qctecmdr
7786c0199f Merge "pinctrl: qcom: Correct sdc1 rclk offset for Shima" 2021-02-24 00:19:57 -08:00
qctecmdr
8415850e70 Merge "defconfig: sdxlemur: Enable LKDTM driver" 2021-02-24 00:19:57 -08:00
qctecmdr
254a633e55 Merge "power: smb5: Disable bat-temp irq upon debug battery detection" 2021-02-24 00:19:56 -08:00
Lijuan Gao
b1d8595341 defconfig: Enable serial console for sdxnightjar perf build
Enable SERIAL_MSM and SERIAL_MSM_CONSOLE config for sdxnightjar
perf build.

Change-Id: I23b06c27088278fc5bd52e2bd40ae0e694e8cb94
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
2021-02-24 15:29:55 +08:00
Veera Vegivada
3bb6923339 clk: qcom: Update halt_check flags for UFS axi clocks
Update the halt_check flags to BRANCH_HALT_VOTED for UFS axi clocks.

Change-Id: Icafcb0041947a64efe828801edfe62215556ddaf
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-02-24 11:45:47 +05:30
Sarthak Garg
eb133f0db5 mmc: sdhci-msm: Use actual clock for mclk_freq calculation
Due to SSC (Spread Spectrum) sdcc2 clock wont be 202Mhz but will be
slightly less than 202Mhz (201.99).
For yupik we are using floor ops in clock's driver to take the
floor value for the frequency passed from sdhc driver.
For 201.99Mhz clk_round_rate API will also round to the floor value leading
to 100Mhz for our mclk_freq calculation.

Instead of clk_round_rate and dividing by two logic we can directly
use actual clock which will be supplied to the card in mclk_freq
calculation.

Change-Id: I57a864b98d85573eb9038b6d6f502f83850eed73
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-02-24 09:17:56 +05:30
Douglas Anderson
76d7b8f192 mmc: sdhci-msm: Actually set the actual clock
The MSM SDHCI driver always set the "actual_clock" field to 0.  It had
a comment about it not being needed because we weren't using the
standard SDHCI divider mechanism and we'd just fallback to
"host->clock".  However, it's still better to provide the actual
clock.  Why?

1. It will make timeout calculations slightly better.  On one system I
   have, the eMMC requets 200 MHz (for HS400-ES) but actually gets 192
   MHz.  These are close, but why not get the more accurate one.

2. If things are seriously off in the clock driver and it's missing
   rates or picking the wrong rate (maybe it's rounding up instead of
   down), this will make it much more obvious what's going on.

NOTE: we have to be a little careful here because the "actual_clock"
field shouldn't include the multiplier that sdhci-msm needs
internally.

Change-Id: I16f0ad021209e7a0c2797c695e972888b542246f
Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git/
Git-Commit: f16c8fd4449efb4441272af6102e55523b15a7ad
Suggested-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-02-24 09:12:42 +05:30
Douglas Anderson
56fc950260 mmc: sdhci-msm: Warn about overclocking SD/MMC
As talked about in commit 5e4b7e82d4 ("clk: qcom: gcc-sdm845: Use
floor ops for sdcc clks"), most clocks handled by the
Qualcomm Technologies, Inc. clock drivers are rounded _up_ by
default instead of down.  We should make sure SD/MMC clocks are
always rounded down in the clock drivers.
Let's add a warning in the Qualcomm Technologies, Inc. SDHCI
driver to help catch the problem.

This would have saved a bunch of time [1].

NOTE: this doesn't actually fix any problem, it just makes it obvious
to devs that there is a problem and that should be an indication to
fix the clock driver.

Change-Id: I0d7b15c854eb716383bee54715361d8936b6ad0f
Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git/
Git-Commit: a8cd989e1a57dff3994cd113650afb0223c44ec6
Suggested-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-02-24 09:09:49 +05:30
Jagadeesh Kona
db9bcd7bd9 clk: qcom: clk-debug: Add support to dump GDSC registers
Add support to dump client's GDSC registers when client
passes a regulator(GDSC) handle to clock dump functions.
While at it, increase the GDSC regmap size to include all
GDSC registers.

And for legacy HW, that only supports single GDSCR per GDSC,
'qcom,no-config-gdscr' flag can be specified in GDSC DT node
to decrease the regmap size and map only single GDSCR.

Change-Id: Ia03c647deae9ffe9df93be60abd901bef25c3503
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2021-02-24 07:16:18 +05:30
Elson Roy Serrao
08e7925879 defconfig: Enable generic serial driver on sdxlemur
Enbale this driver for SoftAP support on sdxlemur.

Change-Id: Ia28c5065223f92c080ce19d45457694bd7a78a20
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2021-02-23 13:10:18 -08:00
Naman Padhiar
f5cc043bb9 icnss2: Add new ipc context to log smp2p related logs
Add new ipc context to log smp2p related logs and put
aggressive logs to appropriate ipc log context to avoid
losing of critical logs.

Change-Id: Ia2a9fb8a9c724e2adc514e618abf9f032ce1ea0a
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-02-23 22:53:02 +05:30
Anmolpreet Kaur
a7450876e4 Revert "Fallback to dma_alloc_coherent if shmbridge is disabled"
This reverts commit c9a383d796.

Change-Id: I3978652266f922de0dc25e91be07d8e493ad01ff
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2021-02-23 22:33:31 +05:30
Anmolpreet Kaur
91ed5d180d firmware: shmbridge: Change the exit label
Make change to create and keep memory pool even shmbridge
feature is not supported on certain target, then client can
still suballocte memory from the default bridge.

Change-Id: I134a8d3a31ff6464b25d4c10e1d4c686be2dee12
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2021-02-23 22:24:01 +05:30
Xiaowen Wu
7fe1fe71c5 defconfig: gen3auto: add qseecom driver support
Add qseecom driver support for DP HDCP processing.

Change-Id: Id66ef91eaf24205b455411c9719680d39d25cc65
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
2021-02-23 07:42:59 -08:00
Elson Roy Serrao
e20b7664ee usb: function: f_gsi: Allow line state ioctl query
As part of gsi_disable we send zero length packet to the
user space daemons(i.e. QTI/QBI). These daemons when they
receive a ZLP, query for line state to manage the open/close
of their DPM ports. Allow the line state ioctl query irrespective
of gsi connected state.

Change-Id: I4cd50c2b9273ffdeff561dbb1e4cd248cea2139b
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2021-02-23 07:08:38 -08:00
Srinivasarao P
022f93cd7d Merge android11-5.4.61+ (364ec3d) into msm-5.4
* refs/heads/tmp-364ec3d:
  UPSTREAM: futex: Don't enable IRQs unconditionally in put_pi_state()
  UPSTREAM: futex: Handle transient "ownerless" rtmutex state correctly
  UPSTREAM: futex: Fix incorrect should_fail_futex() handling
  ANDROID: add macros to create OEM data fields
  BACKPORT: arm64: perf: Support new DT compatibles
  UPSTREAM: usb: xhci-mtk: fix unreleased bandwidth data
  ANDROID: sched: add em_pd_energy vendor hook
  ANDROID: schedutil: add vendor hook for adjusting util to freq calculation
  ANDROID: ABI: update symbols of unisoc whitelist
  Revert "BACKPORT: FROMGIT: mm: improve mprotect(R|W) efficiency on pages referenced once"
  BACKPORT: FROMGIT: mm: improve mprotect(R|W) efficiency on pages referenced once
  ANDROID: simplify vendor hooks for non-GKI builds

 Conflicts:
	kernel/sched/cpufreq_schedutil.c

Change-Id: I9e98cddb693248a3c255d7010c8aeaad85b60ced
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-02-23 18:05:00 +05:30
Pranay Raj Anand
fcfa540016 defconfig: Enable Qseecom driver compilation for scuba
Add CONFIG_QSEECOM flag to enable Qseecom driver
compilation for scuba.

Change-Id: I3cfe96b09fa8039ea698075ef318b6a979eabef9
Signed-off-by: Pranay Raj Anand <prajanan@codeaurora.org>
2021-02-23 16:08:20 +05:30
Akshay Pandit
3b3afd2b27 defconfig: quinvm: Enable IPA configs
Enable IPA on quinvm target.

Change-Id: Ibf3882d6eb48049c24e96420d42463be62c712d1
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2021-02-23 14:31:13 +05:30
Rishabh Garg
df7d42d7c0 msm:ipa: fix the size of vlan_id
change the size of vlan_id from uint8_t to uint16_t.

Change-Id: I5fbc35fb49bede3b74b3f6126fd0eab74f50c4d1
Signed-off-by: Rishabh Garg <rishgarg@codeaurora.org>
2021-02-23 00:01:02 -08:00
Taniya Das
58e1e4ef7a cpufreq: qcom-cpufreq-hw: Add support to dump EPSS registers
Add support to dump EPSS registers that aid in debugging
CPUFREQ issues.

Change-Id: Iab15b9debf919b3b3f2dd7428fd0bdff6e04ca41
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2021-02-23 12:35:14 +05:30
Kavya Nunna
13a0a1cf86 pinctrl: qcom: spmi-gpio: Add compatible strings for pmi632 and pm6125
Add compatible strings for pmi632 and pm6125 in pinctrl-spmi-gpio
driver to support pmic gpios in 5.4 kernel.

Change-Id: Ic0ccb0e5a8272039dadc29327a2061d2b7cb5213
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-02-23 12:13:32 +05:30
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 <dkumar@codeaurora.org>
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 <sambulka@codeaurora.org>
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 <sartgarg@codeaurora.org>
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 <truong@codeaurora.org>
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 <wcheng@codeaurora.org>
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 <truong@codeaurora.org>
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 <pdaly@codeaurora.org>
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 <katamoni@codeaurora.org>
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 <shrekk@codeaurora.org>
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 <shrekk@codeaurora.org>
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 <shrekk@codeaurora.org>
2021-02-22 19:14:10 +05:30