Commit graph

888,956 commits

Author SHA1 Message Date
Saravana Kannan
fbc213a516 ANDROID: Revert "module: Refactor section attr into bin attribute"
This reverts commit 0d5d9413a6 as it
breaks ramdump debug tools. Will bring this back in after resolving
those issues.

Bug: 163100336
Change-Id: Ic64214c63ecd6347f5707cc7354e6969d3af0320
Signed-off-by: Saravana Kannan <saravanak@google.com>
Git-commit: ae8f7f7807
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-08-11 13:38:26 -07:00
Saravana Kannan
fc7972f8db ANDROID: Revert "module: Do not expose section addresses to non-CAP_SYSLOG"
This reverts commit 314ac273f0 as it
breaks ramdump debug tools. Will bring this back in after resolving
those issues.

Bug: 163100336
Change-Id: Ibf46f6db0fa2bf9cc9e7121115889e15ca07cdab
Signed-off-by: Saravana Kannan <saravanak@google.com>
Git-commit: d837f090a6
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-08-11 13:38:17 -07:00
qctecmdr
d8534164bb Merge "build.config.common: Move to clang-11" 2020-08-06 12:39:32 -07:00
qctecmdr
e434ce8db2 Merge "arm64: defconfig: Enable interconnect driver for Holi" 2020-08-06 12:39:32 -07:00
qctecmdr
d0debf0f84 Merge "iommu/arm-smmu: add support to configure IOVA range" 2020-08-06 12:39:32 -07:00
qctecmdr
15a4ecc85f Merge "msm: cvp: adding new target and read fw name from dtsi" 2020-08-06 12:39:31 -07:00
qctecmdr
11a6194bdd Merge "soc: qcom: llcc: Add support for CPU TLB System Cache Id" 2020-08-06 12:39:31 -07:00
qctecmdr
b186c50739 Merge "msm: adsprpc: Fix concurrency in early wake of fastrpc" 2020-08-06 12:39:30 -07:00
suchawla
46ad5b6720 msm: cvp: adding new target and read fw name from dtsi
Adding changes for the new target and reading the FW name
from dtsi.

Change-Id: I224ebe001126c33c55fc039e74f42555a4dce1f8
Signed-off-by: suchawla <suchawla@codeaurora.org>
2020-08-06 03:55:23 -07:00
qctecmdr
1fa28c49fb Merge "input: touchscreen: focaltech_touch: support dynamic report rate" 2020-08-06 03:32:50 -07:00
qctecmdr
50499d00d0 Merge "msm: cvp: Add support of mdt loader" 2020-08-06 03:32:50 -07:00
qctecmdr
c430af9f3a Merge "arm64: defconfig: Enable dmabuf destructor support on all targets" 2020-08-06 03:32:49 -07:00
qctecmdr
382aafa472 Merge "soc: qcom: hyp_core_ctl: Minor cleanup" 2020-08-06 03:32:49 -07:00
qctecmdr
402d0f255e Merge "defconfig: Shima: enable recommended memory configs" 2020-08-06 03:32:49 -07:00
qctecmdr
f7021dc9b9 Merge "serial: msm_geni_serial: Do not place msm_geni_console_setup under __init" 2020-08-06 03:32:48 -07:00
Odelu Kukatla
49f651e328 arm64: defconfig: Enable interconnect driver for Holi
Enable the interconnect driver so that consumers are
able to obtain their path handles properly.

Change-Id: Ic9b11ac283beb5d1c00ba98564377d214d323a82
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-08-06 13:37:52 +05:30
qctecmdr
64d377e6a2 Merge "soc-compress: Update error handling to cleanup backend" 2020-08-06 00:53:21 -07:00
qctecmdr
60fd474f45 Merge "msm: msi: add support for Synopsys MSI" 2020-08-06 00:53:21 -07:00
qctecmdr
95e9552b1a Merge "sched/walt: Improve the scheduler" 2020-08-06 00:53:20 -07:00
qctecmdr
734fd627ac Merge "power: supply: qti_battery_charger: update USB power supply type runtime" 2020-08-06 00:53:20 -07:00
qctecmdr
e3dad1cb95 Merge "cnss2: Check device power state for Suspend / Resume operations" 2020-08-06 00:53:19 -07:00
qctecmdr
98161b4faa Merge "ABI: Disable USB_ROLE_SWITCH and TYPEC in GKI" 2020-08-06 00:53:19 -07:00
qctecmdr
60c110ac9c Merge "msm: adsprpc: check for fastrpc session ctx initialization" 2020-08-05 19:48:50 -07:00
qctecmdr
581a648da0 Merge "usb: phy: snps: Enable auto-resume during host mode bus suspend" 2020-08-05 19:48:49 -07:00
qctecmdr
562c20cd32 Merge "sched/fair: Add policy for restricting prefer_spread to newly idle balance" 2020-08-05 19:48:49 -07:00
qctecmdr
28b12c5b97 Merge "spi: spi-msm-geni: Add lock/unlock tre support in SPI GSI mode" 2020-08-05 19:48:49 -07:00
qctecmdr
64b7fed46b Merge "soc: qcom: Skip setting wakeup for ipcc irqchip" 2020-08-05 19:48:48 -07:00
qctecmdr
cbabda2667 Merge "defconfig: Support for SSG HLOS drivers" 2020-08-05 19:48:48 -07:00
Manikandan Mohan
85799b3a85 cnss2: Check device power state for Suspend / Resume operations
If WLAN driver probe fails, its intenal state may not be
proper. Thus check for device powered on state before calling
WLAN driver operations for suspend / resume.

Change-Id: I81da8969e9b0e0525256db8da2c0db25a996b241
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-08-05 15:06:46 -07:00
qctecmdr
c0410e7e36 Merge "Merge android11-5.4.54 (261a54f) into msm-5.4" 2020-08-05 15:01:28 -07:00
Subbaraman Narayanamurthy
466c5d5e26 power: supply: qti_battery_charger: update USB power supply type runtime
Currently, USB power supply type is set to POWER_SUPPLY_TYPE_USB
in power supply descriptor. power_supply_show_property() would
show POWER_SUPPLY_PROP_TYPE based on psy->desc->type. Userspace
process like healthd would read POWER_SUPPLY_PROP_TYPE to print
the adapter type in logs (e.g. "chg=u" for SDP, "chg=a" for DCP).
Hence update usb_psy_desc type runtime to show the USB power
supply type accordingly. This is useful for testing.

Change-Id: Icd88098f97beba053105d826614b4182f3716144
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-08-05 14:48:30 -07:00
Subbaraman Narayanamurthy
9c3f7e472c power: supply: qti_battery_charger: add some more properties
To support userspace application and testing, add some more
properties under USB power supply and qcom-battery class.

To show USB connector temperature, following property is added.

- /sys/class/power_supply/usb/temp

To support restricted charging similar to legacy targets,
following parameters are added.

- /sys/class/qcom-battery/restrict_cur
- /sys/class/qcom-battery/restrict_chg

To show whether the Type-C sink/source connected is compliant,
following parameter is added.

- /sys/class/qcom-battery/usb_typec_compliant

To show the custom USB_TYPE for Quick charge adapters like HVDCP,
HVDCP3 etc., following parameter is added.

- /sys/class/qcom-battery/usb_real_type.

Change-Id: Ia8dfba41c6ed3056dda588a1955a60ef19568112
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-08-05 14:48:22 -07:00
Raghavendra Rao Ananta
aa30ee3b61 build.config.common: Move to clang-11
Switch the clang version to r383902 (clang-11). Update the
ABI snapshot accordingly.

Change-Id: I12e60c1bb3bd1e64f26bdc0b85b08e5e08b72ae9
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-05 14:34:03 -07:00
Faiyaz Mohammed
3ff95e2841 defconfig: Shima: enable recommended memory configs
Enable recommended memory configs.

Change-Id: I0fd0fefb27178cc18e66e56f6c30465cdd270991
Signed-off-by: Faiyaz Mohammed <faiyazm@codeaurora.org>
2020-08-05 07:29:24 -07:00
Akash Asthana
d6433f75e5 serial: msm_geni_serial: Do not place msm_geni_console_setup under __init
msm_geni_console_setup() can be potentially called from the driver's
probe via uart_add_one_port(). Since it's placed under __init, the
function would be discarded as soon as the module_init portion of the
driver completes, and when called during probe, it causes an instruction
abort. As a result, move the msm_geni_console_setup() out of __init.

Change-Id: I27ebdcd0832bb49d66e85b250b652cc38f4aa333
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-08-05 06:14:34 -07:00
Sai Harshini Nimmala
94ee947a37 soc: qcom: hyp_core_ctl: Minor cleanup
Change member sid in driver data structure to cap_id.
Fix condition check in hh_vcpu_done_populate_affinity_info for better
readability.

Change-Id: Idc7f8a4fd6b6a7ac8e004eb96c2020a9f1f4444b
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-08-05 05:09:05 -07:00
Satya Durga Srinivasu Prabhala
c1b84fedb0 soc: qcom: hyp_core_ctl: fix issue with CPU Freq policy dependency
commit 9acfa80c3d
("BACKPORT: driver core: fw_devlink: Add support for batching fwnode parsing")
changed the way drivers gets probed and by the time hyp core ctl driver tries
to get CPU freq policy, cpufreq driver is not probed which leads to hyp core
ctl driver probe failure. Fix the dependency on CPU Freq policy by moving
freq qos initialization from probe to first write of the min freq node.

Change-Id: I75c628e768ee37a78d1ee54df3e55b6d2389f9a2
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-08-05 05:08:59 -07:00
Fei Mao
327cd14766 input: touchscreen: focaltech_touch: support dynamic report rate
Add a new sys node to support runtime dynamic report rate.

Change-Id: Ifa7f4290b648f79cfeec80ae421af4c7c7a36aaf
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-08-05 18:51:11 +08:00
Vipin Deep Kaur
67640229d7 spi: spi-msm-geni: Add lock/unlock tre support in SPI GSI mode
Add lock/unlock TRE support in SPI GSI mode for following cases.
Shared_ se is a multi-ee usecase where two Excecution Environments
simultaneously access an SE, the locking support here is enabled per
message i.e. gpii lock is taken in prepare_message api and gpii unlock
is done in unprepare_message api.
LE_VM usecase is the TUI usecase over spi where an SE is accessed between
LA and LE, here locking mechanism is provided per session i.e. gpii
lock is taken in pm_runtime_get_sync call and gpii unlock is done in
pm_runtime_put_sync call called by the client in LE.

Change-Id: I3f735aa5f7f98b13fccd49ebe8d83dcce5ca9b71
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-08-05 01:42:18 -07:00
Vipin Deep Kaur
8c5756c0e4 spi: spi-msm-geni: Rename shared_se flag to gsi_mode flag
Shared_se flag specifies that GSI mode is enabled. Rename
the flag to gsi_mode.

Change-Id: I2b947c1d74ddbd533466a0d48659c45c736834d9
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-08-05 00:08:36 -07:00
Vipin Deep Kaur
8ca2ed1369 arm64: defconfig: Enable SPI driver configs for trusted VM on lahaina
Enable SPI driver configs(CONFIG_SPI_MSM_GENI and CONFIG_SPI_SPIDEV)
for trusted VM.

Change-Id: I4d028fa9a9da24470758fa66d728404c8f311633
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-08-04 22:56:06 -07:00
Raghavendra Rao Ananta
3b821d8442 soc: qcom: llcc: Add support for CPU TLB System Cache Id
Enable the CPU TLB System Cache Id by adding CPUHWT entry
to the Lahaina's LLCC SCT list and move the priority of
LCC_DISP to 2.

Change-Id: I0184d4f997961782d51ed98c18e19e3bbc67759a
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-04 21:37:11 -07:00
Raghavendra Rao Ananta
8fb9c688bb ABI: Disable USB_ROLE_SWITCH and TYPEC in GKI
CONFIG_USB_ROLE_SWITCH and USB_ROLE_SWITCH are already enabled
as y in gki_defconfig. Hence, there's no reason to re-enable
them as a modules and can be removed in *_GKI.config. As a
conequence of this removal, add usb_role_switch_get and
usb_role_switch_put symbols to the ABI allowed-list and update
the snapshot accordingly.

Change-Id: Ief8808d2b48429f116b11fcd34f038359c93f6e3
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-04 20:21:50 -07:00
Satya Durga Srinivasu Prabhala
611e7f29a5 sched/fair: Add policy for restricting prefer_spread to newly idle balance
Add policy for restricting prefer_spread to newly idle load balance
by expanding the tunable range.

To allow lower capacity CPUs to do aggressive newly idle load balance:
echo 3 > /proc/sys/kernel/sched_prefer_spread

To allow bother lower capacity and higher capacity CPUs to do
aggressive newly idle load balance:
echo 4 > /proc/sys/kernel/sched_prefer_spread

Change-Id: Ia62ddb29bdf592a956a9688f277178ef71dee1b3
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
[pkondeti@codeaurora.org: The tunable range is expanded]
Co-developed-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-08-05 07:14:01 +05:30
Pavankumar Kondeti
538a6d664f sched/fair: Tighten prefer_spread feature
This patch tightens the prefer_spread feature by doing the
following.

(1) While picking the busiest group in update_sd_pick_busiest(),
if the current group and busiest group are classified as same,
use number of runnable tasks to break the ties. Use group load
as the next tie breaker. Otherwise we may end up selecting the
group with more utilization but with just 1 task.

(2) Ignore average load checks when the load balancing CPU is
idle and prefer_spread is set.

(3) Allow no-hz idle balance CPUs to pull the tasks when the
sched domain is not over-utilized but prefer_spread is set.

(4) There are cases in calculate_imbalance() that skip imbalance
override check due to which task are not getting pulled. Move this
check to outside of calculate_imbalance() and set the imbalance to
half of the group load.

(5) when the weighted CPU load is 0, find_busiest_queue() can't
find the busiest rq. Fix this as well.

Change-Id: I93d1a62cbd4be34af993ae664a398aa868d29a0c
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-08-05 07:13:38 +05:30
qctecmdr
0e2097ce85 Merge "msm: kgsl: fix a condition error and set L3 clock rate fail" 2020-08-04 18:37:07 -07:00
qctecmdr
5920398363 Merge "msm: ipa: Move internal definitions to the techpack" 2020-08-04 18:37:06 -07:00
qctecmdr
d92a495e75 Merge "cnss2: Update QMI header file for PCIE gen switch and bdf data" 2020-08-04 18:37:06 -07:00
qctecmdr
49b1b0e8ee Merge "cnss2: Add support of runtime Vreg enable for QCA6490" 2020-08-04 18:37:06 -07:00
qctecmdr
10a538a0bd Merge "hwkm: fail on last byte corruption" 2020-08-04 18:37:05 -07:00