Commit graph

889,574 commits

Author SHA1 Message Date
qctecmdr
2251e53c39 Merge "defconfig: Enable SMB5 and QG drivers for holi" 2020-08-26 04:59:27 -07:00
qctecmdr
365f875612 Merge "msm: adsprpc: Add capability for error code change in kernel" 2020-08-26 04:59:26 -07:00
qctecmdr
0576a37c73 Merge "cpuidle: lpm-levels: Fix RIMPS timer programming" 2020-08-26 04:59:25 -07:00
qctecmdr
b417ee1163 Merge "msm_rtb: Evaluate parameter only once in reads/writes" 2020-08-26 04:59:25 -07:00
qctecmdr
c6cac6db7c Merge "clk: qcom: shima: Fix stuck at off warnings during probe" 2020-08-26 04:59:24 -07:00
qctecmdr
09882fffec Merge "iommu/arm-smmu: Ensure power resources are enabled during tlb maintenance" 2020-08-26 04:59:24 -07:00
qctecmdr
86d7ed9aeb Merge "msm: kgsl: Fix overflow issue to gpu_busy" 2020-08-26 04:59:24 -07:00
qctecmdr
a344fa7c85 Merge "msm: cvp: Fixed a deadlock during power update" 2020-08-26 04:59:23 -07:00
qctecmdr
d13eadc631 Merge "arm64: defconfig: Enable DYNAMIC_DEBUG for holi target" 2020-08-26 04:59:22 -07:00
Mukesh Ojha
7112b5ab6f pinctrl: qcom: Update reserved GPIOs for Shima
Certain GPIOs are reserved for secure world and cannot be accessed by HLOS.
Supply "reserved_gpios" to msm_pinctrl to mark these pins as invalid.

Change-Id: I13df5f80bad3ab339aa1382f841796096c8ce748
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-08-26 16:16:43 +05:30
Satish Kodishala
c490f3473f Delay opening slimbus ports for A2DP for Apache
Delay opening slimbus ports for A2DP for 44.1/88.2k
sample rates if feedback channel is not opened. Else,
delay opening of slimbus port for feedback channel
regardless of A2DP sample rate since feedback channel
is always opened first, then actual A2DP port is opened.
The change is made for Apache.

CRs-Fixed: 2735853
Change-Id: Iafd2bdaf814d6ceb53452632567072c00d69db6f
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2020-08-26 02:37:23 -07:00
Kai Liu
c9e536bb36 cnss2: set high 32bit of MSI addr only when device is 64 bit capable
If EP is 32bit MSI capable, then MSI address is 4 bytes. Platform
driver check MSI capability before read MSI address.

Change-Id: I8157b7ba2c9ed2a8d93f168f893cf1a2e6bb50b6
Signed-off-by: Kai Liu <kaliu@codeaurora.org>
2020-08-26 01:16:33 -07:00
qctecmdr
cf90c05d27 Merge "msm: kgsl: Remove VM_MAYWRITE flag to restrict mprotect" 2020-08-26 00:27:09 -07:00
qctecmdr
259941df19 Merge "msm: adsprpc: allow unsigned PD offload to secure channel" 2020-08-26 00:27:09 -07:00
qctecmdr
27c842bb53 Merge "msm: kgsl: Update preemption context record size for a660" 2020-08-26 00:27:08 -07:00
qctecmdr
51758060a0 Merge "cnss2: Wait for power up complete during SSR restart" 2020-08-26 00:27:08 -07:00
qctecmdr
74abb1f6bd Merge "defconfig: lahaina: Disable console on GKI builds" 2020-08-26 00:27:07 -07:00
qctecmdr
3535559198 Merge "cnss2: Use correct timer for forcing FW assert" 2020-08-26 00:27:07 -07:00
qctecmdr
bf233d6ffb Merge "defconfig: Enable CONFIG_VMSPLIT_3G_OPT" 2020-08-26 00:27:06 -07:00
qctecmdr
20318614fa Merge "dt-bindings: iio: add IIO channel IDs for QG device" 2020-08-26 00:27:05 -07:00
qctecmdr
cddf9787a3 Merge "arm64: defconfig: enable autosleep and wakelock configs" 2020-08-25 20:50:05 -07:00
qctecmdr
d1d8422b47 Merge "cnss2: Fix for static analysis issue" 2020-08-25 20:50:05 -07:00
qctecmdr
7d24c95d2b Merge "soc: mmrm: Multimedia Resource Manager interface" 2020-08-25 20:50:04 -07:00
qctecmdr
8baae46492 Merge "ANDROID: Revert "module: Refactor section attr into bin attribute"" 2020-08-25 20:50:04 -07:00
qctecmdr
7399f76820 Merge "drivers: thermal: cpu_voltage: Use the child device node" 2020-08-25 20:50:04 -07:00
qctecmdr
7965554ba6 Merge "NFC: Align DT property name with DTSI files" 2020-08-25 20:50:03 -07:00
Keerthi Gowda Balehalli Satyanarayana
04b73d404e arm64: defconfig: Enable selinux config
Selinux defconfig enables sepolicies on VM.

Change-Id: I402cfb059440343849237a9dbcaa62b35e934ec3
Signed-off-by: Keerthi Gowda Balehalli Satyanarayana <kbalehal@codeaurora.org>
2020-08-25 13:32:05 -07:00
Raghavendra Rao Ananta
21eaad120e soc: qcom: ramdump: Fix 'complete ramdump' collection
The PIL driver sets up the mappings for the segments' address
based on the size of the segments. However, for the case of
'complete ramdump' collection, the ramdump driver re-sizes the
segments, thus causing a mismatch in the mappings created by
PIL driver. Hence, fix this by only initializing the physical
address in the PIL driver and let the ramdump driver take
care of the re-sizing and mapping.

Change-Id: Ia07eae2b1873f1fc9d3e9a1c8089f14ffd37dcd3
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-25 13:16:41 -07:00
Lina Iyer
1f820e142f cpuidle: menu: trace menu governor decisions
Enable debugging of menu governor's choices by tracing at different
points.

Change-Id: Ia72a92cd74b5ae02bd0e504ec66653e680e9df7e
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-08-25 13:38:50 -06:00
Prasad Sodagudi
8777aa80bb debug-pagealloc: Panic on pagealloc corruption
Currently, we just print the pagealloc corruption warnings and
proceed. Sometimes, we are getting multiple errors printed down
the line. It will be good to get the device state as early as
possible when we get the first pagealloc error.

Change-Id: I79155ac8a039b30a3a98d5dd1384d3923082712f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-08-25 11:46:48 -07:00
Syed Rameez Mustafa
8c97fea74f kernel/lib: add additional debug capabilities for data corruption
Data corruptions in the kernel often end up in system crashes that
are easier to debug closer to the time of detection. Specifically,
if we do not panic immediately after lock or list corruptions have been
detected, the problem context is lost in the ensuing system mayhem.
Add support for BUG_ON immediately after such corruptions are detected.
The CONFIG option controls the enabling/disabling of the feature.

Change-Id: I9b2eb62da506a13007acff63e85e9515145909ff
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-08-25 11:45:29 -07:00
Prasad Sodagudi
096d47461c debug-pagealloc: print physical address for detected corruption
It's sometimes useful to know the physical address which
has beencorrupted, especially in systems with multiple
bus masters and DMA engines the capability of writing
to memory. It's may also be useful for identifying the
location of failures of memory cells in cases of
device-specific corruption. So print the physical
start address of the page to help in these scenarios.

Change-Id: I081edd8b1c06913c0057a6cb9dda18077cfbdc30
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-08-25 11:43:24 -07:00
Vipin Deep Kaur
5dad68f3fa i2c: i2c-msm-geni: Avoid usage of dma chan_id in case of GSI transfer
DMA chan_id is different than GSI GPII channel id, instead check for
whether it's tx or rx channel directly in prepare descriptor api.

Change-Id: Ia5758ddeef89c3ee69e23a5b4ea2117ec45d44a5
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-08-25 14:37:43 +05:30
Saurabh Sahu
d6e734d4f3 arm64: defconfig: Add qcom debug config for perf build in HOLI
Add support for common qcom debug for perf build
in HOLI.

Change-Id: I2366c63df8f1882cfb62bcb420c2448c0617ba57
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-08-24 23:06:20 -07:00
Ajay Agarwal
7df933d7a9 usb: gadget: u_ether: Add skb check in eth_start_xmit
'Commit 145c3d9be206 ("usb: u_ether: Prevent dropping multicast
packet in rmnet ip mode")' removed skb check from eth_start_xmit
function. While ndo_start_xmit are typically expected never to be
called with NULL SKBs, for NCM function this xmit function is
called with NULL SKB initially which then uses the 'wrap' routine
to create valid SKBs. But this null SKB is getting dereferenced
before 'wrap' routine could run on it when in ethernet mode.
Fix this by bringing in the skb check.

Change-Id: I9d40f70190eb91ecc848b71c4ce31a656c60a28d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2020-08-25 11:35:57 +05:30
Veerendranath Jakkam
3b0ca38f32 cfg80211: Indicate support for AKM advertisement per interface
Define macro to indicate backport support for advertising supported
AKMs per interface type.

Change-Id: I335c458f2a188a9c0a85c7a2ce09603535d0eb64
CRs-Fixed: 2743940
Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
2020-08-24 21:51:57 -07:00
Yue Ma
6854d5850e cnss2: Trigger recovery when link is down before force RDDM
If link is still down before force firmware assert, directly trigger
link down recovery instead of forcing RDDM.

Change-Id: Ie3e4c97c2ab42a1c426c6048ed839dfdd7f02462
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-08-24 18:15:47 -07:00
Yue Ma
9f5e6a039b cnss2: Add prefix to firmware name based on device ID
WLAN firmware files will be stored at different places based on
different device IDs. Hence add prefix to firmware name in order
to load firmware files correctly.

Change-Id: I6c92f2384fa81917ebfb01b80d8a2ee6c2c756b6
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-08-24 16:20:16 -07:00
Stephen Dickey
db1f231281 sched/cpupri: skip isolated cpus
Currently there exists a path where cpupri_find could
return lowest_mask without removing isolated cpus. This
happened when __cpu_pri() didn't consider isolated
cpus and indicated that the lowest_mask was not empty.
Subsequently, cpupri_find_fitness() would find the
lowest_mask was empty, after removing isolated cpus.
This led to cpupri_find() being called again,
cpupri_find_fitness being re-entered, and this time,
since fitness_fn is NULL, returns true. This means there
is a case where lowest_mask only has isolated CPUs
and cpupri_find_fitness will indicate yes, cpus were found.

When invokved in the rt wakeup path through find_lowest_rq(),
this caused the pushes of rt tasks to be placed on
isolated cpus.  This also causes the the wakeups of rt
tasks on isolated cpus, although this is a rare occurrence.

Fix it by ensuring __cpu_pri() removes isolated cpus from
lowest_mask, which in turn causes cpupri_find_fitness() to
skip the current task_pri index prior to making any other
decision.  For the case where lowest_mask only has isolated
cpus left, this will result in no CPU being found, and
a return of false from cpupri_find_fitness().

Change-Id: I3e28b8366513ee51dc5c2d4eb0a2eb146c82f255
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
2020-08-24 16:12:20 -07:00
Subbaraman Narayanamurthy
844516d943 Revert "input: qcom-hv-haptics: read CAL_TLRA_CL_STS from SDAM after boot up"
This reverts commit 7d3ecfd796.

This change had caused a regression with swr-haptics driver probe
as the soundwire master couldn't enumerate swr haptics. Revert
this until we can understand why soundwire enumeration fails.

Change-Id: Ie5840247013a1a3fab15758e9ace7b131619be49
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-08-24 15:27:02 -07:00
Manikandan Mohan
119ac000e7 cnss2: Donot assert if BDF download fails on reboot
request_firmware returns -EAGAIN failure if user space access is
disabled during reboot. Thus for BDF download failure check this
condition before assert.

Change-Id: Ib6c90b1a02763b216a474729c3191c8c05772af2
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-08-24 14:49:19 -07:00
Guru Das Srinagesh
bc667675e0 leds: qti-flash: Show on_time and off_time in microseconds
Adjust the units of on_time and off_time to microseconds to align with
max_flash_timeout, which uses those units.

Change-Id: I65f29175606d5571720215f196d2e08e6d6a18f0
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-08-24 14:35:19 -07:00
Sai Harshini Nimmala
0f69c57d70 soc: qcom: hyp_core_ctl: Catch uninitialized freq QOS object
Currently, the code is not checking if the freq qos object was
requested before using it in the undo reservation path.
This causes warnings like "freq_qos_update_request() called for
unknown object".
Fix this by checking freq_qos_init_done flag is set prior to using the
qos objects.

Change-Id: Ie8009f5ea191f4ad0c199a3fce04376871a5d2c5
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-08-24 14:24:57 -07:00
Asutosh Das
1709740c3f scsi: ufs: Remove ufshcd-qti driver
ufshcd-qti was a copy of the downstream driver.
It was a place-holder until we get the upstream driver
working and stable.
Now that it's done, remove ufshcd-qti.

Change-Id: Ie9a5781a5133c08cf4ebb11974fade076ec0da84
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-08-24 10:20:06 -07:00
Odelu Kukatla
197a423daa interconnect: qcom: Add sync_state for Holi
Add sync_state functionality to remove threshold held
during initial boot up and clean up any linger proxy
resources that were voted for from bootloaders.

Change-Id: Icb9758075fa2af8f3bb658e8a4b033b213e16545
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-08-24 10:13:43 -07:00
Shaleen Agrawal
47f2b460a7 sched: Cleanup allowed cpus in task placement
Cleanup a redundancy while checking for affinity.

Change-Id: I36b6c2f3c8e1067cb6e09f0d5fb60e9e33a4d342
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
2020-08-24 09:47:14 -07:00
Ashish Bhimanpalliwar
deb4ad8ce9 arm64: defconfig: Enable DYNAMIC_DEBUG for holi target
Dynamic debug allows one to dynamically enable/disable
kernel code to obtain additional kernel information.

Change-Id: I3756769cd4f651aad095638e2951f462eac4ec30
Signed-off-by: Ashish Bhimanpalliwar <abhiman@codeaurora.org>
2020-08-24 19:45:30 +05:30
Sarthak Garg
247a65111a Revert "mmc: sdhci-msm: skip eMMC slot probe if eMMC isn't a bootdevice"
A proxy vote is kept for all the resources binded in the device tree
and those resources would be enabled till the actual driver comes in
and binds to it.

For example every device that needs a clock or have binding for clock in
the device tree all those clocks would be left enabled because of the
proxy vote.

That proxy vote would be removed in the late init when the sync-state
is successful.

For the sync-state to be successful every driver which have bindings
toward that resource must complete the bind with that resource or probe
successfully.

So here for the gcc sync-state to be successful and proxy vote to be
removed every gcc consumer (in this case eMMC) must not bail out and
complete its probe. 

This reverts commit 5827a3e53d.

Change-Id: Ic6017ca80a051f6210c9bb1b7f4d27ca842a6f45
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-08-24 17:35:36 +05:30
Prakash Gupta
4ca0be7a2c iommu: skip iommu_tlb_sync in iommu_unmap()
Downstream arm-smmu impl, perform SYNC as part of unmap().
This is done under arm_smmu_tlb_inv_context_s1. This double the sync
operation. This impacts the unmap time, remove this duplicate sync
operation.

Change-Id: Ic98fc04a8102fe3a0b79e52b33daabf94732fcbf
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-08-24 09:46:53 +05:30
Neeraj Upadhyay
efff3931e0 msm_rtb: Evaluate parameter only once in reads/writes
This reverts commit fc44c0ba38 ("msm_rtb: Don't lose
the __user tag on relaxed reads/writes"). This causes
address parameter, with side effects, to be evaluated
more than once.

Change-Id: Ib37665763736bdf562afcc8335b014a2724a7598
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-08-23 16:34:40 +05:30