Commit graph

855748 commits

Author SHA1 Message Date
qctecmdr
e0c39261f1 Merge "cnss2: Update board data file name for certain RF chip ID" 2021-09-16 14:53:47 -07:00
qctecmdr
28ba9d136c Merge "block: pm: Fix possible unbalanced nr_pending" 2021-09-16 02:47:47 -07:00
Yue Ma
81409af52b cnss2: Update board data file name for certain RF chip ID
If higher 4 bits of chip ID (device major version) is 1, read board
data file name as bdwlang.e<board ID>. The assumption is board ID
will be always less than 0xFF. If board ID (0xFF) is invalid in OTP
then read it as bdwlang.elf for such case. Also only use lower 4 bits
of device major version as the version number to load firmware file
because of above new requirement.

Change-Id: I4dce528a9c389a660b19dabe4ee44e655a23570b
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-09-16 14:19:54 +05:30
qctecmdr
bf40795532 Merge "regulator: qcom_pm8008-regulator: add support for PMIC PM8010" 2021-09-15 23:04:30 -07:00
Kavya Nunna
9995b02041 platform: qpnp-revid: Add REVID support for PM8010
Add PMIC subtype for PM8010.

Change-Id: I6e185be5db95687b06fa3b15e43c5f223622647b
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-09-15 15:43:58 +05:30
Philip Cuadra
96060693a5
msm: bus_arb: Disable debug logging.
* This debug logging consumes 10% of all the CPU
   cycles in the drivers communicating with the DSP.

 * Disable the logging for the time being until we add
   a config.

Bug: 71867957
Change-Id: I97d418fee3d4576b077ed284ed5ae4447da5a789
2021-09-15 09:27:44 +02:00
Gagan Malvi
fc87a3047e
build: compile with Proton Clang.
Signed-off-by: Gagan Malvi <malvigagan@gmail.com>
2021-09-15 09:27:37 +02:00
John Dias
e72c9fc255
binder: Set binder_(alloc_)debug_mask=0 to suppress logging.
* Excessive logging -- not present on angler -- is
   affecting performance, contributing to missed audio
   deadlines and likely other latency-dependent tasks.

Bug: 30375418
[@0ctobot: Extend patch to cover binder_alloc_debug_mask]
Co-authored-by: Adam W. Willis <return.of.octobot@gmail.com>

Change-Id: I36c4ce8a0294e5e7847a3fd884691cb178cd95c2
2021-09-15 09:27:37 +02:00
Yaroslav Furman
abca78dc6d
rcu: Fix a performance regression.
Commit "rcu: Create RCU-specific workqueues with rescuers" switched RCU
to using local workqueses and removed power efficiency flag from them.

This caused a performance regression that can be observed in Geekbench 5
after enabling CONFIG_WQ_POWER_EFFICIENT_DEFAULT: score went down from
760/2500 to 620/2300 (single/multi core respectively).

Add WQ_POWER_EFFICIENT flag to avoid this regression.

Change-Id: I2c4f41faa55548f9e81a1c0cbe10703948062d89
2021-09-15 09:27:36 +02:00
Danny Lin
24fc95ac23
drm/msm/sde: Cache register values when performing clock control.
Remote register I/O amounts to a measurably significant portion of CPU
time due to how frequently this function is used. Cache the value of
each register on-demand and use this value in future invocations to
mitigate the expensive I/O.

Co-authored-by: Sultan Alsawaf <sultan@kerneltoast.com>
[@0ctobot: Adapted for msm-4.19]

Change-Id: I6846ee58c476a125076d0c3ad351f9e15eba180a
2021-09-15 09:27:36 +02:00
Hridya Valsaraju
a212bda4b4
arm64: dts: vendor: Delete Android firmware nodes.
* These have all moved into the ramdisk, and boot devices
   has gone to the kernel commandline.

Bug: 117933812
Change-Id: I0d06607c522c08f50484b9eff4dc78b21cc083f5
2021-09-15 09:27:36 +02:00
Yaroslav Furman
21c03f31c5
PM: sleep: Skip OOM killer toggles when kernel is compiled for Android.
* Android devices use LMK algorythms, so there's no
   reason to disable and enable the OOM killer when entering and exiting
   suspend.

 * This is a fixed version of https://github.com/YaroST12/VIOLENT_kernel/commit/86e59a93b2ef

Co-authored-by: Danny Lin <danny@kdrag0n.dev>
Change-Id: Icb2a57e51128a9ae8d578e697f041ff19871351b
2021-09-15 09:27:36 +02:00
Tyler Nijmeh
3f92eede81
drivers: thermal: Don't qualify thermal polling as high priority.
* Don't take priority over other workqueues.

Change-Id: Ib15dd5addd04ca6569485bd3c66dd01ddf72840e
2021-09-15 09:27:36 +02:00
Danny Lin
cbde7a6bea
arm64: dts: vendor: Disable expedited RCU grace periods.
* Similar to what I've done on other devices, revert
   to normal grace periods to reduce power usage.

 * Expedited RCU hammers CPUs with IPIs to reduce grace
   period durations and thus RCU latency, but that disrupts
   busy CPUs and causes unnecessary wakeups while providing
   little to no improvement in real-world performance.

Change-Id: I2b55e4aaa82bb670dfd6fb417b05fe9ae685e0a8
2021-09-15 09:27:36 +02:00
Adam W. Willis
6a95c8b1c6
arm64: dts: vendor: Disable debug monitoring.
Change-Id: I95048bdbcc41990ddfe279120ddeaed72713a7a5
2021-09-15 09:27:36 +02:00
Danny Lin
b3c827f520
arm64: dts: vendor: Disable broken IRQ detection.
* Our kernel only runs on known systems where broken
   IRQs would already have been discovered, so disable
   this to reduce overhead in the IRQ handling path.

Change-Id: Ia9e655dc9891f9cb94a6123ceaec43ba7c5fd5b1
2021-09-15 09:27:36 +02:00
David Collins
4338d3102b regulator: qcom_pm8008-regulator: add support for PMIC PM8010
Add support to control the LDOs found on PM8010 PMICs.  PM8010 is
a pin-compatible update of PM8008.

Change-Id: Ia15481c9610bdf1b8ce305381decbf28c9f65716
Signed-off-by: David Collins <collinsd@codeaurora.org>
2021-09-15 00:01:52 -07:00
David Collins
83b80e7392 regulator: qcom_pm8008: allow multiple PM8008 instances with unique names
Change the qcom_pm8008-regulator "regulator-name" device tree
property parsing procedure from an exact match to a substring
match.  This allows multiple PM8008 chips to be used on a given
board which have unique names specified for their respective
regulators.

Change-Id: I519107431148cdf1882d8e50056f2d2e20ce018f
Signed-off-by: David Collins <collinsd@codeaurora.org>
2021-09-15 00:01:34 -07:00
qctecmdr
3686a15a5a Merge "defconfig: kona: Add CONFIG_AQFWD for RB5 board" 2021-09-14 19:28:36 -07:00
Can Guo
36a7bd907c block: pm: Fix possible unbalanced nr_pending
When someone calls blk_get_request() and blk_put_request()
without invoking blk_execute_rq() in between, nr_pending
will be unbalanced. Fix this by adding a flag, namely the
RQF_PM_ADDED, to track the usage of nr_pending, so that
blk_pm_put_request() won't touch nr_pending if the flag is
not set. Extra care should be given to blk_pm_requeue_request(),
because blk-flush.c inserts flush requests into queue without
calling blk_pm_add_request(), if the flush requests get requeued
by LLD, blk_pm_requeue_request() should anyways decrease
nr_pending in this situation to keep it balanced.

Change-Id: I7baa2049ac532e4fd22a0ce358133ba88266a314
Signed-off-by: Ziqi Chen <ziqichen@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
2021-09-15 09:44:27 +08:00
qctecmdr
ef299a6053 Merge "power: supply: qpnp-smb5: specify different ICL for QC2 9V/12V level" 2021-09-14 15:21:26 -07:00
qctecmdr
2b4738b189 Merge "rpmsg: glink: do not break from interrupt handler" 2021-09-14 08:08:51 -07:00
Pratham Pratap
5d93fbb51b usb: f_mtp: Don't handle OS descriptors from MTP driver
Currently MTP driver is handling OS descriptors which
causes CTS test failures(android.adb.cts.AdbHostTest) if
MTP is in the default composition.

Fix this by skipping the handling of OS descriptors in
MTP driver and let composite driver take care of it for
the whole configuration.

Change-Id: I77902108c3a550997dfd56b9b3127900c724f066
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-09-14 13:31:15 +05:30
Fenglin Wu
0edd2a1066 power: supply: qpnp-smb5: specify different ICL for QC2 9V/12V level
There is an existing device-tree property "qcom,hvdcp2-max-icl-ua" to
specify the ICL when QC2 charger adapter working at high voltage to
avoid VBUS voltage collapse. Normally QC2 adapters have different
current rating at different voltage level, hence keep the existing
property to specify the ICL setting at 9V level and add a new
property "qcom,hvdcp2-12v-max-icl-ua" to specify the ICL setting at
12V level.

Change-Id: I0811932de997b56a1d8d95bd5cbf22a194ffe035
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2021-09-14 15:14:43 +08:00
qctecmdr
a0e406a6f7 Merge "phy: msm: usb: Check VBUS state before accessing registers in suspend" 2021-09-13 17:07:49 -07:00
qctecmdr
1e05ffb38a Merge "msm: adsprpc: Allocate buffer taking NULL byte into consideration" 2021-09-13 07:49:14 -07:00
Vijayavardhan Vennapusa
af15029bda phy: msm: usb: Check VBUS state before accessing registers in suspend
Currently driver is checking for VBUS state after accessing register
in msm_otg_suspend() routine. In case of CDP, there will be race between
msm_otg_suspend() and driving DP pulse. This could cause accessing
register in msm_otg_suspend() while clocks are off as part of sequence
to drive pulse on D+ line and later it is checking for VBUS state high
to abort suspend sequence. Hence fix it by checking for VBUS state
before accessing registers in msm_otg_suspend().

Change-Id: I95ad5339b21647e3971908d15f2eabe0c6311800
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2021-09-13 02:00:07 -07:00
Vijayavardhan Vennapusa
dde8494125 phy: msm: usb: Fail suspend if psy_type is USB or USB_CDP
Currently driver is checking only charger type from internal variable
in msm_otg_suspend(), which is valid for PHY based charger detection.
If PMIC charger does charger detection, that charger type will not be
updated and result in allowing low power mode sequence even VBUS is
active. Hence fix it by checking psy_type as well to avoid allowing
low power mode sequence while VBUS is active.

Change-Id: I8cb47912867b15ebdc30bc15b58ff99026a1e180
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2021-09-13 01:59:51 -07:00
Vijayavardhan Vennapusa
0d8df81b81 USB: phy: msm: Apply DP pulse for CDP during bootup from sm_work
Currently driver is calling API to apply pulse from vbus notifier, but
it might lead to race condition during bootup and result in unclocked
access. Hence avoid applying DP pulse during bootup from vbus notifier
callback. Also enable LDOs and clocks only if usb is in lpm, else apply
DP pulse without enabling LDOs and clocks again.

Change-Id: I987d93de5261147481f3856254941091dedba108
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2021-09-13 01:59:30 -07:00
qctecmdr
826d77fc56 Merge "soc: qcom: secure_buffer: Fix the parameter passing to dmac_flush_range" 2021-09-13 01:33:36 -07:00
Prabha
cd8a4c01a6 msm: adsprpc: Allocate buffer taking NULL byte into consideration
When attaching to audiopd on ADSP, allocate one
extra byte for the process name so that it is
null terminated when data is copied from file
pointer in the userspace.

Change-Id: I98ac64a4c16f44fa4fd0e09da1648b9d78d65a82
Signed-off-by: prabha <prabha@codeaurora.org>
2021-09-13 13:27:54 +05:30
Madhuri Medasani
842ebeb832 clk: qcom: debugcc: Remove the gcc_camss_camnoc clocks
Remove the gcc_camss_camnoc clocks from debugcc
which are not registered in GCC to avoid the crash
because of parent index in KHAJE.

Change-Id: Ia8db40e55c3f7d96abb47bb810eb4f13c20e65f2
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-09-12 23:36:00 -07:00
qctecmdr
05996fd8ab Merge "uapi: Add UAPI headers for slatecom_interface driver" 2021-09-10 22:18:00 -07:00
qctecmdr
046d1cdd64 Merge "f2fs: don't sleep while grabing nat_tree_lock" 2021-09-10 22:17:59 -07:00
qctecmdr
f72ff0bfca Merge "fbdev: msm: Avoid runtime sus/res for DP/HDMI" 2021-09-10 22:17:59 -07:00
Nirmal Abraham
05742e7009 fbdev: msm: Avoid runtime sus/res for DP/HDMI
A race condition is seen between DP pan_display commit
path and pm runtime suspend when DP cable is inserted
when device is in suspend. This causes commit failure
and subseqently display won't wake up from suspend.
Avoid runtime suspend/resume of DP lower interface to
resolve this.

Change-Id: Ia1aea19799df718e0713d0cf0ccc3237bb7a31f3
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
2021-09-09 09:12:08 +05:30
qctecmdr
c2ba15277a Merge "Revert "qseecom: Add shmbrdige to allocate memory"" 2021-09-08 04:44:57 -07:00
qctecmdr
6f964eddd3 Merge "soc: qcom: smsm: Add wakeup capable flags to SMSM IRQ" 2021-09-08 04:44:57 -07:00
Kiran Gunda
252d6c84be uapi: Add UAPI headers for slatecom_interface driver
Add slatecom_interface header file in gen_headers to make it
accessible from userspace modules who uses Android.bp files
for compilation.

Change-Id: Ie298ec28983c16999d941ee8667e2dd7b5c3db22
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2021-09-08 04:43:44 -07:00
qctecmdr
dd304ccc10 Merge "ANDROID: xt_qtaguid: fix UAF race" 2021-09-08 00:31:01 -07:00
Vivek Golani
94b97191fd soc: qcom: smsm: Add wakeup capable flags to SMSM IRQ
SMSM interrupts are expected even during APPS suspend path.
Added IRQF_NO_SUSPEND flag to handle interrupts during
suspend path.

Change-Id: I1c16a2be7fd0b3e85eebbee54aa472fb4a04bc6e
Signed-off-by: Vivek Golani <vgolani@codeaurora.org>
2021-09-08 12:13:57 +05:30
Jaegeuk Kim
815cc3957a f2fs: don't sleep while grabing nat_tree_lock
This tries to fix priority inversion in the below condition resulting in
long checkpoint delay.

f2fs_get_node_info()
 - nat_tree_lock
  -> sleep to grab journal_rwsem by contention

                                     checkpoint
                                     - waiting for nat_tree_lock

In order to let checkpoint go, let's release nat_tree_lock, if there's a
journal_rwsem contention.

Change-Id: I72ca6cf52908a08976c200be32a09fb3105e726e
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 2eeb0dce728a7eac3e4dfe355d98af40d61f7a26
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2021-09-06 20:38:19 -07:00
Satish Kodishala
9a96de3c3e Ignore -106 error while opening channel
Ignore -106 error when channel opened
again without closing.

CRs-Fixed: 2836671
Change-Id: Ib27179031e6bbdc20511132efd6c4578d1d0a911
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2021-09-06 11:16:08 -07:00
qctecmdr
8c79c6778a Merge "arm64: defconfig: Set qrtr wakeup for lito" 2021-09-06 02:04:02 -07:00
Linux Build Service Account
ebaaa70d07 Merge 5e1dd0fa05 on remote branch
Change-Id: Ia1da71a6c9c191e43bfcffa5d2015b2dfef752b1
2021-09-05 23:19:58 -07:00
qctecmdr
93d96157e9 Merge "byte-cntr: Don't write csr register when byte-cntr is disabled" 2021-09-04 17:09:40 -07:00
Mao Jinlong
81d63049e6 byte-cntr: Don't write csr register when byte-cntr is disabled
It is possible that byte-cntr release happens after byte-cntr is disabled.
Don't write csr register when byte-cntr is disabled to avoid the register
access issue.

Change-Id: Ic818107e1bcbe31e1a55cdc8c0f6ff89ff70564f
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2021-09-03 23:35:11 +08:00
Sarannya S
3acc60ff8f arm64: defconfig: Set qrtr wakeup for lito
Set the wakeup timeout for qrtr to 500 ms for lito. This change
will help ensure the TUI client thread gets a chance to run before
the system is suspended again.

Change-Id: I8c8831995bf58fc39a3e8c107d0fd761745bbfed
Signed-off-by: Sarannya S <sarannya@codeaurora.org>
2021-09-03 13:56:42 +05:30
Chris Lew
898151cd02 net: qrtr: Make wakeup timeout configurable
The qrtr driver can guarantee that the packet gets queued to the socket
but cannot guarantee the client process will get time to run if auto
sleep is enabled. This config will help mitigate missed packets on
systems where auto sleep is too aggressive.

Use the pm_wakeup_ws_event() api so a hard wakeup can be specified.
This will ensure a resume occurs if the data coming in happens while
the device is going into suspend.

Change-Id: Ic596e06e585b3479a6faa1d0210c016fc9138c6e
Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Arun Prakash <app@codeaurora.org>
2021-09-03 13:02:44 +05:30
qctecmdr
459d6fa3a5 Merge "mhi: core: Avoid race condition mhi channel prepare and M0 event" 2021-09-02 08:54:09 -07:00