Commit graph

892,123 commits

Author SHA1 Message Date
Qingqing Zhou
b588978a22 mm/vmalloc.c: increase vm area range in __vmalloc_node
When the CONFIG_ENABLE_VMALLOC_SAVING is enabled, even though
the unused lowmem is used as vmalloc space, but __vmalloc_node()
still uses VMALLOC_START as the start point to allocate vm area,
but the range [VMALLOC_START, VMALLOC_END] is limited, this
may cause vmalloc allocation failure. Change the start point
to allocate the vm area from VMALLOC_START to PAGE_OFFSET to make
that allocation can be chosen from [PAGE_OFFSET, VMALLOC_START)
also.

Change-Id: I89c099484846c4bcd9b607c1925f253c165d0dd9
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2020-11-13 01:08:03 -08:00
Susheel Khiani
644acac772 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>
2020-11-13 01:07:48 -08:00
Zhenhua Huang
5bf84788a1 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>
2020-11-13 01:07:28 -08:00
Susheel Khiani
674893e452 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>
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2020-11-13 01:07:05 -08:00
Susheel Khiani
a8f20aa6dc 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>
2020-11-13 01:06:50 -08:00
Sudarshan Rajagopalan
64dc8285c8 Kconfig: have ENABLE_VMALLOC_SAVING depend on QGKI
Enable the config ENABLE_VMALLOC_SAVING only when QGKI
config is enabled.

Change-Id: Ic688d27bb31702a60be72b22033cfe1eed5efadc
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2020-11-13 01:06:09 -08:00
qctecmdr
7c71d182c4 Merge "msm: kgsl: Fix NR_KERNEL_MISC_RECLAIMABLE page stats issue" 2020-11-12 20:42:06 -08:00
qctecmdr
9c05303631 Merge "msm: kgsl: constify structs with function pointers" 2020-11-12 20:42:06 -08:00
qctecmdr
4fc1d397c4 Merge "arm64: defconfig: Set qrtr wakeup for genericarmv8" 2020-11-12 20:42:05 -08:00
qctecmdr
9443b83e3e Merge "net: cnss2: Add second element to avoid OOB issue" 2020-11-12 20:42:05 -08:00
qctecmdr
b56d745861 Merge "clk: qcom: gcc: Register the DFS clocks for HOLI" 2020-11-12 20:42:05 -08:00
qctecmdr
b482a807a1 Merge "arm64: defconfig: Increase PANIC timeout for Holi" 2020-11-12 09:55:03 -08:00
qctecmdr
b604e85198 Merge "coresight: byte-cnter: limit error log output" 2020-11-12 09:55:03 -08:00
qctecmdr
e8315dfb98 Merge "cnss2: Avoid race condition between time sync and system suspend" 2020-11-12 09:55:02 -08:00
qctecmdr
b37f5eaee1 Merge "cnss-utils: Compile firmware service file independently" 2020-11-12 09:55:02 -08:00
qctecmdr
dd95ccfb13 Merge "iio: adc: spmi-adc5: Add support for PM2250 S3 die temp channel" 2020-11-12 09:55:02 -08:00
qctecmdr
46f86ded36 Merge "gki: Update GKI_VERSION" 2020-11-12 09:55:02 -08:00
qctecmdr
c8e2ca976a Merge "cnss2: Handle resume request while suspend in progress" 2020-11-11 23:52:34 -08:00
qctecmdr
eeb4692062 Merge "arm64: defconfig: Enable CONFIG_ARM_SMMU_POWER_ON_ALWAYS for GKI targets" 2020-11-11 23:52:34 -08:00
qctecmdr
c64a5ca35d Merge "arm64: defconfig: Disable serial console defconfig" 2020-11-11 23:52:33 -08:00
qctecmdr
963cc1176a Merge "f2fs: should avoid inode eviction in synchronous path" 2020-11-11 23:52:32 -08:00
qctecmdr
97bdb3c282 Merge "defconfig: Enable new download/restart mode driver on sdxlemur" 2020-11-11 23:52:31 -08:00
qctecmdr
5491eb5827 Merge "msm: kgsl: Compare pid pointer instead of TGID for a new process" 2020-11-11 23:52:31 -08:00
qctecmdr
65cd45d458 Merge "defconfig: sdxlemur: Enable QG driver" 2020-11-11 23:52:30 -08:00
qctecmdr
59ba700363 Merge "mm: do not shrink pages marked for reclaim by MADV_FREE" 2020-11-11 23:35:26 -08:00
qctecmdr
77c1bc11c1 Merge "power: supply: qti_battery_charger: run usb_type_work during probe" 2020-11-11 23:35:26 -08:00
qctecmdr
fe8c094f8c Merge "dwc3: Don't perform set xfer resource from EP_OP_CONFIG for GSI endpoint" 2020-11-11 23:35:26 -08:00
qctecmdr
d2deb0f365 Merge "msm: kgsl: Fill a6xx crash dumper buffer with known pattern" 2020-11-11 23:35:25 -08:00
qctecmdr
6d1978e749 Merge "mm/oom_kill: defer panic_on_oom for a timeout" 2020-11-11 23:35:25 -08:00
qctecmdr
83a4d55aad Merge "defconfig: msm: Enable IPC logging" 2020-11-11 23:35:25 -08:00
qctecmdr
cb703de0e3 Merge "mmc: core: Add IPC logging config for mmc" 2020-11-11 23:35:24 -08:00
qctecmdr
e794c68d5c Merge "mmc: Add IPC tracing events for eMMC and SD card" 2020-11-11 23:35:24 -08:00
qctecmdr
97956dc079 Merge "input: qcom-hv-haptics: add support to operate from non-HBoost regulator" 2020-11-11 23:35:24 -08:00
qctecmdr
b90e4c8ecb Merge "soc: qcom: socinfo: Add supprot for SDXNIGHTJAR soc-id" 2020-11-11 23:35:24 -08:00
qctecmdr
f2fc00f408 Merge "defconfig: Added PM configs for sdxlemur" 2020-11-11 23:35:23 -08:00
Mayank Grover
3a14490b1b arm64: defconfig: Increase PANIC timeout for Holi
Increase PANIC timeout for 5 sec for Holi

Change-Id: I443f9a7af3ad0c2e80399508c74b346aa82f5778
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2020-11-11 17:45:52 +05:30
qctecmdr
4fc723f7af Merge "msm: pcie: support EQ preset request vector configuration" 2020-11-10 14:09:14 -08:00
Yogesh Lal
ca19d6f0a1 gki: Update GKI_VERSION
Update latest gki version in sync
with LTS tag android11-5.4.61+ (874de1d).

Change-Id: I07e2305756019d7c2a4d2e81b8303e0a5f9d0dd3
Signed-off-by: Yogesh Lal <ylal@codeaurora.org>
2020-11-10 18:07:46 +05:30
qctecmdr
295a7cb934 Merge "pinctrl: qcom: spmi-gpio: Add support for PMD9650" 2020-11-09 23:34:44 -08:00
qctecmdr
67665e9ea4 Merge "power: smblite-lib/smb5-lib: Fix partner registration for microusb" 2020-11-09 23:34:43 -08:00
qctecmdr
7f439aa4a9 Merge "msm: ep_pcie: Clear PERST_RAW_RESET_STATUS after link training" 2020-11-09 23:34:43 -08:00
qctecmdr
fb456054b8 Merge "input: touchscreen: Remove linking across different modules" 2020-11-09 23:34:43 -08:00
qctecmdr
c560170820 Merge "defconfig: enable rimps plh interface" 2020-11-09 23:34:42 -08:00
Paul Zhang
c9813c8358 net: cnss2: Add second element to avoid OOB issue
The struct coex_antenna_switch_to_mdm_resp_msg_v01_ei is
missing with second element and causing OOB issue with
KASAN.

Change-Id: Iac53f5b4883a620f5179fe2caa7e2169d487c619
CRs-Fixed: 2814572
Signed-off-by: Paul Zhang <paulz@codeaurora.org>
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-11-09 10:11:44 -08:00
qctecmdr
92efb2ac5a Merge "Correct the FM port numbers for Chk 3.x" 2020-11-09 09:59:53 -08:00
qctecmdr
259cc85af8 Merge "msm: kgsl: Do not fail after drawobj is added to context queue" 2020-11-09 09:59:52 -08:00
qctecmdr
a3b4c5531f Merge "msm: kgsl: Add support for voting vdd parent supply voltage" 2020-11-09 09:59:52 -08:00
qctecmdr
96509a115e Merge "rpmsg: rpm-smd: Add null check for irq_chip affinity callback" 2020-11-09 09:59:51 -08:00
Mayank Rana
940ae309aa dwc3: Don't perform set xfer resource from EP_OP_CONFIG for GSI endpoint
By default when ep0 gets enable, current code SET XFER resource command
for all USB endpoints excluding USB GSI endpoint. SET XFER resource
command shall fail if all resources are allocated. All allocated transfer
resources are resets in controller when DEPXFERCFG cmd is send with ep0
with value as 2 OR when controller is being peformed power on reset or
being restarted (i.e. device initiated disconnect and reconnect).
Consider case as below:
a. USB enumerated
b. USB bus suspend
c. USB bus reset
d. USB connect done
e. USB set_config() (set_alt())
f. Reenable all USB endpoint and resize tx fifo for it except ep0 and ep1
g. USB GSI endpoint operation (EP_OP_CONFIG) is sending SET XFER RESOURCE
which is failing as all resources are already allocated.

ep0 is disabled while clearing run stop and re-enabled when setting run
stop. For USB device mode we know that ep0 enabling is prerequisite before
setting run stop. Hence let ep0 enabling takes care of reallocating
transfer resources for all endpoint including USB GSI endpoints.

Change-Id: Ic5ab7558fadc636aaf255d62f91abf7842460659
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-11-09 09:43:34 -08:00
qctecmdr
ca7e73792c Merge "f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsync_node_entry" 2020-11-09 04:48:55 -08:00