Commit graph

876,078 commits

Author SHA1 Message Date
Satya Rama Aditya Pinapala
4d2ead1122 dt-bindings: clock: add MDSS clock names for Lahaina
This change adds names for the clocks and dividers used
by DP and DSI PLL on 5nm architecture.

Change-Id: Ia6a49b765cbfbc517e4f2bc06c357c5f3109f912
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-01-08 14:21:30 -08:00
qctecmdr
d91fc2d48a Merge "phy: qcom-ufs: add UFS HS-G4 support" 2019-12-20 05:45:47 -08:00
qctecmdr
7aa352277d Merge "coresight: tmc: Fix mem_lock dead lock" 2019-12-20 05:45:47 -08:00
qctecmdr
fae584c712 Merge "arm64: defconfig: Enable debug features on Lahaina" 2019-12-20 05:45:46 -08:00
qctecmdr
1b35a503ba Merge "ASoC: compress: propagate the error code from the compress framework" 2019-12-20 05:45:45 -08:00
qctecmdr
bb76c8d330 Merge "phy: qcom-ufs: don't error out if vddp-ref-clk-supply is absent" 2019-12-20 05:02:09 -08:00
qctecmdr
fff4fc5622 Merge "ASoC: dapm: Avoid static route b/w cpu and codec dai" 2019-12-20 04:21:40 -08:00
qctecmdr
45eb6cbf7f Merge "ASoC: msm: qdsp6v2: Cleanup of compress offload drivers" 2019-12-20 04:21:40 -08:00
qctecmdr
f961f15dcd Merge "ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()" 2019-12-20 04:21:39 -08:00
qctecmdr
4c74fa0896 Merge "ASoC: Compress: Check and set pcm_new driver op" 2019-12-20 03:41:13 -08:00
qctecmdr
1493beb27a Merge "ASoC: msm: Update the encode option and sample rate" 2019-12-20 03:07:58 -08:00
qctecmdr
e84e857754 Merge "ALSA: core: Handle user defined ioctls" 2019-12-20 02:33:00 -08:00
qctecmdr
45d9ac1a86 Merge "ALSA: PCM: User control API implementation" 2019-12-20 02:33:00 -08:00
qctecmdr
d4d87ace97 Merge "interconnect: qcom: Build icc-rpmh with qnoc-lahaina" 2019-12-20 01:46:19 -08:00
qctecmdr
324dcd65f4 Merge "Bluetooth: Re-initialize regulator to NULL on error" 2019-12-20 01:46:18 -08:00
qctecmdr
4283a88d93 Merge "soc: mem_dump: fix physical address mapping issue" 2019-12-20 01:46:18 -08:00
qctecmdr
670b451abd Merge "shmbridge: get bridge mem pool's DMA address with dma_map_single" 2019-12-20 01:46:18 -08:00
Aviral Gupta
5e78f73a05 ASoC: compress: propagate the error code from the compress framework
Propagate the error code from the compress framework for the timestamp
query. This error code will be used by the client to handle the
error case scenarios gracefully.

CRs-Fixed: 683288
Change-Id: I68ad14d52327dd0156531fe8d17ac54ba110fdf6
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 00:32:07 -08:00
Banajit Goswami
26ea5a19d9 ASoC: msm: Update the encode option and sample rate
Populate the sample rate, encode option in wma config params.
WMA V9 and WMA Pro tunnel-mode supports are added to compressed
driver. It allows user-space application to decode WMA V9 and
WMA Pro audio stream through QDSP6.
Codec specific metadata is sent only for first stream in gapless
playback. This causes incorrect configuration to be set for second
stream and distortions are observed due to framedrops in adsp.
Add support to send codec specific format during start of
next stream in gapless.
Add bit rate to wma codec data structure as it can vary between
streams in gapless.

CRs-Fixed: 367243, 367242
Change-Id: Ieeb9d302454d3935faa51cac77021e7c1d77012c
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 15:36:03 +08:00
Preetam Singh Ranawat
15555d3e6f ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()
When period interrupts are disabled, while loop in snd_pcm_update_hw_ptr0()
results in the machine locking up if runtime->hw_ptr_buffer_jiffies is 0.

Validate runtime->hw_ptr_buffer_jiffies value before while loop to avoid
delta check.

CRs-Fixed: 1109229
Change-Id: Ib20b71c70aa4a8bee2837d1f3b5a91ad4ce083da
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2019-12-20 15:27:20 +08:00
Ravi Kumar Alamanda
45b5e1f757 ASoC: Compress: Check and set pcm_new driver op
Check and set if pcm_new driver op is initialized by the driver.
This allows the compress offload drivers to register mixer
controls.

Change-Id: If54fa36cf19cbca7239d6e3e30455472e9a173d8
Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 15:23:55 +08:00
Sudheer Papothi
0f8ec71b56 ASoC: dapm: Avoid static route b/w cpu and codec dai
Currently ASoC core creates a static route b/w
playback/capture widgets of cpu and codec dai
if they are part of the same dai-link. However
this will cause codec path to get powered up
followed by the backend dai start during device
switch use-case where the front-end is not closed,
leading to audio playback failure if either bit-width
or sample rate is different.

Change-Id: Icd17677a73fdc4bd30e0918fcaa7e7f394245685
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-20 15:15:36 +08:00
Banajit Goswami
6030d318e2 ASoC: msm: qdsp6v2: Cleanup of compress offload drivers
Clean up the format specifiers for compress offload drivers
and add compat ioctl support.

Change-Id: I0829830336ec62c66658d6a5199d73b61249f791
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 12:37:35 +08:00
Meng Wang
8625c90a01 ALSA: PCM: User control API implementation
Introduced a new helper function snd_pcm_add_usr_ctls() to
create control elements representing the user control for each
PCM (sub)stream.

Change-Id: I9f69470ff2c5d6df8d1fdc2e1c2caf198076076e
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 12:28:50 +08:00
Meng Wang
a1682a646a ALSA: PCM: volume API implementation
Introduced a new helper function snd_pcm_add_volume_ctls() to
create control elements representing the volume for each PCM
(sub)stream.

This patch also squashes the logic implemented by below change-

ASoC: Fix freed memory access of pcm stream kctl

Consider sound card instantiate fails due to
audrx init failure. In such case, all dais/ctls
are de-registered and freed. But as part of it,
access to unregistered ctls for pcm_chmap and similar
controls result in crash.  Ctls are freed at disconnection
but the disconnect is called only when it was registered.

CRs-Fixed: 1038054
Change-Id: Ief8817b4ec000c058d46aa021977b7c6003c0011
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 12:22:52 +08:00
Meng Wang
1d001ceb2f ALSA: core: Handle user defined ioctls
Handle ioctl magic 'U' as a user defined ioctl so that ALSA core calls
substream's ioctl handler.  This gets rid of a requirement that ALSA core
needs to be changed every time when a new user defined ioctl is introduced.

Change-Id: I390b9e0428bfadc302ff074417aa69163b12c6ec
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 12:18:49 +08:00
Tingwei Zhang
59430433d6 coresight: tmc: Fix mem_lock dead lock
Mem_lock was not unlocked when multiple sources were enabled and
one of them was disabled first. Free mem_lock in that path.

Change-Id: I380b2ce89c2df2dfd91754d2257503ade69545ce
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-12-20 08:42:51 +08:00
Tingwei Zhang
7b0d5d038d arm64: defconfig: Enable debug features on Lahaina
Enable coresight, dcc, memory dump, remote qdss driver.

Change-Id: Iaf64adb71dc54457e30c7d42cc9f6f9e2854f3be
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-12-20 08:33:13 +08:00
Tingwei Zhang
2e837c23f2 coresight: ost: correct the kconfig dependency
Make the dependency correct to avoid warning in build.

Change-Id: I5d39c83e0773c7077072ffe2c0ba4b18c082bca6
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-12-20 08:31:44 +08:00
Umesh Vats
7fa2f55c9b Bluetooth: Re-initialize regulator to NULL on error
Reset the regulator to NULL when its allocation fails.

Change-Id: I5e9fcad83d0ed449c225c7c5c99d93ebae9848fc
Signed-off-by: Umesh Vats <uvats@codeaurora.org>
2019-12-19 16:24:16 -08:00
qctecmdr
a70116e190 Merge "sched: Improve the scheduler" 2019-12-19 14:10:22 -08:00
qctecmdr
ad8801ff2e Merge "pinctrl: Add wakeup gpio register and bit information" 2019-12-19 13:31:01 -08:00
qctecmdr
b7b6d681a0 Merge "usb: dwc3-msm: Delete sysfs files on driver remove" 2019-12-19 12:55:23 -08:00
qctecmdr
1f1c1c00a8 Merge "msm: sps: Fix build warnings" 2019-12-19 12:55:22 -08:00
qctecmdr
5d11e8c54c Merge "wil6210: reduce ucode_debug memory region" 2019-12-19 10:09:24 -08:00
qctecmdr
b188aa0158 Merge "sched: Support Energy Aware Scheduling irrespective of governor" 2019-12-19 10:09:23 -08:00
qctecmdr
b4b60f8832 Merge "wil6210: add verification for cid upper bound" 2019-12-19 06:29:41 -08:00
qctecmdr
14bc58fa2d Merge "firmware: qcom_scm: Add calls to support poweroff driver" 2019-12-19 03:51:40 -08:00
qctecmdr
2c3dddaef1 Merge "arm64: defconfig: Enable minidump driver on Lahaina GKI" 2019-12-19 03:51:40 -08:00
qctecmdr
f3cd02fc21 Merge "sched: Add schedutil snapshot" 2019-12-19 03:51:37 -08:00
Siva Kumar Akkireddi
a66a77dd9c msm: sps: Fix build warnings
Fix Sparse warnings to enable SPS driver for Lahaina - use
NULL instead of 0 to specify null argument, and use the static
keyword for locally used structures.

Change-Id: If6d69bb464b821e408d757317f7ed2ef15355f7f
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
2019-12-19 16:05:41 +05:30
qctecmdr
9b0c05f16b Merge "scsi: ufs-qti: port UFS driver changes for QTI configuration" 2019-12-19 01:52:18 -08:00
Dedy Lansky
369c5b7f02 wil6210: reduce ucode_debug memory region
ucode_debug memory region defined as 4K bytes. Fix this according to
Talyn device memory map.

Change-Id: I47397ea00332926e678af2d50be25b16124587c3
Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
2019-12-19 09:09:24 +02:00
Ahmad Masri
8ca4b705ac wil6210: enable access category queues
Set ac_queues default to enabled.
Change wil_select_ac_queue to return higher priority queue for EAPOL,
ARP and ICMP packets. These special packets are critical to maintain
the link with the AP and guarantee healthy operations and diagnostics
in the network.

Special packets will get the higher priority to ensure early
transmission when access category is enabled.

Change-Id: Ic03a810c303f614174f9f10c72e339ee32a6f023
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
2019-12-19 09:09:04 +02:00
Hrishikesh Vidwans
b990cfb88f wil6210: allow sending special packets when tx ring is full
When traffic is very high, some special packets such as ARP may get
dropped causing the tx traffic to stall intermittently.
This patch preserves spare tx descriptors so that special packets can
be sent even when the tx ring is almost full. The number of reserved
entries can be changed by writing to tx_reserved_entries via debugfs,
taking effect in subsequent connections.

This feature is enabled when either drop_if_ring_full or ac_queues are
enabled.

Change-Id: I6c5215500966840445f2631fb32494750e60303d
Signed-off-by: Hrishikesh Vidwans <hvidwans@codeaurora.org>
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
2019-12-19 09:08:44 +02:00
Ahmad Masri
e76f6c74d3 wil6210: Support ndo_select_queue in net_device_ops
Add support for Access Category to select queue for transmit packets.
The callback wil_select_queue will return the queue id [0..3] to use for
the current skb transmission.

This feature is disabled by default. Use ac_queues parameter from
wigig.ini configuration file to enable.

Change-Id: I2891c58744eddafe16f9d74d1a87acdbf90d3d40
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
2019-12-19 09:08:26 +02:00
Alexei Avshalom Lazar
5f44d3caa7 wil6210: add verification for cid upper bound
max_assoc_sta can receive values (from the user or from the FW)
that are higher than WIL6210_MAX_CID.
Verify that cid doesn't exceed the upper bound of WIL6210_MAX_CID.

Change-Id: Id00b69a128d2c4df4a3ef85583bbe44590ff557c
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2019-12-19 09:08:05 +02:00
Alexei Avshalom Lazar
ff02bf9483 wil6210: take mem_lock for writing in crash dump collection
On some crash dump cases mem_lock is already taken, error
returns and crash dump copy fails.
In this case wait until mem_lock available instead of failing
the operation.
Also take the mem_lock for writing to prevent other threads from
altering the state of the device while collecting crash dump.

Change-Id: I2ae74fba77e39161e33a7c5302916d1c9254fa05
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2019-12-19 09:07:35 +02:00
Alexei Avshalom Lazar
68aa288faa wil6210: minimize the time that mem_lock is held
mem_lock is taken for the entire wil_reset().
Optimize this by taking mem_lock just before device is
being reset and release the lock after FW download.

Change-Id: Icf3430e355acc2c33dc37c6a38a18c47de03a2cf
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2019-12-19 09:06:33 +02:00
Ahmad Masri
4a8e85bc08 wil6210: enable AP/PCP power save
New FW has power save capability in AP/PCP mode. FW reports this to
driver with WMI_FW_CAPABILITY_AP_POWER_MANAGEMENT.

AP/PCP mode power save in FW is disabled by default. It can be enabled
by sending WMI_PS_DEV_PROFILE_CFG_CMD to FW as part of start_ap
sequence.

Several pre-conditions must be met for driver to enable this:
1. power save enabled from cfg80211
2. AP power save enabled from platform driver. This is reported from
   platform driver with a new WIL_PLATFORM_CAPA_AP_PS

AP power save can be controlled via "ap_ps" debugfs.

Change-Id: I328fdbfe5382e60688c9f4a67aa9378197e01987
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2019-12-19 09:06:03 +02:00