Commit graph

889,574 commits

Author SHA1 Message Date
qctecmdr
eb69de564d Merge "pinctrl: qcom: Update configuration for Shima" 2020-05-18 03:55:12 -07:00
qctecmdr
23da5f5a93 Merge "PM / devfreq: qoslat: implement get_dev_status()" 2020-05-18 03:55:12 -07:00
qctecmdr
7c117711a4 Merge "cnss2: Enable io-coherency" 2020-05-18 03:55:11 -07:00
qctecmdr
b085b73a1f Merge "clk: qcom: Add common regulator handle initialization" 2020-05-18 03:55:11 -07:00
qctecmdr
2626b594a4 Merge "defconfig: Enable Glink over RPM defconfig for Holi" 2020-05-18 03:55:11 -07:00
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
Liangcai Fan
a076f3ab46 ANDROID: ABI/Whitelist: add ufs whitelist to unisoc whitelist
Update whitelist for the symbols used by the unisoc device of and
updates the ABI representation accordingly.

add list:
  - ufs
  - thermal

Leaf changes summary: 8 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 8 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

8 Added functions:

  [A] 'function int pcim_iomap_regions(pci_dev*, int, const char*)'
  [A] 'function void* const* pcim_iomap_table(pci_dev*)'
  [A] 'function int ufshcd_alloc_host(device*, ufs_hba**)'
  [A] 'function void ufshcd_dealloc_host(ufs_hba*)'
  [A] 'function int ufshcd_init(ufs_hba*, void*, unsigned int)'
  [A] 'function int ufshcd_runtime_idle(ufs_hba*)'
  [A] 'function int ufshcd_runtime_resume(ufs_hba*)'
  [A] 'function int ufshcd_runtime_suspend(ufs_hba*)'

Bug: 147075469
Change-Id: Ic8b5360b4b6446244a3429603c1f9c6988823578
Signed-off-by: Liangcai Fan <liangcai.fan@unisoc.com>
2020-05-18 11:12:37 +08: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
Alistair Delva
2ae23d00ca ANDROID: GKI: Enable net testing options
Required for various networking tests.

Bug: 144061615
Change-Id: I6fe668b17c5e9b1c632542603167c8d27fcec567
Signed-off-by: Alistair Delva <adelva@google.com>
2020-05-16 04:34:15 +00: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
Eric Biggers
1184ff999d ANDROID: fscrypt: set dun_bytes more precisely
Make fscrypt set dun_bytes to only what it actually needs, so that it
can make use of inline crypto hardware in more cases.

Bug: 144046242
Bug: 153512828
Change-Id: I36f90ea6b64ef51a9d58ffb069d2cba74965c239
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-05-15 22:01:49 +00:00
Eric Biggers
17731f1f03 ANDROID: dm-default-key: set dun_bytes more precisely
Make dm-default-key set dun_bytes to only what it actually needs, so
that it can make use of inline crypto hardware in more cases.

Bug: 144046242
Bug: 153512828
Change-Id: I338e6444e71be9c7c16ce70172d14a8e05301023
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-05-15 22:01:41 +00:00
Eric Biggers
1af79e47ae ANDROID: block: backport the ability to specify max_dun_bytes
Backport a fix from the v7 inline crypto patchset which ensures that the
block layer knows the number of DUN bytes the inline encryption hardware
supports, so that hardware isn't used when it shouldn't be.

(This unfortunately means introducing some increasing long argument
lists; this was all already fixed up in later versions of the patchset.)

To avoid breaking the KMI for drivers, don't add a dun_bytes argument to
keyslot_manager_create() but rather allow drivers to call
keyslot_manager_set_max_dun_bytes() to override the default.  Also,
don't add dun_bytes as a new field in 'struct blk_crypto_key' but rather
pack it into the existing 'hash' field which is for block layer use.

Bug: 144046242
Bug: 153512828
Change-Id: I285f36557fb3eafc5f2f64727ef1740938b59dd7
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-05-15 22:01:33 +00: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