Commit graph

632346 commits

Author SHA1 Message Date
Timi
9b78bffc59 oneplus5: disable CONFIG_IOSCHED_TEST
Change-Id: Ie2d11c98a544eab49e293789322e19b9bc001c3c
2020-11-25 16:01:08 +02:00
Peter Cai
3d4652afec drivers: qcacld: reverse fw-provided mac addr
* When wlan_mac.bin is missing for whatever reason, qcacld will fall
  back to loading mac address from firmware. The OnePlus firmware can
  provide a correct mac address, but it is in reverse, breaking the
  qcacld logic.
* Just reverse it back in qcacld. Although wlan_mac.bin should not be
  missing at all, we have seen some rare cases where it could not be
  generated properly for some reason, and the qcacld fallback is broken
  because of byte-ordering. Let's at least make the fallback path work.

Change-Id: Iccdc4657debec1375939dca7a4ce4df5e76f255f
2020-11-17 13:27:17 +02:00
Pranav Vashi
373c0943a6 Revert "msm: camera: reset atomic variable"
This reverts commit 053d5e9450.
2020-11-06 21:46:23 +01:00
Pranav Vashi
027ce03621 Revert "mm-camera2:isp2: Notify dual cam drop"
This reverts commit 0f793d310e.
2020-11-06 21:46:19 +01:00
Pranav Vashi
2ecefda324 nl80211: remove enum ieee80211_band
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2020-11-06 21:44:50 +01:00
Timi
2d39e829a8 Makefile: remove unsupported flag 2020-11-06 21:25:57 +01:00
Timi
f1491f7c5a Merge branch 'kernel.lnx.4.4.r39-rel' of https://github.com/android-linux-stable/msm-4.4 into op8998-ten 2020-11-06 21:24:24 +01:00
Timi
2752a1a668 Merge tag 'LA.UM.8.4.r1-06000-8x98.0' into op8998-ten
"LA.UM.8.4.r1-06000-8x98.0"
2020-11-06 21:21:43 +01:00
LuK1337
fbc44fa5af Revert "msm: kgsl: Mark the scratch buffer as privileged"
* Requires new GPU firmware

This reverts commit adec4f93e1.

Change-Id: I747c00bff92f6e793f207839a7ad0a61b2656f96
2020-11-06 21:20:50 +01:00
Timi
66c70cd2c2 Merge tag 'LA.UM.8.4.r1-05900-8x98.0' into op8998-ten
"LA.UM.8.4.r1-05900-8x98.0"
2020-11-06 21:20:38 +01:00
Timi
e695fccbbb Merge tag 'LA.UM.8.4.r1-05800-8x98.0' into op8998-ten
"LA.UM.8.4.r1-05800-8x98.0"
2020-11-06 21:20:17 +01:00
Timi
2bb1d649bd Merge tag 'LA.UM.8.4.r1-05700-8x98.0' into op8998-ten
"LA.UM.8.4.r1-05700-8x98.0"
2020-11-06 21:20:06 +01:00
Timi
1adfaeda77 Merge tag 'LA.UM.8.4.r1-05500-8x98.0' into op8998-ten
"LA.UM.8.4.r1-05500-8x98.0"
2020-11-06 21:19:45 +01:00
Timi
4be7c47533 Merge tag 'LA.UM.8.4.r1-05400-8x98.0' into op8998-ten
"LA.UM.8.4.r1-05400-8x98.0"
2020-11-06 21:19:34 +01:00
Timi
653ed5621b Merge tag 'LA.UM.8.4.r1-05300-8x98.0' into op8998-ten
"LA.UM.8.4.r1-05300-8x98.0"
2020-11-06 21:18:59 +01:00
Park Ju Hyung
e4559a1f49 qcacld: initialize variables to avoid errors during compilation
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
(cherry picked from commit dc3bf7c0c5f0d3e5a57ad2ec49360d51976908af)
2020-11-06 20:12:46 +01:00
Park Ju Hyung
dad3dbc860 qcacld: nuke Kconfig-based configuration entirely
This method of building qcacld isn't meant to be used and
causes conflicts with the new OEM profile configuration.

Configuration is now done with drivers/staging/qcacld-3.0/configs.

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
(cherry picked from commit 1bdd23fcaaef57db47ea69720f51aed47353482c)
2020-11-06 20:12:46 +01:00
Timi
5ae2fbbb19 Merge tag 'LA.UM.8.4.r1-06000-8x98.0' of https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/fw-api into op8998-ten
"LA.UM.8.4.r1-06000-8x98.0"

Signed-off-by: Timi <timi.rautamaki@gmail.com>
2020-11-06 20:12:38 +01:00
Timi
d7cb6c3b2d Merge tag 'LA.UM.8.4.r1-06000-8x98.0' of https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qca-wifi-host-cmn into op8998-ten
"LA.UM.8.4.r1-06000-8x98.0"

Signed-off-by: Timi <timi.rautamaki@gmail.com>
2020-11-06 20:12:21 +01:00
Timi
d83ca09e24 Merge tag 'LA.UM.8.4.r1-06000-8x98.0' of https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qcacld-3.0 into op8998-ten
"LA.UM.8.4.r1-06000-8x98.0"

Signed-off-by: Timi <timi.rautamaki@gmail.com>
2020-11-06 20:12:05 +01:00
Martijn Coenen
050a2ee4bb oneplus5: Set CONFIG_BLK_DEV_LOOP_MIN_COUNT to 16.
To have the kernel pre-create 16 loop devices, which will save boot time
as soon as we start having more than 8 APEXes.

Bug: 119022885
Signed-off-by: Martijn Coenen <maco@android.com>
Change-Id: I43cffd6059bd9eb607f6a46e46e51ecfd1828f6a
2020-11-06 20:11:27 +01:00
Pranav Vashi
a2e49c9aec staging: Add qcacld to Kconfig and Makefile
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2020-11-06 20:00:28 +01:00
codeworkx
140eb257df oneplus5: leds: enable rgb sync
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2020-11-06 20:00:28 +01:00
Pranav Vashi
37aaa795f6 oneplus5: Do not enable verity
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2020-11-06 20:00:27 +01:00
Wei Wang
6959028839 thermal: Fix deadlock in thermal thermal_zone_device_check
commit 163b00cde7cf2206e248789d2780121ad5e6a70b upstream.

1851799e1d29 ("thermal: Fix use-after-free when unregistering thermal zone
device") changed cancel_delayed_work to cancel_delayed_work_sync to avoid
a use-after-free issue. However, cancel_delayed_work_sync could be called
insides the WQ causing deadlock.

[54109.642398] c0   1162 kworker/u17:1   D    0 11030      2 0x00000000
[54109.642437] c0   1162 Workqueue: thermal_passive_wq thermal_zone_device_check
[54109.642447] c0   1162 Call trace:
[54109.642456] c0   1162  __switch_to+0x138/0x158
[54109.642467] c0   1162  __schedule+0xba4/0x1434
[54109.642480] c0   1162  schedule_timeout+0xa0/0xb28
[54109.642492] c0   1162  wait_for_common+0x138/0x2e8
[54109.642511] c0   1162  flush_work+0x348/0x40c
[54109.642522] c0   1162  __cancel_work_timer+0x180/0x218
[54109.642544] c0   1162  handle_thermal_trip+0x2c4/0x5a4
[54109.642553] c0   1162  thermal_zone_device_update+0x1b4/0x25c
[54109.642563] c0   1162  thermal_zone_device_check+0x18/0x24
[54109.642574] c0   1162  process_one_work+0x3cc/0x69c
[54109.642583] c0   1162  worker_thread+0x49c/0x7c0
[54109.642593] c0   1162  kthread+0x17c/0x1b0
[54109.642602] c0   1162  ret_from_fork+0x10/0x18
[54109.643051] c0   1162 kworker/u17:2   D    0 16245      2 0x00000000
[54109.643067] c0   1162 Workqueue: thermal_passive_wq thermal_zone_device_check
[54109.643077] c0   1162 Call trace:
[54109.643085] c0   1162  __switch_to+0x138/0x158
[54109.643095] c0   1162  __schedule+0xba4/0x1434
[54109.643104] c0   1162  schedule_timeout+0xa0/0xb28
[54109.643114] c0   1162  wait_for_common+0x138/0x2e8
[54109.643122] c0   1162  flush_work+0x348/0x40c
[54109.643131] c0   1162  __cancel_work_timer+0x180/0x218
[54109.643141] c0   1162  handle_thermal_trip+0x2c4/0x5a4
[54109.643150] c0   1162  thermal_zone_device_update+0x1b4/0x25c
[54109.643159] c0   1162  thermal_zone_device_check+0x18/0x24
[54109.643167] c0   1162  process_one_work+0x3cc/0x69c
[54109.643177] c0   1162  worker_thread+0x49c/0x7c0
[54109.643186] c0   1162  kthread+0x17c/0x1b0
[54109.643195] c0   1162  ret_from_fork+0x10/0x18
[54109.644500] c0   1162 cat             D    0  7766      1 0x00000001
[54109.644515] c0   1162 Call trace:
[54109.644524] c0   1162  __switch_to+0x138/0x158
[54109.644536] c0   1162  __schedule+0xba4/0x1434
[54109.644546] c0   1162  schedule_preempt_disabled+0x80/0xb0
[54109.644555] c0   1162  __mutex_lock+0x3a8/0x7f0
[54109.644563] c0   1162  __mutex_lock_slowpath+0x14/0x20
[54109.644575] c0   1162  thermal_zone_get_temp+0x84/0x360
[54109.644586] c0   1162  temp_show+0x30/0x78
[54109.644609] c0   1162  dev_attr_show+0x5c/0xf0
[54109.644628] c0   1162  sysfs_kf_seq_show+0xcc/0x1a4
[54109.644636] c0   1162  kernfs_seq_show+0x48/0x88
[54109.644656] c0   1162  seq_read+0x1f4/0x73c
[54109.644664] c0   1162  kernfs_fop_read+0x84/0x318
[54109.644683] c0   1162  __vfs_read+0x50/0x1bc
[54109.644692] c0   1162  vfs_read+0xa4/0x140
[54109.644701] c0   1162  SyS_read+0xbc/0x144
[54109.644708] c0   1162  el0_svc_naked+0x34/0x38
[54109.845800] c0   1162 D 720.000s 1->7766->7766 cat [panic]

Fixes: 1851799e1d29 ("thermal: Fix use-after-free when unregistering thermal zone device")
Cc: stable@vger.kernel.org
Signed-off-by: Wei Wang <wvw@google.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-06 20:00:26 +01:00
Thierry Strudel
f87321c329 Revert "scripts: gcc-wrapper: Use wrapper to check compiler warnings"
This reverts commit cc95d2b6c2.

Change-Id: I40fa79992814f1a24174137f7b95a1e19a86828d
Link: 0a659ab3a7
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
2020-11-06 20:00:26 +01:00
Wei Wang
9808483dd9 oneplus5: set default readahead to 2048KB
Android has been benefiting quicker boot from bigger readahead during
boottime than runtime. However, the boottime readahead setting is set
when init is established after treble early mount. This patch will make
readahead bigger by default so early boot can benefit from it. Readahead
will be reset by init on boot_complete.

Bug: 62413151
Test: boot walleye 100ms faster
Change-Id: Ic9dad5666ce3d4836d73afbcee04cfb875f64f5d
Signed-off-by: Wei Wang <wvw@google.com>
2020-11-06 19:59:57 +01:00
codeworkx
e06f88dda2 oneplus5: build qcacld 3.0
Change-Id: I3d9e22c8b83e240f01bd28fd2ecc3637759cc3f6
2020-11-06 19:58:46 +01:00
Thierry Strudel
3e28ec8849 oneplus5: remove various debug configs
Disable remaining DEBUG configuration for shipping ROM

Bug: 62470966
Bug: 62235647
Change-Id: Id32f7ca9bc3585235826b32dd0d5719283a1c465
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2020-11-06 19:58:33 +01:00
Demon Singur
7abe4ae3f7 oneplus5: remove remaining unused configs
* disable seemp core
 * remove unused platform support
 * remove STMVL53L0 support
 * disable debug options
 * disable unneded filesystems
 * disable useless modules
 * disable mmc support
 * disable unused regulators

Change-Id: I467c9df894597c0c434dcd0b1a1365651e6dca28
Signed-off-by: Vol Zhdanov <wight554@gmail.com>
2020-11-06 19:58:22 +01:00
Adrian Salido
25a03e0c5b oneplus5: disable mdss xlog debug
Bug: 62470966
Change-Id: Ib12674f38fb109ea467729eeeff283299ace2e63
Signed-off-by: Adrian Salido <salidoa@google.com>
2020-11-06 19:58:14 +01:00
John Dias
35365f1e48 oneplus5: disable SCHED_AUTOGROUP
Under some workloads, we're seeing periods of freezing
and excessive jank that appear to be partially improved
by disabling the autogroup feature.

Bug: 63331203
Signed-off-by: John Dias <joaodias@google.com>
Change-Id: If61dd69f6a1930158ca7e8c53240042381bc7c77
2020-11-06 19:58:06 +01:00
Sultan Alsawaf
cf62e8498b oneplus5: disable cgroup debugging
Change-Id: I3ac04919fc45eee87af91dfa9fdde599b6f4a4bd
2020-11-06 19:57:57 +01:00
Patrick Tjin
e2fc24d042 oneplus5: enable various HID drivers
Bug: 62808409
Change-Id: Ic049d6c03aaeaf53a0ba43ac7bd62ee52bcf7704
Signed-off-by: Patrick Tjin <pattjin@google.com>
2020-11-06 19:57:45 +01:00
joshuous
3e66c13fde oneplus5: enable JUMP_LABEL
This option enables a transparent branch optimization
that makes certain almost-always-true or almost-always-false
branch conditions even cheaper to execute within the kernel.

Certain performance-sensitive kernel code, such as trace points,
scheduler functionality, networking code and KVM have such
branches and include support for this optimization technique.

If it is detected that the compiler has support for "asm goto",
the kernel will compile such branches with just a nop instruction.
When the condition flag is toggled to true, the nop will be
converted to a jump instruction to execute the conditional
block of instructions.

This technique lowers overhead and stress on the branchprediction
of the processor and generally makes the kernel faster.
The update of the condition is slower, but those are always
very rare.

Change-Id: I90657cf7ef3b9d116eb019da87dd62e1806e0e87
Signed-off-by: joshuous <joshuous@gmail.com>
2020-11-06 19:57:32 +01:00
Demon Singur
6fb3b5e671 oneplus5: disable suspend sync
Change-Id: I7d439285752fa01a0d0ce5c3418f26a06b68131b
2020-11-06 19:57:27 +01:00
Demon Singur
5daa8ccee0 oneplus5: enable power efficient wq
Change-Id: I1a40ffe60a1e354eb09228fb98369eaf1c3b18ec
2020-11-06 19:57:00 +01:00
Timi
61e51c99ec oneplus5: enable BFQ by default 2020-11-06 19:56:52 +01:00
codeworkx
3d82702ef0 oneplus5: add initial defconfig
Change-Id: I196ae9cec431217fba6fe24e457e7c035bab7f55
2020-11-03 21:32:40 +01:00
Timi
8e36918c93 power: remove unused function 2020-11-03 21:30:47 +01:00
Yaroslav Furman
d61666b28c ASoC: msm: qdsp6v2: Make version checking no-op
After Pie tag was released CAF added functions
for checking fw version that are not supported
by our DSP.

And kernel tell us about it by spamming:

[10186.137518] q6core_get_service_version: Failed to get service size for service id 7
with error -95
[10186.141517] q6core_get_service_version: Failed to get service size for service id 8
with error -95
[10186.151816] q6core_get_service_version: Failed to get service size for service id 7
with error -95
[10254.278514] q6core_get_service_version: Failed to get service size for service id 7
with error -95
[10254.282274] q6core_get_service_version: Failed to get service size for service id 8
with error -95
[10254.292154] q6core_get_service_version: Failed to get service size for service id 7
with error -95
[10294.549313] q6core_get_service_version: Failed to get service size for service id 7
with error -95
[10294.553506] q6core_get_service_version: Failed to get service size for service id 8
with error -95
[10294.563891] q6core_get_service_version: Failed to get service size for service id 7
with error -95

This results in certain audio apps getting focked up
after system suspends and then goes back online.

Change-Id: I09dfa1ee3adad8df62f79bc79a88a74f60d73b23
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2020-11-03 21:30:47 +01:00
Jaegeuk Kim
4965057248 scsi: ufs: disable auto hibern8
This patch disables auto_hibern8 to fix slow-down issue.

Bug: 66697973
Bug: 65535484
Change-Id: I922cee6132224b687fd53b90f6eb32813900e2dd
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2020-11-03 21:30:47 +01:00
Scott Mertz
8fdbf3e1bf pwm: qpnp-pwm: add api for synchronous enable of pwms
Change-Id: I29d8a2a3dc7adff734bdbbd0e9969323b86e461f
2020-11-03 21:30:46 +01:00
Mohammed Javid
5d242f188c msm: ipa3: Return if RT table size is 0
If RT table size is zero, retrun to prevent
further process.

Change-Id: Ic671b1760969e6a5f5e896f5334289061b02d256
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2020-11-03 21:30:46 +01:00
Vikram Mulukutla
3eac51aed0 sched: hmp: Reduce number of load reports in a window
There's no use reporting load more than once in a window
via the cpufreq_update_util path (unless there's a migration).
Set the load_reported_window flag in sched_get_cpus_busy
to remove these redundant updates.

Change-Id: If43dd5abc7e0e52a8e0f0df3a20ca99ed92f5361
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2020-11-03 21:30:46 +01:00
Vikram Mulukutla
6287a52e7f sched: cpufreq: HMP load reporting changes
Since HMP uses WALT, ensure that load is reported just once per window,
with the exception of intercluster migrations. Further, try to report load
whenever WALT stats are updated.

Change-Id: I6539f8c916f6f271cf26f03249de7f953d5b12c2
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2020-11-03 21:30:46 +01:00
Peter Collingbourne
8e9bb544e4 FROMLIST: arm64: Build vDSO with -ffixed-x18
The vDSO needs to be build with x18 reserved in order to accommodate
userspace platform ABIs built on top of Linux that use the register
to carry inter-procedural state, as provided for by the AAPCS.
An example of such a platform ABI is the one that will be used by an
upcoming version of Android.

Although this change is currently a no-op due to the fact that the vDSO
is currently implemented in pure assembly on arm64, it is necessary
in order to prepare for another change [1] that will add C code to
the vDSO.

[1] https://patchwork.kernel.org/patch/10044501/

Change-Id: Icaac4b1c9127d81d754d3b8688274e9afc781760
Signed-off-by: Peter Collingbourne <pcc@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Mark Salyzyn <salyzyn@google.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
2020-11-03 21:30:46 +01:00
Mark Salyzyn
43ea846c37 ANDROID: clock_gettime(CLOCK_BOOTTIME,) slows down >20x
clock_gettime(CLOCK_BOOTTIME,) slows down after significant
accumulation of suspend time creating a large offset between it and
CLOCK_MONOTONIC time.  The __iter_div_u64_rem() is only for the usage
of adding a few second+nanosecond times and saving cycles on more
expensive remainder and division operations, but iterates one second
at a time which quickly goes out of scale in CLOCK_BOOTTIME's case
since it was specified as nanoseconds only.

The fix is to split off seconds from the boot time and cap the
nanoseconds so that __iter_div_u64_rem does not iterate.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 72406285
Change-Id: Ia647ef1e76b7ba3b0c003028d4b3b955635adabb
2020-11-03 21:30:45 +01:00
Nathan Chancellor
a2f97f39f4 FROMLIST: arm64: vdso32: Use full path to Clang instead of relying on PATH
Currently, in order to build the compat VDSO with Clang, this format
has to be used:

  PATH=${BIN_FOLDER}:${PATH} make CC=clang

Prior to the addition of this file, this format would also be
acceptable:

  make CC=${BIN_FOLDER}/clang

This is because the vdso32 Makefile uses cc-name instead of CC. After
this path, CC will still evaluate to clang for the first case as
expected but now the second case will use the specified Clang, rather
than the host's copy, which may not be compatible as shown below.

/usr/bin/as: unrecognized option '-mfloat-abi=soft'
clang-6.0: error: assembler command failed with exit code 1

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
(cherry picked from https://patchwork.kernel.org/patch/10419665)
Bug: 80184372
Change-Id: If90a5a4edbc2b5883b4c78161081ebeafbebdcde
2020-11-03 21:30:45 +01:00
Mark Salyzyn
bd13db4607 ANDROID: arm64: vdso32: fix CC=clang build
clang build had wrong --gcc-toolchain for cross compiler.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 63737556
Change-Id: Ib0c3bbb250943a0309da021ba5335a8320b584f4
2020-11-03 21:30:45 +01:00