Commit graph

878,398 commits

Author SHA1 Message Date
qctecmdr
9ee272676c Merge "arm64: Honor limits set by boot parameter" 2020-03-02 04:36:30 -08:00
qctecmdr
1ab609531c Merge "arm64: mm: improve the mem-offline device node availability check" 2020-03-02 04:36:30 -08:00
qctecmdr
592ae25d40 Merge "defconfig: arm64: Enable data defconfigs" 2020-03-02 04:36:29 -08:00
qctecmdr
bdbcfb1ea2 Merge "msm: kgsl: Add A660 hardware clock gating register values" 2020-03-02 00:26:49 -08:00
qctecmdr
ca6ad9e77f Merge "iommu/arm-smmu: Cleanup context fault logging logic" 2020-03-02 00:26:48 -08:00
qctecmdr
fc4dced779 Merge "ion: don't wakeup refill threads for order-0 requests" 2020-03-02 00:26:48 -08:00
qctecmdr
201f211f2d Merge "sched: walt: Improve the scheduler" 2020-03-01 20:58:29 -08:00
qctecmdr
93655ae632 Merge "msm: ipa: Fix ipa3_wwan_xmit return type" 2020-03-01 18:13:00 -08:00
qctecmdr
36bcbe78a2 Merge "mmc: sdhci-msm: Support Retention of SDCC Regs in CX Collapse" 2020-03-01 18:13:00 -08:00
qctecmdr
2e946461cd Merge "msm: kgsl: Override UBWC configuration for A660 based on DDR type" 2020-03-01 18:13:00 -08:00
qctecmdr
4367382eb6 Merge "mm/oom-kill: Remove obsolete IS_ENABLED check" 2020-03-01 15:21:59 -08:00
Charan Teja Reddy
703ccaaab4 arm64: mm: improve the mem-offline device node availability check
Even if we use status = "disabled" in mem-offline node, still the
update_memory_limit() will go and update memory_limit variable and
thus the removed memory is never added to system as the
mem-offline driver is disabled. Correct this logic.

Change-Id: I80102830f0a5a82dcd4cddfaddb0de21bfdd0110
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-28 15:15:12 -08:00
Vijayanand Jitta
cdab8bbfe2 arm64: Honor limits set by boot parameter
Consider the memory limit enforced by boot parameter and
restrict adding beyond this boundary during a memory hotplug.

Change-Id: Ibd13e47ee13004381a1ddff649150fae13429c87
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-28 15:03:03 -08:00
qctecmdr
41dfbf027b Merge "leds: qti-flash: Add maximum available flash current prediction" 2020-02-28 09:29:37 -08:00
qctecmdr
c6aacf321e Merge "defconfig: lahaina: enable QBT_HANDLER" 2020-02-28 07:11:58 -08:00
qctecmdr
40287648fd Merge "slim-msm-ngd: Check current state of sub system restart notifier" 2020-02-28 04:39:55 -08:00
qctecmdr
32e8550ed0 Merge "scsi: ufs-qcom: Refactor phy_power_on/off calls" 2020-02-28 04:39:55 -08:00
Prudhvi Yarlagadda
80269d295f slim-msm-ngd: Check current state of sub system restart notifier
Check for the current state of sub system restart notifier when
the LOCATOR_UP notification is given to slimbus driver and do the
slimbus initialization if the current state is already set to
SERVREG_NOTIF_SERVICE_STATE_UP_V01.

This change is needed in the cases where LOCATOR_UP notification
to slimbus driver got delayed and the state of the sub system restart
notifier is already set to SERVREG_NOTIF_SERVICE_STATE_UP_V01 as
slimbus will be expecting the SERVREG_NOTIF_SERVICE_STATE_UP_V01
notification which is not going to come as the notifier state is
already changed.

Change-Id: I4804bbb13e065ac78be7a442993286532402db9d
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2020-02-27 23:24:25 -08:00
Prudhvi Yarlagadda
e7761f93ac slim-msm-ngd: Prevent system suspend during initialization
Prevent system suspend from happening during slimbus initialization
process where the NGD Slimbus component gets enummerated with
ADSP slimbus component and then queries the logical addresses of
the clients connected.

This is to prevent the issue where the slimbus driver goes to
suspend due to system suspend after the enumeration phase is
done after an SSR/PDR. Driver again resumes for querying logical
addresses of clients connected assuming enumeration process is
already done whereas it has to be re-enumerated as driver got
suspened and resumed.

Change-Id: I42ab3f7a6061a1c464d436aa13e43d27eb312fd4
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2020-02-27 23:23:23 -08:00
Abir Ghosh
7db2b2ff28 defconfig: lahaina: enable QBT_HANDLER
Enable support for ultrasonic fingerprint
driver in lahaina defconfig.

Change-Id: Ib66316b7b3e6fc186f6f5a92c50e62e1332e92b8
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-02-27 22:42:35 -08:00
qctecmdr
b0866600a2 Merge "scripts: gki: Ensure HOSTLD and HOSTAR are not changed" 2020-02-27 22:33:41 -08:00
qctecmdr
c84acc8ce0 Merge "scsi: ufs-qcom: Adjust the order of bus bandwidth voting and unvoting" 2020-02-27 22:33:41 -08:00
qctecmdr
fadb781fa7 Merge "arm64: defconfig: Enable the pinctrl-shima driver" 2020-02-27 22:33:40 -08:00
Shyam Kumar Thella
19b532c6ac leds: qti-flash: Add maximum available flash current prediction
Add support to calculate maximum current available for flash module.
Clients of flash LED makes use of this API qti_flash_led_prepare()
to query maximum available current for different flash LED channels.

Change-Id: I26988b1afb1e57a190aa25061189b71ca3f7ea95
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-02-28 10:36:59 +05:30
Abir Ghosh
a309409b03 qbt_handler: Change return type of qbt_poll
Add changes to make touch events notifier static.
Change the return type of qbt_poll from unsigned int
to __poll_t.

Change-Id: Ib43f6bb5ba77cb48d1e47e1ecd1d5b810f7c9159
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-02-28 10:23:20 +05:30
Prakruthi Deepak Heragu
49983a65ef scripts: gki: Ensure HOSTLD and HOSTAR are not changed
Change the way the HOSTLD and HOSTAR are assigned in the envsetup.sh
so that the original values don't get overwritten.

Change-Id: Ia2dd91d47b1ab3a527305973a67d8b5b5368a607
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-27 17:29:46 -08:00
Can Guo
33714450cb scsi: ufs-qcom: Refactor phy_power_on/off calls
Commit 052553af6a ("ufs/phy: qcom: Refactor to use phy_init call") puts
enabling regulators & clks, calibrating UFS PHY, starting serdes and
polling PCS ready status into phy_power_on.

Due to UFS PHY's registers are retained after power collapse, so
calibrating UFS PHY, starting serdes and polling PCS ready status need to
be done only when start hba, but not needed every time when phy_power_on
is called during resume. Keep the codes which enables PHY's regulators &
clks in phy_power_on but move the rest steps into PHY's general calibration
func, namely phy_calibrate.

Commit 3f6d1767b1 ("phy: ufs-qcom: Refactor all init steps into
phy_poweron") removes the phy_power_on/off from ufs_qcom_setup_clocks.

To have a better power saving, remove the phy_power_on/off calls from
resume/suspend path and put them back to ufs_qcom_setup_clocks, so that
PHY's regulators & clks can be turned on/off along with UFS's clocks.

At last, add a mutex lock to protect the usage of is_phy_pwr_on against
possible racing.

Change-Id: I1ed5d5d6968c3f16018e9723eab010ea7ed798b2
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-02-27 16:54:51 -08:00
Can Guo
55af5bb593 scsi: ufs-qcom: Adjust the order of bus bandwidth voting and unvoting
The bus bandwidth voting is required to be done before the bus clocks
are enabled, and the unvoting is required to be done only after the bus
clocks are disabled.

Change-Id: Ie231d9c373c0d8c8f3dd90b8322ff24fabdfae26
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-02-27 16:54:50 -08:00
qctecmdr
bdd1662e16 Merge "pinctrl: qcom: Add support for Shima SoC pin control" 2020-02-27 16:25:38 -08:00
qctecmdr
3ea7271f60 Merge "ASoC: compare CPU DAI stream name to find BE DAI" 2020-02-27 16:25:38 -08:00
qctecmdr
db213e8a9e Merge "trace/sched: Fix compilation issues on !SMP" 2020-02-27 16:25:37 -08:00
qctecmdr
3ad38dff23 Merge "msm: ADSPRPC: Enable Asynchronous RPC" 2020-02-27 16:25:37 -08:00
qctecmdr
e0f0b6a5db Merge "cnss2: Retry if PCI link training fails" 2020-02-27 16:25:37 -08:00
qctecmdr
b1a2a556e9 Merge "scsi: ufshcd-qti: enable runtime-pm" 2020-02-27 16:25:36 -08:00
qctecmdr
7f05dc796c Merge "cnss2: Avoid double calling MHI force wake put" 2020-02-27 16:25:35 -08:00
Chris Goldsworthy
7e10ca7b44 mm/oom-kill: Remove obsolete IS_ENABLED check
CONFIG_HAVE_LOW_MEMORY_KILLER is no longer present on 5.4, so remove a
check to see if it's enabled or not.

Change-Id: Ifcd88a0e29b7da6dede7f98fcb4c99ffc7bf3c02
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-27 15:13:15 -08:00
Patrick Daly
90ec8176a8 mm/oom-kill: Add option to panic when killing foreground app
This setting is useful to debug memory intensive test scenarios,
which are close to the limit of what the device supports.

Change-Id: Id09f43736bd3c9586b4dac4fae570e78089f5bb3
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
[cgoldswo@codeaurora.org: Add macro introduced in obsolete patch]
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-27 15:13:15 -08:00
Chris Goldsworthy
83d2497e08 defconfig: lahaina: Expose additional page debugging info
Enable CONFIG_PAGE_EXTENSION_PAGE_FREE and CONFIG_PAGE_FREE_TIME, which
provides information on (1) if a page from buddy is free or not, (2) the
timestamp of when a given page was freed, if it currently is free.

Change-Id: I702c93192e031bbeb023879e47c2202f0c8d65f9
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-27 15:13:14 -08:00
Sudarshan Rajagopalan
fb23f8fa6a mm, page_owner: set page owner info for tail pages
When allocating higher order pages, currently only the head page is set
with page owner info, leaving the tail pages with previous or stale info.
This patch sets the info for tail pages too and sets the time of free in
page owner info of all pages during free. This patch also adds an extra
info to page extension flags to help check if page is in buddy or not.

Change-Id: I96d13485af698d586a4dd7b1092a379a645c8fcb
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
[cgoldswo@codeaurora.org: Fix merge conflicts, add GKI #ifdef guards]
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-27 15:13:14 -08:00
Chris Goldsworthy
68f85c607c mm/Kconfig: Re-add HAVE_USERSPACE_LOW_MEMORY_KILLER
When Android has a userspace low memory killer, we want to configure
certain parts of the reclaim paths in the kernel.
HAVE_USERSPACE_LOW_MEMORY_KILLER can be used to perform this configuration,
and was removed when reverting a patch that defined it.  Re-add it.

Change-Id: Ic069c92a9d7928f0402705df8375d5384e9f743c
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-27 15:13:09 -08:00
Yue Ma
3a7735e8e2 cnss2: Avoid double calling MHI force wake put
If MHI force wake get returns failure, it means MHI force wake
put has already been done. Add checks to avoid double calling.

Change-Id: I14f8cef5e6736130e76c287748d7ce3ff0023505
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-27 14:48:05 -08:00
qctecmdr
bb4e39e998 Merge "ANDROID: kbuild: avoid excessively long argument lists" 2020-02-27 13:56:44 -08:00
Yue Ma
b7142ef27b cnss2: Retry if PCI link training fails
Retry a few times if PCI link training fails to avoid device side is
not ready in time.

Change-Id: Icd88673b19a4d6f877f597d1c636438f932f85a7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-27 12:31:31 -08:00
Sami Tolvanen
85414490f5 ANDROID: kbuild: avoid excessively long argument lists
With LTO, modules with a large number of compilation units maybe end
up exceeding the for loop argument list in the shell. Reduce the
probability for this happening by including only the modules that have
exported symbols.

Bug: 150234396
Change-Id: I4a289aff47e1444aca28d1bd00b125628f39bcd5
Suggested-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Git-commit: 1245167
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-27 12:21:13 -08:00
Isaac J. Manjarres
1c27fd381a iommu/arm-smmu: Cleanup context fault logging logic
The context fault handler uses a lot of magic numbers
that now have proper constants defined, so use those
constants.

Change-Id: Ic775bdbb4d617d4f96c935d7f18516e9d4740b9e
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-27 12:00:34 -08:00
qctecmdr
4f6c398965 Merge "msm: kgsl: Set bus scaling function during gmu probe" 2020-02-27 11:35:11 -08:00
qctecmdr
0a746e2014 Merge "msm: kgsl: Initialize LPAC registers" 2020-02-27 11:35:11 -08:00
qctecmdr
0e7231d5a0 Merge "scsi: ufshcd-qti: Add quirk to disable fastauto mode" 2020-02-27 11:35:11 -08:00
qctecmdr
790f1d6051 Merge "ucsi: start usb host mode when partner type is power cable/ufp" 2020-02-27 11:35:11 -08:00
qctecmdr
c06a32d6ff Merge "haven: doorbell: Remove locks around read/send" 2020-02-27 11:35:10 -08:00