Commit graph

884,342 commits

Author SHA1 Message Date
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
Isaac J. Manjarres
50c067fc65 soc: qcom: mem-buf: Add support for suppliers to export dma-bufs
Currently, mem-buf suppliers can only provide a consumer with a memory
buffer if the consumer requests for the memory buffer, in which case
the supplier has no control over the contents of the buffer that is
given to the consumer. This is not ideal in cases where the supplier
virtual machine (VM) may have data that is of interest to the consumer,
which can be shared using a memory buffer.

Introduce a new IOCTL command which allows a client to specify a
dma-buf that they would like to share with a consumer VM, as well
as the access control rules that should be applied to the buffer.

Change-Id: I1e4ec1205ad4e69039ec0ab26b4209512896a354
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-12 19:10:06 -07:00
Isaac J. Manjarres
253aacc2ad ion: msm: Add support for dynamically preventing dma-buf mappings
The current rules for determining if a buffer can or cannot be mapped
to depend on how a buffer was allocated. This is restrictive
in environments where the security state of a buffer can change
dynamically, as the accessibility of the buffer has to change with
respect to the security state of the buffer.

Thus, add support to track the number of userspace mappings associated
with an ION buffer, as well as an interface to allow drivers to lock
and unlock a buffer. In this context, locking a buffer means that the
buffer will no longer be mappable, and the buffer does not
have any outstanding mappings at the time the buffer is locked.
Unlocking the buffer means that the buffer can be mapped again.

Change-Id: I6aa73b9ac7c301b12106ad3d3bcb4c2aac959e55
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-12 19:10:01 -07:00
Manikandan Mohan
659efe65b5 cnss2: Ignore debugfs non availability during init
Debugfs is used for bringup support and debug. Ignore debugfs
setup failure if it is not supported in kernel config.

Change-Id: I07a56a0ce4adf53e0aa5b00ce73310d0c7ed2f6a
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-06-12 18:14:13 -07:00
Subbaraman Narayanamurthy
49ed411fac input: qcom-hv-haptics: Fix a possible NULL pointer dereference
Use Vmax from play effect in haptics_set_gain() only if the effect
is valid. Otherwise, use Vmax from the haptics configuration instead.

Change-Id: I7ec0f8c869096bccb26f7fda0057e3db3a51225d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-06-12 16:20:30 -07:00
Hemant Kumar
834462f783 pci: controller: msm: Remove support for loopback
Debugfs support for loopback is obsolete. This is
not supported on current or future platforms.
Remove it from debugfs to prevent any security issues
as it allows to access DDR.

Change-Id: I499588e9e28430c4358d2d8e2364430c1acab82e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-06-12 15:18:53 -07:00
Subash Abhinov Kasiviswanathan
4233f599c7 ABI: Update rmnet_ctl symbols
Update rmnet_ctl symbols needed for gki builds.

Change-Id: I2427281c568108fd5231097e8f8f223bb87fb9de
Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2020-06-12 14:17:31 -07:00
Prasad Sodagudi
870624be3a .gitignore: ignore GKI generated defconfigs
ignore lahaina-qgki-consolidate_defconfig file generated
by GKI scripts as this file auto-generated at build time.

Change-Id: I3edbbbf90b581642da81993a49fdc5264a4324a3
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-06-12 13:14:26 -07:00
Prasad Sodagudi
b3351ed31d scripts: gki: Add support for qgki-consolidate_defconfig
consolidate fragment contains the all the debug features
on top of qgki fragment for regular debugging and debug
fragment contains memory debug features. Add support for
fragement merging support in the both generate_defconfig.sh
and fragement_menuconfig.sh scripts.

Change-Id: Iea90997eca060fdf86cd9da08106e7cf11460b21
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-06-12 13:14:25 -07:00
Prasad Sodagudi
9cd1fc8087 defconfig: Add initial defconfig fragment of consolidate for Lahaina
Add initial consolidate defconfig fragment for the lahaina SoC.
Consolidate fragement contains all debug features needed on
top of lahaina_QGKI.config fragement and these flags should not
show significant performance impact. lahaina_debug.config fragment
contains memory debug features, which shows the performance
impact. This enables intenal testing to use the images based on
lahaina-qgki-consoldiate_defconfig defconfig instead of
lahaina-qgki_defconfig defconfig.

Change-Id: I3982e84dbe77abaf3afd741426f6f74ab2db1544
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-06-12 13:14:18 -07:00
Nitheesh Muthuraj
6c1f3f57c1 msm: kgsl: Enable IFPC on A660 target
Enable IFPC in A660 target features. IFPC stands for
Inter-Frame Power Collapse which is power saving feature.

Change-Id: I13ec90a09df5e974ff2f4c7e989cc49c6f8082f8
Signed-off-by: Nitheesh Muthuraj <nmuthuraj@codeaurora.org>
2020-06-12 10:25:41 -07:00
Vipin Deep Kaur
d23787975b dma: gpi: Add support to assign static GPII for I2C Touch on Lahaina
Add support to assign static GPII0 for I2C LA Touch usecase on Lahaina.

Change-Id: Ib0ea811626796825e280bf77f04ef68ab5f833a8
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-06-11 22:41:09 -07:00
Vipin Deep Kaur
e9b202cb6d i2c: i2c-msm-geni: Add per session lock/unlock support in i2c
Add per session lock/unlock support in i2c.

Change-Id: I1a7b8e5992aad473364a0c92a41986fa9680120f
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-06-11 22:39:30 -07:00
qctecmdr
0a4836e3cf Merge "sched: walt: Improve the scheduler" 2020-06-11 21:35:30 -07:00
qctecmdr
d200638978 Merge "mmc: sdhci-msm: Ensure larger discard size" 2020-06-11 21:35:30 -07:00
qctecmdr
0b5c25955b Merge "block, bfq: fix use-after-free in bfq_idle_slice_timer_body" 2020-06-11 21:35:29 -07:00
qctecmdr
4cb9b09799 Merge "coresight: Forbid enabling sink while reading sink" 2020-06-11 21:35:29 -07:00
qctecmdr
016b45df4e Merge "mm/madvise: pass task and mm to do_madvise" 2020-06-11 21:35:29 -07:00
qctecmdr
dc630fdbf7 Merge "defconfig: msm: Add config fragment for DEBUG_FS disablement" 2020-06-11 21:35:29 -07:00
qctecmdr
0af5ddc604 Merge "drivers: soc: qcom: update sct table for LLCC on lahaina" 2020-06-11 21:35:28 -07:00
qctecmdr
1b78b533e6 Merge "usb: dwc3: debugfs: Add support for 64bit division on 32bit chipsets" 2020-06-11 21:35:28 -07:00
qctecmdr
a77137ef57 Merge "iommu/arm-smmu: add qcom smmuv2 support" 2020-06-11 21:35:28 -07:00
Isaac J. Manjarres
66db1f915e arm64: defconfig: Remove unnecessary configs in genericarmv8-64
Certain configs that are enabled in genericarmv8-64 are not
required for the usecases that the kernel is supposed to cater.
For example, IOMMU support is not required for genericarmv8-64,
yet, the drivers for it are built into the kernel image. This
leads to a bloated kernel image with a larger memory footprint,
as well as larger runtime memory footprint, as certain drivers
may allocate data structures that go by unused. Remove certain
extraneous configs.

Change-Id: Iefe8dd2a35a4a29ed97338ec5fea5c147da14eda
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-11 18:17:50 -07:00
Isaac J. Manjarres
0c5e3da8a2 arm64: defconfig: Disable tracing on genericarmv8-64
Ftracing has been seen to take up a lot of memory (~16 MB).
On certain environments where the amount of memory is scarce,
this is not ideal as it can contribute to memory pressure,
so disable it for genericarmv8-64 for the time being.

Change-Id: I9a8cc66e70caadc53a5cf63a39842c9548fddf25
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-11 18:16:51 -07:00
qctecmdr
dfc8288102 Merge "scsi: ufs: Enable WriteBooster" 2020-06-11 10:59:15 -07:00
qctecmdr
e56575eaad Merge "coresight: byte-cnter: Add ETR status check in bypass notifier" 2020-06-11 10:59:14 -07:00
qctecmdr
7c93753e20 Merge "smcinvoke: Move error message to debug" 2020-06-11 10:59:14 -07:00
qctecmdr
dedd7a1e0b Merge "devfreq: memlat: fix potential deadlock during CPU hotplug" 2020-06-11 10:59:14 -07:00
qctecmdr
7aab4d7c7d Merge "PM / devfreq: memlat: increase ratio_ceil limit" 2020-06-11 10:59:14 -07:00
qctecmdr
5963622ada Merge "usb: xhci: Don't check for USB_STATE_NOTATTACHED in sec_event_ring_cleanup" 2020-06-11 10:59:13 -07:00
qctecmdr
33371193a7 Merge "usb: typec: ucsi: Modify IPC log string" 2020-06-11 10:59:13 -07:00
qctecmdr
1b5b9c4b20 Merge "sound: usb: Increase upper bound check for bInterval to 16" 2020-06-11 10:59:13 -07:00
qctecmdr
6a7962bf50 Merge "msm: ipa: Add support to notify wan upstream iface info" 2020-06-11 10:59:13 -07:00
qctecmdr
086b1556d5 Merge "ANDROID: scs: fix recursive spinlock in scs_check_usage" 2020-06-11 10:59:12 -07:00