Commit graph

882,728 commits

Author SHA1 Message Date
qctecmdr
e2267310b5 Merge "firmware: qcom: add encrypted tz and qsee log support" 2020-04-29 03:27:31 -07:00
qctecmdr
8841bd70d4 Merge "haven: rm: Add support to get hypervisor resources" 2020-04-29 03:27:31 -07:00
qctecmdr
da6a98b89c Merge "msm: kgsl: Allow compatible string matching for gpu devices" 2020-04-29 03:27:30 -07:00
Mohammed Nayeem Ur Rahman
103555a45c msm: adsprpc: Driver capability
Allows the client to query the driver for driver capabilities.
Helpful for maintaining backwards compatibility in future.

Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Change-Id: I82b2e05eae0241dd8cef22f07845998cae739395
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-04-29 15:14:18 +05:30
Isaac J. Manjarres
458ed8c916 iommu/arm-smmu: Fix tbu_ids type in qsmmuv500_tlb_sync_timeout()
qsmmuv500_tlb_sync_timeout() uses for_each_set_bit() to iterate
through the TBU IDs. However, for_each_set_bit() operates on
unsigned longs, while tbu_ids is a u32 variable. Change the type
of tbu_ids to unsigned long.

Change-Id: If59eedebb21d388f864a0e2579f8af6bb1fc0b75
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-04-29 00:27:15 -07:00
Isaac J. Manjarres
7125eb64ce soc: qcom: mem-buf: Fix NULL pointer dereference when assigning memory
The xfer_mem pointer is dereferenced before sanitizing it, so use it
only after it has been sanitized.

Change-Id: Iaedd988903f012e647dcfee9bbe7905e0a4574eb
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-04-29 00:06:09 -07:00
Akhil P Oommen
2d6f044f6b msm: kgsl: Fix preemption fault handling for A6xx GPU
In preemption fault handler, check only the STOP bit of
ADRENO_REG_CP_PREEMPT register to see if the preemption is complete.

Change-Id: Id1f2d0947412e996d6028558124c3e528527cec6
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Signed-off-by: Sebanti Das <sebadas@codeaurora.org>
2020-04-28 23:36:59 -07:00
Hemant Kumar
7408b234a3 mhi: controller: Enable L1 when mhi is not active
offload worker checks if mhi is active before doing the reg
write. If mhi is not active it returns without enabling L1.
This causes prevent_l1 counter to go out of sync. Fix this
by enabling L1 before returning from offload worker function.

Change-Id: I8a356acca3d8b8a7b4ff4d95e7378a056a2b06cf
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-28 23:22:24 -07:00
Hemant Kumar
574f72b01f mhi: controller: qcom: Enable MHI register write offload support
When PCIe endpoint enters L1SS sleep and mhi client on Host tries
to queue a transfer request endpoint takes more than 6ms to come
back to L0 state. This can cause CPU stall if MHI register write
is followed by a write memory barrier. This can cause other tasks
to get blocked. Prevent this situation by offloading MHI register
write to a high priority worker thread when in AMSS. When thread gets
a chance to run it would first bring the link to L0 and then perform
register write.

Change-Id: I1b4839801df140fc50973e92e2522eb57d2897fa
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-28 23:21:51 -07:00
Shyam Kumar Thella
b789e7bf6e input: qcom-hv-haptics: add RC clock calibration for FIFO mode
As per the hardware documentation, adjust T_LRA using RC clock
calibration when playing in FIFO mode with play rate not less than
8 KHz. Based on the closed loop T_LRA, adjust the open loop T_LRA
specified in the device tree and use it in the calculation.

Change-Id: I5197bd04051c2aaab38c5ff5f37a47e0ef4b48d3
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-04-29 10:41:13 +05:30
Jeevan Shriram
90711737ad ARM: build correct dtbs to append to zImage
The boot/dts/Makefile and boot/dts/*/Makefile provide DTB_LIST which is
equal to dtb-y when CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE=y.
Include these Makefiles to build dtbs for dtb appended zImage.

Change-Id: Ib8218135dc923d1ba4098d74dbd7da159368a188
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
[abhimany: resolve trivial merge conflict]
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
[sramana: Fixed merge conflicts]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
[jshriram: Fix trivial merge conflicts]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
[akdwived: Fix trivial merge conflicts]
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2020-04-28 20:56:22 -07:00
Jeevan Shriram
56f0491c1e arch: arm: generalise ARCH_QCOM platform
generalise ARCH_QCOM platform to support new 32-bit
qcom platforms.

Change-Id: I412a83a2f756b02d6b521983501de780835dc118
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
[akdwived: Added "select GENERIC_IRQ_MIGRATION" with hotplug]
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
[snaseem@codeaurora.org: Resolve merge conflict]
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
[tengfeif@codeaurora.org: Remove duplicate config included in bengal]
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
[jshriram: Fix merge conflicts]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-04-28 20:56:17 -07:00
Srinivas Ramana
de3e3d848b mach-qcom: add support to populate dt nodes for 32-bit platforms
Add support to populate device tree nodes for the new
32-bit platforms under under mach-qcom.

Change-Id: I5fd747de84917c16f28f3f72d7b34b5db157637c
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-04-28 20:56:11 -07:00
Pavankumar Kondeti
260fab38d8 sched/walt: Remove fixup_walt_sched_stats sched_class method
fixup_walt_sched_stats method in sched_class was required because
fair class need to handle it differently when CFS_BANDWIDTH feature
is enabled. Since that is gone, we can remove this method and reduce
WALT footprint in other files.

Change-Id: Ia20c4accf9beb9f79554636c8faced3d31358622
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[clingutla@codeaurora.org: Resolved trivial merge conflicts]
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
2020-04-28 20:41:45 -07:00
Lingutla Chandrasekhar
4946953476 sched: walt: Remove CFS_BANDWIDTH support in WALT
WALT load tracking supports CFS_BANDWIDTH, which is not enabled for
Android and no users available for it. Remove it.

Change-Id: I4f3c66a1b567976aadb4a4f91a3dd66230386981
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-04-28 20:37:43 -07:00
Pavankumar Kondeti
9c82d639c7 sched/walt: remove references to unused sched_disable_window_stats
sched_disable_window_stats was used while resetting the window
size in legacy code. The current code does not use this anymore.

Change-Id: If77dcfcae917a6632125d205db9082e6b25ccbf6
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-04-28 18:57:43 -07:00
Shaleen Agrawal
dc8050ca5d sched: fair: Improve the Scheduler
This change is for general scheduler improvement.

Change-Id: I92c13d8e6681adb2655a1dae1b5c92fd0fe32166
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
2020-04-28 18:57:12 -07:00
qctecmdr
f69d3db037 Merge "msm: kgsl: Add check not to decrement refcount when debug_fs is disabled" 2020-04-28 13:12:18 -07:00
qctecmdr
e3f797128a Merge "mhi: core: create sysfs nodes before devices" 2020-04-28 13:12:18 -07:00
qctecmdr
9bc4396584 Merge "mhi: cntrl: qcom: remove boot monitor thread to use status cb" 2020-04-28 13:12:17 -07:00
qctecmdr
4bb5eb96b4 Merge "defconfig: lahaina: Enable DMA_CONFIGURE_ALIGNMENT" 2020-04-28 13:12:17 -07:00
Jordan Crouse
cb46fc6e25 msm: kgsl: Check for an OPP table without accidentally creating one
Commit 789e044344 ("msm: kgsl: Don't populate the OPP table if it
already exists") tried to avoid duplicating the OPP table but used
dev_pm_opp_get_opp_table() which creates a table if it didn't already
exist so the if() check was always true and we never populated the
table which in turn caused devfreq to fail because the table was empty.

All we really wanted to do was check to see if the table existed
without a nasty message from the OPP subsystem. Checking
dev_pm_opp_get_opp_count() should do that without any ugly side effects.

Change-Id: Ic0dedbadf81a1917b756144e762a6600a84863ca
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-04-28 13:49:43 -06:00
Mohammed Nayeem Ur Rahman
5cfc6d2291 msm: adsprpc : Change to resolve undefined behaviour
Resolving the undefined behaviour scenario where if adsp proc
init fails return error and not to goto bail to deinitialize
memory and unlock mutex.

Change-Id: Idf107aa340a211edec9121249e090c3e7c0e2200
Acked-by: Gururaj Chalger <gchalger@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-04-28 22:01:54 +05:30
qctecmdr
bca5c0fffa Merge "drivers: qmi_sensor: Add support for mmw ADC thermistors" 2020-04-28 07:42:07 -07:00
qctecmdr
c3669a6bbc Merge "sched: rt: print sched_rt_runtime during throttling" 2020-04-28 07:42:07 -07:00
qctecmdr
c4b03962f3 Merge "mhi: core: block low power modes only in mission mode" 2020-04-28 07:42:06 -07:00
qctecmdr
9b3bcd0a43 Merge "cnss2: Clear host driver ops if register driver gets killed" 2020-04-28 07:42:06 -07:00
Saurabh Sahu
bf1bf3d83d clk: qcom: gcc-holi: Add GCC support for HOLI
Add support for Global Clock Controller for peripheral clock
clients to be able to request for the clocks for HOLI.

Change-Id: I65b34b1bd6de0a9d1fc871984026e20bb56f43ed
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-04-28 16:46:36 +05:30
Taniya Das
912a4128f4 dt-bindings: clk: gcc: Remove vsensor clock ID for Holi
The vsensor clock is not required to be controlled from HLOS, thus
remove the clock ID reference.

Change-Id: I096b70d9a9dbc5cffe7e4e13a947328766fa1307
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-04-28 16:44:57 +05:30
Mao Jinlong
6ce22978d1 tmc-etr: Add ETR status check in usb_notifier
It is possible that notify call is called after etr is disabled or
after mode switch from usb to etr. Add etr status check to avoid
exception.

Change-Id: I4feb36df28b6fc059598af98b6fb9ccf698d3aaf
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-04-28 01:22:43 -07:00
Hemant Kumar
70f0d2aabd mhi: core: Add support to re-try requesting firmware image
In case firmware request fails to find firmware in default
location, re-try with fall back location. This is done by
adding fall back firmware image location in controller
structure and firmware request is sent again using fall
back location. Send a status call back to controller when
re-try is done.

Change-Id: I252fa2721df335cbff11b8894adb9ad8cf7bf54f
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-27 20:15:00 -07:00
qctecmdr
5bd24ffbc4 Merge "soc: qcom: Add RPM SMD Driver" 2020-04-27 18:02:44 -07:00
qctecmdr
e03730187b Merge "cnss2: Add code to pick hang data offset based on deviceID" 2020-04-27 18:02:44 -07:00
Meng Wang
ec5cd505b1 uapi: sound: remove redundant QGKI config checks
Userspace does not have access to QGKI configs,
so remove redundant QGKI config checks.

Change-Id: Ia8126e976e5189c0160044f1656709a5692743db
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-04-27 16:25:20 -07:00
Meng Wang
6ad843ab57 Revert "ASoC: msm: fix integer overflow for long duration offload playback"
This reverts commit fdaacf0468.

Change-Id: Id52223e0f1af18a1427674f03d8971dff9420b77
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-04-27 16:24:47 -07:00
Meng Wang
b2cffb57cd Revert "ALSA: uapi: add new macro SNDRV_AUDIO_QGKI"
This reverts commit dc7bb91d61.
The change has been done in userspace. This change is not
needed anymore.

Change-Id: Ie49a4263a2a4760e0538cee4d462654f1f8ac21f
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-04-27 16:24:33 -07:00
qctecmdr
5626116d5a Merge "usb: gsi: Allocate strings IDs for functions on every bind" 2020-04-27 13:03:00 -07:00
qctecmdr
fb8f0234a7 Merge "phy: ufs-qcom: Update offsets for Lahaina" 2020-04-27 13:02:59 -07:00
qctecmdr
06c5838be5 Merge "spi: spi-msm-geni: Convert IB vote into KHz unit" 2020-04-27 13:02:59 -07:00
Yue Ma
95d28c8aec cnss2: Clear host driver ops if register driver gets killed
Avoid any host driver ops access after register driver gets killed
by marking it as NULL.

Change-Id: Idd268d5d8d31569c4272fde566866c4d79bc1cad
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-27 11:59:39 -07:00
Prakruthi Deepak Heragu
8b11d9697c msm: kgsl: Add check not to decrement refcount when debug_fs is disabled
As there is no increment in ref_count on context when debug_fs is
disabled, ensure there is no decrement in ref_count either.

Change-Id: I8da258a78a8b82ee967b1c944209f6777439e682
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-04-27 10:58:52 -07:00
Elliot Berman
23f7911bfe haven: dbl: Make hh_dbl_ functions wait for capid availability
Client drivers may successfully register with a doorbell even before
doorbell capids are known to Linux. However, we do need to know capids
for send, read, reset, and mask functions. Here, we mirror the behavior
of message queues by placing the calling thread in a waitqueue until the
capids are populated by RM.

Change-Id: Ie1cf98d0fe344bb2a878bb655db78705d4292ff9
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-04-27 10:51:10 -07:00
Chris Lew
90f8f682ed neuron: ch_haven: Move msgq init to sync thread
The neuron channels may init and probe before the secondary vm is
loaded and the resources queried from resource manager. This results
in either a blocking call or EAGAIN returned when sending a doorbell.

Move the msgq_init call from the probe to the channel sync thread. This
will ensure the init thread can continue if the doorbell send api needs
to block or busywait loop.

Change-Id: I0f5562968d59a3dc0a361aca9e4e60ffebcb70be
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-04-27 10:51:09 -07:00
Elliot Berman
d5e23615ea haven: dbl: Support registration before dbl probe, resource population
Currently, doorbell registration fails if a client driver attempts to
probe before the doorbell probe since data structures are not
initialized. Add an initialized flag which registration functions can
check if data structures are initialized.

Doorbell RX registration also fails if done before cap table is
populated since RX IRQ is not yet known and RX registration attempts to
register IRQ handler. IRQ registration should happen when populating the
doorbell capabilities regardless of whether a client has registered.

Change-Id: I448b291a5885683bee48b2eb34b51faba69a03bf
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-04-27 10:51:09 -07:00
Elliot Berman
90bc10978d haven: dbl: Initialize cap ids to HH_CAPID_INVAL
Currently, the cap-ids for doorbells are initialized to 0. However, 0 is
a valid value for cap-id. Instead, initialize cap-ids to HH_CAPID_INVAL
in the doorbell driver.

Change-Id: Ia1588ed372f0657444e1ab39eab9e6c1e6d3d156
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-04-27 10:51:08 -07:00
Murali Nalajala
cfa1320d7f soc: qcom: guestvm loader enhancements
RM-VM(Resource Manager) send various vm status notifications(INIT/READY/
RUNNING etc) back to primary VM while PIL loader is loading the VM
images. Listern to these notifications and make a call to get the
hypervisor resources to configure doorbell and message queues.

Change-Id: Ia378a1df82ef960e2c11bf715100e38de82b670c
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-04-27 10:51:08 -07:00
Murali Nalajala
ebba4e821d haven: rm: Add support to get hypervisor resources
VMs need to make GET_HYP_RESOURCE call to get resource information (dbl,
msgqs) associated between VMs. If the caller VM want to get resources
associated with another VM, caller VM has to supply the VMID of the
end point. Add support to get hypervisor resources.

Change-Id: Id5f16796ba2a84917c9a072cfeb36d24010e34da
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-04-27 10:51:07 -07:00
Bhaumik Bhatt
c234a26803 mhi: core: block low power modes only in mission mode
While attempting to block low power modes before sending
commands to modify channel state, make sure that execution
environment is in mission mode as we may run into a race
condition where a forced suspend/resume cycle does not get
a chance to run.

Change-Id: Ibc7ca5a52036e18677bb597dc0cd95be96d6698a
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-27 09:39:55 -07:00
Bhaumik Bhatt
aa01212fe5 mhi: core: use internal sequence numbers for timesync doorbells
When attempting to latch the remote timer value, host should be
using internal sequence numbers that change every time a client
calls the exposed API and rings the time synchronization
doorbell so that device can identify them as different requests.

Change-Id: I2a38b63c6b942df032f096b17b1fdbc2abdb171b
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-27 09:39:51 -07:00
Bhaumik Bhatt
2a7d70f2d6 mhi: core: enable doorbell method for time synchronization
Some devices support doorbell method to collect time
synchronization information. Add support from host for the
updated way of handling initialization and advertising
support.

Change-Id: I5bc82b946fd64927a2a88babc8d383e5fa664cf6
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-27 09:39:44 -07:00