Commit graph

882,746 commits

Author SHA1 Message Date
qctecmdr
55aef73ec8 Merge "soc: qcom: pmic_glink: add protection domain restart (PDR) support" 2020-04-25 17:15:23 -07:00
qctecmdr
d18a2cc8ef Merge "defconfig: Disable CTI save function on perf build for lahaina" 2020-04-25 17:15:23 -07:00
Bao D. Nguyen
e393d6d93d mmc: sdhci-msm: Port fixes from previous qcom SoCs to Lahaina
Fix merge conflict and port the following sdhci-msm fixes
from previous Qualcomm's SoCs to Laihaina.

6765a55cc: Enable ADMA length mismatch err interrupt
e73832dec: make probe as async probe
b3235268a: consider clock frequency above 200MHz during DLL config.

Change-Id: I6f86349d30af5d1bd86b1d38978a83efb807c91f
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-04-25 12:26:14 -07:00
qctecmdr
7b122b1433 Merge "cnss2: Fix a issue for WLFW QMI files" 2020-04-25 12:11:03 -07:00
qctecmdr
9f83553b62 Merge "clk: qcom: lahaina: Fix stuck-off warnings during probe" 2020-04-25 12:11:03 -07:00
qctecmdr
e323b2a635 Merge "msm: adsprpc: split init process function into smaller methods" 2020-04-25 12:11:02 -07:00
qctecmdr
159f0b2070 Merge "msm: kgsl: Modify the UCHE_PF_CLIENT logic" 2020-04-25 12:11:02 -07:00
qctecmdr
dc16898fb3 Merge "msm: kgsl: Add a requeue list for unprocessed dispatcher jobs" 2020-04-25 12:11:02 -07:00
qctecmdr
d24d1c89a7 Merge "spmi: spmi-pmic-arb: add debugfs support for address mapping" 2020-04-25 12:11:01 -07:00
Nurit Lichtenstein
5571c4ad86 soc: qcom: spss_utils: Modify memory unmapping
scheme for cmac_mem

IAR maps cmac_mem once and assumes it is mapped
from this moment onward. Therefore, move the
the call to iounmap(cmac_mem) to the remove() function.

Change-Id: I5afa3de900e4766520c106882e2485d6c335c54d
Signed-off-by: Nurit Lichtenstein <nuritl@codeaurora.org>
2020-04-25 21:43:32 +03:00
Nurit Lichtenstein
3a7b9a6034 soc: qcom: spss_utils: Port IAR spss_utils code to Lahaina
Integrate IAR spss_utils code to Lahaina. this is a manual
integration of 06ef7b7b.

Change-Id: Ib3e6665de625e696643b055cfcde022e65b5cee7
Signed-off-by: Nurit Lichtenstein <nuritl@codeaurora.org>
2020-04-25 21:40:26 +03:00
Akash Asthana
4d551a98c2 spi: spi-msm-geni: Convert IB vote into KHz unit
As ICC driver except clients votes in KHz/KBps unit, so change SPI
IB votes from Hz to KHz.

Change-Id: If9c84c3b086514ae7398a04e8c9cd2de99d658eb
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-04-25 07:33:55 -07:00
Mao Jinlong
a10a91c5cd defconfig: Disable CTI save function on perf build for lahaina
Disable CTI save function on perf build to avoid the power and performance
issue.

Change-Id: Ic1a758418072248fa898e012ddb6f8d556efff22
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-04-24 18:50:41 -07:00
Fenglin Wu
4d50efee0b input: misc: qcom-hv-haptics: Add support to play custom waveform
Custom waveform with FIFO data samples and play rate setting would
be passed down from userspace through custom_data memory in periodic
effect data structure. Load the waveform into FIFO memory and play
it using FIFO mode.

Meanwhile, correct a typo in F_16KHZ definition.

Change-Id: I26b78df809efbe398c91c89394152caebafbe1b6
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-04-25 09:27:26 +08:00
David Collins
a281d3af52 spmi: spmi-pmic-arb: add debugfs support for address mapping
Add debugfs support to exercise the SPMI address to SoC address
range mapping feature.

Change-Id: If10568dd0adcfb695d1ec5f4b0e81f9b4a3009cd
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-04-24 16:42:08 -07:00
qctecmdr
3f5605dd39 Merge "mhi: core: fix error handling in time synchronization function" 2020-04-24 15:45:25 -07:00
qctecmdr
3a2d617606 Merge "platform : msm-geni-se: fix voting unit for bus bandwidth" 2020-04-24 15:45:24 -07:00
Elliot Berman
ab63cdb084 arm64: defconfig: Enable Haven ctrl for Lahaina
Enable Haven ctrl nodes for Lahaina. Keep Haven's UART enabled on debug
defconfig.

Change-Id: I288a5458a17edd583169bd29bd39376475617e6b
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-04-24 15:35:13 -07:00
Elliot Berman
4e4bfd0293 arm64: defconfig: Enable Haven ctrl on genericarmv8
Enable Haven ctrl on genericarmv8 defconfig.

Change-Id: I4d8a2365fa595611f8f726a9f3ed45b07f86cb40
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-04-24 15:35:07 -07:00
Elliot Berman
ea1de79279 haven: add sysfs and debug interfaces
This patch adds the /sys/hypervisor sysfs interface for the Haven
hypervisor. When running hosted on the Haven hypervisor, this interface
provides the Haven API and version information, and an interface for
controlling debug features. Haven also provides a call to disable its
UART driver. Disabling Haven's UART driver is exposed through a Kconfig
option.

Change-Id: I2a5ca7b01487e01e2d1dd56f5d15e826e70af081
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-04-24 15:34:56 -07:00
Urvashi Agrawal
c6f0e3f9d6 msm: kgsl: Modify the UCHE_PF_CLIENT logic
A660 does not need the complex two-dimensional array logic
to identify the UCHE faulting client. Simplify the logic for A660.

Change-Id: I30083734afbc7a87ddc3a403c14f3bd23ee2e3d1
Signed-off-by: Urvashi Agrawal <urvaagra@codeaurora.org>
2020-04-24 14:54:12 -07:00
Mayank Rana
6de2b5d95d dwc3-msm: Check EUD based spoof disconnect state on resume
Resuming from system suspend after handling EUD based spoof disconnect,
USB enumeration is not supposed to start until EUD based spoof connect
is notified. Hence check EUD based spoof disconnect flag before updating
vbus_active.

Also log important USB inputs state with dwc3_ext_event_notify() API
using dbg_log_string() instead of dev_dbg().

Change-Id: Iaf3ff08521248d0d59867d4dbcfdabc24d382bae
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-04-24 12:46:09 -07:00
Himateja Reddy
458ce0a87b msm: adsprpc: split init process function into smaller methods
Split up the different cases of "fastrpc_init_process" (like
static versus dynamic process create) into smaller functions, to
reduce the complexity of the function. Add utility function for
registering the service locators for remote process restart
notifications, to reduce code duplicity.

Change-Id: I7a0fb777c9d0b9a20e5f473c57aec0e647ec0e3b
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-04-24 10:21:50 -07:00
qctecmdr
a22aea40af Merge "msm: cvp: Support DSP to CPU reverse rpmsg" 2020-04-24 10:11:48 -07:00
qctecmdr
178e027794 Merge "cfg80211: More error messages for key addition failures" 2020-04-24 10:11:48 -07:00
qctecmdr
70a749bbec Merge "usb: dwc3: Do not process request if HWO is set for its TRB" 2020-04-24 10:11:47 -07:00
qctecmdr
2add728de7 Merge "msm: kgsl: Increase the SVM and non-SVM address space" 2020-04-24 10:11:47 -07:00
Liam Mark
4abcdc70ab defconfig: lahaina: Enable DMA_CONFIGURE_ALIGNMENT
Enable support for configuring IOVA alignment since some IOMMU clients
don't require any IOVA alignment and therefore would benefit from the
reduced fragmentation that would result.

Change-Id: Ide09a63d2efe1256d3424a9cebee4f330c07ca02
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-04-24 10:01:26 -07:00
Patrick Daly
2281bbc545 iommu/iova: Support disabling domain iova alignment
Currently the IOVA framework automatically applies IOVA alignment to
provided IOVAs based on the requested IOVA size and the alignment configs
which are enabled.

Some clients who don't require any IOVA alignment would benefit from the
reduced fragmentation that would result from disabling IOVA alignment.

Add support to allow clients to disable IOVA alignment on an IOMMU domain.

Change-Id: Ifa6a75576e7a084c443abf38726d790b883f00b3
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
[lmark@codeaurora.org: cleanup change]
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-04-24 09:47:46 -07:00
Mukesh Kumar Savaliya
87170d10b3 platform : msm-geni-se: fix voting unit for bus bandwidth
Bandwidth vote values were being applied as Bytes-per-second but
the interconnect framework expects Kilobytes-per-second units. Fix
the error by using unit conversion macros provided by the
interconnect interface.

Change-Id: If2e921b7213e7f61459930b9739c6fa0c0257bf9
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-04-24 17:44:13 +05:30
Anmolpreet Kaur
9c9fa8987e smcinvoke: Port smcinvoke driver changes
This change ports the recent changes made in
smcinvoke driver from kernel 4.19 branch to 5.4
branch. List of changes:

- mink: fix race condition in cb server exit
- mink: Add support of yield() interface in smcinvoke
- mink: fix incorrect server release
- SMCInvoke: Process requests for active clients
- smcinvoke: Add suspend resume support
- smcinvoke : Add logging in smcinvoke driver
- smcinvoke: Remove workqueue has sleeper
- smcinvoke : Add locking to shared variables.

Change-Id: Ica3c61470e75e3ef252f65e3c031613305710bdb
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-04-24 16:14:26 +05:30
Jouni Malinen
6c3e007eb4 cfg80211: More error messages for key addition failures
These were helpful while working with extensions to NL80211_CMD_NEW_KEY,
so add more explicit error reporting for additional cases that can fail
while that command is being processed.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Link: https://lore.kernel.org/r/20200222132548.20835-1-jouni@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-repo : git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: f8af764bf1cb86bed615baae84e3bbb6e4d3912d
CRs-Fixed: 2671591
Change-Id: Ib3ccbec2914b3f1c8e4ce0039d04b09020f362e4
Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
2020-04-24 15:51:26 +05:30
Sriharsha Allenki
e24e42fa12 usb: dwc3: Do not process request if HWO is set for its TRB
If the HWO bit is set for the TRB (or the first TRB if scatter-gather
is used) of a request, it implies that core is still processing it.
In that case do not reclaim that TRB and also do not process
the request and give it back to the function driver.

Change-Id: Ia9fbaee443ad53d9a52909b0906a1d0ec1f2638a
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-04-24 01:41:58 -07:00
Bhaumik Bhatt
0ddedbe5f1 mhi: dev: netdev: inherit IPC log level from controller
Make network interface devices inherit log levels from the
controller to allow level switches to reflect across MHI
clients.

Change-Id: I2412a738ba297031740d10570478c42f83b45c25
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-24 00:52:07 -07:00
Bhaumik Bhatt
db949d93e3 mhi: dev: uci: inherit IPC log level from controller
Make userspace control interface devices inherit log levels
from the controller to allow level switches to reflect across
MHI clients.

Change-Id: Id8526f11acc1a0852811f9c78d7d7f073aa5c724
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-24 00:46:00 -07:00
Ajay Prathi
db020cea6f arm64: defconfig: Enable SPS driver for Lahaina
Enable SPS driver for Lahaina GKI version.
SPS (Smart Peripheral System) enables the support of
all BAMs in the system which provide DMA
functionality to various peripherals.

Change-Id: I4a9f2f26182626141d268558952fe42eaa16c368
Signed-off-by: Ajay Prathi <aprathi@codeaurora.org>
2020-04-24 08:34:07 +05:30
Subbaraman Narayanamurthy
0c4f3da07e soc: qcom: pmic_glink: add protection domain restart (PDR) support
Add support for PMIC Glink clients to receive notification when
the protection domain (e.g. charger PD) goes down and comes up
again. Similar to SSR (subsystem restart), PMIC Glink client can
pass a function pointer state_cb via which they would like to
receive when PMIC Glink state transitions so that they can
unregister from the framework (e.g. UCSI) and clean up their
state as needed.

PMIC Glink device supports PDR for the subsystem specified under
"qcom,protection-domain" property.

Change-Id: I178d3600cb9de0d2462df2cda76c80210963fbcf
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-04-23 19:27:11 -07:00
Elliot Berman
a7f85f2873 haven: rm: Update dt parsing to match Haven-supplied nodes
Haven hypervisor provides RM dt entries in a slightly different format
than has been used. Namely: the compatible string, capids are now
described by "reg" property, VMID/owner vmid is in a sibling DT node,
and names of some properties are changed. Thus, update RM driver to
parse accordingly. Common message queue dt parsing was moved into the
msgq driver helper function "hh_msgq_probe".

Change-Id: If3fe026bb6055267705a19d8ed7fd90ef0934270
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-04-23 18:42:52 -07:00
Urvashi Agrawal
0617daba9d msm: kgsl: Add GMU registers to the A660 snapshot
A660 has some new GMU registers which needed to
be added to the snapshot.

Change-Id: I21bff35edf08e287e986161fbe52afe5de870b9b
Signed-off-by: Urvashi Agrawal <urvaagra@codeaurora.org>
2020-04-23 16:03:04 -07:00
Zhen Kong
3d96e601a6 firmware: qcom: add encrypted tz and qsee log support
make changes to support encrypted tz and qsee logs.

Change-Id: I4ad882845507f512a1a3edccbf6cb2d07bd3af5c
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2020-04-23 13:55:18 -07:00
Urvashi Agrawal
06f54444e3 msm: kgsl: Increase the size of the snapshot for A660
Increase the snapshot size in A660 from 1MB to 2MB,
if the allocation fails fallback to 1MB.

Change-Id: I2186a1547d6ffc51060e3bd8cafb45c65ac270b1
Signed-off-by: Urvashi Agrawal <urvaagra@codeaurora.org>
2020-04-23 13:18:02 -07:00
Jeykumar Sankaran
4fb4d222f9 haven: display: add IRQ label for display
Add IRQ label for display IRQ line.

Change-Id: Idf51363aba39242dd776443cd64b6e4980cf8ce3
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2020-04-23 12:51:01 -07:00
Jeykumar Sankaran
db4bdb31b4 haven: display: add display notify tag for memory sharing
Add display specific tag for memory sharing notifications.

Change-Id: I5cdad2c4e99fab7d3c71ae9e5865f99bfe5ccb05
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2020-04-23 12:47:24 -07:00
Isaac J. Manjarres
7d2cc55e53 arm64: defconfig: Enable CONFIG_HH_MEM_NOTIFIER
Enable the Haven memory notification framework to multiplex
memory resource notifications amongst clients for memory
resources on Lahaina and the trusted VM.

Change-Id: I4450d78ea58e01c57fdd65e734ceee7f91b1e4c8
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-04-23 11:43:44 -07:00
Isaac J. Manjarres
f1b97c8d6d haven: Introduce a memory sharing notification framework
Supplement the existing Haven memory resource notification
interface with a framework that can be used to dispatch
notifications about memory resources being shared/released
to the resource owners.

Change-Id: Ibbc14f4b29d68ffb1a9d6b035c79867783872225
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-04-23 11:43:37 -07:00
Yue Ma
fa920d7dbf cnss2: Update WLFW QMI messages to latest
Update WLFW QMI messages to latest to avoid merge conflicts later.

Change-Id: I39460e385fe49c64ee5eca3a910a3e0d1a08b0b2
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-23 11:02:16 -07:00
Yue Ma
0b60163c41 cnss2: Fix a issue for WLFW QMI files
For wlfw_host_ddr_range_s_v01_ei from wlfw_host_cap_req_msg_v01_ei
message, the TLV type should be 0x1F instead of 0x1E.

Change-Id: I0221aeb79d15c0216356ad451bd5f10ab72b0468
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-23 11:01:58 -07:00
qctecmdr
d5ee68b825 Merge "dwc3-msm: Skip querying speed and cc_state with EUD extcon device" 2020-04-23 08:57:45 -07:00
qctecmdr
6cd86f4ad7 Merge "soc: qcom: spcom: enable config spcom as DLKM for GKI" 2020-04-23 08:57:44 -07:00
qctecmdr
e9a988cd7f Merge "cnss2: Add platform driver code to handle hang event data" 2020-04-23 08:57:44 -07:00