Commit graph

877,558 commits

Author SHA1 Message Date
Asutosh Das
41029bb5ec scsi: ufs-qti: port UFS driver changes for QTI configuration
This is a snapshot of UFS driver taken as of msm-4.19 commit
<06d5054c2859> ("scsi: ufs: Remove UFS card support").
This change adapts to several upstream functions.
Some obsolete downstream changes are dropped.

Change-Id: Ib34f0d90ff683b1e7246cc9ec70375e994685e0c
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2019-12-16 20:25:02 -08:00
Murali Nalajala
a659e706aa socinfo: add socinfo driver
Add socinfo driver to expose various SoC information to the clients.
This information is useful to various clients in kernel and userspace
to know about the SoC information.

Change-Id: If8b025f19a8eb5bf736d1c88c180654d724bb45f
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2019-12-16 20:05:59 -08:00
Richard Patrick
5d204f2a92 uio: Kconfig: Enable msm shared memory driver
This config enables msm shared memory driver.
This driver allocates shared-memory to be used by the modem processor.

Change-Id: I622d032c1abb8884027f9cc4f4428dbf53ac7035
Signed-off-by: Richard Patrick <richardp@codeaurora.org>
2019-12-16 19:58:09 -08:00
qctecmdr
3f05717d9f Merge "sched/walt: Improve the scheduler" 2019-12-16 19:50:47 -08:00
qctecmdr
3e91323fd9 Merge "defconfig: lahaina-gki: enable qpnp-power-on driver" 2019-12-16 19:12:35 -08:00
qctecmdr
4f3ef457ae Merge "defconfig: enable cdsp loader on Lahaina as DLKM module" 2019-12-16 19:12:34 -08:00
qctecmdr
c1ddf94399 Merge "arm64: defconfig: Enable tz_log driver for Lahaina" 2019-12-16 18:31:02 -08:00
qctecmdr
9cee81e699 Merge "defconfig: lahaina-qgki: enable regmap debugfs features" 2019-12-16 18:31:02 -08:00
Tony Truong
825573c3c4 defconfig: lahaina: enable PCIe root complex and PCIe MSI for lahaina
Enable PCIe root complex driver to establish communication
between lahaina and external peripherals through PCIe ports and
interfaces.

Enable PCIe MSI driver to provide PCIe clients MSI/MSI-X
support. With MSI/MSI-X, external peripherals connected to PCIe
can interrupt lahaina.

Change-Id: I4db1b27a5a37833f24446b7995ad8a754e2e5eca
Signed-off-by: Tony Truong <truong@codeaurora.org>
2019-12-16 17:57:26 -08:00
Tony Truong
d77ab5d3c9 msm: pcie: remove deprecated explicit clock retention support
Configurable clock retention is no longer supported. Remove all
support from PCIe root complex driver.

Change-Id: I5a028e42e7bbdf00c6c0867368b5cb6f6555595e
Signed-off-by: Tony Truong <truong@codeaurora.org>
2019-12-16 17:56:47 -08:00
Tony Truong
f7b484fd1a msm: pcie: add lahaina PCI device ID to PCI table
Add lahaina PCI device ID to PCI table so that PCI framework
will probe PCIe root port driver.

Change-Id: I4ec15307f372516278f68444d3aa83a33553c2d1
Signed-off-by: Tony Truong <truong@codeaurora.org>
2019-12-16 17:56:47 -08:00
Tony Truong
cfab905a7a msm: pcie: update deprecated wakeup_source_* API
Remove wakeup_source_init and wakeup_source_remove API as they
are deprecated. Instead use wakeup_source_register and
wakeup_source_unregister APIs.

Change-Id: Id381500ac13e816937542a6979bf36b6a0aea402
Signed-off-by: Tony Truong <truong@codeaurora.org>
2019-12-16 17:56:47 -08:00
Tony Truong
eb3beebb57 msm: pcie: add snapshot of PCIe root complex bus driver
This is a snapshot of MSM PCIe root complex as of msm-4.19
commit 6e2242593d4a ("drm/msm/dp: check for invalid seqno before
clearing a txmsg slot").

Changes made:
  - remove or switch to sysfs for all module params
  - move from MSM bus to ICC framework
  - replace all snprintf with scnprintf
  - update debugfs remove
  - update license for msm_pcie.h
  - misc syntax improvements

Change-Id: I310fdfd136346f74c20806bd5dcdbc74c7d894a3
Signed-off-by: Tony Truong <truong@codeaurora.org>
2019-12-16 17:56:47 -08:00
qctecmdr
5861050a5b Merge "firmware: qcom: Add TZ log driver snapshot for Lahaina" 2019-12-16 17:48:32 -08:00
Hemant Kumar
ccf7b32222 usb: xhci: Add helper API to issue stop endpoint command
This API is used to issue stop endpoint command on
requested endpoint in order to retire all active TRBs
in the transfer ring.

Change-Id: I312772367a2cd293982a66ea8b75e04a8b1f2fd0
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2019-12-16 17:08:46 -08:00
Hemant Kumar
18e5c7eddd usb: xhci: Add helper APIs to return xhci dma addresses
Add APIs to get physical and mapped DMA addresses of
secondary event ring, transfer ring and device context
base addresses which are required to pass to remote entity.
The remote entity uses these addresses to in order to
program the xHC from its context.

This commit also squashes in the following change:

    usb: Add support to handle USB SMMU S1 address

Change-Id: Ie0756d646a396a11b41b93e886bca9aff636ee5d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-12-16 17:08:46 -08:00
Hemant Kumar
d65ac36f1f usb: xhci: Add support for secondary interrupters
Implement APIs to dynamically allocate and free secondary
event rings based upon interrupter number. Export these
APIs directly from XHCI which allows secondary event ring
management via remote processor entity.

This commit also squashes in the following changes:

    usb: xhci: Clear event handler busy flag upon event ring cleanup
    usb: xhci: Acknowledge pending events in secondary event ring

Change-Id: I5ee7d44d6cad8e35e22d3c1a027a1eec5d208585
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-12-16 17:08:38 -08:00
Edgar Flores
a2d145d127 defconfig: enable cdsp loader on Lahaina as DLKM module
Enable cdsp loader driver as a DLKM module for
lahaina-gki configuration.

Change-Id: I89de24d1b2d09b8c856d569a4da217f6d41a3cc1
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2019-12-16 15:50:23 -08:00
qctecmdr
635b627365 Merge "drivers: thermal: of-thermal: Add support for virtual sensor" 2019-12-16 15:44:47 -08:00
Subbaraman Narayanamurthy
6e981ff1ea defconfig: lahaina: enable the UCSI Glink driver
UCSI Glink driver handles the communication between OPM on the
Application processor and PPM which is charger firmware running
on the remote subsystem (e.g. DSP) over PMIC Glink.

Since this requires CONFIG_TYPEC and CONFIG_TYPEC_UCSI options
to be enabled, add them as well.

Change-Id: I44a05ab472d1401bdc4582a5c9535baff4c1c259
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2019-12-16 15:10:56 -08:00
Subbaraman Narayanamurthy
0d12dde744 usb: typec: ucsi: add QTI UCSI Glink driver
Qualcomm Technologies, Inc. UCSI Glink driver handles the
communication between OPM on the Application processor and PPM
which is charger firmware running on the remote subsystem
(e.g. DSP) over PMIC Glink.

Change-Id: If7fced3eebee9d41ad1f51229c28e4f63b750250
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2019-12-16 15:10:53 -08:00
qctecmdr
be343ccd35 Merge "pinctrl: qcom: spmi-gpio: define an irqchip for each pinctrl device" 2019-12-16 15:06:25 -08:00
qctecmdr
8213b6428a Merge "drivers: thermal: Add QTI_THERMAL config" 2019-12-16 15:06:24 -08:00
qctecmdr
24d7be2e04 Merge "drivers: soc: qcom: Add snapshot of EUD driver" 2019-12-16 14:26:30 -08:00
qctecmdr
f096eb3342 Merge "iio: adc: Add support for PMIC7 VADC" 2019-12-16 14:26:29 -08:00
qctecmdr
cf3335cdae Merge "defconfig: enable fastrpc driver on Lahaina" 2019-12-16 14:26:29 -08:00
Lingutla Chandrasekhar
609fb2b366 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I5fbadf248c0bfe27bc761686de7a925cec2e4163
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
[satyap@codeaurora.org: port to 5.4 and fix trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2019-12-16 13:16:58 -08:00
Sai Harshini Nimmala
44a9fe8ad9 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I33e9ec890f8b54d673770d5d02dba489a8e08ce7
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
[satyap@codeaurora.org: port to 5.4 and resolve trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2019-12-16 13:16:54 -08:00
Maria Yu
e673c734f3 sched/fair: Avoid force newly idle load balance if have iowait task
If this runqueue have iowait task and still force newly
idle load balance, will make iowait task performance
worse. Need to do the average idle time check if
there is iowait task on this runqueue to have upcoming
iowait task have enough cpu resource.

Change-Id: I8e4dd440edbbd14d5170fbcf358bdaf5cc5b26e8
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
Signed-off-by: Biao Long <blong@codeaurora.org>
2019-12-16 13:16:49 -08:00
Pavankumar Kondeti
bab437b714 sched/fair: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I7e6cc760a6add9ebdab7d67a176559bc640f7790
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
[satyap@codeaurora.org: port to 5.4 and minor update for WALT]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2019-12-16 13:16:04 -08:00
Pavankumar Kondeti
ac0eba9b32 sched/fair: Force gold cpus to do idle lb when silver has big tasks
We often see traces that gold cpus goes to idle even when silver
has big tasks. This is because avg_idle checks does not allow
the gold cpus to enter idle balance. This is NOT okay when
silver CPUs have big tasks.

Change-Id: Ice00d43c70be105b5bc3ad09caa6047aa98d7402
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
[satyap@codeaurora.org: port to 5.4 and add WALT checks]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2019-12-16 13:15:35 -08:00
qctecmdr
f8142d1124 Merge "wil6210: send uevent when creating sysfs files" 2019-12-16 12:53:55 -08:00
qctecmdr
00a0a5045c Merge "arm64: Remove cpu_soft_reset() prototype" 2019-12-16 12:06:01 -08:00
qctecmdr
5b1b65d030 Merge "arm64: defconfig: Enable QUPv3 and GPI drivers on lahaina" 2019-12-16 11:29:58 -08:00
qctecmdr
7847fb4f8a Merge "msm: ipa: load IPA FW after smmu CB are probed" 2019-12-16 11:29:57 -08:00
qctecmdr
9adbc34dba Merge "Revert "perf: Set the DSU PMU to be readable from any CPU"" 2019-12-16 11:29:57 -08:00
Edgar Flores
49d6324914 defconfig: enable fastrpc driver on Lahaina
Enable compilation of fastrpc driver as DLKM module on Lahaina.
This driver will be part of Lahaina GKI config.

Change-Id: Ie34249640949b192557735ccc64ffd75526b48ed
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2019-12-16 11:29:13 -08:00
qctecmdr
abe6d961ff Merge "msm: ipa: Add graceful handling to skip partial packets" 2019-12-16 10:50:50 -08:00
qctecmdr
abdbe88f83 Merge "msm: ipa: Fix not to update state during pipe reset" 2019-12-16 10:50:50 -08:00
qctecmdr
224be36813 Merge "msm: ipa: add support to updated wdi3 scratch register2 alone" 2019-12-16 10:50:49 -08:00
Can Guo
681294e742 BACKPORT: FROMLIST: scsi: ufs: Export query request interfaces
Vendor drivers may need to send query requests in proprietary
implementations. Hence, export the query request interfaces
so that vendor drivers can use them.

Removed export of internal helper functions:
ufshcd_query_attr_retry and ufshcd_query_flag_retry

Bug: 146013342
Change-Id: Ibe3082097554e89e03b33a926ef013503bac0e74
Link: https://lore.kernel.org/patchwork/patch/1163542/
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2019-12-16 10:48:19 -08:00
David Collins
9d223aa497 defconfig: lahaina-gki: enable qpnp-power-on driver
Enable the qpnp-power-on driver so that the desired power off
type can be configured (i.e. shutdown, reset, or warm reset).

Change-Id: I9e1d0157423c4d032fd5d948af1b008d7851310e
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:44:48 -08:00
David Collins
513b6c63e1 input: qpnp-power-on: add support for PON_GEN3 subtype PON peripherals
Add support to control PON_GEN3_PBS and PON_GEN3_HLOS subtype
PON peripherals.  These support a more limited feature set than
previous PON peripherals.

Change-Id: Id76ccc6ffd285ac68f350fb194f70bbbb04bd558
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:44:47 -08:00
David Collins
ec0c13cc56 dt-bindings: input: add qpnp-power-on bindings
Add device tree bindings for Qualcomm Technologies, Inc. QPNP
Power-on devices.  These are PMIC peripherals which manage PMIC
power on, power off, key presses, and other related activities.

This snapshot is taken as of msm-4.19
commit 47598dd0e809 ("input: misc: qpnp-power-on: add support
to power off a modem chip").

Change-Id: If5e727c812a3c8cdcc263a40c72de50bb3ffbc78
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:44:46 -08:00
David Collins
726328684e input: add snapshot of qpnp-power-on driver
The qpnp-power-on driver provides support for key presses via
several key specific PMIC inputs.  It also supports reading
power-on reasons and configuring the power-off type (i.e.
restart, shutdown, etc).

This snapshot is taken as of msm-4.19
commit 47598dd0e809 ("input: misc: qpnp-power-on: add support
to power off a modem chip").

Note that support for boot_reason, cold_boot, and ship_mode
configuration was removed as these have unmet dependencies and
are no longer needed.

Change-Id: I8105cf74d65609932146157f82a8e99f29a4dde2
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:44:45 -08:00
David Collins
76b233c18e defconfig: lahaina-qgki: enable regmap debugfs features
Enable CONFIG_REGMAP_QTI_DEBUG and CONFIG_REGMAP_ALLOW_WRITE_DEBUGFS
to facilitate easier debugging.

Change-Id: I8a1f34819f80df9ee988aea59b3895bd0af0843a
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:44:44 -08:00
David Collins
5fdcaaf6f1 defconfig: lahaina-gki: enable gpio-keys driver
Enable the gpio-keys driver so that GPIO buttons can be monitored.

Change-Id: I6e73af4ad85dbba8a087cca80f2f1b9b99ff5799
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:44:43 -08:00
David Collins
c9ce2cc0c0 defconfig: lahaina-gki: enable SPMI and PMIC drivers
Enable several SPMI and PMIC drivers which are needed to provide
baseline support of PMIC peripherals.

Change-Id: Ifb4414083764bbae64904d8629528cc4dda3a39c
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:43:06 -08:00
David Collins
92ac3f9f32 defconfig: lahaina-qgki: enable CONFIG_IIO
Enable CONFIG_IIO in lahaina_QGKI.config so that drivers which
depend upon it can function before CONFIG_IIO is enabled in
gki_defconfig.

Change-Id: I6afa93e6054d67157b1d435aa10688ab37220612
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:43:04 -08:00
David Collins
5cc6a7c454 pinctrl: qcom: spmi-gpio: define an irqchip for each pinctrl device
Generate a new irqchip struct for each pinctrl device that is
registered to avoid sharing the same irqchip between devices.
This corrects the following error which is printed when
registering more than one pinctrl-spmi-gpio device:

  "detected irqchip that is shared with multiple gpiochips:
   please fix the driver."

Change-Id: I80ce67fc674b96f4386499f547395ceed7480583
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:43:03 -08:00