Commit graph

879,542 commits

Author SHA1 Message Date
qctecmdr
ed86236edb Merge "power: supply: qti_battery_charger: Allow ICL to be set only for SDP" 2020-03-28 12:42:22 -07:00
qctecmdr
d711937055 Merge "arm64: defconfig: Enable hung tasks detection" 2020-03-28 07:28:13 -07:00
qctecmdr
9d40a272d9 Merge "drivers: input: touchscreen: defer probe if panel not found" 2020-03-28 07:28:13 -07:00
qctecmdr
cf92dce455 Merge "regulator: qpnp-lcdb: Replace revid checks with DT compatible properties" 2020-03-28 07:28:13 -07:00
qctecmdr
a9f7a23680 Merge "msm: pcie: skip memory access when collecting PCIe PARF registers" 2020-03-28 07:28:12 -07:00
qctecmdr
672df0d169 Merge "defconfig: Enable mem_dump driver on gki build for lahaina" 2020-03-28 07:28:11 -07:00
qctecmdr
303048eeb5 Merge "msm: cvp: A fix of cvp issue in camera" 2020-03-27 12:03:31 -07:00
Mayank Rana
93be488bb0 arm64: defconfig: Enable media and UVC drivers on Lahaina
Media and USB Video Class drivers are needed to get USB video
devices functional in USB host mode. Hence enable media and USB
video class drivers on Lahaina.

Change-Id: I70ccc146b55a564b4408496a54b044d52cbf9e41
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-03-27 08:53:16 -07:00
qctecmdr
e51f74d2f1 Merge "msm: kgsl: LPAC is using incorrect pagetable" 2020-03-27 03:47:19 -07:00
qctecmdr
3415d08a46 Merge "clk: qcom: gdsc-regulator: Remove regulator voltage level voting" 2020-03-27 03:47:18 -07:00
qctecmdr
b0205cb659 Merge "interconnect: qcom: Don't vote using unrelated voters in sync_state" 2020-03-27 03:47:18 -07:00
qctecmdr
b4b4118009 Merge "scsi: ufs-qti: Enable block layer runtime PM for well-known logical units" 2020-03-27 03:47:18 -07:00
qctecmdr
c4e3acfb92 Merge "defconfig: Support for QTI inline encryption" 2020-03-27 03:47:17 -07:00
qctecmdr
61c0784673 Merge "mhi: core: move non-essential errors to log messages" 2020-03-27 03:47:17 -07:00
qctecmdr
f2aa99b14e Merge "defconfig: arm64: Enable EUD driver for GKI" 2020-03-27 03:47:17 -07:00
Mao Jinlong
0a667f9293 defconfig: Enable mem_dump driver on gki build for lahaina
Enable memory dump driver to be build as a module in the defconfig
on Lahaina.

Change-Id: I284e5d082d5a595f794b15fd66163137596e714e
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-03-27 14:57:25 +08:00
Mao Jinlong
a4f0a38f21 soc: memory_dump: Add moudle support for mem_dump driver
Add support to build the memory dump driver as moudle on gki build.

Change-Id: I8cf227d0b0044b935bbf224d1191ec84fa497509
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-03-27 14:56:22 +08:00
qctecmdr
98e5858717 Merge "arm64: defconfig: Enable QVR HID driver on Lahaina" 2020-03-26 20:45:05 -07:00
qctecmdr
e86a371037 Merge "msm: pcie: correct PCIe1 and PCIe2 clock order" 2020-03-26 20:45:05 -07:00
qctecmdr
528b8e5226 Merge "mmc: sdhci-msm: Avoid enable SD card power if card is removed" 2020-03-26 20:45:05 -07:00
qctecmdr
c1f9871880 Merge "mhi: core: Skip handling MSI0 if MHI register access is not allowed" 2020-03-26 20:45:04 -07:00
Bhaumik Bhatt
01e0ee4292 mhi: core: move non-essential errors to log messages
With the exception of control event ring processing, turn
the non-essential error messages to log variants so they
do not show up in dmesg.

Change-Id: Ib49022b25817d8d65dd10d33c4a948698c571082
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-03-25 19:41:58 -07:00
Can Guo
bb45ad80bd scsi: ufs-qti: Enable block layer runtime PM for well-known logical units
Block layer RPM is enabled for the genernal UFS SCSI devices when they are
probed by their driver. However block layer RPM is not enabled for UFS
well-known SCSI devices.

As UFS SCSI devices have their corresponding BSG char devices, accessing
a BSG char device via IOCTL may send requests to its corresponding SCSI
device through its request queue. If BSG IOCTL sends a request to a
well-known SCSI device when hba is not runtime active, due to block layer
RPM is not eanbled for the well-known SCSI devices, hba, which is at the
top of a scsi device's parent chain, shall not be resumed, then unexpected
error would happen.

This change enables block layer RPM for the well-known SCSI devices, so
that block layer can handle RPM for the well-known SCSI devices just like
for the general SCSI devices.

Change-Id: Ie4c5c4876f8500c285166a5f7be87a2157a12df3
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-03-25 18:32:11 -07:00
Vivek Aknurwar
5b2e722764 clk: qcom: gdsc-regulator: Remove regulator voltage level voting
On Lahaina, both VDD_GFX and VDD_MMCX support LowSVS as the minimum
non-OFF level. Therefore regulator_set_voltage() calls are redundant
and can be safely removed.

Commit f8702f9e4a ("regulator: core: Use ww_mutex for regulators
locking") introduced a call to mutex_lock(&regulator_list_mutex)
inside of regulator_lock_dependent(). This additional locking allows
deadlock to occur for regulator devices whose regulator_ops callback
functions internally call consumer regulator framework API functions
(e.g. regulator_enable(), regulator_disable(), or regulator_set_voltage()).

For short term remove all regulator_set_voltage() calls in the
gdsc-regulator driver as a short term partial workaround for regulator
framework deadlock issue.

Change-Id: I36dff589fe51ea4c932c310b7290a45b21f77992
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2020-03-25 15:08:48 -07:00
Gaurav Kashyap
368be07f84 defconfig: Support for QTI inline encryption
Enable the following flags for variant ops.
1. CONFIG_SCSI_UFS_CRYPTO_QTI.
2. CONFIG_QTI_CRYPTO_COMMON.
3. CONFIG_QTI_HW_KEY_MANAGER.

Change-Id: Id061d551a74e959d643af1c0235a313d70972b6f
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2020-03-25 10:58:40 -07:00
Gaurav Kashyap
c7b91c4798 soc: qcom: add HWKM driver for FBE
Add hardware key manager driver in the HLOS kernel
to facilitate storage encryption using HWKM.

Change-Id: I3531ab083443e2ef41ee5990386b9052ea69841d
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2020-03-25 10:58:40 -07:00
Gaurav Kashyap
54905869ef ufs: ice: add variant ops for ICE
Add QTI implementation for variant ops required for inline
encryption with wrapped key support. These include UFS
crypto ops and KSM ops.

Change-Id: Ica930a8a806a78d4c2d074639cbed355b895a459
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2020-03-25 10:58:30 -07:00
Subbaraman Narayanamurthy
8f7c5d5cb1 power: supply: qti_battery_charger: Allow ICL to be set only for SDP
Input Current Limit (ICL) needs to be set only for SDP and not
for other charger types. Add that logic.

Change-Id: Ib48acf5666ea4190b7a11c27ab9cefbb534632fb
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-03-25 10:25:07 -07:00
Hemant Kumar
b7dfed82fb mhi: core: Force PM state to M0 while processing BW scaling event
Driver defers processing of BW scaling event if PM state is not in
M0. This delays the BW scaling to take effect. Fix this issue by
resuming the device if it was suspended state and assert wake DB.
After changing the BW of the link de-assert the wake DB.

Change-Id: Ibf827912a4de71d14f461382c28080157c65d6e0
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-03-24 18:51:57 -07:00
Raghu Ananya Arabolu
803861c144 msm: kgsl: LPAC is using incorrect pagetable
We are incorrectly using the default pagetable for LPAC when per-process
page tables are disabled. Create a separate pagetable for LPAC.

Change-Id: I93b9c764fe91260b8b27c9b2d847429d1595a839
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-03-24 11:55:26 -07:00
qctecmdr
3a82802e7b Merge "mhi: core: handle pm error state transition within fast suspend/resume" 2020-03-24 05:33:16 -07:00
qctecmdr
7b19902e1e Merge "bus: mhi_netdev: Free background memory pool during memory free" 2020-03-24 01:37:30 -07:00
qctecmdr
238ae416ca Merge "mhi: core: Synchronize time sync operation and removal" 2020-03-24 01:37:29 -07:00
qctecmdr
876ef7a93a Merge "mhi: core: fix fast forward recycling of event rings" 2020-03-24 01:37:29 -07:00
qctecmdr
bccba79c9f Merge "fbdev: core: Initialise structure to prevent kernel information leak" 2020-03-24 01:37:28 -07:00
Satya Rama Aditya Pinapala
f5c1a1c3e4 drivers: input: touchscreen: defer probe if panel not found
In many cases display panel information may not be available when the touch
driver is being probed. This change defers the probe if the panel is not
found to ensure that the correct touch driver is probed.

Change-Id: I12d1dd3678a85baa468b332d61be4ba9ce81db43
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2020-03-23 19:54:04 -07:00
Tony Truong
551af1de35 msm: pcie: correct PCIe1 and PCIe2 clock order
PCIe1 and PCIe2 default clock structure needs to have same
clock order as PCIe0. Update the order of PCIe1 and PCIe2
to be the same as PCIe0.

Change-Id: Icefb0f85e301cb3ba9ee4c07d01cf4110137d489
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-03-23 17:41:09 -07:00
Raghavendra Rao Ananta
9f6494a615 defconfig: arm64: Enable EUD driver for GKI
Enable the Embedded USB debug driver as a module on GKI
builds for Lahaina platform.

Change-Id: I8cd9e94153c08848c4afeb2fb5e24f0ffc81e3e6
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-23 17:10:34 -07:00
Sathish Ambley
b30ed4d29d arm64: defconfig: Enable QVR HID driver on Lahaina
Enable QVR HID driver on Lahaina.

Change-Id: Iee185906c39c7358445af60711176a3f32af7536
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2020-03-23 16:24:12 -07:00
rbandi
50dd94483d HID: Adding new id for hid-qvr support
Adding new vendor id and product id to
support additional hardware.

Change-Id: I777568f1a68b15345695e09d2ad89e9230508886
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-03-23 16:24:05 -07:00
rbandi
57c2cc05e2 HID: Adding new vendor id for QVR support
Adding new vendor id to support additional hardware.

Change-Id: I9b37b4dfe0c205428d235ffe1e5f8d8ebe918998
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-03-23 16:22:48 -07:00
Raghavendra Rao Ananta
79e79ca0d5 arm64: defconfig: Enable hung tasks detection
Enable hung task detection for Lahaina platform to detect the
tasks that are stuck in uninterruptible "D" state indefinitely.

Change-Id: Ieb18c8452b3643c57d11ba697a359d5beb7d7255
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-23 15:45:07 -07:00
Imran Khan
df5442d862 hung task: check specific tasks for long uninterruptible sleep state
khungtask by default monitors all tasks for long unterruptible sleep.
This change introduces a sysctl option, /proc/sys/kernel/
hung_task_selective_monitoring, to enable monitoring selected tasks.
If this sysctl option is enabled then only the tasks with
/proc/$PID/hang_detection_enabled set are to be monitored,
otherwise all tasks are monitored as default case.

Some tasks may intentionally moves to uninterruptable sleep state,
which shouldn't leads to khungtask panics, as those are recoverable
hungs. So to avoid false hung reports, add an option to select tasks
to be monitored and report/panic them only.
By default, enable the feature always to monitor selected tasks.

Change-Id: I48cd8cfe73dbe2b577541fe9607190eac5556bb2
Signed-off-by: Imran Khan <kimran@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
[sramana: Resolved minor merge conflict]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
[rananta: Resolved compilation errors]
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-23 15:44:56 -07:00
qctecmdr
f7f07211e0 Merge "dwc3-msm: Check usb role switch status" 2020-03-23 15:12:36 -07:00
qctecmdr
8537059a43 Merge "mhi: core: Add NULL check in debugfs show callback" 2020-03-23 15:12:35 -07:00
Hemant Kumar
72f7f413c1 mhi: core: Skip handling MSI0 if MHI register access is not allowed
Driver continues handling of MSI0 interrupt even if MHI register access
is not allowed. By doing so it calls the status call back and performs
early notification for the MHI client. This is not needed when MHI register
access is not allowed. Hence skip the handling in this case and return.

Change-Id: I4639cedfd45166f28379539bccb25acd383faca5
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-03-23 13:32:12 -07:00
Bhaumik Bhatt
6f55f77a77 mhi: core: handle pm error state transition within fast suspend/resume
During fast suspend/resume, the power management states in MHI
can change to any error state. Allow for it by re-checking and
handling it such that pm states are not lost or over-written in
the process.

Change-Id: I264ae096d20b9752837624dc3a4b3ea6131ad9a6
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-03-23 13:29:32 -07:00
Bhaumik Bhatt
d0a4940862 mhi: core: fix fast forward recycling of event rings
Some low priority event rings operate on a fast forwarding
mechanism where only the latest event is processed and the rest
are skipped. The recycle API only handles updating the
context write pointer in sequence which causes an out of bounds
doorbell issued to the device due to mismatched values. Add
another API to support handling updates for context write
pointer separately with the fast forwarding use case.

Change-Id: If628b49e063d14920fe734ebd113c9c4c733204b
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-03-23 12:58:23 -07:00
Bhaumik Bhatt
cf2a299dea mhi: cntrl: qcom: disable boot logger after forced suspend
Prioritize handling of forced suspend/resume cycle at mission
mode entry and disable boot logger channel after the cycle has
completed to avoid race conditions.

Change-Id: Iddc3d560fa687399434cc8ad51c08509ddfadf70
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-03-23 12:56:24 -07:00
Bhaumik Bhatt
fc22a3ea18 bus: mhi_netdev: Free background memory pool during memory free
Fix freeing the background memory pool to avoid kmemleak as
part of freeing the memory pool.

Change-Id: I29c9d972295900bd0b97c8ab8ee73d668e05a59f
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-03-23 12:53:03 -07:00