Commit graph

884,342 commits

Author SHA1 Message Date
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
qctecmdr
fc207164d8 Merge "cnss2: Update WLFW QMI host cap message" 2020-04-23 04:14:55 -07:00
qctecmdr
e870855626 Merge "cnss2: Skip link down recovery if link has been recovered by retry" 2020-04-23 04:14:53 -07:00
qctecmdr
4643c9d658 Merge "clk: qcom: clk-alpha-pll: Add support for Agera print registers" 2020-04-23 04:14:53 -07:00
qctecmdr
9a52eb776c Merge "cnss2: Add SRAM dump in pci dump collection" 2020-04-23 04:14:53 -07:00
qctecmdr
4b59da9515 Merge "tmc-etr: Check if it is mode switch action during disable etr" 2020-04-23 04:14:52 -07:00
qctecmdr
fc3cca74ab Merge "clk: qcom: gdsc-regulator: Add support for votable GDSCs" 2020-04-23 04:14:52 -07:00
Konstantin Dorfman
3987476053 soc: qcom: spcom: enable config spcom as DLKM for GKI
This change enables spcom driver configuration as DLKM for GKI.

Change-Id: Ica83f7b5cec28ab227250e72c3ae09e6bef1a906
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2020-04-23 09:41:04 +03:00
Mohammed Siddiq
dd5833c6d4 cnss2: Add platform driver code to handle hang event data
On SSR, FW writes hang data in the carved out region from
existing DDR memory, the platform driver copies the hang
event data from the fixed offset to local buffer and sends
the buffer and length to host driver via CNSS_HANG_EVENT
event.

Change-Id: I5928821770086547b4fe17c30a967ea059b39394
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-04-23 11:50:33 +05:30
qctecmdr
467622935a Merge "cnss2: update firmware name for QCA6490 rev.2.0" 2020-04-22 22:37:48 -07:00
qctecmdr
f1457cf3a9 Merge "input: touchscreen: focaltech_touch: Configure power supply" 2020-04-22 22:37:48 -07:00
qctecmdr
f98f120507 Merge "mhi: core: Prevent MHI reg read upon endpoint crash" 2020-04-22 22:37:48 -07:00
qctecmdr
17da67d66a Merge "wigig_sensing: print burst size" 2020-04-22 22:37:47 -07:00
qctecmdr
186ebf81a9 Merge "msm: kgsl: Add CP_APRIV_CNTL and CP_SMMU_STREAM_ID regs to snapshot" 2020-04-22 22:37:47 -07:00
qctecmdr
64823aedd3 Merge "arm64: defconfig: Add support for torture tests on Lahaina" 2020-04-22 22:37:46 -07:00
Subbaraman Narayanamurthy
794c02be95 soc: qcom: service-locator: update types in get_service_location()
Currently, get_service_location() expects "char *" for client
name and service name from clients. Update this to "const char *"
as they're not supposed to be changed by service locator. This
also helps clients to pass a "const char *" when it reads
strings from device tree using of_property_read_string_index().

Change-Id: I98d32524151b2486863e7fd51c56bc8f16262808
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-04-22 19:21:30 -07:00
Mao Jinlong
0f06d1e6aa tmc-etr: Check if it is mode switch action during disable etr
When switch mode with etr being enabled more than one time, it needs
to reset all the etr settings for previous mode instead of return busy.

Change-Id: I243a6d910bb3dd8ac9ca30dadbd1c6ab3cefd00f
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-04-22 19:20:23 -07:00
Manikandan Mohan
4fe0a8704a cnss2: Add SRAM dump in pci dump collection
Add SRAM dump in PCI dump collection on crash shutdown
path.

Change-Id: I976f2f2883eb1dfcca180228137382aa14146084
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-04-22 18:59:20 -07:00
Yue Ma
cd68afdcc7 cnss2: Skip link down recovery if link has been recovered by retry
There is no need to proceed link down recovery if link has been recovered
by retries during power on sequence.

Change-Id: I876f2e239b519d4230b5c115cdc05ff7650f5cd1
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-22 17:14:11 -07:00
Yue Ma
2b247445d3 cnss2: Update WLFW QMI host cap message
Update new field to WLFW QMI host cap message.

Change-Id: Id2ca69b9b27f68a827baa69239c41ee76f324430
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-22 17:01:48 -07:00
Yue Ma
e6437c634f cnss2: Add support to send host SMMU IOVA range to firmware
With the valid SMMU IOVA range WLAN firmware is able to detect invalid
host DDR access before SMMU fault happens.

Change-Id: I3a3aac4e1da7bb7747bfe3b352df33fc87221860
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-22 17:00:18 -07:00
Chris Lew
85c2118a11 neuron: block_client: Wait for channel to init
Wait until all conditions are met instead of busy looping to check if
the channels are finished initializing.

Change-Id: I50bd3bad6ccf3f4957ed0a98cdceed45d49fe851
Acked-by: Chris Henroid <chenroid@qti.qualcomm.com>
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-04-22 16:14:07 -07:00