Commit graph

890,328 commits

Author SHA1 Message Date
qctecmdr
8079b7f84f Merge "interconnect: qcom: Add sync_state for Holi" 2020-08-26 13:02:16 -07:00
qctecmdr
aff7b89ff7 Merge "iommu: skip iommu_tlb_sync in iommu_unmap()" 2020-08-26 13:02:15 -07:00
Lina Iyer
8bd86be3cc cpuidle: record state entry failed statistics
When CPUs fail to enter the chosen idle state because of pending
interrupt, let's record that and show along with other statistics for
the idle state.

Change-Id: I22265e8a86160c98a7ae810808b6b4821a6633b6
Signed-off-by: Lina Iyer <[email protected]>
2020-08-26 13:35:46 -06:00
Himateja Reddy
44bde2c4a1 msm: adsprpc: store glink transaction history in global buffer
Store the history of recently sent and received glink messages in
a rolling buffer, maintained per channel.

Change-Id: I4547de2190f59ad36dba5d1bdbb83d7d6fa656b9
Acked-by: Thyagarajan Venkatanarayanan <[email protected]>
Signed-off-by: Himateja Reddy <[email protected]>
2020-08-26 10:40:16 -07:00
Mukesh Ojha
6ddf9b8520 defconfig: msm: Enable debug module info config for Lahaina/Shima
Enable config to print information about module (un)loading
for Lahaina/Shima SoC.

Change-Id: I2fb3bc47fd550b26c693fdc76cb6eba05db4ce60
Signed-off-by: Mukesh Ojha <[email protected]>
2020-08-26 10:31:45 -07:00
Mukesh Ojha
da821c827a Kconfig.debug: module: Add debug config to debug modules
There can be scenario where, dynamically loadable modules adds
a certain nodes in list data structure and forgot to remove
reference from the list while unloading themselves. And this can
result in fault while accessing those dangling pointers.

So If we log the module used address ranges, we could be able to
tell exact victim module.

And, It will be good to keep these debug logs under a config flag.

So, let's add DEBUG_MODULE_LOAD_INFO config and use this in
printing module used init and core layout address
ranges.

e.g:
Core layout sections:
[   40.599573]  .text
[   40.627074]  .plt
[   40.603426]  .rodata.str1.8
[   40.608016]  __mcount_loc
[   40.622142]  .note.gnu.build-id
[   40.612654]  .data
[   40.616438]  .gnu.linkonce.this_module
[   40.634909]  .bss

Init layout sections
[   40.630781]  .init.plt
[   40.638591]  .symtab
[   40.642573]  .strtab

After this patch:
/ # rmmod sample
[   63.816318] Unloaded sample: module core layout start: 0xffffff9dbff85000 size: 0x4000

This config should not be enabled in production builds.

Change-Id: I4acfc4f53c561f92ca63fa3c4559148929575580
Signed-off-by: Mukesh Ojha <[email protected]>
Signed-off-by: Neeraj Upadhyay <[email protected]>
2020-08-26 10:31:36 -07:00
Sriharsha Allenki
88bbc514e1 usb: pd: Add support for IIO based properties
Add IIO calls for the power supply properties that are
not supported by the current power supply framework.
Also, use the proper power supply object for the
property POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN.

Also IIO calls held mutex which causes possible deadlocks when
called from interrupt context, hence remove the IIO calls
from the psy_chnaged and move them to a different work.

Change-Id: I39d3806fd29f817a982d95d32313b82e9ec76117
Signed-off-by: Sriharsha Allenki <[email protected]>
2020-08-26 17:43:53 +05:30
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 <[email protected]>
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 <[email protected]>
2020-08-26 02:37:23 -07:00
Sriharsha Allenki
d9af4afe63 usb: pd: Add support of qpnp-pdphy and policy_engine drivers
The qpnp-pdphy driver provides support for the PD PHY peripheral.
This along with the policy engine provides a protocol stack that
supports USB Power Delivery communication over a Type-C port.
This snapshot is taken as of msm-4.19 commit <1526c9c655ff>
("Merge "mmc: sdhci-msm: Add quirk to control debug feature"").

Fixed the compilation issues related to typeC framework for
the support of role swap. Also, remove unsupported and unused
extcon framework calls and API.

Change-Id: Ie89bd60b773a3c61f26b92cb1e1ef09847b6d46e
Signed-off-by: Sriharsha Allenki <[email protected]>
2020-08-26 14:56:06 +05:30
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 <[email protected]>
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
Mohammed Mirza Mandayappurath Manzoor
44bfe6de8e msm: kgsl: Make ACD QMP message sending failure non fatal
If ACD fails to send its state through the QMP mailbox, we do not get
the power saving as expected. An error message will do and need not
fail probe.

Change-Id: I821d0d3c774cc45726a8c7b281d226ff5da83fa5
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <[email protected]>
2020-08-25 19:49:05 -07:00
Hemant Kumar
6c205de730 pci: msm: Configure L23 ready poll timeout using sysfs
If RC is connected to an endpoint running in emulation
environment, current polling timeout is not sufficient
for endpoint to respond for L23_Ready. Add sysfs entry
to change L23_Ready polling timeout. This allows to set
longer duration of timeout so that endpoint response is
received before timeout.

Change-Id: I374a8c9ddd4e546bf5746dad7bd5014945817d42
Signed-off-by: Hemant Kumar <[email protected]>
2020-08-25 18:24:14 -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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Signed-off-by: Prasad Sodagudi <[email protected]>
Signed-off-by: Patrick Daly <[email protected]>
Signed-off-by: Sudarshan Rajagopalan <[email protected]>
Signed-off-by: Isaac J. Manjarres <[email protected]>
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 <[email protected]>
Signed-off-by: Patrick Daly <[email protected]>
Signed-off-by: Isaac J. Manjarres <[email protected]>
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 <[email protected]>
Signed-off-by: Prasad Sodagudi <[email protected]>
2020-08-25 11:43:24 -07:00
Mohammed Mirza Mandayappurath Manzoor
eb3e2f6ce3 msm: kgsl: Fix maximum allowed power level for A660
Update the logic that checks maximum allowed power level to
accommodate new frequency corners.

Change-Id: I85c9db7e39c75b14ee77464ca6fcdf5855653b25
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <[email protected]>
2020-08-25 11:20:48 -07:00
Mohammed Mirza Mandayappurath Manzoor
e12a8b83d2 msm: kgsl: Enable Adaptive Clock Distribution feature for A660 v2
ACD is a power saving feature to mitigate voltage droops.

Change-Id: I43502bd44946463f7db30011e233255217cb02e0
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <[email protected]>
2020-08-25 10:08:22 -07:00
Mohammed Mirza Mandayappurath Manzoor
a1a9d1bd15 msm: kgsl: Include data from all power levels in ACD table
Update the logic to include data from all powerlevels in ACD table for
ACD to be enabled on all levels.

Change-Id: I0da7ab5e4449bbe38bc292c63f0d1a72c3991a0f
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <[email protected]>
2020-08-25 10:08:10 -07:00
Pankaj Gupta
174e5fd8bf kgsl: msm: Correctly check hardware idle status for a619_holi target
Use GMU_AO_GPU_CX_BUSY_STATUS instead of RBBM_STATUS to check the
hardware idle status for A619_holi target.

Change-Id: Ic66e80924331d9f1a0203fd96e352c3009a4eb75
Signed-off-by: Pankaj Gupta <[email protected]>
2020-08-25 18:28:37 +05:30
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 <[email protected]>
2020-08-25 14:37:43 +05:30
Sarthak Garg
8e79ffb6c8 mmc: sdhci-msm: Add support for ice core clock
Support for getting ice core clock from dt and enabling it.

Change-Id: Iaa12effc896d820f0ba3c87f3939377ffd579ea6
Signed-off-by: Sarthak Garg <[email protected]>
2020-08-25 12:43:57 +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 <[email protected]>
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 <[email protected]>
2020-08-25 11:35:57 +05:30