Commit graph

882,746 commits

Author SHA1 Message Date
qctecmdr
744e6ae9a6 Merge "tmc-etr: Add ETR status check in usb_notifier" 2020-04-29 18:21:33 -07:00
qctecmdr
9a5ca1eeec Merge "input: qcom-hv-haptics: add RC clock calibration for FIFO mode" 2020-04-29 18:21:33 -07:00
Himateja Reddy
9d43774cd2 msm: adsprpc: allow only unsigned offload for untrusted apps
Restrict untrusted third-party applications to only unsigned PD
offload on the remote subsystem. This is done by comparing PID at
the time of process create with the one stored during device open
as the fastrpc device will be opened by DSP HAL service on behalf
of third-party applications.

Change-Id: Ibaead21a429e6bffe8f0808eebf93bf71d1db7ab
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-04-29 16:16:32 -07:00
Bhaumik Bhatt
9298cd3636 mhi: core: remove duplicate timesync sysfs functions
Remove duplicate timesync sysfs functions as they have moved to
a different file.

Change-Id: Ia1988f32eb6bf16914564977d09ba7ee81022335
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-29 14:37:47 -07:00
Bhaumik Bhatt
34e46f48e9 mhi: core: add asynchronous time request support in sysfs
Add support to request time from device using the asynchronous
method in ticks and microseconds using sysfs entries.

Change-Id: Idb661ad6db9f1cc4cd594c96755986ece4961b03
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-29 14:37:41 -07:00
Guru Das Srinagesh
185c25ef79 defconfig: lahaina: Enable LEDS_TRIGGER_TIMER
Enabling "timer" LED trigger allows for LED blinking to occur with
user-defined intervals of on and off time. This is achieved by writing
to "delay_on" and "delay_off" parameters under the sysfs directory of
the LED.

Change-Id: I313288a455088dee435ce878edd8bd5000a3b40e
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-04-29 13:28:05 -07:00
Yue Ma
ed35aa4349 cnss2: Fix a few issues during platform reboot or shutdown
Make unregister driver work unkillable to avoid WLAN host driver
handling issues after it is killed by platform reboot or shutdown.
Also add proper handlings and checks for platform reboot or shutdown
to avoid unnecessary asserts for calibration cases.

Change-Id: Ide137dc351ca48ef23573abb325db011b8460f54
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-29 11:55:53 -07:00
qctecmdr
2104c7da74 Merge "drivers: lpm-levels: use correct CPUHP notifications for QoS" 2020-04-29 11:27:21 -07:00
qctecmdr
3ad6a3f532 Merge "soc: qcom: eud: Define dummy set_temios and get_mctrl callbacks" 2020-04-29 11:27:21 -07:00
qctecmdr
97b2f5ea8f Merge "mmc: sdhci-msm: Port fixes from previous qcom SoCs to Lahaina" 2020-04-29 11:27:21 -07:00
qctecmdr
9b45d45187 Merge "mhi: core: Add support to re-try requesting firmware image" 2020-04-29 11:27:20 -07:00
qctecmdr
6326cc9757 Merge "iommu/arm-smmu: Fix transaction flags in qsmmuv500_iova_to_phys" 2020-04-29 11:27:20 -07:00
Raghavendra Rao Ananta
e1084c1fa9 defconfig: arm64: Enable SDCARD_FS for Lahaina
As of commit <2e72d8932e> (Merge android-5.4.24 (ce5de62) into
msm-5.4) SDCARD_FS was disabled via gki_defconfig. Hence, re-enable
it in Lahaina's configurations for backward compatibility.

Change-Id: Ib71fbbc45c4564f6f3ffec8f318efd065c542820
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-29 09:29:57 -07:00
Jeevan Shriram
adeb86b7bd ARM: msm: Add board config support for 32 bit SDXLEMUR
This change add initial board config support to enable build 32 bit kernel
for SDXLEMUR.

Change-Id: Ib5f1d06b33ba0264242a76572abc862bbe1daeab
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-04-29 04:41:33 -07:00
Colin Cross
d3cddb0cac ARM: convert build of appended dtb zImage to list of dtbs
Allow CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE_NAMES to specify
a space separated list of dtbs to append to the zImage,
and name the resulting file zImage-dtb.

Change-Id: Ied5d0bafbd1d01fc1f109c15c4283de7029903c9
Signed-off-by: Colin Cross <ccross@android.com>
Git-commit: 9bb8731d87eba59fe7f0e504f11f5dc995ae1166
Git-repo: https://android.googlesource.com/kernel/common
[jshriram@codeaurora.org: Fixed minor merge conflicts]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-04-29 04:41:26 -07:00
Erik Gilling
f1102b8027 ANDROID: ARM: add config option to build zImage/dtb combo
Allows a defconfig to set a default dtb to concatenate with a zImage
to create a zImage-dtb.<dtb name>.

Change-Id: I34b643b1c49228fbae88a56e46c93c478089620d
Signed-off-by: Erik Gilling <konkers@android.com>
Git-commit: 23a70d4e7b8864cf405f997d3608de65a82cf87d
Git-repo: https://android.googlesource.com/kernel/common
[jshriram@codeaurora.org: Fixed minor merge conflicts]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-04-29 04:38:53 -07:00
qctecmdr
6d967e6db5 Merge "arm64: defconfig: Enable CONFIG_HH_MEM_NOTIFIER" 2020-04-29 03:27:32 -07:00
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
Bruce Levy
280b34dace arm64: defconfig: Enable debugfs for QMP on perf build
Enable Debugfs client to communicate with AOP using QMP protocol
on Lahaina perf build.

Change-Id: Ide814af0459a2eea1c0d974b73e5a6491379c154
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
2020-04-28 15:49:57 -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