Commit graph

882,763 commits

Author SHA1 Message Date
Pratham Pratap
4860f89018 usb: gadget: f_qdss: Add ipc logging for qdss driver
This change adds ipc logging support for qdss function
driver.

Change-Id: I53be137a161bd7a4b0c4be250938e8fa46b2254e
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-11 14:24:04 -07:00
qctecmdr
30a50dfa74 Merge "msm: cvp: Allows concurrent DSP commands handling" 2020-05-11 11:32:56 -07:00
qctecmdr
f23a42d281 Merge "lpm-levels: Read next hrtimer event after tick_nohz_idle_stop_tick()" 2020-05-11 11:32:55 -07:00
qctecmdr
32bac06dde Merge "msm: cvp: Fix a cvp BW over-voting problem" 2020-05-11 11:32:55 -07:00
qctecmdr
b4a9a8f32a Merge "msm: cvp: Remove deprecated old synx usage" 2020-05-11 11:32:55 -07:00
George Shen
228794d04f msm: cvp: Remove deprecated old synx usage
Remove redundant un-used code.

Change-Id: I3e2d37c464833371f0fd62c8c1c31f58317fbee7
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-10 21:57:38 -07:00
qctecmdr
6690485f6b Merge "soc/qcom/hyp_core_ctl: update reserved CPUs only after VM is booted" 2020-05-10 21:13:31 -07:00
qctecmdr
0070b55b6b Merge "msm:ADSPRPC: memory map updates to remote process" 2020-05-09 23:44:37 -07:00
qctecmdr
bfc032ea12 Merge "usb: f_qdss: Fix watchdog bark issue on wait_for_completion" 2020-05-09 23:44:37 -07:00
George Shen
7b61e61f08 msm: cvp: Enhance CVP release persist buf process
Do not release CVP persist buffer until all outstanding frames
are handled by firmware.

Change-Id: I4cbff7898f57db82bd3ab2ee8a9a15873e458f2d
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-09 23:06:16 -07:00
Raghavendra Kakarla
8000490ae5 lpm-levels: Read next hrtimer event after tick_nohz_idle_stop_tick()
idle_tick is a periodic timer which sends the interrupt to cpu
for every jiffy. If next event is read before stopping the cpu
idle_tick it gives the next tick expiry time as the next event.
Current logic reading the cpu next event time before stopping
the idle tick gives shallower sleep length recorded. This prevents
cluster low power mode to get selected since next wakeup is seen
either very near to current time or as already expired.

Fix this to read next event after idle_tick has been stopped.

Change-Id: I8016c7911dc48450668a8a6bc7a6d01d4423da32
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-05-09 11:33:37 -07:00
qctecmdr
a92558f282 Merge "haven: ctrl: Enable setting trace class" 2020-05-08 19:54:31 -07:00
qctecmdr
d7ef1fc193 Merge "arm64: defconfig: Enable HH_IRQ_LEND for Lahaina GKI" 2020-05-08 19:54:31 -07:00
Himateja Reddy
98fa1b3fe6 msm:ADSPRPC: memory map updates to remote process
New version of interface for mapping and unmapping buffer
to remote process on DSP with additional mapping control flags.
All mappings of user allocated memory are tagged with file descriptor.

Change-Id: I2fb20df3f39476f92dbe0a6ec10e0b6065f90749
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-05-08 19:46:30 -07:00
qctecmdr
4c36c73742 Merge "dt-bindings: clock: add support for DSI CPHY clocks" 2020-05-08 09:36:12 -07:00
himta ram
5499a4c2a7 radio: RTC6226: remove open and release v4l2_fh file
As part of v4l2_fh_open call at rtc6226 driver
open time memory is allocated via kzalloc() and
the same memory is not released at the time of
rtc6226 driver open failure case.
Remove the open and release v4l2_fh file as
it not required for rtc6226 driver.

Change-Id: I98195b9b0731d5392b82c3d12e393c6ffaad702c
Signed-off-by: himta ram <hram@codeaurora.org>
2020-05-08 05:56:18 -07:00
Yuan Zhao
7def97e0a3 dt-bindings: clock: add support for DSI CPHY clocks
Add CPHY specific clocks to support MIPI DSI CPHY on
Lahaina hardware. Add the relevant clock bindings.

Change-Id: If7dd806e6427b65427d5999bb9ccda7098ec610b
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2020-05-08 11:55:18 +08:00
Siddharth Gupta
a65504bf2b firmware: scm: Add export symbol for scm API
Add missing export symbol for wdog trigger available API.

Change-Id: Ib9fa8de3c8fa906bc8d09073e1df5509aa0c55e2
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2020-05-07 13:40:51 -07:00
Satya Durga Srinivasu Prabhala
2b716e2a56 soc/qcom/hyp_core_ctl: update reserved CPUs only after VM is booted
Secondary VM resources are accessible only after it is booted.

Change-Id: I589c191f0724106208e35705e50a3c3a66df5f8f
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-05-07 11:19:29 -07:00
qctecmdr
492d9b26fb Merge "cpufreq: qcom: Add a property for max lut entries" 2020-05-07 07:00:55 -07:00
qctecmdr
13ff2c4c53 Merge "arm64: defconfig: Enable debugfs for QMP on perf build" 2020-05-06 23:50:34 -07:00
qctecmdr
f0873c1708 Merge "haven: display: add IRQ label for display" 2020-05-06 23:50:34 -07:00
qctecmdr
20163dcd71 Merge "ucsi: ucsi_glink: Fix message handling in ucsi_qti_notify()" 2020-05-06 23:50:33 -07:00
qctecmdr
ef0a8ac3e8 Merge "cnss2: Enable Support for WFC call TWT config" 2020-05-06 23:50:32 -07:00
Udipto Goswami
5a2932496a usb: f_qdss: Fix watchdog bark issue on wait_for_completion
The coresight driver is freeing up d_req as part of notify
from write_complete. Accessing write_done form qdss_close,
wait_for_completion will be stuck there causing watchdog
bark.

Fix this by making f_qdss independent of coresight driver
from initializing complete. Initialization of completion
now occurs from alloc_req.

Change-Id: Ie6b1cd445ed6bb38c1a555f6c4c41068090e4fac
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-06 18:55:42 -07:00
Udipto Goswami
3b6534f147 usb: f_qdss: Remove QDSS read functionality as not in use
Removing the APIs related to ctrl_read since those are
not used by any client of f_qdss.

Change-Id: Idf7f1ffd8afe8a72f83e036a7986d35f2f71bea8
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-06 18:53:09 -07:00
Elson Roy Serrao
a394115fd4 usb: f_qdss: Handle async completion of requests during qdss_close
When qdss_close is called we try to dequeue the pending and started
requests and then free those requests. But when async completion is
enabled the completion callback could be called after freeing up
that request which may lead to list corruption. Handle this by
ensuring that the requests are freed only after the completion
callback is done for all the requests.

Change-Id: I3e5b1bad06f281422a71c84a617feb65027c2c84
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-06 18:52:56 -07:00
Elson Roy Serrao
c1b6981830 usb: f_qdss: Dequeue pending requests upon qdss close
When qdss_close is called the pending requests sent to the
controller are not stopped and as a result the completion
call back can occur at any time. If the qdss bridge driver
frees the requests before the completion callback may result
in use after free. Call dequeue on the pending requests in
qdss close so that the requests are terminated instantly.

Change-Id: I2752a598e8b104a6803064343743f591adc924e4
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-06 18:32:13 -07:00
Subbaraman Narayanamurthy
d5f6277a9f ucsi: ucsi_glink: Fix message handling in ucsi_qti_notify()
Currently, ucsi_qti_notify() is checking the received data from
charger firmware (PPM) to see if there is any connector status
response with partner accessory information (e.g. analog audio).
It does this based on setting a flag (cmd_requested_flags) when
UCSI_GET_CONNECTOR_STATUS command is sent from UCSI framework to
PPM so that the response for that command can be read and clients
registered for getting notification on partner accessory can get
notified. However, in a certain scenario, multiple response for
different commands can be received from PPM. See a possible
example below.

1. UCSI framework sends UCSI_GET_CONNECTOR_STATUS command
2. ucsi_glink driver sets cmd_requested_flags, waits for response
3. UCSI framework sends UCSI_GET_CURRENT_CAM command
4. ucsi_glink driver gets a response for UCSI_GET_CONNECTOR_STATUS
   and schedules notify_work since ucsi_qti_notify() is called
   with cmd_requested_flags set.
5. ucsi_glink driver gets a response for UCSI_GET_CURRENT_CAM and
   this can end up reading "flags" because cmd_requested_flags is
   not cleared yet. However, this causes a buffer overflow because
   ucsi_qti_read() passes "val" pointer passed from UCSI framework
   which is of 1 byte length and ucsi_qti_notify() ends up reading
   "flags" which is at an offset 2 of length 9 bytes.
6. ucsi_qti_notify_work() clears cmd_requested_flags.

Fix this by checking the message length in ucsi_qti_notify()
to ensure that status->flags is read only when a response is
received for UCSI_GET_CONNECTOR_STATUS. Also, relocate the
clearing of "cmd_requested_flags" flag.

CRs-Fixed: 2678391
Change-Id: Iac1d5c58e1ed2fd0f3bc153da23cddf0700cc097
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-05-06 12:08:45 -07:00
Elliot Berman
25a092f8dd arm64: defconfig: Enable HH_IRQ_LEND for Lahaina GKI
Enable Haven IRQ lend framework for Lahaina.

Change-Id: Ibad5de26ba0343e09775de6694894eeb0d42aa21
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-06 11:59:37 -07:00
Elliot Berman
b99f3982c9 arm64: defconfig: Add HH_IRQ_LEND to genericarmv8
Enable Haven IRQ lend framework for genericarmv8.

Change-Id: I396e452840086ccd277f110d535ebd67e819d883
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-06 11:59:36 -07:00
Elliot Berman
3205fcd904 haven: irq_lend: Lendee registration persists across transactions
Presently, clients must re-register to receive IRQ lend notification.
Every client presently must do this and there is no use-case to require
clients to re-register to receive IRQ lend notification. Return the
internal IRQ lend state to WAIT_LEND after release, instead of
unregistered.

Change-Id: I17504e2850ae60e68d755b587ff6d0c3e78926d9
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-06 11:59:36 -07:00
Elliot Berman
4510fcd855 haven: irq_lend: Defer vm_name to vmid translation
Presently, hh_irq_wait_for_lend translates supplied vm_name to vmid.
However, if this function is called prior to RM populating this table,
then wait_for_lend call fails with -EINVAL. Translating vm_name to vmid
in wait_for_lend is unnecessary, and only done because it was convenient
in private data structure. Thus, add vm_name to the private data
structure and translate vm_names upon receiving a lend notification.

Change-Id: Iaa51aaab42508ffa121a550afa0568a048327dca
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-06 11:59:35 -07:00
qctecmdr
9cbbef041c Merge "scsi: pm: Balance pm_only of request queue during system resume" 2020-05-06 01:33:17 -07:00
qctecmdr
acbfb2fe83 Merge "Revert "ASoC: Update the widgets power up/down sequence"" 2020-05-06 01:33:17 -07:00
qctecmdr
734edfb319 Merge "Revert "usb: gadget: Mark usb gsi driver dma memory as cached"" 2020-05-05 23:42:02 -07:00
qctecmdr
538f050c4d Merge "usb: misc: nb7vpq904m: rework to work with ucsi framework" 2020-05-05 23:42:01 -07:00
qctecmdr
f5e54b5820 Merge "sound: usb: Flush cache explicitly after mapping buffers" 2020-05-05 23:42:01 -07:00
George Shen
dd36d70ee0 msm: cvp: Fix a cvp BW over-voting problem
Incorrect unit of BW vote was used by CVP driver when voting
for DDR bandwidth. Fix the issue in this change.

Change-Id: I916f54750fa6b9858a02a50a851cf83e2e06c8b1
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-05 15:20:34 -07:00
George Shen
935e53b282 msm: cvp: Allows concurrent DSP commands handling
CVP driver can handle DSP2CPU command and CPU2DSP command
at same time.

Change-Id: I2b609896aadd22554e44fb5ecb4a613b70d96903
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-05 11:22:21 -07:00
Manikandan Mohan
b9ecde3bae cnss2: Enable Support for WFC call TWT config
Update cnss2 driver to support WFC call TWT config params exchange
between IMS and WLAN firmware.

Change-Id: I8ec9b3c41e048848a91097e653d8cd45a8de0d0b
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-05-05 10:48:02 -07:00
qctecmdr
25339ae960 Merge "regulator: rpm-smd-regulator: Add support for proxy consumers" 2020-05-05 03:42:18 -07:00
qctecmdr
17a385d03d Merge "scripts: headers_install: Add sigcontext.h into the bypass list" 2020-05-05 03:42:18 -07:00
qctecmdr
8bc1361719 Merge "msm: adsprpc : Change to resolve undefined behaviour" 2020-05-04 12:24:20 -07:00
Elliot Berman
6e9663dcc1 haven: ctrl: Enable setting trace class
Clean up compiler warnings in haven control driver.

Change-Id: I6246a108f2e30c812071df9e5c1adbce12853fbf
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-04 09:50:57 -07:00
qctecmdr
66b4463f98 Merge "defconfig: arm64: Enable SDCARD_FS for Lahaina" 2020-05-03 06:14:59 -07:00
qctecmdr
e195cd0a45 Merge "msm: kgsl: Fix preemption fault handling for A6xx GPU" 2020-05-03 06:14:59 -07:00
qctecmdr
40a712728d Merge "clockevents: Add NULL definition for tick_broadcast on UP" 2020-05-03 06:14:58 -07:00
qctecmdr
a0fc4c2dfc Merge "cnss2: Post register driver work as unkillable event" 2020-05-03 06:14:58 -07:00
qctecmdr
c44ac6a1ef Merge "wigig_sensing: add SPI profiling" 2020-05-03 06:14:58 -07:00