Commit graph

884,325 commits

Author SHA1 Message Date
Liam Mark
0bbd80928b mm: Allow only __GFP_OFFLINABLE allocations from Movable zone
Ensure that only allocations which include __GFP_OFFLINABLE can be
satisfied from zone Movable. This restriction helps reduces the
likelihood of a page in the movable zone being pinned which would prevent
memory from being offlined.

In the past we allowed all __GFP_CMA allocations to be satisfied from
Movable zone but now add support to differentiate between __GFP_CMA
allocations and __GFP_OFFLINABLE allocations so that we can target certain
allocations at CMA regions and certain allocations at the Movable zone.

Change-Id: If2a9381b6d677f825ad53af9cd64f206d41da211
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-06-16 20:17:22 -07:00
qctecmdr
bbc7f2d3ed Merge "ion: Add support for the display non-secure CMA heap" 2020-06-15 09:59:41 -07:00
qctecmdr
46c87ffa77 Merge "msm: kgsl: Use BW_STEP as 50 for AB voting" 2020-06-15 09:59:40 -07:00
qctecmdr
57af170498 Merge "arm64: enable internal regdb for lahaina" 2020-06-15 09:59:40 -07:00
qctecmdr
0dce8a9d5e Merge "Use data format as unspecified for voice" 2020-06-15 09:59:40 -07:00
Satish Kodishala
30b53d277a Use data format as unspecified for voice
For voice usecases, while opening the slimbus
slave ports, currently data format LPCM(1) is used.
SB master uses data format as unspecified(0). SB master's
data format overwrites the slave side configuration.
In the rare cases, this mismatch may lead to pop sound
in SCO Tx(BT FW->LPASS) at the very beginning when
voice is switched from speaker/handset to BT from call UI.
To fix this, use the data format as unspecified during
opening of the slimbus slave ports for voice cases.

CRs-Fixed: 2710472
Change-Id: Ia9b1d23cbf04d1b8056d7b7f7c84a066437e1682
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2020-06-15 07:12:03 -07:00
qctecmdr
19a5a7fa3b Merge "iommu: arm-smmu: Add support for new attributes" 2020-06-15 06:15:40 -07:00
qctecmdr
df997bf3be Merge "cnss2: Ignore debugfs non availability during init" 2020-06-15 06:15:39 -07:00
qctecmdr
766387ed99 Merge "power: qti_battery_charger: call power_supply_changed() if fake_soc is set" 2020-06-15 06:15:39 -07:00
qctecmdr
c8bbc5bda6 Merge "msm: kgsl: Enable IFPC on A660 target" 2020-06-15 06:15:39 -07:00
qctecmdr
9a94640833 Merge "lib: stackdepot: Add support to configure STACK_HASH_SIZE" 2020-06-15 06:15:38 -07:00
qctecmdr
da16bbb59f Merge "soc: qcom: mem-buf: Add support for consumers to import dma-bufs" 2020-06-15 06:15:37 -07:00
qctecmdr
514fa165a3 Merge "taskstats: handle NULL nla case in taskstats2" 2020-06-15 02:08:40 -07:00
qctecmdr
3309ec470b Merge "clk: qcom: videocc: Update frequency table of video_cc_mvs0_clk_src" 2020-06-15 02:08:39 -07:00
qctecmdr
1806fc87aa Merge "ABI: Update internal whitelist with debugfs symbols" 2020-06-15 02:08:39 -07:00
qctecmdr
5655d2b2cc Merge "genirq/cpuhotplug: Reduce logging level for couple of prints" 2020-06-15 02:08:39 -07:00
qctecmdr
eac6ffcdf1 Merge "uapi: sound: add support for TTP render mode" 2020-06-15 02:08:38 -07:00
qctecmdr
c122110c39 Merge "build.config: Add build.config files for Lahaina" 2020-06-15 02:08:38 -07:00
qctecmdr
8b9a1aa61f Merge "dma-mapping-fast: reduce TLBI during map" 2020-06-15 02:08:38 -07:00
qctecmdr
1b86a92815 Merge "scsi: ufs-qcom: Remove unnecessary devm_kfree" 2020-06-15 02:08:37 -07:00
Deepak Kumar
04ec9fc196 msm: kgsl: Use BW_STEP as 50 for AB voting
AB voting is done in multiples of BW_STEP. Using a big
BW_STEP can result in AB overvoting because of roundup.
Use BW_STEP as 50 instead of 160. This will reduce AB
overvoting and will improve power.

Change-Id: Ieff338685be9650218fd7accc4ed3bcf0d2756ec
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2020-06-15 13:03:22 +05:30
qctecmdr
acc5971e09 Merge "mmc: sdhci_msm: keep a reference to the sdhc host instance" 2020-06-14 20:37:55 -07:00
qctecmdr
773bbee1f1 Merge "msm: kgsl: PERFCNTR_CTRL needs to be at end of restore list" 2020-06-14 20:37:55 -07:00
qctecmdr
978ed221d8 Merge "qcom: whitelist: Remove symbol from whitelist" 2020-06-14 20:37:54 -07:00
qctecmdr
a925659342 Merge "msm: synx: default user callback fix" 2020-06-14 20:37:54 -07:00
qctecmdr
acaddaaadd Merge "defconfig: Update initial defconfig fragments for Holi" 2020-06-14 20:37:54 -07:00
qctecmdr
55235dfe2c Merge "pci: controller: msm: Remove support for loopback" 2020-06-14 20:37:54 -07:00
qctecmdr
e69d2cded7 Merge "ABI: Update rmnet_ctl symbols" 2020-06-14 11:32:34 -07:00
qctecmdr
cdfa64e6ac Merge "arm64: defconfig: enable USB redriver on Lahaina QRD" 2020-06-14 11:32:34 -07:00
qctecmdr
177466fc36 Merge "PM / devfreq: bw_hwmon: remove unused variable" 2020-06-14 11:32:33 -07:00
qctecmdr
756620e2bb Merge "uapi: qg: Fix UAPI header to enable UAPI_HEADER_TEST" 2020-06-14 11:32:33 -07:00
qctecmdr
1e20a25a5b Merge "ion: Derive CMA buffer struct page without using priv_virt" 2020-06-14 11:32:33 -07:00
qctecmdr
75a9e21c8d Merge "net: qrtr: Use radix_tree_iter_delete" 2020-06-14 11:32:33 -07:00
qctecmdr
d38c3e9e52 Merge "mhi: core: Trigger host resume if client requests device vote" 2020-06-14 11:32:32 -07:00
qctecmdr
1034f3b8dc Merge "usb: dwc3: gadget: Avoid spuriously printing NO_PULLUP in log" 2020-06-14 11:32:32 -07:00
qctecmdr
a67ecbe913 Merge "soc: qti_battery_debug: Move qbg_context to device bin file" 2020-06-14 11:32:32 -07:00
qctecmdr
e8d67e52f4 Merge "llcc_perfmon: Initialize variable before use" 2020-06-14 11:32:31 -07:00
qctecmdr
56b8382cfb Merge ".gitignore: ignore GKI generated defconfigs" 2020-06-14 11:32:30 -07:00
qctecmdr
5c48d77d23 Merge "sched: Improve the scheduler" 2020-06-14 04:58:10 -07:00
qctecmdr
7d16328867 Merge "arm64: defconfig: Remove unnecessary configs in genericarmv8-64" 2020-06-14 04:58:09 -07:00
qctecmdr
5c6275f041 Merge "cnss2: Make sure PCIe/MHI is up before collecting RAM dump" 2020-06-14 04:58:09 -07:00
qctecmdr
955e4e41e9 Merge "dma: gpi: Add support to assign static GPII for I2C Touch on Lahaina" 2020-06-14 04:58:09 -07:00
qctecmdr
aea646dce9 Merge "msm: cvp: Rename cvpss to evass" 2020-06-13 17:37:51 -07:00
qctecmdr
e6c44b0944 Merge "msm: cvp: Allow re-send DSP HFI queue after SSR" 2020-06-13 17:37:51 -07:00
qctecmdr
8fe8b521b0 Merge "msm: cvp: Fix a CVP SSR deadlock" 2020-06-13 17:37:51 -07:00
qctecmdr
0dcf1779de Merge "arm: mm: Fix compilation error when IOMMU is disabled" 2020-06-13 17:37:50 -07:00
qctecmdr
e15fb218da Merge "sched/tracing: Fix format specifiers in sched_compute_energy" 2020-06-13 17:37:50 -07:00
Isaac J. Manjarres
07b094aef8 ion: Add support for the display non-secure CMA heap
Add support for the non-secure CMA heap for sharing display
configuration information with display hardware.

Change-Id: Idcc1a8233872cffe890ccd74c956bc666c34cd82
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-12 19:10:07 -07:00
Isaac J. Manjarres
eb749ee5d9 soc: qcom: mem-buf: Add support for consumers to import dma-bufs
Supplier virtual machines (VMs) support exporting dma-bufs to
a consumer VM. However, consumers do not support importing dma-bufs
into their VMs, so add an IOCTL command to import a dma-buf into
a consumer VM.

The client must provide a memory parcel handle that corresponds to a
dma-buf that has been shared with the consumer VM, as well as an
access control list that is used for validating the access control
rules for the buffer. Upon success, the client is given a dma-buf
fd, which they can use to map the buffer and access it from both
the CPU, and peripherals.

Change-Id: I548e004e73543421b932430fbd9f84ad76658ef8
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-12 19:10:06 -07:00
Isaac J. Manjarres
c4028fcf86 soc: qcom: mem-buf: Avoid clearing transferred memory twice
Memory that goes through mem-buf is always transferred back to
the owner when the owner invokes hyp_assign() to regain access to
the memory. This means that if the owner did not have access to
the memory throughout the time the memory was lent to another VMID,
hyp_assign() will clear the memory before returning it to the owner.

Memory that is hyp_assigned through mem-buf creates a memparcel in the
resource manager(RM), when the memory is lent to another VMID, and
destroys the memparcel when the memory is reclaimed by the owner.
However, during the reclaim step, hyp_assign() is used, which clears the
memory, but the RM is unaware of the hyp_assign() policies, so it will
only clear the memory if the VM that released the memory asked for it
to be cleared, which is what mem-buf does. This results in clearing
a memory region twice, which is sub-optimal, so remove the explicit
request to sanitize the memory when the mem-buf driver releases a
memparcel.

Change-Id: I637f2305bf34d839db4f15f152b0bfcbb7b7052e
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-12 19:10:06 -07:00