Commit graph

805307 commits

Author SHA1 Message Date
qctecmdr
fac8c15b35 Merge "power: qpnp-qg: Update the qg_esr_mod_count based on fifo-length" 2019-12-26 19:42:16 -08:00
qctecmdr
553427bbad Merge "msm: Increase the kernel virtual area to include lowmem" 2019-12-26 10:11:15 -08:00
qctecmdr
d874198c9f Merge "clk: qcom: gcc: Update voltage fmax table for video clock" 2019-12-26 10:11:15 -08:00
qctecmdr
1b52c22b87 Merge "cnss2: check wlfw mac before switching to mission mode" 2019-12-26 10:11:15 -08:00
qctecmdr
1f664fd1e4 Merge "clk: qcom: clk-alpha-pll: Add support for controlling Agera PLLs" 2019-12-26 10:11:14 -08:00
qctecmdr
5a290b469e Merge "defconfig: add CONFIG_QCOM_MINIDUMP support" 2019-12-26 06:47:24 -08:00
qctecmdr
e064abaa80 Merge "sched/walt: Improve the scheduler" 2019-12-26 06:47:23 -08:00
qctecmdr
0095d0f68c Merge "power: smb5-lib: Notify power_supply event unconditionally" 2019-12-26 06:47:23 -08:00
qctecmdr
8626987ed7 Merge "USB: f_mtp: Avoid queuing of receive_file_work for 0 length" 2019-12-26 06:47:23 -08:00
qctecmdr
53637e6ba7 Merge "Kconfig: Add menu choice option to reclaim virtual memory" 2019-12-26 06:47:23 -08:00
qctecmdr
e9be35caa7 Merge "mhi: core: Dump more logs when invalid cookie is received" 2019-12-26 03:36:19 -08:00
qctecmdr
b649ecdb26 Merge "msm: kgsl: Keep vote on clocks while programing SMMU" 2019-12-26 03:36:18 -08:00
qctecmdr
62ae6e0ac7 Merge "defconfig: bengal: disable CTI save and restore on bengal" 2019-12-26 03:36:18 -08:00
qctecmdr
ccdd86991a Merge "power: qpnp-fg-gen4: Fix esr calibration during discharge" 2019-12-26 03:36:18 -08:00
qctecmdr
bb6a66196c Merge "coresight: etm4x: Fix handling of ETM management registers access via sysfs" 2019-12-26 03:36:17 -08:00
qctecmdr
a0d10a5c45 Merge "clk: qcom: gcc-bengal: Update flag for gpll8_out_main clk" 2019-12-26 03:36:17 -08:00
Anirudh Ghayal
44f328c2e6 power: qpnp-qg: Update the qg_esr_mod_count based on fifo-length
Shorter FIFO updates lead to frequent ESR estimation. Avoid this
by updating the esr-estimation frequency based on fifo-length.

Change-Id: I26b3ad75c88d5cbf97766e86710f677e11a77df1
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2019-12-26 12:44:51 +05:30
Yuanfang Zhang
1e0da825b8 defconfig: bengal: disable CTI save and restore on bengal
Enable CONFIG_CORESIGHT_CTI_SAVE_DISABLE configure on
bengal perf defconfig.

Change-Id: Ifd236a3cb4d8aeb3676399cd5dc71e93ef645f5e
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2019-12-26 13:51:32 +08:00
qctecmdr
570f6d4c3f Merge "usb: gadget: f_mtp: Securing vfs_write and unbind with less mutex" 2019-12-25 08:40:16 -08:00
Yuanfang Zhang
5153df69a2 coresight: etm4x: Fix handling of ETM management registers access via sysfs
If ETM management registers are accessed directly, device may break
down due to the trace core is powered down. so modify the function
from coresight_etm4x_simple_func to coresight_etm4x_cross_read to
ensure the trace core is powered up before the register is accessed.

Change-Id: I935c08385bcca763f5bdc34b9ccd9ff27bbb1af0
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2019-12-25 18:49:55 +08:00
Susheel Khiani
71a14bc337 msm: Increase the kernel virtual area to include lowmem
Even though lowmem is accounted for in vmalloc space,
allocation comes only from the region bounded by
VMALLOC_START and VMALLOC_END. The kernel virtual area
can now allocate from any unmapped region starting
from PAGE_OFFSET.

Change-Id: I291b9eb443d3f7445fd979bd7b09e9241ff22ba3
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2019-12-25 01:53:46 -08:00
Zhenhua Huang
92d7e39a93 arm: mm: correct printing when enabling VMALLOC_SAVING
keep the prev_reg so that we get correct printing if we have more
than two carve-out areas.

Change-Id: I931a091d3a9e19af36062e2a3fa15ec84ef5f7e4
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2019-12-25 17:52:16 +08:00
Zhenhua Huang
0dc78b3282 ARM: enable vmalloc saving
For some targets that have less vmalloc space this can be increased by
enabling config ENABLE_VMALLOC_SAVING. With this config we can reclaim
virtual mappings which remains unused because of non hlos carveout
reservations in lowmem.

Select the default method of reclaiming virtual memory as vmalloc
saving.

Change-Id: I249992871babe8c64c34d52ef43bbc7c81636d47
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2019-12-25 17:49:44 +08:00
qctecmdr
0965742917 Merge "cpuidle: lpm-levels: Enable ipi prediction" 2019-12-25 01:37:20 -08:00
Susheel Khiani
d6f731ef20 mm: Update is_vmalloc_addr to account for vmalloc savings
is_vmalloc_addr currently assumes that all vmalloc addresses
exist between VMALLOC_START and VMALLOC_END. This may not be
the case when interleaving vmalloc and lowmem. Update the
is_vmalloc_addr to properly check for this.

Correspondingly we need to ensure that VMALLOC_TOTAL accounts
for all the vmalloc regions when CONFIG_ENABLE_VMALLOC_SAVING
is enabled.

Change-Id: I5def3d6ae1a4de59ea36f095b8c73649a37b1f36
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2019-12-25 01:31:56 -08:00
Susheel Khiani
c7418f212e msm: Update the kernel log messages
After reclaiming vmalloc and adjusting lowmem, the two
regions are no longer contiguous. Update the messages
printed during bootup to list all regions corresponding
to low memory and vmalloc respectively.

Change-Id: Ib3e25b530b3dfbd1f9796cdc580fb79da484e850
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2019-12-25 17:30:01 +08:00
Susheel Khiani
4be85acb2e msm: Allow lowmem to be non contiguous and mixed
Currently on 32 bit systems, virtual space above
PAGE_OFFSET is reserved for direct mapped lowmem
and part of virtual address space is reserved for
vmalloc. We want to optimize such as to have as
much direct mapped memory as possible since there is
penalty for mapping/unmapping highmem. Now, we may
have an image that is expected to have a lifetime of
the entire system and is reserved in physical region
that would be part of direct mapped lowmem. The
physical memory which is thus reserved is never used
by Linux. This means that even though the system is
not actually accessing the  virtual memory
corresponding to the reserved physical memory, we
are still losing that portion of direct mapped lowmem
space.

So by allowing lowmem to be non contiguous we can
give this unused virtual address space of reserved
region back for use in vmalloc.

Change-Id: I980b3dfafac71884dcdcb8cd2e4a6363cde5746a
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2019-12-25 17:08:51 +08:00
Susheel Khiani
bc5657854e Kconfig: Add menu choice option to reclaim virtual memory
Add menu choice options for reclaiming virtual
memory belonging to any subsystem expected to have
a lifetime of the entire system. By default virtual
memory is not reclaimed.

Change-Id: I1b8a1492062bb9532700122878618989e5148647
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2019-12-25 16:41:51 +08:00
qctecmdr
f03998e3f6 Merge "power: qpnp-qg: Limit max FCC value based on QG subtype" 2019-12-24 19:05:26 -08:00
qctecmdr
2486dc1e40 Merge "cpuidle: lpm-levels: Track and predict next rescheduling ipi" 2019-12-24 10:17:27 -08:00
qctecmdr
867efd5e58 Merge "msm: kgsl: Offload mementry destroy work to separate thread" 2019-12-24 10:17:27 -08:00
qctecmdr
cdf176a949 Merge "sched/fair: Don't place wakee on waker cpu if colocate enabled" 2019-12-24 07:08:47 -08:00
qctecmdr
18a01100b5 Merge "msm: kgsl: Add GPU_RBBM_GBIF_CLIENT_QOS_CNTL to powerup register list" 2019-12-24 07:08:47 -08:00
qctecmdr
7b0a6c2965 Merge "qseecom: improve operation when app unload returns EBUSY" 2019-12-24 07:08:46 -08:00
qctecmdr
23892b70e9 Merge "soc: qcom: sysmon-qmi: Fix max qmi msg length for SSCTL" 2019-12-24 07:08:46 -08:00
qctecmdr
f228c800c4 Merge "msm: kgsl: Optimally reserve CP context record size for A6xx GPUs" 2019-12-24 07:08:46 -08:00
qctecmdr
72000c3aa3 Merge "soc: qcom: spcom: allow commands for not connected channel" 2019-12-24 07:08:45 -08:00
Naveen Yadav
8b21a3e5f1 clk: qcom: gcc-bengal: Update flag for gpll8_out_main clk
Support for parent set rate is not required for gpll8_out_main,
so remove the same.

Change-Id: I56b42df6384b2690136664d5812ea0953f65ca1c
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2019-12-24 17:29:19 +05:30
Maulik Shah
02d07ab85f cpuidle: lpm-levels: Enable ipi prediction
Keep ipi prediction enabled.

Change-Id: Ia0015a5c847f474390096235374212a3513a0374
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2019-12-24 16:34:34 +05:30
Manu Gautam
76f7005ad3 USB: f_mtp: Avoid queuing of receive_file_work for 0 length
MTP Server can issue ioctl for receive_file_work even if
xfer_length is 0. Mainly due to small files which are read
from mtp_read() itself. As there is no need to queue work
followed by flush_work in that case, add a check for same
to avoid wasting few msecs for every small file transferred.

Change-Id: I7b5395cc771c6f1ef842e787210ec02262b2b44f
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2019-12-24 16:24:52 +05:30
Yu Wang
5d1ad5c41c cnss2: check wlfw mac before switching to mission mode
To make sure WLAN MAC address has already been well
configured in firmware before switching to mission mode,
send QMI message to WLAN firmware to query the current
MAC status, and wait for 10 seconds at most if it's not
ready.

A new DTS property 'use-nv-mac' is also added:
if 'use-nv-mac' is defined in WLAN dts node, the MAC
checking will be performed; otherwise, it won't.

Change-Id: I1e751d84fb304cb95ea0f989f6939bc7ba5a3ecc
Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
2019-12-24 17:22:34 +08:00
Taniya Das
c0c4220e80 clk: qcom: gcc: Update voltage fmax table for video clock
Update the 133MHz fmax table for video.

Change-Id: I6b704bb88fad1f14531ba621b95bedc6fd9fbebf
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-12-23 22:44:06 -08:00
Tengfei Fan
0643322d3e defconfig: add CONFIG_QCOM_MINIDUMP support
Add CONFIG_QCOM_MINIDUMP support for arm.

Change-Id: If3773b121a3a558eb779dd6080fdf8c2a244cb7b
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
2019-12-24 14:42:17 +08:00
Kavya Nunna
4d54b4200b power: qpnp-qg: Limit max FCC value based on QG subtype
Limit the max FCC to 4.8A or 9.6A based on QG subtype.
This limit includes the ADC error margin.

Change-Id: I7a4f66452d44e7e591ec171afee1d3fb784c741c
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2019-12-24 11:18:43 +05:30
Udipto Goswami
5bed3e93aa usb: gadget: f_mtp: Securing vfs_write and unbind with less mutex
While doing mtp file transfers and performing usb disconnect,
due to usb request being shared between both vfs_write and
unbind, creates a race condition, result in crashing the kernel.

Fix this by introducing mutex in such a ways that it avoids buffer
being freed and also do not degrade the throughput while copy
operation is performed.

Change-Id: Ic235fb92997993bd75ed5e519a5d73e787522810
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2019-12-24 11:06:50 +05:30
Taniya Das
878cec2e5d clk: qcom: clk-alpha-pll: Add support for controlling Agera PLLs
Add support for initial configuration and programming sequence
for controlling agera PLLs.

Change-Id: I5416017acad4030ff4d095e45f551277e3f274e7
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-12-24 10:35:17 +05:30
Taniya Das
7f9c6bce91 clk: qcom: clk-alpha: Reconfigure Fabia PLL during enable
During enable read the L value to determine if the configuration
is required again, otherwise the PLL would fail to lock or enable
due to lost/missing values.

Also update the PLL configuration, calibration and list register
functionalities.

Change-Id: Iad06657b84352915c73c509c5ef04a5f9c528598
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-12-24 10:34:14 +05:30
qctecmdr
9a711d9c48 Merge "power: smb5: Revoke USB_PSY_VOTER's vote if not USB-PD" 2019-12-23 19:09:56 -08:00
qctecmdr
45a1c6347a Merge "wil6210: add fst_config sysfs" 2019-12-23 19:09:55 -08:00
qctecmdr
2f15888a65 Merge "wil6210: notify cfg80211_new_sta upon connection before init tx ring" 2019-12-23 19:09:55 -08:00