Commit graph

884,342 commits

Author SHA1 Message Date
qctecmdr
100515801c Merge "cnss2: Reject idle restart if fails to get driver ops lock" 2020-05-17 23:58:35 -07:00
qctecmdr
9657f724eb Merge "ANDROID: dm-default-key: Update key size for wrapped keys" 2020-05-17 23:58:35 -07:00
qctecmdr
c995c7adb7 Merge "firmware: qcom_scm: fix the arguments types information" 2020-05-17 23:58:34 -07:00
qctecmdr
cf221d2a10 Merge "msm: cvp: disable cache op by default" 2020-05-17 23:58:34 -07:00
qctecmdr
a05e4a3509 Merge "soc: qcom: mem-buf: Add support for restricting memory transfers" 2020-05-17 23:58:34 -07:00
qctecmdr
85a4ed7aa3 Merge "cpufreq: qcom-cpufreq-hw: Simplify the boost frequency" 2020-05-17 23:58:34 -07:00
qctecmdr
630442cc62 Merge "aarch64: ABI: Update the ABI whitelist with qcom_scm symbols" 2020-05-17 18:50:02 -07:00
Raghavendra Rao Ananta
e16bbe600e aarch64: ABI: Update the ABI whitelist with qcom_scm symbols
Add the symbols qcom_scm_dcvs_reset, qcom_scm_io_reset,
qcom_scm_dcvs_init_ca_v2, qcom_scm_dcvs_ca_available, and
qcom_scm_dcvs_init_v2 to the whitelist and update the
ABI snapshot.

Change-Id: I3049cecbc4256c47050a91125f359993ee1af96b
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-05-17 00:34:22 -07:00
George Shen
54d791bc29 msm: cvp: Avoid sending DSP HFI buf twice
Second buffer sending may crash DSP.

Change-Id: I67b4d293aa4a41ea40f30744ae79d0a5a66fa017
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-16 21:59:58 -07:00
Jagadeesh Kona
980834c97d clk: qcom: Add support for VIDEOCC clock driver for SHIMA
Add support for VIDEOCC clock driver for SHIMA, which provides clock
control for the video subsystem.

Change-Id: Iae314b9b1a9e959f027e6a03bc42274418c0c106
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-05-16 09:17:12 +05:30
qctecmdr
c09480d98d Merge "msm: pcie: add support to manage PCIe PHY PLL block" 2020-05-15 20:31:15 -07:00
qctecmdr
3dfe6cb25d Merge "sched: Completely remove CFS_BANDWIDTH support in WALT" 2020-05-15 20:31:15 -07:00
qctecmdr
fbb9d05d4b Merge "soc: qcom: socinfo: Fix array out-of-bounds access" 2020-05-15 20:31:15 -07:00
qctecmdr
a911709e5d Merge "radio: RTC6226: post original tune event after scan complete" 2020-05-15 20:31:12 -07:00
qctecmdr
a1058f3b09 Merge "haven: Fix non-zero input SG-List handling for MEM_ACCEPT" 2020-05-15 20:31:11 -07:00
qctecmdr
1c8201b865 Merge "Revert "ASoC: soc-pcm: BE dai needs prepare when pause release after resume"" 2020-05-15 20:31:11 -07:00
qctecmdr
47f0c1c28e Merge "interconnect: qcom: Fix small BW votes being truncated to zero" 2020-05-15 20:31:11 -07:00
qctecmdr
89bc61bcc5 Merge "Add ports and port child node check in legacy function" 2020-05-15 20:31:11 -07:00
qctecmdr
181b4fb1cd Merge "usb: gadget: f_qdss: Add ipc logging for qdss driver" 2020-05-15 20:31:10 -07:00
qctecmdr
055b8f444d Merge "coresight: Fix support for sparsely populated ports" 2020-05-15 20:31:10 -07:00
qctecmdr
49dec8e04f Merge "pinctrl: qcom: spmi-gpio: Add support for PMIC5 variants" 2020-05-15 20:31:10 -07:00
qctecmdr
6bc934cdfb Merge "iommu: iommu-debug: Fix functional_fast_dma test" 2020-05-15 20:31:09 -07:00
qctecmdr
1af87d2d34 Merge "i2c: i2c-msm-geni: Propagate missing changes from 4.19 to 5.4" 2020-05-15 20:31:09 -07:00
qctecmdr
28ebdbc563 Merge "arm64: add config option to enable DT overlay" 2020-05-15 20:31:09 -07:00
qctecmdr
86bcd72045 Merge "drivers: Fix compilation issues when debugfs is disabled" 2020-05-15 20:31:09 -07:00
qctecmdr
17283d7ab4 Merge "defconfig: lahaina: Enable gpu devfreq governors for GKI" 2020-05-15 20:31:08 -07:00
Guru Das Srinagesh
6c0ffc67e5 soc: altmode: Detect when remote subsys fails to respond
The remote subsystem acknowledges all Altmode PMIC GLINK messages sent
to it. Print an error message anytime it fails to do this.

In the case when no client is found for a received message, do the
sending of the ack in a separate worker thread instead of a plain
function call to altmode_send_ack(). This is to avoid a deadlock and
consequent timing out in altmode_write(), which will happen in the
following scenario:
- A message is received for a nonexistent client.
- altmode_send_ack() is called from within altmode_callback().
- The PAN ACK is sent to the remote subsystem via pmic_glink_write() in
  altmode_write() and the remote subsystem replies with an ACK (opcode
  USBC_CMD_WRITE_REQ).
- Subsequently, in altmode_write() we wait for completion timeout, which
  will happen only if this new ACK message is processed by PMIC GLINK.
- PMIC GLINK is waiting for altmode_callback() to return so that it can
  process the new message.
- We are still waiting in altmode_callback() for altmode_send_ack() to
  complete.
- We time out in altmode_write() waiting for the completion to occur.

This problem is solved by firing off a worker thread to send the PAN ACK
so that altmode_callback() can exit quickly and allow the incoming new
ACK to hit the complete() in the USBC_CMD_WRITE_REQ case in
altmode_callback().

Also add a couple of minor fixes to some debug messages while we're at
it.

Change-Id: I3d80b1a7d6cc03b0eba61b5c9cc660ce7d377942
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-15 20:15:36 -07:00
Guru Das Srinagesh
fd62b366f2 soc: altmode: Add debugfs nodes to send PAN EN and PAN ACK
Add debugfs nodes to send Pin Assignment Notifications Enable (PAN EN)
and Acknowledgment (ACK) commands manually if needed, to aid in
debugging situations where it is unclear whether clients are sending
these commands synchronously as per design.

Change-Id: I7a68d676df86cbf6952158202c8e4958db032d5b
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-15 20:15:18 -07:00
Guru Das Srinagesh
e4460cec52 soc: altmode: Remove altmode device name
Remove the device tree property "qcom,altmode-name" and the logic it
feeds as it was meant to help in the cases when there are multiple
altmode devices. Since there is going to be only one altmode device as
per design, this is no longer needed.

Change-Id: Ife15e39becee5f4ff03bdcc56ff62ae812fe2726
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-15 20:14:59 -07:00
Guru Das Srinagesh
10eb84f4f9 soc: altmode: Update client APIs, notifier bookkeeping
Client API changes:
- Update client APIs to align them more closely with upstream
  conventions.
- In particular, change the link between altmode device and client from
  the altmode device's name string to a phandle to the altmode device
  followed by the port index of the client.
- Instead of using solely the client's SVID as the key for idr_alloc,
  include port_index as well because the unique identifier of a client
  is the (SVID, port_index) tuple.

Updates to client notifying mechanism:
- Get rid of the standard notifier APIs in favour of a simpler callback
  function-based mechanism to notify clients of probe completion.
- In addition, if clients probe after altmode finishes probing, they
  will not get notified of probe completion as this is done only once at
  the end of altmode_probe(). Fix this so that if a client registers for
  probe completion notifications after altmode probes, they get notified
  immediately.

While at it, get rid of the global list of altmode devices (amdev_list)
as there will only be a single altmode device in the system as per
design.

Change-Id: Iea450d30d9cc94671f505b7ff0c6e98b0b8a4467
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-15 20:14:42 -07:00
qctecmdr
665fb058e3 Merge "defconfig: holi: Add support for Global clock controller" 2020-05-15 16:20:24 -07:00
qctecmdr
76ba36be83 Merge "radio: RTC6226: add support to scan valid lower freq channel" 2020-05-15 16:20:24 -07:00
qctecmdr
f830a6356e Merge "usb: dwc3: Use an ordered workqueue for sm_work" 2020-05-15 16:20:24 -07:00
qctecmdr
78d870eaec Merge "ALSA: Compress - dont use lock for all ioctls" 2020-05-15 16:20:24 -07:00
qctecmdr
5e78e07da3 Merge "qseecom: process smcinvoke callback request" 2020-05-15 16:20:23 -07:00
qctecmdr
f23c019559 Merge "iommu/arm-smmu: Add support for split page table domains" 2020-05-15 16:20:23 -07:00
qctecmdr
9dd8f3f7e7 Merge "defconfig: Enable CONFIG_DEBUG_FS for holi" 2020-05-15 16:20:23 -07:00
qctecmdr
7dea03f8b5 Merge "iommu/arm-smmu: Updates probe defer handle from secure_buffer" 2020-05-15 16:20:23 -07:00
Raghavendra Rao Ananta
709e5bd0a6 aarch64: ABI: Add drm_dp_check_act_status to the whitelist
Add the symbol, drm_dp_check_act_status, to the qcom whitelist
and update the ABI snapshot accordingly.

Change-Id: I239fafdd2d57b0600a130b7610777da8a5874afe
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-05-15 15:01:20 -07:00
Guru Das Srinagesh
9f5b5d0105 pwm: qti-lpg: Fix erroneous clearing of LUT
The memory allocated for the lookup table (LUT) is getting cleared even
when a valid nvmem and PBS configuration is detected. Fix this by
ensuring that this happens only when neither a LUT peripheral's address
nor a valid nvmem configuration is detected.

Fixes: 218908e848 ("pwm: pwm-qti-lpg: Refactor qpnp_lpg_parse_dt() for
readability").

Change-Id: I59467d46779e0a01bf0843863680ec2a8f85f2ce
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-15 14:59:59 -07:00
Manikandan Mohan
d307d6bfc1 cnss2: Reject idle restart if fails to get driver ops lock
Reject idle restart request if it fails to acquire driver ops lock to
avoid deadlock inside WLAN driver. E.g. Driver remove from unregister
driver request will be blocked if idle restart request is pending.

Change-Id: I5825e02961117eaaea4202812a5d2d7140799e19
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-05-15 14:35:27 -07:00
Yue Ma
0e203b4b2f cnss2: Add mutex protection between unregister driver and idle restart
Since idle restart is a multiple stages power up sequence, there will be
race conditions when idle restart and unregister driver (which is power
down sequence) come at the same time. Add mutex protection for them so
that they can be serialized completely.

Change-Id: Icc28b5f759cd690cb505b16ab70eaa4abaf2e4cc
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-05-15 14:34:24 -07:00
Sandeep Singh
e0ab3312f6 cnss2: Serialize driver load and unload
WLAN driver unload should happen only when it has been probed
successfully. So, In driver unload path wait for driver probe
to be completed or timed out if it is already in progress.

Change-Id: I3359a4286fc36aa9b2abc95c7af3ca2b6dc3a980
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-05-15 14:22:43 -07:00
Prasad Sodagudi
632d6b23ec firmware: qcom_scm: fix the arguments types information
Updated the arginfo of scm descriptor for
__qcom_scm_mem_protect_sd_ctrl scm call.

Change-Id: I0274f972eb366e1dad80d17c55b326a9a447618d
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-05-15 09:40:26 -07:00
Chandra Sai Chidipudi
b7421585bf pinctrl: qcom: Update configuration for Shima
Update pinctrl configuration for Shima, to match the
latest configuration.

Change-Id: I51de7968fd816ade7acc8857d09333d0bf4c1e94
Signed-off-by: Chandra Sai Chidipudi <cchidipu@codeaurora.org>
2020-05-15 04:31:51 -07:00
Tao,Zhang
15240475d5 soc: qcom: dcc: Set transaction timeout for dcc linklist
Set transaction timeout according to configuration for dcc linklist
while enabling dcc hw.

Change-Id: I94b60973f719c6330c039d1dc920e5bf8ecd4561
Signed-off-by: Tao,Zhang <taozha@codeaurora.org>
2020-05-15 17:02:49 +08:00
Preeti Nagar
7183d8c9a1 Enable RTIC MPGen using QGKI
Added RTIC environmental variable check. If set, this will trigger
RTIC MPGen during the kernel build. MPGen generates and embeds the
kernel MP.s (measurement parameters) to the vmlinux. It has to be
called during the kernel build, before vmlinux is generated.
RTIC MP.s to be consumed by the RTIC TA.

Change-Id: I035ea2580bef891e0a8c50c3992ecdfd48cc0a62
Signed-off-by: Preeti Nagar <pnagar@codeaurora.org>
2020-05-15 10:22:23 +05:30
Prakruthi Deepak Heragu
c2d1229d6f firmware: qcom_scm: Pass arginfo for sec_wdog_trigger
As TZ expects an argument for the sec_wdog_scm call, send 1 aergument
while making the scm call.

Change-Id: Ic24271cc08c007046c22a4a5a42b598e7f338306
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-05-14 19:57:05 -07:00
Gaurav Kashyap
c96d48845a ANDROID: dm-default-key: Update key size for wrapped keys
Wrapped keys can have key sizes of variable length.
Pass in the wrapped key size sent from userspace instead
of using a fixed value from the cipher when calling into
blk-crypto.

Bug: 156230001

Test: Validated metadata encryption with wrappedkey_v0 when /data
      is mounted on a dm device.
      fstab: metadata_encryption=aes-256-xts:wrappedkey_v0

Git-repo: https://android.googlesource.com/kernel/common/
Change-Id: I9c8bfff71eaf783427270766c419feceefb6be2d
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2020-05-14 15:33:14 -07:00
Guru Das Srinagesh
875a76755f nvmem: qcom-spmi-sdam: Enable multiple devices
Specifying the name of the nvmem device while registering it with the
nvmem framework has the side effect of causing the second instance of a
device using this driver to fail probe with the following error message:

  sysfs: cannot create duplicate filename '/bus/nvmem/devices/spmi_sdam'

Removing the name allows the nvmem framework to assign a monotonically
increasing integer id to each instance of this driver automatically,
like so:

  /sys/bus/nvmem/devices # ls
  nvmem0  nvmem1  nvmem2

Change-Id: I15acfad796babc4019cb0e6aa5ac4b880ce10f3e
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-14 14:15:40 -07:00