Commit graph

882,728 commits

Author SHA1 Message Date
Yue Ma
2b247445d3 cnss2: Update WLFW QMI host cap message
Update new field to WLFW QMI host cap message.

Change-Id: Id2ca69b9b27f68a827baa69239c41ee76f324430
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-22 17:01:48 -07:00
Yue Ma
e6437c634f cnss2: Add support to send host SMMU IOVA range to firmware
With the valid SMMU IOVA range WLAN firmware is able to detect invalid
host DDR access before SMMU fault happens.

Change-Id: I3a3aac4e1da7bb7747bfe3b352df33fc87221860
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-22 17:00:18 -07:00
Chris Lew
85c2118a11 neuron: block_client: Wait for channel to init
Wait until all conditions are met instead of busy looping to check if
the channels are finished initializing.

Change-Id: I50bd3bad6ccf3f4957ed0a98cdceed45d49fe851
Acked-by: Chris Henroid <chenroid@qti.qualcomm.com>
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-04-22 16:14:07 -07:00
Pratham Pratap
d40224d780 usb: gsi: Add NULL pointer check
Static code analysis tool is detecting a possible NULL pointer
dereference for gsi->d_port.in_ep in the error handling path.
This change adds a NULL pointer check to avoid this issue.

Change-Id: I4adf03e933cece0698cd3761c8758f4bd98925f4
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-04-22 13:29:07 -07:00
qctecmdr
2d968914ce Merge "soc: qcom: spcom: Provide retry mechanism for spss" 2020-04-22 12:58:17 -07:00
qctecmdr
608f2d38c1 Merge "soc: qcom: Add support for early brought out subsystems" 2020-04-22 12:58:16 -07:00
qctecmdr
304f2f125b Merge "neuron: block_client: Fix init loop" 2020-04-22 12:03:58 -07:00
qctecmdr
1efc1b290a Merge "msm: synx: validate external callback" 2020-04-22 12:03:57 -07:00
qctecmdr
29f8698ee9 Merge "mmc: sdhci-msm: Avoid enable SD power if card is not present" 2020-04-22 12:03:57 -07:00
qctecmdr
03de949cee Merge "iommu/arm-smmu: Record page table configuration in debug structures" 2020-04-22 12:03:56 -07:00
qctecmdr
9830d02ea4 Merge "platform: msm: allow external display registration from kernel module" 2020-04-22 12:03:56 -07:00
Mayank Rana
bab513b2a5 dwc3-msm: Skip querying speed and cc_state with EUD extcon device
EUD extcon device doesn't provide speed and cc_state information.
Hence skip querying speed and cc_state with it.

Change-Id: Ibe9e327fa412c8fd1fac0b1db3ba3be5d210f33c
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-04-22 11:50:52 -07:00
Isaac J. Manjarres
01497f5e88 haven: Align APIs and structures to account for the mem_info tag
The memory information tag is meant to be used in conjunction with
the memory notification interfaces to associate a label or tag with
a memory parcel. This memory information tag is meant to be used
for distinguishing between different memory resources that can be
transferred between Virtual Machines (VMs).

Change-Id: I6856284430ce5a78461c203904695aed25868706
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-04-22 10:25:03 -07:00
Chandana Kishori Chiluveru
f34a46e4b4 usb: gsi: Allocate strings IDs for functions on every bind
Currently gsi driver calling usb_string_id() from bind() callbacks
to allocate string IDs for functions and then store that ID in the
appropriate descriptors and string table. This string_id will cleared
from composite driver in unbind path. During composition switch when
bind happens its checking previously allocated string_id for functions
and doesn't allocating again a new staring_id.

This will cause incorrect string_id assignment to usb functions and
USB CV interface descriptor test failing with no strings for
some compositions.

Hence fix this issue by allocating string_ids upon every function bind.

Change-Id: Icce114a770a13658614fc990e60670ef23044ba1
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-04-22 09:54:12 -07:00
Pratham Pratap
9490c68a6f usb: f_gsi: Don't enable IPA data path if connect channel fails
ipa_connect_channels can return failure if gsi prepare trbs fail or
start xfer fails. But currently driver is not checking for the failure
and goes ahead to enable IPA data path. This leads the controller to
access faulty addresses which cause kernel panic. Fix this by checking
the failure returned from ipa_connect_channels. Also cleanup the error
handling path.

Change-Id: Ia1e8e17381e12231d8d78224ba3b07081f143212
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-04-22 09:54:12 -07:00
Pratham Pratap
a85239b919 usb: f_gsi: Avoid gsi ep operations if run/stop is cleared
The GSI operations for GSI_EP_OP_PREPARE_TRBS and GSI_EP_OP_STARTXFER
should not proceed if run/stop is cleared. Since ipa_work_handler runs
in worqueue context there might be a race between run/stop STARTXFER
and ENDXFER which can lead to SMMU fault. This change add checks to
avoid gsi ep operations when run/stop is cleared.

Change-Id: I9f64dee7020aec9cccfde8d247c0b53d9cc1f234
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-04-22 09:54:12 -07:00
Jack Pham
8f4621b9e5 usb: f_gsi: Add error checking for PREPARE_TRBS and STARTXFER ops
The GSI operations for GSI_EP_OP_PREPARE_TRBS and GSI_EP_OP_STARTXFER
should not proceed if the endpoint is disabled and should return an
error code (-ESHUTDOWN). Add error checking in f_gsi when calling
these ops. This is to catch cases where the endpoint is not enabled
(i.e. GSI_EP_OP_CONFIG was not called or GSI_EP_OP_DISABLE was
called) prior to ipa_connect_channels(), and helps to avoid the
situation in which STARTXFER is called on a disabled endpoint and
later GSI_EP_OP_FREE_TRBS is called which causes the HW to
incorrectly access stale DMA addresses the next time STARTXFER is
called.

Change-Id: I45f70524b87ec6303e135e385accd8e68e2b5a01
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-04-22 09:54:09 -07:00
Taniya Das
dcdabc5d84 clk: qcom: clk-alpha-pll: Add support for Agera print registers
Agera PLL print registers are required to get the PLL values
from the debugfs, thus add support for the same.

Change-Id: I4b708958e1125ce7e8eab945a3c15113739230d4
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-04-22 17:01:24 +05:30
Taniya Das
8f23926d01 clk: qcom: clk-alpha-pll: Add support for Agera PLL
Agera PLL is required to be supported from HLOS clock controller, thus
add support for agera pll ops.

Change-Id: I77b2a741667accf9bd0eecfcd0dabfaf7596345f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-04-22 16:58:16 +05:30
Taniya Das
78e4312f89 clk: qcom: clk-alpha-pll: Add support for Legacy FSM Mode
The Legacy FSM Mode is required to be set when the Fabia PLL needs to be
used in non-FSM mode, thus add support for same.

Change-Id: I23d491cb33391dce1eb21d9ced298001da9ef907
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-04-22 14:30:47 +05:30
Gidon Studinski
db1a65c003 wigig_sensing: print burst size
Burst size must be printed in perf builds as it is a major
characteristic of the system.

Change-Id: I7e6013751333bb487e2d9422726e41b1050aca43
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2020-04-21 23:38:40 -07:00
Deepak Kumar
89c1ee2a34 msm: kgsl: Add CP_APRIV_CNTL and CP_SMMU_STREAM_ID regs to snapshot
Update snapshot register list to add CP_APRIV_CNTL and CP_SMMU_STREAM_ID
registers. This is needed to capture complete CP state required for
debugging.

Change-Id: Icb8c35481de12dde43aab666f0ecad2240dcaa35
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2020-04-22 11:15:51 +05:30
Hemant Kumar
3137078429 mhi: core: Prevent MHI reg read upon endpoint crash
MHI reset is triggered as part of EP shutdown. Shutdown
is blocked until MHI RESET bit is cleared in MHI CTRL reg.
There is a possibility of PCIe link going down during this
time. Since MHI RESET bit never gets cleared after 2 sec
wait_event_timeout reads the MHI CTRL reg and this results
into a memory abort. Fix this issue by using a boolean flag
as condition in wait_event_timeout. This flag is set when
MHI reset is triggered and cleared when reset is done.

Change-Id: I5b1831518255a38cde5b60406b5b9e9386b5477e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-21 21:33:36 -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
Mike Tipton
0fec3ee373 clk: qcom: lahaina: Fix stuck-off warnings during probe
When clocks are registered with the framework during probe,
clk_core_hold_state() will call clk_core_prepare_enable() for clocks
already enabled in HW from bootloaders. Some clocks are failing to
actually turn on when this is called, which results in noisy warnings
printed to the kernel log.

These specific GPU clocks are failing to turn on because the required
GDSC isn't enabled yet. However, this isn't a functional issue since GPU
isn't actually being used yet. Since these clocks aren't shared across
multiple client devices, there's no need for the framework to issue a
proxy vote during registration. Thus, set the CLK_DONT_HOLD_STATE flag
for these to skip the clk_core_prepare_enable() during registration.

Change-Id: I4679de06fa903ab68e574b0be3419cdb47a16375
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-04-21 19:17:45 -07:00
Fei Mao
c854036b4c input: touchscreen: focaltech_touch: Configure power supply
Configure proper valotage and load values for AVDD.

Change-Id: I491398709f3498070390146ea110691dc58b819c
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-04-21 18:37:52 -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
Chris Lew
a0a416b179 neuron: block_client: Fix init loop
Depending on timing there is a chance the channel initialization will
happen at different intervals. When this happens, the first channel
wakeup will be cleared by the init loop and never be set again by the
channel init.  This leads to a stall in init because both channels
will never have both their wakeups set to signal channel init done.

Change-Id: I435e78c3e4b83cf6b827d3827f35d1e6a1b297fa
Acked-by: Chris Henroid <chenroid@qti.qualcomm.com>
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-04-21 11:42:06 -07:00
Jeffrey Hugo
af8d3f5314 soc: qcom: qmi: Return EPROBE_DEFER if no address family
If a client comes up early in the boot process (perhaps was a built-in
driver), qmi_handle_init() will likely fail with a EAFNOSUPPORT since the
underlying ipc router hasn't init'd and registered the address family.
This should not be a fatal error since chances are, the router will come
up later, so recode the error to EPROBE_DEFER so that clients will retry
later.

Change-Id: Ibbaa0a6665c67dbee7315e353da82ad355162422
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Link: https://lore.kernel.org/r/20191106230511.1290-1-jeffrey.l.hugo@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Git-commit: 52af26e33e700158e6549f1465fcf9da099fabfa
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-04-21 11:36:23 -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
Pankaj Gupta
377d040de7 msm: kgsl: Fix snapshot collection after preempt trigger failure
Do not set FAULT_SKIP_SNAPSHOT in case of not collecting inline
snapshot.

Change-Id: I5f3de5881768ab07de989010096a58bea749c680
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
2020-04-21 20:08:51 +05:30
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
Prakruthi Deepak Heragu
2a4792b089 arm64: defconfig: Add support for torture tests on Lahaina
Add support for locktorture and rcutorture test modules on Lahaina.

Change-Id: Ib903fab01f8ed84707d5717980f0467d41e67374
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-20 19:19:23 -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