Commit graph

882,354 commits

Author SHA1 Message Date
Liam Mark
4abcdc70ab defconfig: lahaina: Enable DMA_CONFIGURE_ALIGNMENT
Enable support for configuring IOVA alignment since some IOMMU clients
don't require any IOVA alignment and therefore would benefit from the
reduced fragmentation that would result.

Change-Id: Ide09a63d2efe1256d3424a9cebee4f330c07ca02
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-04-24 10:01:26 -07:00
Patrick Daly
2281bbc545 iommu/iova: Support disabling domain iova alignment
Currently the IOVA framework automatically applies IOVA alignment to
provided IOVAs based on the requested IOVA size and the alignment configs
which are enabled.

Some clients who don't require any IOVA alignment would benefit from the
reduced fragmentation that would result from disabling IOVA alignment.

Add support to allow clients to disable IOVA alignment on an IOMMU domain.

Change-Id: Ifa6a75576e7a084c443abf38726d790b883f00b3
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
[lmark@codeaurora.org: cleanup change]
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-04-24 09:47:46 -07:00
qctecmdr
ed0190d5df Merge "wigig_sensing: handle SYS_ASSERT corner cases" 2020-04-19 23:05:09 -07:00
qctecmdr
47faf1fbf4 Merge "defconfig: arm64: Enable msm_show_resume_irq for Lahaina" 2020-04-19 19:17:24 -07:00
qctecmdr
bdad1e8f0e Merge "kernel: hdcp_qseecom: Enable as gki module" 2020-04-19 19:17:24 -07:00
qctecmdr
fc8886fcbd Merge "msm: kgsl: Query xo resource addr from cmd-db driver" 2020-04-19 19:17:24 -07:00
qctecmdr
9df510677b Merge "msm: wigig_sensing: use 32 bit transactions for SPI block read" 2020-04-19 19:17:23 -07:00
qctecmdr
a647200494 Merge "arm64: defconfig: Enable touchscreen GKI on Lahaina" 2020-04-19 15:24:20 -07:00
qctecmdr
e49308cf2b Merge "driver: thermal: qmi_cdev: Add support for DSC mitigation" 2020-04-19 15:24:20 -07:00
qctecmdr
8be07e6448 Merge "msm: adsprpc: Add capibility API for HMX" 2020-04-19 15:24:19 -07:00
qctecmdr
8defedb222 Merge "msm: kgsl: Enable Content Protection for A660 GPU" 2020-04-19 15:24:19 -07:00
Gidon Studinski
cec1c1c8d2 wigig_sensing: handle SYS_ASSERT corner cases
Return -ENODEV in case a change_mode command is issued when the system
is in SYS_ASSERT state. This guarantees that the user space application
is aware of the bad state and waits for the FW_READY event.

Change-Id: If26dc115078a3cd1af5d7efa93225019c1105184
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:54 +03:00
Gidon Studinski
551d76c84c wigig_sensing: relax state machine restrictions
Impose less restrictions on state changes, as required by the new system
design.

Change-Id: I9ea6d2fcf2bde4dd013cf7c494dcb5c0c4948fd7
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:54 +03:00
Gidon Studinski
4868bfcaf7 wigig_sensing: enforce data read in multiple of burst size
In case user space application requests for data size which is not a
multiple of the burst size and there is enough data in the drivers internal
buffer, a partial burst may be read by the application, which may cause
loss of burst boundary.

This patch fixes the above. In case the application supplies a buffer which
is smaller than the burst size, an error is returned to the application.

Change-Id: I5233476d99937dd1a13ceaec625588414a1dc04a
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:54 +03:00
Gidon Studinski
12db099039 wigig_sensing: make sys-assert DRI priority higher
In case sys-assert DRI is pending, there is no need to process other
pending DRIs.

Change-Id: I3f1422d75ae5d966c855213031b3524c46d7f5d5
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:54 +03:00
Gidon Studinski
bf6131b55c wigig_sensing: make change_mode ioctl more robust
Prevent state changes during DRI handling, which may cause the driver to
get out of synchronization. Prevent data read from user space and from
kernel space during change_mode processing.

Change-Id: I2ee277c8894996119d13acbe87a5163e4064923c
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:54 +03:00
Gidon Studinski
813b74096e wigig_sensing: return error code after change_mode failure
change_mode command sometimes fail. In such a case, a proper error code
should be returned to the calling user space application. Otherwise, the
application tries to read data, which is not available.

Change-Id: I03778cace54fd98847a099bbeaf7884cfbaac586
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:54 +03:00
Alexei Avshalom Lazar
03547d5eb7 wigig_sensing: add support for asynchronous events
Driver can now send asynchronous events to user space application.
Available events are RESET and FW_READY.

Change-Id: I8b3819927ac3e55b69be03d288600c81ad23e319
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:54 +03:00
Gidon Studinski
965ece3b02 msm: wigig_sensing: use 32 bit transactions for SPI block read
32 bit SPI transactions are more efficient. Additionally, the data is
received in the correct endianness, as expected by the host, therefore an
endianness flip can be avoided.

Change-Id: I35c0be291c971d5f07a00e79923c2050914d9642
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:53 +03:00
Gidon Studinski
3d9b81e7f1 wigig_sensing: add GET_NUM_AVAIL_BURSTS ioctl
WIGIG_SENSING_IOCTL_GET_NUM_AVAIL_BURSTS returns the number of available
bursts in the drivers buffer.

Change-Id: I474770a817393e1b64831886803d65a3f76d92e0
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:53 +03:00
Alexei Avshalom Lazar
444434b54a msm: wigig_sensing: initial commit of wigig_sensing SPI driver
This driver adds support for sensing use cases over 60GHz frequency band.
Sensing uses 60GHz radio signal to 'sense' the environment, allowing
various use cases such as proximity detection, face recognition, gesture
detection and more.

The driver communicates with the QCA6436 HW using SPI bus. The driver
requires SPI and wil6210 drivers to operate.

Change-Id: Ieaae89de8ef77617a24efafea0f476a3546cf27f
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-19 16:06:47 +03:00
qctecmdr
b4a1dedb26 Merge "service-locator: Start the locator service by default" 2020-04-19 03:16:33 -07:00
qctecmdr
14182749bb Merge "input: qcom-hv-haptics: store closed-loop brake settings into SDAM" 2020-04-19 03:16:33 -07:00
qctecmdr
8342759058 Merge "mhi: core: Add support to create uncached event ring" 2020-04-19 03:16:32 -07:00
qctecmdr
c5fe85f34b Merge "clk: qcom: gcc-shima: Add support for GCC clock driver" 2020-04-19 03:16:32 -07:00
qctecmdr
e8e648a045 Merge "mhi: cntrl: qcom: allow printing large strings to IPC logs" 2020-04-19 03:16:31 -07:00
qctecmdr
e8f60e2d99 Merge "mhi: cntrl: qcom: use RC driver APIs to toggle low power modes" 2020-04-19 03:16:31 -07:00
qctecmdr
f0d921fde0 Merge "mhi: core: remove unused timesync device" 2020-04-19 03:16:31 -07:00
Bhaumik Bhatt
f1e1c6b274 mhi: cntrl: qcom: use RC driver APIs to toggle low power modes
PCIe root complex driver has exposed set of APIs to allow or
prevent link level low power modes. Use those instead of
touching device side registers to toggle the same.

Change-Id: Idf4f6d60a80742524249dacd7a10fe5184acec95
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 23:02:08 -07:00
Bhaumik Bhatt
9986735138 mhi: cntrl: qcom: allow printing large strings to IPC logs
Large strings are truncated to 255 bytes by IPC logging API.
Allow for them to be printed in their entirety by using the
string separator API and split it using newline as the
delimiter.

Change-Id: If9ddbad7e9a9c30da57a733c94fb837c120f12ae
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 23:00:48 -07:00
Bhaumik Bhatt
6bc53ff9fa mhi: core: remove unused timesync device
Remove the unused timesync MHI device as we use the controller
device for timesync related activity instead.

Change-Id: If2bb5937cbf468d8778b89549afdb1d0a9af7782
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 22:51:41 -07:00
qctecmdr
5918bdca37 Merge "dt-bindings: clock: Update clock IDs and BCRs of GCC for SHIMA" 2020-04-17 16:31:23 -07:00
qctecmdr
899d1ad7dd Merge "tcp: Reset tcp connections in SYN-SENT state" 2020-04-17 16:31:23 -07:00
qctecmdr
6c65d27ba1 Merge "arm64: defconfig: Insert Adreno default governor in gki defconfig" 2020-04-17 16:31:23 -07:00
qctecmdr
8121f935fe Merge "pinctrl: qcom: Expose ufs_reset as gpio on shima" 2020-04-17 16:31:22 -07:00
qctecmdr
440b0124f5 Merge "input: qcom-hv-haptics: update FIFO samples in IRQ thread" 2020-04-17 16:10:09 -07:00
qctecmdr
f417c81eb1 Merge "mhi: core: do not toggle PCIe low power mode in sleeping context" 2020-04-17 16:10:09 -07:00
qctecmdr
1c8659071c Merge "defconfig: arm64: Enable of_devlink proxy consumer for Lahaina" 2020-04-17 16:10:09 -07:00
qctecmdr
c9e50a28fa Merge "msm: kgsl: Add a terminating empty entry to a660_protected_regs array" 2020-04-17 15:54:47 -07:00
qctecmdr
32ef04353a Merge "msm: kgsl: Modify CP_LPAC_PROG_FIFO_SIZE register value for A660" 2020-04-17 15:54:46 -07:00
qctecmdr
13ffc50455 Merge "power: qti_battery_charger: Block PMIC GLINK Tx for debug battery" 2020-04-17 15:54:46 -07:00
qctecmdr
21045cf753 Merge "soc: qcom: Add support for proxy consumers on of_devlink" 2020-04-17 15:54:45 -07:00
qctecmdr
2062bd224e Merge "msm: cvp: fixed cache operation func param issue" 2020-04-17 15:54:45 -07:00
qctecmdr
5bcf7e3ec6 Merge "usb: gadget: composite: Support more than 500mA MaxPower" 2020-04-17 15:38:17 -07:00
Raghavendra Rao Ananta
91c84d3017 service-locator: Start the locator service by default
There's no reason why the locator service should start in
a 'disabled' manner. Hence, unless otherwise stated by the
cmdline arguments, start the service by default.

Change-Id: I8377aabed691c402c47352aadfdd4ded25f1f459
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-17 15:07:12 -07:00
Jagadeesh Kona
b7d2a71622 clk: qcom: gcc-shima: Add support for GCC clock driver
Add support for global clock controller for peripheral clock
clients to be able to request for the clocks.

Change-Id: I528821a299fee139d23947bc8caa5674ddef9687
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-04-17 04:35:07 -07:00
Devi Sandeep Endluri V V
01dbe6a77b tcp: Reset tcp connections in SYN-SENT state
Userspace sends tcp connection (sock) destroy on network permission
change. Kernel though doesn't send reset for the connections in
SYN-SENT state and these connections continue to remain. Even as
per RFC 793, there is no hard rule to not send RST on ABORT in
this state. Modify tcp_abort and tcp_disconnect behavior to send
RST for connections in syn-sent state to avoid lingering
connections on network switch.

CRs-Fixed: 2396964
Change-Id: If931fb979e519c474697d82d8c9dbaf0edb626e3
Signed-off-by: Devi Sandeep Endluri V V <dendluri@codeaurora.org>
2020-04-17 03:18:19 -07:00
Chandra Sai Chidipudi
624d012216 arm64: defconfig: Insert Adreno default governor in gki defconfig
CONFIG_QCOM_ADRENO_DEFAULT_GOVERNOR is getting inserted into qgki
defconfig by default on doing a make menuconfig. Clean it by
inserting into gki defconfig.

Change-Id: Ie479abfaad1352c3026a7fc027cfb9b59501f65d
Signed-off-by: Chandra Sai Chidipudi <cchidipu@codeaurora.org>
2020-04-17 01:33:32 -07:00
Fei Mao
87b6dfa00f arm64: defconfig: Enable touchscreen GKI on Lahaina
Enable touchscreen GKI drivers on Lahaina.

Change-Id: Iabc924a9dfc39b433abe765f0d7f4d46ad440d73
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-04-17 00:44:47 -07:00
qctecmdr
ab470e82dd Merge "sched: Improve the scheduler" 2020-04-16 16:49:31 -07:00