The IOMMU test framework has been updated to add support for dummy
platform devices for testing purposed. Add some for 8996 and cobalt.
CRs-Fixed: 1003233
Change-Id: I65e7fe7d8f94ba3ac6a3d9030f15fd5a0b97c188
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Always create the KERNEL_OBJ symlink for legacy reference
support when using the new directory style. Earlier the
generation relies on another make target that requires it.
Also solve a minor issue where the make @(hide) was incorrectly
used within a shell command.
Change-Id: Ie1b74b6a3eac563ee34865655b046f71411aca65
Signed-off-by: David Ng <dave@codeaurora.org>
The IOMMU test framework relies on the `iommus' property, and we
currently rely on these methods for making that happen:
(1) Clients enabling their DT nodes.
(2) We put an `iommus' property in our IOMMU DT nodes themselves.
The problem with (1) is that clients aren't always ready during early
chip validation. The problem with (2) is that it results in us
recursively mapping into the SMMU when we try to do cache maintenance on
our page table memory.
Fix these problems by introducing a dummy driver with associated device
tree bindings that will do absolutely nothing other than wait for the
SMMU driver and IOMMU test framework to slurp it up.
CRs-Fixed: 1003233
Change-Id: I6a5802aff5bab99d29c6ed9d953a203cbd8015bb
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
The command ids do not have separate pointer payload and would
return error. If error is returned without waiting for any
subsequent driver operation like a timeout handling to complete,
it would result in synchronization issues and potential crashes.
Ignore input validation for sof freeze/unfreeze command ids.
CRs-Fixed: 1002547
Change-Id: Ifbecd46f8e3f8e93d846da3dfc72f7ef70687589
Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
Qseed3 is supported on VIG pipes only, driver should skip
enabling it on non-VIG pipes. Changes adds support to skip
programming Qseed3 on non-vig pipes.
Change-Id: Ie3d3889cc6c35011f239468ddf465c553a6b1c97
Signed-off-by: Sushil Chauhan <sushilchauhan@codeaurora.org>
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
Add IPC logging to IPA WAN driver.
IPC logging will be stored in the same log buffer
as IPA IPC log.
CRs-Fixed: 1005492
Change-Id: I69f3536e297eae8453370b44f66ec0f520f16cd5
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Add IPC logging to IPA MHI driver.
IPC logging will be stored in the same log buffer
as IPA IPC log.
CRs-Fixed: 1005492
Change-Id: I31acc2008800d213cc69003f9781fee04b5935aa
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Use IPA driver IPC buffer for IPC logging for IPA ODU.
CRs-Fixed: 1005492
Change-Id: Ibc5ee5145dee3980ddca3d9922663eb96420d011
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
There is a possibility that ipa_q6_clnt handle is used
after it is freed espcially in scenarios where the handle
is freed on service exited notification. Make a change to
not clean up the handle when service is exited instead
do it as part of BEFORE_POWERUP processing only.
Change-Id: I789cdec6f056b17a605f3454e6cd5702542c454f
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
When sending a SG packet, frag descriptor length is not updated
and as a result IPA HW will stall. Make a change to update
descriptor length to the size of fragment.
Change-Id: Ie742148fe3b04677365a7247a89c2bed412e4d31
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
When AP is going to suspend, there is a possibility that
IPA clock is released twice due to sps_release_resource being
called from 2 different contexts. Make a change to protect
sps_release_resource to make sure IPA clock is released
only once.
Change-Id: I2d7d74e48ce80aa18cab2d42191db8d5edb4a076
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
Using a workqueue for initializing QMI functionality
can result in race conditions with cleanup operation
during SSR handling because of scheduling delays.
Make a change to not to use workqueue and initialize
the QMI functionality as part of probe itself.
For polling state, there is a possibility that pipe is
disconnected during switch between poll mode interrupt
mode. This can result in queueing switch_to_intr_work
work multiple times till the pipe is connected and there
is some activity. Make a change to check if the ep is
valid before queuing the work.
Change-Id: Id5a5128edb379308fa91b53062b6773af1b6de18
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
In local client and local service communication, getting the reference
count for local xport_info pointer fails with -ENODEV and returns
without sending the resume tx message which blocks the communication.
Check and remove the reference get logic for local xprt_info.
CRs-Fixed: 1009471
Change-Id: If11cd577d30c22d79544f4668e08ccf269237236
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Add SMMU support for WLAN. Config it as stage-1 enable by default.
Change-Id: I70db6555d236857c5a8d62a337afdc9fec22c97f
CRs-fixed: 1009865
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Expose a separate MDP capability to expose index of the interface
WB block.
Change-Id: I757329e68af439701b8f065c99a6a4b0c390cba2
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Enable closed-loop CPR in order to exercise the VDD_GFX CPR
controller hardware.
Change-Id: Id4beb16d0324ec9c3d62d6d1ead664e215acaaf1
CRs-Fixed: 1010331
Signed-off-by: David Collins <collinsd@codeaurora.org>
Update these CPR closed-loop configurations parameters based upon
the most recent hardware guidelines: the per-corner voltage
adjustments, the fused adjustment corner mapping, and the CPR
count mode. Also, add place holder 0 uV per-fused-corner
open-loop voltage adjustments.
Change-Id: I50231b6c219e6a54379f6b94a23486a320ade09e
CRs-Fixed: 1010331
Signed-off-by: David Collins <collinsd@codeaurora.org>
These scm calls may take a long time to complete on TZ side,
switch to non-atomic calls.
Change-Id: If98ef69e2474f1c50670c2605afe9769a4e0fb39
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
MSMCOBALT parts with CPR fusing revision 1 and above will have
their open-loop voltage fuses blown assuming new lower reference
voltages. These lower reference values allow for fusing parts
with lower open-loop voltages than was possible before. Update
the driver in order to use a different set of open-loop fuse
reference voltages for MSMCOBALT CPR revision 0 vs revisions
1 to 7.
Change-Id: I2d38454fce77a895f0aaf18e01f7d0c9f3c64692
CRs-Fixed: 1009268
Signed-off-by: David Collins <collinsd@codeaurora.org>
Add SVS2 frequencies to the ufs_axi_clk_src and
ufs_ice_core_clk_src clock sources on MSMCOBALT.
CRs-Fixed: 1010329
Change-Id: I01210f48d32d7d6cb32f4977e52fb46acd33b1ba
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Use Kyro2xx Silver as the cpu name for the silver cluster.
CRs-Fixed: 1007822
Change-Id: I23800a58459b0d9b15168cbef409374495e59ee1
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
If Intra Refresh mode is enabled during encode, then
enable constrained intra refresh property on firmware.
Without constrained intra refresh enabled, Intra Refresh
mode will not be effective.
CRs-Fixed: 1001217
Change-Id: Id326c73f78f3fadb5193a1e840f295d764fb013b
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Add the BCR register for the gcc_ufs_axi_clk and
gcc_blsp1/2_ahb_clk clocks.
CRs-Fixed: 1005036
Change-Id: I8cd2403bed66141c99ccf8b9c57e59b936c1d90e
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
The DSI RCGs exported by the MMSS clock controller (MMSS-CC)
can be sourced out of the DSI PLL which is outside the MMSS-CC. Set up
these external clock sources to point to the DSI PLL clocks.
CRs-Fixed: 1000756
Change-Id: I2d2e651ba554812198d721892e14ca1a61a34027
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Add in device tree into for Cobalt CDP and MTP to enable haptic
function.
CRs-Fixed: CRs-Fixed: 1004941
Change-Id: Iead32e33e13b302baf541fa23e47a2f44846b0ff
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
Enable support for Synaptics touchscreen drivers.
CRs-Fixed: 1004396
Change-Id: I285e0ba20c0a51c17152ae0f01e80c76ecfc8d16
Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
Add voltage and current specs for regulators for the
Synaptics driver.
CRs-Fixed: 1004396
Change-Id: Ic4d659776d1e2388554978020f52330bbee818ae
Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
Enable the kernel client API for the service notifier and locator.
Do not enable it on perf builds for performance reasons.
CRs-Fixed: 999530
Change-Id: Ib9eb162544eb4f7271912896c2567e574bd75157
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Enable slimbus drivers for WCN3990 chipset on msmcobalt.
Change-Id: Icc2d037f4312cee62e51ae2ea5c94c8384fa7a79
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
Fix Bluetooth regulators voltage level to constraint values
from msmcobalt pmic driver.
Change-Id: I26887d1baab9e9dd45c98442fedd5c919dbd7309
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
Enable blsp1_uart3 for WCN3990 for msmcobalt to use high
speed UART driver for bluetooth HCI interface.
Change-Id: I5c220e4a6225a34b686cbbfdccd0a2329143af86
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
For WCN3990, it supports slimbus slave interface
to receive/send audio data such as FM audio, bluetooth
SCO, bluetooth A2DP data, etc.
Change-Id: I6c64debd0c9b43ea5ebf55a58f1f4b06cdc9bd4e
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
On kernel version 4.4, support for wsa881x v1.x can be dropped
as it will not ship with any products using this version.
CRs-fixed: 1008341
Change-Id: I7a8c28602d6c66b876b1e413791850bcaefdea98
Signed-off-by: Stephen Oglesby <soglesby@codeaurora.org>
Since commit 031bc5743f ("mm/debug-pagealloc: make debug-pagealloc
boottime configurable") CONFIG_DEBUG_PAGEALLOC is by default not adding
any page debugging.
This resulted in several unnoticed bugs, e.g.
https://lkml.kernel.org/g/<569F5E29.3090107@de.ibm.com>
or
https://lkml.kernel.org/g/<56A20F30.4050705@de.ibm.com>
as this behaviour change was not even documented in Kconfig.
Let's provide a new Kconfig symbol that allows to change the default
back to enabled, e.g. for debug kernels. This also makes the change
obvious to kernel packagers.
Let's also change the Kconfig description for CONFIG_DEBUG_PAGEALLOC, to
indicate that there are two stages of overhead.
CRs-Fixed: 1006743
Change-Id: I52c36765837cc873877b9398371ffd840d485a81
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: ea6eabb05b26bd3d6f60b29b77a03bc61479fc0f
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
Enable various debug features like debugobjects,
sched debugging, page table dump, pid in the contexidr
to aid in debugging kernel crashes.
CRs-Fixed: 1006741
Change-Id: I7b992495fd98b4fdd08ea4b9a933b580d86a0a7d
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
commit 0df0dc1c3f0f ("drivers: GICv3: Add mb() after the read of the
IAR1_EL1 and other registers") added mb() for ICC_IAR1_EL1,
ICC_PMR_EL1 and ICC_SGI1R_EL1. But, as per the GICv3 requirement,
an "ISB" or other context synchronization operation must precede the
"DSB" to ensure visibility of System register writes.
Change-Id: I519530cb9c7008aacbad1319f9159887f599dc9b
CRs-Fixed: 1004222
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
The current header file supports hdmi and audio interaction
using the exposed APIs. Update the common structures and the
APIs to support display port and hdmi interaction
with audio codec driver.
CRs-Fixed: 1009284
Change-Id: I3962fd0cbc278c403584e767611f11d841e14d4e
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Enable the linux clock driver support for graphics
clocks on MSMHAMSTER.
CRs-Fixed: 1004885
Change-Id: Ic1e8f73cdfde1f20dea19d580ee61605890e89b2
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Add support for controlling the graphics clocks on
MSMHAMSTER.
CRs-Fixed: 1004885
Change-Id: If96d8e7e0cd97cf45c48c6c39236d42659e25ea2
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Use the gfx_stub_vreg node for sourcing the graphics clocks
and GDSC on the RUMI platform. Note that CPR changes are
still required for the graphics rail on the actual target.
CRs-Fixed: 1004885
Change-Id: I4032b87628e55c304b72bf85c6fe54aa6ce421c1
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Enable the linux clock driver support for multimedia
clocks on MSMHAMSTER.
CRs-Fixed: 1004885
Change-Id: I58bb1cbf7e7664617510f908dfc2136227453d65
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Add support for controlling the multimedia clocks on
MSM HAMSTER.
CRs-Fixed: 1004885
Change-Id: Ic995c37ae819ce16668374cecf28fa98e6cf3180
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>