Commit graph

882,410 commits

Author SHA1 Message Date
qctecmdr
9830d02ea4 Merge "platform: msm: allow external display registration from kernel module" 2020-04-22 12:03:56 -07:00
qctecmdr
983f8387ac Merge "clk: qcom: clk-alpha-pll: Add support for Regera print registers" 2020-04-21 20:22:00 -07:00
qctecmdr
37082b4dbe Merge "HID: qvr: Adding numerator and denominator to sensor data" 2020-04-21 20:22:00 -07:00
qctecmdr
1429759c8a Merge "msm: adsprpc: initialize async job member of context structure" 2020-04-21 20:21:59 -07:00
qctecmdr
35c73f0ac3 Merge "msm: kgsl: Make the gpubw governor immutable" 2020-04-21 20:21:59 -07:00
qctecmdr
c77e17b5a4 Merge "msm: kgsl: Do not modify UCHE_CMDQ_CONFIG register for A660" 2020-04-21 20:21:59 -07:00
qctecmdr
bcf1293b7c Merge "mhi: core: Make sure reg_write_q stores visible to other cores" 2020-04-21 20:21:58 -07:00
qctecmdr
7e1ab36b47 Merge "msm: ipa4: capture the unclock gsi IPA register access" 2020-04-21 20:21:58 -07:00
qctecmdr
cc3f1b15dc Merge "wigig_sensing: do not deassert DRI on Data Ready DRI" 2020-04-21 15:45:48 -07:00
qctecmdr
903cc90f70 Merge "dt-bindings: clock: Add support for clock ids for HOLI" 2020-04-21 15:45:48 -07:00
qctecmdr
3be77de8cc Merge "msm: cvp: Avoid dereferencing dangling pointer" 2020-04-21 15:45:48 -07:00
qctecmdr
1f2f05026e Merge "msm: kgsl: Add support for A619 GPU" 2020-04-21 15:45:47 -07:00
Samantha Tran
d7c12c6ad4 platform: msm: allow external display registration from kernel module
This change allows kernel modules to make calls to register external
display interfaces and deregister them.

Change-Id: Ia7236bd458565bbbdec4a8355c40a1c5a1bcab86
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2020-04-21 11:07:03 -07:00
Hemant Kumar
6948b8d488 mhi: core: Make sure reg_write_q stores visible to other cores
mhi_reg_write_enqueue API stores reg, val and valid which can go
out of order. In case valid is set to true before val is set,
offload worker running on another core ends up writing stale value
to register. Another possibility is valid being set to true but not
visible to other cores. When offload worker gets a chance to run,
this results into skipping register write. Fix these issues by
adding smp_wmb() between stores of val and valid and another after
valid is set.

Change-Id: I3b930e7fad4252d34386de525491f94997b34f36
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-21 10:36:38 -07:00
qctecmdr
25893a2ce8 Merge "msm: cvp: Avoid out-of-bounds write" 2020-04-21 10:33:09 -07:00
qctecmdr
6a210371eb Merge "sched/fair: honor uclamp restrictions in fbt()" 2020-04-21 10:33:08 -07:00
qctecmdr
a2c09fa854 Merge "mhi: core: Add range check for channel id received in event ring" 2020-04-21 10:33:08 -07:00
Hareesh Gundu
70b5999790 msm: kgsl: Add support for A619 GPU
Add new GPU chip id and required code to
Support A619 GPU.

Change-Id: I9b4e8b35e536486c63661b050a2242538d873c2d
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-04-21 10:56:13 +05:30
George Shen
b7007cd5ed msm: cvp: Avoid dereferencing dangling pointer
CVP SSR crashed when derefencing the pointer to a
shared memory buffer descriptor.

Change-Id: I3f7b690d90496efdf0451b5500578fee636f81fe
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-04-20 22:14:17 -07:00
qctecmdr
9a643a2168 Merge "mhi: core: fix bandwidth scaling initialization failure" 2020-04-20 18:38:14 -07:00
qctecmdr
ad91fff0dd Merge "FROMLIST: power_supply: Add additional health properties to the header" 2020-04-20 18:38:14 -07:00
qctecmdr
851105a779 Merge "drivers: thermal: Add support for CDSP cooling devices via qmi cdev" 2020-04-20 18:38:14 -07:00
qctecmdr
dd7ff37679 Merge "clk: qcom: clk-alpha-pll: Add support for Trion print registers" 2020-04-20 18:38:13 -07:00
Himateja Reddy
b19ac0316c msm: adsprpc: initialize async job member of context structure
Currently, the async job member of the ioctl structure is not
being initialized properly while making an unmap call to the
remote subsystem because of which an indeterminate value is used
to incorrectly mark this RPC call as an asynchronous job.
Initialize the async job field to NULL before making the RPC call
to unmap memory on DSP.

Change-Id: I611e9419793da32f73b9997c7dbe50e3d1e7e81b
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-04-20 17:31:52 -07:00
Rohit Bandi
537aae8fda HID: qvr: Adding numerator and denominator to sensor data
Adding numerator and denominator to sensor data
for increasing scalability of driver.

Change-Id: Iba90d890b70feae41a273fd51d1a76ab61c5211b
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
2020-04-20 13:14:40 -07:00
Manaf Meethalavalappu Pallikunhi
3f414349d9 drivers: thermal: Add support for CDSP cooling devices via qmi cdev
Add support for CDSP DCVS and CDSP hardware cooling devices to QMI
cooling device driver. These cooling devices can be used to mitigate
CDSP subsystem at high temperature via qmi interface.

Change-Id: Ia9906b07ebca4bd6158b68e6e100405ebaa30b60
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2020-04-20 11:54:18 -07:00
qctecmdr
e18bfc1698 Merge "ion: Ensure secure HLOS accessible buffers are zeroed when allocated" 2020-04-20 08:54:30 -07:00
qctecmdr
fee1c15e81 Merge "wigig_sensing: enable data read in non-burst sizes" 2020-04-20 08:54:30 -07:00
qctecmdr
113e1a2ed7 Merge "soc: qcom: socinfo: Add soc information for Holi" 2020-04-20 08:54:30 -07:00
qctecmdr
9795c1b6f1 Merge "msm: kgsl: Get resource address from cmd-db driver" 2020-04-20 08:54:29 -07:00
Hareesh Gundu
d89b753b7e msm: kgsl: Get resource address from cmd-db driver
Do not hard code resource address in PDC initialization
sequence to avoid incorrect configuration. Instead get
resource address from cmd-db driver.

Change-Id: If2cc8378c1c00304033d726fdb8bd4e8690ef110
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-04-20 16:01:36 +05:30
Yogesh Lal
67a605c70d soc: qcom: socinfo: Add soc information for Holi
Add SOC ID to support socinfo for Holi SOC.

Change-Id: Ic27b749b32df70ed0ad5ce7259eddf9c812e5fcd
Signed-off-by: Yogesh Lal <ylal@codeaurora.org>
2020-04-20 00:54:10 -07:00
Saurabh Sahu
0a30d582d2 dt-bindings: clock: Add support for clock ids for HOLI
Add clock IDs for GCC/DISPCC/GPUCC for clients to be able to
request for clocks from these clock controllers.

Change-Id: I601af44801668ae76d5cd181051ae9ba7b0c6dc0
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-04-20 12:18:25 +05:30
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
c2b73353eb wigig_sensing: do not deassert DRI on Data Ready DRI
This change is a performance optimization. Instead of sending a DRI
deassert command at the end of a Data Ready DRI, the FW shall get a FIFO
empty internal signal. FW sets the don't deassert bit in relevant cases,
like Data Ready DRI, or SYSASSERT DRI.

Change-Id: I810e891a82b80c256857987b446c2162bacc399e
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
33476c9af5 wigig_sensing: enable data read in non-burst sizes
Data read over SPI was guaranteed to be in a full burst size. This change
enables FW to raise the Data Ready DRI earlier, before the full burst is
ready. The driver must handle the case where data size reported by the HW
is less than a full burst, and then execute another iteration until the
whole burst is read.

This change causes a performance optimization, since the FW can raise the
Data Ready DRI earlier. The whole burst data is usually in place when the
driver handles it.

Change-Id: I98966ec5c1ef614c3c145e99bb3327febe1ebe74
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
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