Commit graph

882,745 commits

Author SHA1 Message Date
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
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
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
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
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
qctecmdr
f2d1ca67ff Merge "msm: gsi: Add support for EV RP DDR access feature" 2020-05-03 06:14:57 -07:00
qctecmdr
339df4b9e2 Merge "msm: kgsl: Check for an OPP table without accidentally creating one" 2020-05-03 01:19:19 -07:00
qctecmdr
a5d7a7b302 Merge "haven: dbl: Make hh_dbl_ functions wait for capid availability" 2020-05-03 01:19:18 -07:00
qctecmdr
846ffba204 Merge "uapi: sound: remove redundant QGKI config checks" 2020-05-03 01:19:18 -07:00
qctecmdr
1d6e0d80c7 Merge "mhi: cntrl: qcom: enhance logging for forced suspend" 2020-05-03 01:19:17 -07:00
Yue Ma
b790cefd54 cnss2: Post register driver work as unkillable event
Register driver work handler will only power up device, resume PCIe
link and start MHI to download firmware. It may only block there
for a timeout, so there is no need to post it as killable event.

Change-Id: Ib82050358dc8df4a8163ecb43702aa86ed34f23d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-05-02 20:52:29 -07:00
qctecmdr
8f0707c3b2 Merge "clk: qcom: gdsc-regulator: correct gdsc_disable() success return value" 2020-05-02 20:22:54 -07:00
qctecmdr
3ba80746bb Merge "coresight: add sw usb mode support for tmc" 2020-05-02 20:22:54 -07:00
qctecmdr
6ebf3aed6d Merge "ARM: convert build of appended dtb zImage to list of dtbs" 2020-05-02 20:22:53 -07:00
qctecmdr
767553452e Merge "sched: Improve the scheduler" 2020-05-02 20:22:53 -07:00
qctecmdr
084a5df97c Merge "coresight: tmc: clear has_iommu flag when smmu is bypassed" 2020-05-02 15:19:03 -07:00
qctecmdr
9540b205e9 Merge "ucsi: ucsi_glink: notify partner information" 2020-05-02 15:19:02 -07:00
qctecmdr
4a43d0560b Merge "Revert "arm64: defconfig: Insert Adreno default governor in gki defconfig"" 2020-05-02 15:19:02 -07:00
qctecmdr
d6503522e1 Merge "haven: irq_lend: Use Linux IRQ numbers" 2020-05-02 15:19:02 -07:00
qctecmdr
29375aecce Merge "soc: qcom: service-locator: Add soft-dependency on QRTR" 2020-05-02 15:19:01 -07:00
Mahesh Sivasubramanian
2e36c317d1 clockevents: Add NULL definition for tick_broadcast on UP
For uniprocessor systems, add a NULL definition of tick_broadcast to
add support for tick broadcast.

Change-Id: I7dc47984cb6b60c9814171888f6adbc480a1e990
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2020-05-02 10:35:32 -07:00
qctecmdr
83cac1e0c8 Merge "drivers: qcom: rpmh_master_stat: remove stub function definition" 2020-05-02 10:14:16 -07:00
qctecmdr
5d8da363c2 Merge "Revert "arm64: defconfig: Remove IKHEADERS option"" 2020-05-02 10:14:16 -07:00