Commit graph

884,484 commits

Author SHA1 Message Date
qctecmdr
e093936a5f Merge "Revert "interconnect: qcom: Build icc-rpmh with qnoc-lahaina"" 2020-06-24 06:08:09 -07:00
qctecmdr
22264270c4 Merge "msm: kgsl: Do not clear dispatcher fault when adreno reset fails" 2020-06-24 06:08:06 -07:00
qctecmdr
eb4b022fe0 Merge "serial: msm_geni_serial: Fix DMA TX FSM reset sequence" 2020-06-24 02:45:25 -07:00
qctecmdr
2b0ab25f37 Merge "net: qrtr: Fix early exit in del client and bye cmds" 2020-06-24 02:45:24 -07:00
qctecmdr
09ea649182 Merge "defconfig: lahaina-qgki: Enable debug clock controller" 2020-06-23 19:11:26 -07:00
qctecmdr
719aee502f Merge "sysfs: ufs-qcom: Add sysfs entries for flashpvl" 2020-06-23 19:11:25 -07:00
qctecmdr
175eaa56f0 Merge "input: touchscreen: st: add trusted touch support" 2020-06-23 19:11:25 -07:00
qctecmdr
fae69cd80b Merge "soc: qcom: Check rmb status register for spss bootup status" 2020-06-23 19:11:25 -07:00
Akash Asthana
c2ca8e5398 serial: msm_geni_serial: Fix DMA TX FSM reset sequence
TX FSM reset command generates TX_RESET_DONE & TX_DMA_DONE interrupt bits.
Upon receiving TX_DMA_DONE we initiate new TX transfer for the pending
bytes present in tty uart circular buffer. That leaves TX sequencer active
after reset sequence. That can result into all kinds of SMMU crash where
client initiates new TX DMA transfer without knowing that we have already
a transfer queued. This is unexpected behaviour because we expect TX
sequencer and DMA engine to go IDLE after reset.

To fix above scenario, don't handle TX_DMA_DONE upon reciving
TX_RESET_DONE.

Also, add IPC logs to get_mctrl function to get the IOS status.

Change-Id: Ib76750b5e2c6ec5bf993c341c258791e471672d2
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-06-23 05:58:14 -07:00
Akash Asthana
1c701bd680 serial: msm-geni-serial: Fix possible null pointer access with handle_rx
Some customers are using UART node in UFFI for console and using
the same node for HSUART in kernel but not as console. In this
scenario there is a possibility for null pointer access
with handle_rx while trying to stop secondary sequencer.
This change will move handle_rx initialization from port_startup to
probe function. This will help to avoid null pointer access issues.

Change-Id: Ibda592b375d14ba0c23c4b99223006b1fa53c211
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-06-23 05:57:52 -07:00
qctecmdr
b318939c3f Merge "trace: increase caller depth for preempt/irqs disable events" 2020-06-23 05:16:32 -07:00
qctecmdr
3d7e7985de Merge "dt-bindings: clock: Add support for GPUCC PLL0" 2020-06-23 05:16:32 -07:00
qctecmdr
db62dd6887 Merge "clk: qcom: Add clk_list_rates support for divider clocks" 2020-06-23 05:16:31 -07:00
Lingutla Chandrasekhar
9f2b8d8b1a trace: increase caller depth for preempt/irqs disable events
preempt/irq disable events tracks and prints 4 callers (3 actual callers
and current trace event caller), who disables irqs and preemption for
longer duration. It may not be sufficient for all scenarios, so extend
these events to track 5 callers and exclude current trace event caller.

Change-Id: I464dd738a78d3a89fea62fcf4aaee9897bb03c37
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-06-23 11:51:51 +05:30
Akash Asthana
1b85a9865b serial: Refactor code to reduce cyclomatic complexity
Resolve the cyclomatic complexity numbers by refactoring the code.

Fixes: 39fc927ed715 ("serial: Propagate missing UART fix 4.19 to 5.4")
Change-Id: I599900246852e002d68364affc8ff032a6231324
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-06-23 10:39:13 +05:30
qctecmdr
8be0640752 Merge "net: qrtr: ns: Add ipc logging to ns" 2020-06-22 20:50:37 -07:00
qctecmdr
a9e028c82c Merge "ANDROID: kbuild: ensure __cfi_check is correctly aligned" 2020-06-22 20:50:37 -07:00
qctecmdr
5f30feb7a6 Merge "sched: use wake_q length only when WALT is enabled" 2020-06-22 20:50:36 -07:00
Shashank Babu Chinta Venkata
d5c077b099 input: touchscreen: st: add trusted touch support
Add Trusted touch support to lahaina MTP
Touchscreen driver. This feature enables driver to
operate in trusted touch mode in trusted virtual machine(TVM).
The primary virtual machine(PVM) lends resources such
as IO memory and touch irq to TVM prior to trusted touch
is initiated and reclaims those resources back after trusted
touch usecase finishes.The resource requirements of TVM
such as clock, regulators etc are taken care by PVM.

Change-Id: I584fa3c96796b8a34f1948847e83aac7ce913d94
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-06-22 19:39:14 -07:00
qctecmdr
a543b4c83b Merge "drivers: soc: Add devcoredump based ramdump APIs" 2020-06-22 18:20:36 -07:00
qctecmdr
888edf7bb4 Merge "clk: qcom: lahaina: Lucid PLL 5LPE config and frequency plan update" 2020-06-22 18:20:36 -07:00
Jeevan Shriram
7bd4f1b732 sched: use wake_q length only when WALT is enabled
Upstream commit aa8b37baac ("FROMLIST: sched/fair: Use wake_q
length as a hint for wake_wide") that is being carried in msm-5.4
kernel caused CRC checks failures when GKI boot image is used for
verification as the commit adds extra argument to select_task_rq().
Fix this issue by wrapping extra argument under CONFIG_SCHED_WALT.

Change-Id: Ie41a36a334efbcd2030f7c3caee31883ee84718e
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-06-22 17:33:30 -07:00
qctecmdr
6a5a6eb724 Merge "usb: gadget: Fix double free of device descriptor pointers" 2020-06-22 15:53:18 -07:00
Jay Jayanna
65b0fd0c9a net: qrtr: ns: Add ipc logging to ns
Log packets processed by ns using ipc logging framework.

Change-Id: I08e9b8551efb4a58cf899835cfac25c1952bd4b8
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
2020-06-22 15:10:14 -07:00
Jay Jayanna
a51b58c8e7 net: qrtr: Fix early exit in del client and bye cmds
When del client and bye command packets are sent out, if there
is an error in sending, continue with the loop to send to the
rest of the clients. The current implementation bails out when
the send fails. This is causing dropping of these packets to
the rest of the clients.

Change-Id: If9111216061e64ba1777590edba128b011625250
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
2020-06-22 15:04:35 -07:00
Asutosh Das
cc56124585 sysfs: ufs-qcom: Add sysfs entries for flashpvl
Added entries are bus_speed_mode, clk_status and
err_count.

Change-Id: I459c75048d737651d977f5a5c6aa5dd84553156c
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-06-22 11:31:09 -07:00
Pankaj Gupta
e7cfb4d38d msm: kgsl: Do not clear dispatcher fault when adreno reset fails
When adreno_reset fails, BUG_ON gets triggered to collect ram dump.
Do not clear dispatcher fault bits in such case to get correct fault
information from ram dump. Clear dispatcher fault when adreno_reset
returns success.

Change-Id: I6f54d48201d5e4ea5e3358b18d2f09ec7b285624
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
2020-06-22 06:18:02 -07:00
qctecmdr
3ddd3c6ec2 Merge "cnss2: Add synchronized force wake support" 2020-06-22 04:57:01 -07:00
qctecmdr
cfd44d03d1 Merge "ABI: Add cnss2 symbol" 2020-06-22 04:57:00 -07:00
qctecmdr
589098c6c2 Merge "clk: qcom: gcc: Make gcc_ddrss_gpu_axi_clk as always ON" 2020-06-22 04:57:00 -07:00
qctecmdr
699da85287 Merge "clk: qcom: alpha-pll: Add odd/even support for Trion PLL" 2020-06-22 04:57:00 -07:00
qctecmdr
6eb808b19f Merge "defconfig: arm64: Enable SMD-RPM clock for HOLI" 2020-06-22 04:56:59 -07:00
qctecmdr
81da2f2a77 Merge "pinctrl: qcom: Expose ufs_reset as gpio on holi" 2020-06-22 04:56:59 -07:00
Jagadeesh Kona
94ebc1fb29 clk: qcom: Add clk_list_rates support for divider clocks
Add clk_list_rates debugfs support for divider clocks to get all
the rates supported on divider clock.

Change-Id: Iebb18cfad4fded9a2704549a2b6429e06c2de36c
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-06-22 12:27:52 +05:30
Akash Asthana
97603680f9 serial: Propagate missing UART fix 4.19 to 5.4
msm_geni_serial: Use the common driver API for dma_alloc
    msm: msm-geni-se: Make DFS clock table specific to SE of QUP
    serial: msm_geni_serial: Don't depend on clock freq table to set baud
	rate
    msm-geni-serial: Correct the interrupt polling logic in uart
    serial: msm_geni_serial: Improve IPC logging in UART driver
    serial: msm_geni_serial: drop port->lock before tty_flip_buffer_push()
	call
    serial: msm_geni_serial: No need to stop_tx/rx on UART shutdown
    serial: msm_geni_serial: Do not check_transfers_inflight() post
	port_close
    serial: msm_geni_serial: Enable IRQ from port startup
    serial: msm_geni_serial: Fix geni_wait_for_cmd_done timeouts
    serial: msm_geni_serial: Do not drop port->lock in polling mode

Also, fix stackoverflow issue seen after propagating above changes.

Console TX is getting stuck in recursive call and leading to
stackoverflow issue.

Steps that leads to bad recursion call:
1) msm_geni_serial_handle_tx calls for stop_tx if all the data are sent and
acknowledged.
2) stop_tx issue cancel command if the main sequencer is still
active.
3) As part of cancel command execution msm_geni_serial_handle_tx is called
again that takes us to step 1 and goes in a loop.

To fix above scenario remove the stop_tx call from geni_serial_handle_tx
because if the data is transmited and acknowledged main sequencer should
automatically go to inactive state.

Ideally we should never enter into this situation the first place because
after receiving CMD_DONE we expect that sequencer will go IDLE/inactive.
So, probably this can be a race btw updation of CMD_DONE and GENI_STATUS
register because after adding some more IPC logs in the above code path we
are not hitting this issue. It might be adding required delay.

Change-Id: I85cfe87170ea347c4b8d98c858cc762da413624f
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-06-22 11:21:23 +05:30
Taniya Das
750833aa7e defconfig: arm64: Enable SMD-RPM clock for HOLI
HOLI requires the SMD-RPM clocks for the clocks dependent on RPM.

Change-Id: I69309227b99b2ff49542b9d3a355490aa1d6702c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-22 10:45:37 +05:30
Taniya Das
8abaf48b20 clk: qcom: clk-smd-rpm: Refactor the code for HOLI
Add support for RPM-SMD and PMIC clocks for HOLI which are required for
the clients to enable/disable.

Change-Id: Ic00f84760f2bc2c4ec4521a4b5abebb5788127ca
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-22 10:45:10 +05:30
Nitin Rawat
b46eae7dad pinctrl: qcom: Expose ufs_reset as gpio on holi
The ufs_reset pin is expected to be wired to the reset pin of the
primary UFS memory but is pretty much just a general purpose output pin.
Reorder the pins and expose it as gpio 156, so that the UFS driver can
toggle it.

Change-Id: I566196bd2ab6629c2761b47ed844022cf9ffb458
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-06-22 02:47:47 +05:30
qctecmdr
ead4c53fbb Merge "bluetooth: fix the gpio names in devicetree" 2020-06-21 11:17:28 -07:00
qctecmdr
b22d0ea027 Merge "arm64: defconfig: Enable CONFIG_PSI_FTRACE on Lahaina" 2020-06-20 13:12:14 -07:00
qctecmdr
d5bf014032 Merge "sched/walt: Improve the scheduler" 2020-06-20 10:46:39 -07:00
Hemant Kumar
fc3b874e7c usb: gadget: Fix double free of device descriptor pointers
Upon driver unbind usb_free_all_descriptors() function frees all
speed descriptor pointers without setting them to NULL. In case
gadget speed changes (i.e from super speed plus to super speed)
after driver unbind only upto super speed descriptor pointers get
populated. Super speed plus desc still holds the stale (already
freed) pointer. As a result next composition switch results into
double free of super speed plus descriptor. Fix this issue by
setting all descriptor pointers to NULL after freeing them in
usb_free_all_descriptors(). Also clean up gsi_unbind() which is
setting up descriptor pointers to NULL already.

Change-Id: I4f28294c165bb3b5dc9feb4f22d819f527ad4d50
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-06-19 18:50:58 -07:00
Mayank Rana
37084ff13d dwc3: gadget: Separate out top and bottom half based logging
Currently USB top and bottom half are using same index to update
number of events posted/handled, and updating relevant time. As
top half is not guaranteed to be prevented when bottom half is
running those index based logging doesn't allow to relate information.
Also start logging bh_start_time and increase existing buffer size
from 10 to 25 to get more data of USB interrupt processing.

Also get count how many cancelled requqest being given back from
bottom half context, and log any update/start cmd failure.

Change-Id: Iefc883cb5a2259f256f30c9727db8a68ddd41af7
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-06-19 18:15:41 -07:00
Mike Tipton
e9c786cdbe defconfig: lahaina-qgki: Enable debug clock controller
Enable CONFIG_MSM_DEBUG_CC_LAHAINA to support measuring clock
frequencies on perf builds.

Change-Id: I1671c5e0b8904fa7e131ae02add516c737ec145a
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-06-19 15:06:23 -07:00
Pavankumar Kondeti
82fea0f9dc sched/walt: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: I80606a09c3d09c65b7bcdf3940bee5e155d6318c
Co-developed-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[satyap@codeaurora.org: fix trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-06-19 10:14:20 -07:00
Pavankumar Kondeti
961c3a5fc3 sched/walt: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: Ica36bb6ccd4c2d8897dab62614eadb5a060d5390
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-06-19 10:14:11 -07:00
Pavankumar Kondeti
d0a6a9b767 sched/walt: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: I5f19453ec1a19c71d67a02c3f0ec9967e7673a4b
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[satyap@codeaurora.org: fix trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-06-19 10:14:07 -07:00
Pavankumar Kondeti
b1250b5cf6 sched: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: I3a220142f08a9664845b4d0e9918ec7c48bb11f7
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-06-19 10:14:01 -07:00
qctecmdr
04fda4c2c5 Merge "coresight: tpdm: add an option "qcom,cmb-msr-skip" for tpdm" 2020-06-19 09:50:06 -07:00
qctecmdr
61b129b0a6 Merge "taskstats: remove redundant MM_STAT config check" 2020-06-19 09:50:06 -07:00