Commit graph

877,578 commits

Author SHA1 Message Date
Charan Teja Reddy
6dccca705b ion: don't wakeup refill threads for order-0 requests
We check the pool->count against the ION_POOL_LOW_MARK before deciding
to wakeup the refill threads. But as we never refill the order-0 pool,
we will keep waking up these refill threads only they goto sleep again
without doing any work. The overhead of waking up of these threads
is quite high. Fix it.

Change-Id: I0d10b96a46de24b45822ebeda1f20b75e43c2a5d
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
[cgoldswo@codeaurora.org: Fix merge conflicts, apply change elsewhere]
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-20 12:29:35 -08:00
Chris Goldsworthy
0191b64327 ion: Reduce secure system heap allocation time by stealing pages
When performing a secure system heap allocation, and allocating from a
secure pool fails, attempt to steal pages from the uncached system heap
pools, before falling back to the buddy allocator.

Additionally, remove redundant code that was once used for zeroing out
pages allocated from buddy.

Change-Id: Id0b08f49b1fb037b26cd09e6336a0b0dc5768d82
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-20 12:29:04 -08:00
Chris Goldsworthy
0fc8b8b245 ion: Fix pool refill error
When performing secure pool allocations, it's possible to
spuriously trigger pool refill attempts for the cached and
uncached pools. Fix this by adding a check to see if we're
performing a secure allocation or not, before refilling a pool.

Change-Id: I9a415a302ca92790e6a793784020b09dea6a86e1
[cgoldswo@codeaurora.org: Fix merge conflicts]
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-19 01:50:40 -08:00
qctecmdr
98e83a9de0 Merge "serial: msm_geni_serial: Cover console under GENI_CONSOLE config" 2020-02-18 18:45:19 -08:00
qctecmdr
7895836686 Merge "mm: make faultaround produce old ptes" 2020-02-18 18:45:18 -08:00
qctecmdr
7c15235756 Merge "defconfig: msm: Enable QUPv3 drivers on Lahaina QGKI perf image" 2020-02-18 18:45:18 -08:00
qctecmdr
c231872b48 Merge "iommu: iommu-debug: Fix race with respect to test buffer allocation" 2020-02-18 18:45:17 -08:00
qctecmdr
ffd6caeb9c Merge "msm: cvp: Disable CVP power collapse" 2020-02-18 18:45:17 -08:00
qctecmdr
deb357dcf4 Merge "clk: qcom: gcc-lahaina: Enable gpu_memnoc_gfx and gpu_snoc_dvm_gfx always" 2020-02-18 14:35:53 -08:00
qctecmdr
e95684caeb Merge "haven: Pass doorbell irq number to client callback" 2020-02-18 14:35:53 -08:00
qctecmdr
2ad77720d7 Merge "power: supply: qti_battery_charger: Handle generic notification" 2020-02-18 14:35:52 -08:00
qctecmdr
7a3a08b2a4 Merge "msm: cvp: buffer managerment optimization for Lahaina" 2020-02-18 14:35:52 -08:00
Elliot Berman
ce32b9ac95 haven: Pass doorbell irq number to client callback
Clients may need irq number to handle doorbell, e.g. to use a common irq
handler framework.

Change-Id: Iab64a0ce3330eab2b8fa052e9d8b9b9856510e6a
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-02-18 08:31:59 -08:00
Isaac J. Manjarres
bced4952ab iommu: iommu-debug: Fix race with respect to test buffer allocation
When the buffer pointed to by test_virt_addr is allocated, there
is no synchronization with respect to checking if it is necessary
to allocate the buffer. This can lead to various adversarial
scenarios, where multiple concurrent allocations of the same
buffer can occur, resulting in memory leaks.

To avoid these scenarios, make the check and allocation of the
buffer atomic with respect to other accesses to test_virt_addr.

Change-Id: Ie7e05930042b0bbf4bec0a4f1f5b325970023a5a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-18 06:36:42 -08:00
Patrick Daly
209228f315 iommu: iommu-debug: Remove CONFIG_IOMMU_DEBUG_TRACKING
Remove this interface in preparation for a more modern replacement.

Change-Id: I84e6827167be54366bb78c6389131119ca6ccd33
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
[isaacm@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-18 06:33:55 -08:00
Isaac J. Manjarres
1526eb0939 arm64: defconfig: Disable CONFIG_IOMMU_DEBUG_TRACKING
Disable this Kconfig in preparation for its removal.

Change-Id: Ifff0c6d2f92b56b67b31a9c4caa8dc4d42e1ee5c
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-18 06:33:39 -08:00
qctecmdr
1e97619791 Merge "arm64: defconfig: Enable CONFIG_PANIC_ON_OOPS" 2020-02-18 00:46:01 -08:00
qctecmdr
d5b3b6eb7a Merge "arm64: defconfig: Enable QCOM watchdog for Lahaina" 2020-02-18 00:46:01 -08:00
qctecmdr
15af7d21bc Merge "iommu-debug: allocate test_virt_addr when reading it" 2020-02-18 00:46:01 -08:00
qctecmdr
72bd5c7146 Merge "lib/list_sort: fix function type mismatches" 2020-02-18 00:46:00 -08:00
qctecmdr
973c385901 Merge "defconfig: arm64: Enable wakelock feature for lahaina" 2020-02-18 00:46:00 -08:00
Mukesh Kumar Savaliya
8199eb7c65 defconfig: msm: Enable QUPv3 drivers on Lahaina QGKI perf image
Enable QUPv3(Common driver, I2C, SPI, UART, I3C and GSI) drivers
support on Lahaina QGKI defconfig for perf image.

In addition also enable Slimbus satellite driver called NGD.

Change-Id: I0201cc33e98b06f56ce57e2be83a9e3466039c98
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2020-02-18 13:02:23 +05:30
qctecmdr
f0eb9ece12 Merge "defconfig: lahaina: Enable CONFIG_EDAC_QGKI flag" 2020-02-17 21:08:38 -08:00
qctecmdr
289de54670 Merge "arm64: defconfig: Add LOCALVERSION strings for Lahaina" 2020-02-17 17:05:17 -08:00
qctecmdr
00a956f9bc Merge "Revert "pinctrl: msm: Configure interrupts as input and gpio mode"" 2020-02-17 17:05:16 -08:00
qctecmdr
b4c49deec7 Merge "soc: qcom: Add forever loop after non-secure bite configuration" 2020-02-17 17:05:16 -08:00
qctecmdr
0041159aca Merge "arm64: defconfig: Enable CPUFREQ-HW for Lahaina" 2020-02-17 09:13:20 -08:00
qctecmdr
e76088ab26 Merge "radio: RTC6226: fill device capabilities in video_device" 2020-02-17 05:20:49 -08:00
qctecmdr
64bf5d34ce Merge "clk: qcom: clk-rpmh: Wait for completion when enabling clocks" 2020-02-17 05:20:49 -08:00
qctecmdr
5db3ab05f5 Merge "defconfig: lahaina-gki: Enable USB Audio QMI Service driver" 2020-02-17 05:20:48 -08:00
qctecmdr
ed697b5005 Merge "clk: qcom: Cache vdd vote if clk is unprepared" 2020-02-17 05:20:48 -08:00
qctecmdr
2ce9a17876 Merge "leds: qti-flash: Add support for qti_flash_led_prepare()" 2020-02-17 05:20:48 -08:00
qctecmdr
907accbfb0 Merge "arm64: defconfig: Enable the mem-buf driver on Lahaina QGKI" 2020-02-17 01:36:26 -08:00
qctecmdr
f51d43dca0 Merge "msm: tsens: Add code to support thermal framework changes" 2020-02-17 01:36:26 -08:00
Naveen Yadav
46daa28e2b arm64: defconfig: Enable CPUFREQ-HW for Lahaina
Enable CPUFREQ-HW for enabling cpu frequency scaling.

Change-Id: I8fadd29676063361d8d4ea2237e9ec0e94ce8c85
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-02-17 10:15:13 +05:30
qctecmdr
9034a3fc22 Merge "thermal: adc-tm: Fix match table description and Makefile" 2020-02-16 03:54:48 -08:00
qctecmdr
bc4811bb64 Merge "arm64: defconfig: Enable memory debug configs on Lahaina" 2020-02-15 04:45:14 -08:00
qctecmdr
74fcbede00 Merge "arm64: defconfig: Enable new touchscreen on Lahaina" 2020-02-15 04:45:14 -08:00
Shyam Kumar Thella
58d77b9db0 leds: qti-flash: Add support for qti_flash_led_prepare()
qti_flash_led_prepare() API is used by flash clients (E.g. Camera) to
query maximum current available for flash. Add support for this API
which initially returns maximum current that is supported for flash
LED module (2000 mA). Also, add a sysfs parameter under switch devices
to show max available flash current.

Change-Id: I3aed009a0d7e0f34a6d05a45af34fcd0f37a6fe7
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-02-14 18:01:08 -08:00
Raghavendra Rao Ananta
1b9b399796 Revert "pinctrl: msm: Configure interrupts as input and gpio mode"
This reverts commit fe2731211e.

By default the commit muxes the pin to a GPIO upon a request_irq()
call from the client driver. This is incorrect as the client driver
could have muxed the pin already for a different purpose. Hence,
revert this default behavior to not enforce this on the clients.

Change-Id: Ib2500f57cf7e49a7bffd3309801e42166b748db9
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-02-14 16:31:56 -08:00
Isaac J. Manjarres
a8663ed475 arm64: defconfig: Enable the mem-buf driver on Lahaina QGKI
Enable the mem-buf driver on Lahaina for QGKI configurations.

Change-Id: I97fd90588130d0b18efba946ece5e72926904e20
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-14 14:17:46 -08:00
Isaac J. Manjarres
60456261ad soc: qcom: mem-buf: Add support for inter-VM memory sharing
Add the initial support required to share memory buffers
between VMs. This driver exposes an interface to userspace
clients to request memory to be allocated from another VM,
and added to the current VM. The VMs communicate with each
other via the use of the hypervisor message queues, as well
as utilize various facilities offered by the Haven resource
manager to manage memory that is transferred from one VM
to another.

Change-Id: I3181a1b14e61db30ed6b86752750722e24fd62e0
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-14 14:17:39 -08:00
Prakruthi Deepak Heragu
b1c1968aa9 arm64: defconfig: Enable CONFIG_PANIC_ON_OOPS
Enable the flag so that kernel panics on oops.

Change-Id: I92378f74edcfa6e6ddd1c72b387c7cf059141e13
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-14 12:48:20 -08:00
Raghavendra Rao Ananta
c100d2459f arm64: defconfig: Add LOCALVERSION strings for Lahaina
Add the LOCALVERSION strings for qgki, and qgki-debug
variants of Lahaina platform.

Change-Id: I95af815e9de3b906f6740b10ce4bd41de015b80d
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-02-14 12:03:25 -08:00
Vivek Aknurwar
361f9c82fe clk: qcom: Cache vdd vote if clk is unprepared
When set_rate is called on unprepared clocks new vdd_level
requirement is not cached, which leads to incorrect votes
when later clk_prepare is called. Clocks may not be prepared
when clk pre change rate is called for set_rate change request,
thus cache vdd level and only apply vote during clk prepare.

Change-Id: I54d9a3c75034cd9e67e683c3f71088f2c7cd3db1
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2020-02-14 11:59:24 -08:00
Raghavendra Rao Ananta
f0804db8e0 arm64: defconfig: Enable QCOM watchdog for Lahaina
Enable QCOM watchdog for Lahaina platform.

Change-Id: I06b1167cfcf355774d09934a521e5eab91bfbe7b
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-02-14 10:44:32 -08:00
qctecmdr
776e6bfb94 Merge "kernel_headers: Fix headers not detected in incremental builds" 2020-02-14 08:25:43 -08:00
qctecmdr
a5984a227e Merge "dma-mapping-fast: Align memory allocation to dma_alloc_attrs expectations" 2020-02-14 08:25:43 -08:00
qctecmdr
97b74a2c32 Merge "defconfig: lahaina: enable FSA driver on Lahaina" 2020-02-14 08:25:43 -08:00
qctecmdr
7d3eb3102b Merge "leds: qti-flash: Add individual APIs to enable and disable switch" 2020-02-14 08:25:42 -08:00