Commit graph

879,520 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Hemant Kumar
1092885dc8 mhi: core: Add NULL check in debugfs show callback
Upon external soc power down mhi controller context pointer
is set to NULL. If debugfs query is issued at that time it
results into NULL pointer dereference. Fix the issue by adding
a NULL check in debugfs show callback for event and channel.

Change-Id: I8c947bc6c42e80c625bf06c17e73368d2195a2bb
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-03-23 12:47:06 -07:00
Hemant Kumar
ad557197eb mhi: core: Synchronize time sync operation and removal
If time sync is requested by user space when endpoint is shutting
down dev_wake count gets incremented. This is causing assert when
shutdown API checks the dev_wake count and it is still non-zero.
Fix this issue by protecting time sync API and removal of time sync
under tsync_mutex. This helps to take care of a race condition when
time sync is requested while time sync remove in progress and also
makes sure that dev_wake count becomes zero when time sync remove
is done to prevent assert condition.

Change-Id: I4e758611613e541537dd900306aa81dd3b4a9f3a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-03-23 12:43:16 -07:00
Mayank Rana
0d9ddf2e82 dwc3-msm: Check usb role switch status
If extcon handler is present and dpdm regulator is absent, current
code starts USB state machine without checking usb role switch status.
This results into USB PHY being reset while ADSP firmware is performing
charger detection. This may result into wrong/invalid charger detection
instead of SDP causing no USB enumeration. Fix this issue by checking
usb role switch status before kicking USB state machine.

Change-Id: Ic25083a74ac867eeb3869588c3060e6bf05e4007
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-03-23 10:44:22 -07:00
qctecmdr
d548095fbb Merge "defconfig: lahaina: Enable PRIORITIZE_OOM_TASKS" 2020-03-23 09:48:51 -07:00
qctecmdr
96cd181257 Merge "arm64: defconfig: Enable Atmel touchscreen on Lahaina" 2020-03-23 06:12:36 -07:00
qctecmdr
71f2d78136 Merge "msm: ipa: remove ipa and gsi from kernel" 2020-03-23 06:12:36 -07:00
qctecmdr
4a1a3d75a4 Merge "radio: RTC6226: correctly cleanup videodev" 2020-03-23 06:12:36 -07:00
qctecmdr
b7cf7a3061 Merge "arm64: defconfig: enable QPNP AMOLED regulator driver on Lahaina" 2020-03-23 06:12:35 -07:00
qctecmdr
14e3df3b94 Merge "msm: kgsl: use correct load bit value for rbbm perf counter" 2020-03-23 06:12:35 -07:00
qctecmdr
b2632f07d9 Merge "qseecom: Proper handling of unmapping dmabuf" 2020-03-23 06:12:35 -07:00
qctecmdr
e81c5e69bb Merge "defconfig: enable QRNG as a GKI module" 2020-03-23 02:28:05 -07:00
qctecmdr
31e175e3fb Merge "arm: defconfig: Disable serial device bus" 2020-03-23 02:28:04 -07:00
qctecmdr
738fdf4fd1 Merge "slimbus: Add changes to make slimbus GKI compliant" 2020-03-23 02:28:04 -07:00
qctecmdr
3547b7bac6 Merge "devfreq: update sampling window timer limit" 2020-03-23 02:28:04 -07:00
Puranam V G Tejaswi
e6c6009305 msm: kgsl: use correct load bit value for rbbm perf counter
The load bit value used for RBBM_PERFCTR_RBBM_0 is incorrect.
Correct the load bit so that the saved value is loaded into the
desired counter.

Change-Id: Id0c8cb65061ce061ae342f62576ea020553e0f80
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
2020-03-23 12:40:01 +05:30
Mike Tipton
42af5540ed interconnect: qcom: Don't vote using unrelated voters in sync_state
Currently, when sync_state re-votes to remove the init proxies, it
re-votes each voter for each BCM. However, each BCM is associated with
exactly one voter, so we only need to re-vote using the single voter
associated with the BCM. Not only does this improve performance by
removing unnecessary votes, but it can also fix stability issues when
the voter RSC isn't available yet.

Change-Id: Id2de6959ffb17b10c9e88d31308fd22964c3e456
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-03-22 23:34:24 -07:00
qctecmdr
e0adc58147 Merge "input: misc: qcom-hv-haptics: Add support for V2 HW module" 2020-03-22 22:28:30 -07:00
qctecmdr
d851cf4b5a Merge "soc: qcom: spcom: allow commands for not connected channel" 2020-03-22 22:28:30 -07:00