Commit graph

892,914 commits

Author SHA1 Message Date
Steffen Klassert
d106e05d02 UPSTREAM: net: Add a netdev software feature set that defaults to off.
The previous patch added the NETIF_F_GRO_FRAGLIST feature.
This is a software feature that should default to off.
Current software features default to on, so add a new
feature set that defaults to off.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Bug: 167707933
Change-Id: Ie56e82a2b2ba3ebd4fded1d865070ddcd311a26a
(cherry picked from commit 1a3c998f3a27ab6ecf56bdbb17e27e55fd6d47cd)
Signed-off-by: Hyunsoon Kim <h10.kim@samsung.com>
2020-09-09 08:47:47 +00:00
Steffen Klassert
e1f9bf0782 BACKPORT: net: Add fraglist GRO/GSO feature flags
This adds new Fraglist GRO/GSO feature flags. They will be used
to configure fraglist GRO/GSO what will be implemented with some
followup paches.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Bug: 167707933
Change-Id: I65a4b9fc631c88cd20c1b101fee70e864c2c4502
(cherry picked from commit 3b33583265ed3b0ae76eddbabf9d038b4076d1a9)
[hyunsoon: removed patch in net/ethtool/common.c which is not in android branch]
Signed-off-by: Hyunsoon Kim <h10.kim@samsung.com>
2020-09-09 08:47:35 +00:00
Fenglin Wu
8e660a0581 input: qcom-hv-haptics: read CAL_TLRA_CL_STS from SDAM after boot up
Commit 7d3ecfd796 ("input: qcom-hv-haptics: read CAL_TLRA_CL_STS from
SDAM after boot up") added support for LRA frequency calibration.
However, since bootloader changes needed to support this feature had
caused a regression on devices that has PM8350B v1 PMIC, this got
reverted with commit 844516d943 ("Revert "input: qcom-hv-haptics: read
CAL_TLRA_CL_STS from SDAM after boot up""). Now that the bootloader
changes handles PM8350B v1 configuration properly, re-enable this
change.

During LRA frequency calibration, reading CAL_TLRA_CL_STS has to be
done before de-asserting play. In the boot up LRA frequency calibration
sequence, CAL_TLRA_CL_STS was read out and stored in SDAM module
registers by the bootloader. Later, HLOS haptics driver can read it from
there and use it for calculating LRA frequency. This boot up LRA
frequency calibration sequence is only available for PM8350B 2.0 chip.
Update the driver to support this.

Change-Id: I23532dd2a0a2bced0ba4715e5b58f6f53fec3160
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-09-09 15:32:22 +08:00
Greg Kroah-Hartman
a81a69408b Revert "BACKPORT: net: core: use listified Rx for GRO_NORMAL in napi_gro_receive()"
This reverts commit 2d5d56df7f.

Upstream reported that other fixes are required after this, and asked
why it is really needed here.

So get those answers first before accepting this patch, as we can not
take known-buggy patches into the tree.

Bug: 167477898
Cc: Hyunsoon Kim <h10.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If795972972fdd17ad85a50f460ce79e00baffb54
2020-09-09 08:42:17 +02:00
Ritesh Kumar
4f7f4c2741 arm64: defconfig: add trusted touch support to GKI defconfig
Add trusted touch support to Lahaina GKI defconfig for
focaltech touch driver.

Change-Id: Id0fd9f248ddc78501485ea9524ce11daec8ad932
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2020-09-08 22:01:51 -07:00
Ritesh Kumar
aa9dd32d67 arm64: defconfig: Add trusted touch config for genericarmv8
Enable Trusted touch config in genericarmv8 defconfig for
focaltech touch driver.

Change-Id: I55a31b31361e302d122e07e5aeb4605741b6ad5a
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2020-09-08 22:01:36 -07:00
Sumukh Hallymysore Ravindra
484c69d559 msm: synx: handle callback deregistration failure
In case of callback deregistration failure, end further
signaling and memory free for the external sync obj.
Without the change, the memory shared with the external
callback would be released even on deregistration failure,
leading to possible double free, as callback might already
been dispatched.

Change-Id: Ic2e755b0b039a9b7ad2e25abb23949d673bda685
Signed-off-by: Sumukh Hallymysore Ravindra <shallymy@codeaurora.org>
2020-09-09 10:15:15 +05:30
qctecmdr
f532a03ce3 Merge "mmc: sdhci-msm: Add the missing check in sdhci_msm_check_power_status" 2020-09-08 20:31:26 -07:00
qctecmdr
1bb98f4d32 Merge "usb: dwc3: gadget: improve several ipc log" 2020-09-08 20:31:26 -07:00
qctecmdr
c9b46ab6d1 Merge "mmc: sdhci_msm: Allow turning off SD card's power during initialization" 2020-09-08 20:31:25 -07:00
qctecmdr
6e3916956f Merge "mmc: sdhci-msm: Disable always-on LDO's when eMMC is absent" 2020-09-08 20:31:25 -07:00
qctecmdr
ec45079898 Merge "arm64: defconfig: Enable L3 interconnect driver for Holi" 2020-09-08 20:31:24 -07:00
Hemant Kumar
1b42aa8062 mhi: core: Remove verbose log from threaded interrupt handler
Verbose log out side the write lock is getting preempted by
other irq and incorrectly identified that mhi irq hogging
cpu when the other irq is responsible for that. Remove
verbose logging from mhi threaded irq which is not really
needed.

Change-Id: I1608d64a43600e662de9076642d0097e31b01a46
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-09-08 19:45:20 -07:00
Jia Ding
c8d3106ddc cnss2: Add cnss_smmu_unmap API
Add cnss_smmu_unmap API so that wlan function driver
could unmap IOVA addresses that are IOMMU mapped.

Change-Id: I1e3aa287589f73a609cc51fe8c826d1edf2fefd1
Signed-off-by: Jia Ding <jiad@codeaurora.org>
2020-09-09 09:33:35 +08:00
Ritesh Kumar
ad6dfecd4d input: touchscreen: focaltech: Add trusted touch support
Add Trusted touch support to lahaina QRD Touchscreen
driver. This feature enables driver to operate in
trusted touch mode in trusted virtual machine(TVM).
The primary virtual machine(PVM) lends resources such
as IO memory and touch irq to TVM prior to trusted touch
is initiated and reclaims those resources back after trusted
touch usecase finishes.The resource requirements of TVM
such as clock, regulators etc are taken care by PVM.

Change-Id: I342a0a19977365ef08ea0c8fc191a2505e6e3984
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2020-09-09 03:39:52 +05:30
qctecmdr
2ac873fba2 Merge "qtee_shmbridge: register bridges for CMA heaps" 2020-09-08 14:43:37 -07:00
qctecmdr
7971c5d489 Merge "power: qpnp-qg: Do not round-up/down battery SOC in BASS" 2020-09-08 14:43:36 -07:00
qctecmdr
2e5aa99ff6 Merge "icnss: Allow register/unregister driver execution in serial manner" 2020-09-08 14:43:36 -07:00
qctecmdr
3f946ae954 Merge "input: misc: qcom-hv-haptics: disable auto resonance for FIFO streaming" 2020-09-08 14:43:36 -07:00
qctecmdr
b22faefba7 Merge "scsi: ufs-qcom: configure ufs clocks core memory" 2020-09-08 14:43:35 -07:00
Ram Chandrasekar
e42e0d7676 arch: arm64: Enable thermal emergency poweroff delay
Enable a 10 seconds thermal emergency poweroff delay.

Change-Id: I169f2bc012a503bcb52da5cc01e295f4c833703c
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-09-08 13:34:07 -07:00
Manaf Meethalavalappu Pallikunhi
9c1e47be30 drivers: thermal: notify at least one thermal zone if no trips are violated
During any sensor threshold notification, the of-thermal framework
checks whether any trip of each thermal zone for that sensor is
violated or not. It requests thermal zone re-evaluation only for
those thermal zones those trip is violated. If trips are violated
for none of thermal zones due to some reason, then of-thermal ignores
that sensor notification and it leads to no active trip threshold
for that sensor forever.

Notify and request thermal zone re-evaluation for at least one thermal
zone for that sensor if trips are violated for none in of-thermal.
It makes sure that for every sensor notification, thermal zone
aggregate and set next active trip.

Change-Id: If9955977fe32929d853815ddb9408385291b3c58
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2020-09-09 01:56:29 +05:30
Kishore Sri venkata Ganesh Bolisetty
5954827649 soc: qcom: msm_perf: fix error checks
in error handling path, remove qos request only if its active.

Change-Id: I322764ce736b581ecabdd82cece83c3d6595e4c7
Signed-off-by: Kishore Sri venkata Ganesh Bolisetty <bsrivenk@codeaurora.org>
2020-09-08 12:50:36 -07:00
Changki Kim
72f2bc5fc2 ANDROID: vendor_hooks: Add vendor hooks for key combination
When some problems happened in android, we can't use adb command because
android can be abnormal state. And we can't use uart because
uart pin is not connected in the board. So we need key combination
functions for debugging.
This function should only use in development environment.
In the market, this will be disabled.

Bug: 167516783

Signed-off-by: Changki Kim <changki.kim@samsung.com>
Change-Id: I1cbbc93642fb45da161eee983380e48045153a66
[ Added "#ifdef __GENKSYMS__" around the include <<trace/hooks/debug.h>
to prevent CRC errors due to visibility of struct trace_eval_map ]
Signed-off-by: Todd Kjos <tkjos@google.com>
2020-09-08 18:04:18 +00:00
Raghavendra Kakarla
6b452b5cc9 lpm-levels: Wakeup the isolated core for new PMQoS update
Wakeup the isolated core for every new PMQoS update so that
we can re-evaluate the core lpm with new updated PMQoS latency
request.

Change-Id: I969ad216ab353f2dbfe4fc54a75000fa0140fce9
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-09-08 22:06:10 +05:30
Himateja Reddy
9a2517c251 msm: adsprpc: Free dma handles in RPC call with no parameters
Currently dma handles are not freed in the RPC call with no parameters.
This will cause fastrpc driver to hold the memory of the dma handle, that
is freed in both DSP and application user space. Free dma handles even
in the RPC call with no parameters.

Change-Id: Ica5bfc98edc07b77f79bfaf75630508b8c9ee1af
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-09-08 08:21:55 -07:00
Asutosh Das
f5dc67138e mmc: sdhci-msm: Add suspend late cb
Make sure that the delayed work invoked in suspend
are completed.

Change-Id: I29df22cdd44590fca3ebf0ecc58d6d88505cc156
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-09-08 08:19:24 -07:00
Alexander Potapenko
a564726277 ANDROID: gki_defconfig: initialize locals with zeroes
This patch switches compiler-based stack initialization from 0xAA
to zero pattern, resulting in much more efficient code and saner
defaults for uninitialized local variables.

Bug: 154198143
Test: run cuttlefish and observe the following lines in dmesg:
      test_stackinit: all tests passed!
      test_meminit: all 130 tests passed!

Signed-off-by: Alexander Potapenko <glider@google.com>
Change-Id: If9f2047fcbee58b90dbd8ad45707c5b40a654e2d
2020-09-08 15:12:54 +00:00
glider@google.com
1b6a6a2efe UPSTREAM: security: allow using Clang's zero initialization for stack variables
Upstream commit f0fe00d4972a8cd4b98cc2c29758615e4d51cdfe.

In addition to -ftrivial-auto-var-init=pattern (used by
CONFIG_INIT_STACK_ALL now) Clang also supports zero initialization for
locals enabled by -ftrivial-auto-var-init=zero. The future of this flag
is still being debated (see https://bugs.llvm.org/show_bug.cgi?id=45497).
Right now it is guarded by another flag,
-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang,
which means it may not be supported by future Clang releases. Another
possible resolution is that -ftrivial-auto-var-init=zero will persist
(as certain users have already started depending on it), but the name
of the guard flag will change.

In the meantime, zero initialization has proven itself as a good
production mitigation measure against uninitialized locals. Unlike pattern
initialization, which has a higher chance of triggering existing bugs,
zero initialization provides safe defaults for strings, pointers, indexes,
and sizes. On the other hand, pattern initialization remains safer for
return values. Chrome OS and Android are moving to using zero
initialization for production builds.

Performance-wise, the difference between pattern and zero initialization
is usually negligible, although the generated code for zero
initialization is more compact.

This patch renames CONFIG_INIT_STACK_ALL to CONFIG_INIT_STACK_ALL_PATTERN
and introduces another config option, CONFIG_INIT_STACK_ALL_ZERO, that
enables zero initialization for locals if the corresponding flags are
supported by Clang.

Cc: Kees Cook <keescook@chromium.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Alexander Potapenko <glider@google.com>
Link: https://lore.kernel.org/r/20200616083435.223038-1-glider@google.com
Reviewed-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Change-Id: I3c69570e7e3d3bbb666709de6feb531000bce2bf
2020-09-08 15:12:44 +00:00
Deepak Kumar Singh
e260b6c424 rpmsg: glink: reset read/write index after ssr
While system is going down fifo index are not reset which can
cause remote subsystem to read stale index.

Now resetting the index while system is going down.

CRs-Fixed: 2543040
Change-Id: Icb4010c120f4735da206a44a4eb1bcf06ae0a1b7
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-09-08 17:53:27 +05:30
Aman Mehta
3c2b8124f8 msm-perf: Kgsl events collection for perf
Send KGSL events to perf module.

Change-Id: Icb76a3067296544b2489e4be60ea7417739da211
Signed-off-by: Aman Mehta <amanmeht@codeaurora.org>
2020-09-08 03:10:44 -07:00
Neeraj Upadhyay
bf59df3a79 defconfig: msm: Enable Yupik platform
Enable CONFIG_YUPIK option to use Yupik platforms.

Change-Id: I083dd5ea2d20cc8ec28c9af7fcddd3477aef3293
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-08 14:09:54 +05:30
Neeraj Upadhyay
75ccd14f12 arm64: Kconfig: Add Yupik platform
Add arch support for Yupik platform.

Change-Id: If92a2b7dd1a1fa64c1f2daa21b2153cf306e8147
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-08 14:08:56 +05:30
Fei Mao
6a44a5799f input: touchscreen: mxt: reset IC before read again
After touch read is failed, reset touch IC and enable irq
before try to read by I2C once again.

Change-Id: I755ab9e41dcc953665f21df01ea03fe0f89b958d
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-09-08 16:37:08 +08:00
Alexander Lobakin
2d5d56df7f BACKPORT: net: core: use listified Rx for GRO_NORMAL in napi_gro_receive()
Commit 323ebb61e3 ("net: use listified RX for handling GRO_NORMAL
skbs") made use of listified skb processing for the users of
napi_gro_frags().
The same technique can be used in a way more common napi_gro_receive()
to speed up non-merged (GRO_NORMAL) skbs for a wide range of drivers
including gro_cells and mac80211 users.
This slightly changes the return value in cases where skb is being
dropped by the core stack, but it seems to have no impact on related
drivers' functionality.
gro_normal_batch is left untouched as it's very individual for every
single system configuration and might be tuned in manual order to
achieve an optimal performance.

Signed-off-by: Alexander Lobakin <alobakin@dlink.ru>
Acked-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Bug: 167477898
Change-Id: Ie9e079cf9a5799ca2c4924848ca6b3caeef056d7
(cherry picked from commit 6570bc79c0dfff0f228b7afd2de720fb4e84d61d)
[hyunsoon: fix conflicts in net/core/dev.c]
Signed-off-by: Hyunsoon Kim <h10.kim@samsung.com>
2020-09-08 17:14:13 +09:00
Pavankumar Kondeti
b547ec3311 sched/fair: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I19ec68fe40d931b501ea84a9306d04fcb58db60d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-09-08 10:49:08 +05:30
Pavankumar Kondeti
eb11578cf8 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Id1692f724f2efd22ada3365cebd154f1999930b5
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-09-08 10:45:44 +05:30
Nitheesh Muthuraj
0ec5dc84ad msm: kgsl: Make kgsl_iommu_clocks list dynamic
Make the iommu clocks list dynamic so that we
can add new clocks to the list whenever needed.

Change-Id: I7a742c709d0bdc59d4f578329f7019959d4edb46
Signed-off-by: Nitheesh Muthuraj <nmuthuraj@codeaurora.org>
2020-09-07 21:36:56 -07:00
Biao Long
f1627cb4d6 sched/fair: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: I917955ef029f30db6c185a41f717a89dd179cc49
Signed-off-by: Biao Long <blong@codeaurora.org>
2020-09-07 19:23:52 -07:00
Subbaraman Narayanamurthy
8ab1a27ae3 input: qcom-hv-haptics: Disable haptics module during suspend
To help with power savings, disable haptics module when the device
enters suspend and enable it when it exits suspend.

Change-Id: I8956be849b876a2b514c1de49f8ff447267d28a1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-09-08 09:25:59 +08:00
Can Guo
e9425a0ede scsi: ufs: Put hba into LPM during clk gating
During clock gating, after clocks are disabled, put hba into LPM to save
more power.

Change-Id: I1d8d76f3b72a2346c9ab6268555b0b416cb3b16f
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-09-08 09:10:25 +08:00
Vijayanand Jitta
0d1287fa01 soc: qcom: minidump: Add md_get_region function
Add a function md_get_region which returns md_region
when we pass minidump entry name to it.

Change-Id: Ibbd84737041c5b1c25cc46b9c740d415978de7e6
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-07 09:23:58 -07:00
Vijayanand Jitta
65caff8352 soc: qcom: Enable slabinfo support in minidump
Register and dump slabinfo on kernel panic to minidump
table.

Change-Id: I8e2eabf63233bdb0039a7c7c962b980fba2e21ef
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-07 09:23:52 -07:00
Vijayanand Jitta
2ae883be00 soc: qcom: Enable meminfo support in minidump
Register and dump meminfo on kernel panic to minidump
table.

Change-Id: I367d09ce8aabf4feda6d352411d9e10038a37ff9
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-07 09:23:42 -07:00
Prateek Sood
45872c8646 defconfig: msm: Enable QCOM_INITIAL_LOGBUF for lahaina
Enable CONFIG_QCOM_INITIAL_LOGBUF for lahaina. This enables
copying of dmesg logs into separate buffer at 100 sec from
bootup.

Change-Id: I3ae2e1d5eca1a1eab42aa2161f9c0a7696497998
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-09-07 18:27:52 +05:30
Prateek Sood
ee23dc5bc1 defconfig: msm: Enable irq stats for lahaina
Enable CONFIG_QCOM_IRQ_STAT for lahaina. This enables
irq stats at watchdog pet, watchdog bark and kernel panics.

Change-Id: Ic998ebfbc39a7b111fb8b8603d2be35968a31a66
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-09-07 18:23:50 +05:30
Odelu Kukatla
c56ba7bb9c arm64: defconfig: Enable L3 interconnect driver for Holi
Enable L3 interconnect driver so that consumers are
able to obtain their path handles properly.

Change-Id: I92b407621e6c65563e5e88b63cf6b776329657cb
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-09-07 05:48:35 -07:00
Neeraj Upadhyay
7a60cf6dd2 defconfig: msm: Enable minidump ftrace and panic registration
Enable minidump panic and ftrace registration support for
Lahaina QGKI consolidate config.

Change-Id: I7cff3e90ef9ba9d684c05578e7a41b11e40a1ff5
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 18:13:40 +05:30
Fei Mao
83a7bd2675 input: touchscreen: mxt: configure proper sleep state
Configure proper sleep state and touch works correctly
when device resume.

Change-Id: I06fc1dfd281cfa297fb8698a5b350aa062d603b2
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-09-07 05:26:29 -07:00
Neeraj Upadhyay
1f4340c001 soc: qcom: Add module info registration to minidump
Add support for dumping active modules information,
in minidump registered region.

Change-Id: Id8e81ea7beae425a1a0f68f91a8cf9aa093b8011
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 05:08:46 -07:00