Commit graph

889,574 commits

Author SHA1 Message Date
Jagadeesh Kona
b1332729e2 clk: qcom: shima: Fix stuck at off warnings during probe
Add CLK_DONT_HOLD_STATE flag to avoid the framework from
placing a proxy vote to enable the clocks during probe since
these GPU clocks are failing to turn on as their corresponding
GDSC is not enabled yet.

Change-Id: I4771d1c5696a069d0d67d407de3a7a5b1f5b139e
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-08-23 15:41:57 +05:30
Sandeep Singh
2d28806dca defconfig: Cleanup of wlan related config flags for holi
In GKI, if a config is flag enabled in a QGKI config and
disabled in debug config. Then that config flag will be
disabled for debug build and enabled for QGKI. So, this
change ensures the config flag which is enabled in lower
level config gets enabled for higher level config.

Change-Id: I6c5176e30d72a86bc6cce3b2074a8dd1d08a1e28
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-08-22 22:17:41 +05:30
Mayank Grover
0afd6cbeae arm64: defconfig: enable CONFIG_DEBUG_PREEMPT for debug config
Enable CONFIG_DEBUG_PREEMPT for debug builds, to help
enable atomic context debugging.

Change-Id: I301b15dc4f780e00f5c9146fca8e8122fd2ce3f6
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2020-08-22 03:44:26 -07:00
Jishnu Prakash
b0030513a9 defconfig: Enable SMB5 and QG drivers for holi
Enable SMB5 and QG drivers which control the main charger and
Qgauge peripherals present on PM7250b.

Change-Id: I66925cdbefd160d09f221734d5b9f676f822fe8d
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-08-22 02:48:11 -07:00
Shyam Kumar Thella
7bfcd4bd53 power: supply: qg: Add support to make QG driver GKI compliant
Add support for "bms" power supply which is not present in kernel 5.4
through IIO device and properties under it through individual IIO
channels under the IIO device.

Change-Id: I55c44e5db2dc4549021cb429444c7c5afa679c3a
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-08-22 02:43:04 -07:00
Shyam Kumar Thella
1074012e87 dt-bindings: iio: add IIO channel IDs for QG device
Add channel IDs required for QG IIO device to dt-binding includes.

Change-Id: I02a7d8348020345025a454cfa85740ec089ac6fd
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-08-22 02:42:36 -07:00
Naveen Yadav
7d41f7fbd9 clk: qcom: gcc-sdxlemur: Add PCIe and USB3 clock muxes
Add PCIe and USB3 clock muxes.

Change-Id: I8b789cea052481cba2a22358f31482e56adfb778
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-08-22 12:33:16 +05:30
Naveen Yadav
6bcc0ef1a5 dt-bindings: clk: Add PCIe pipe and USB3 pipe clocks
Add PCIe pipe and USB3 pipe clock bindings for sdxlemur.

Change-Id: If81419ba2751c728e2cd0b1e3cab8a1196e81aa9
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-08-22 12:33:16 +05:30
Jishnu Prakash
da167e08a9 power: supply: qcom: Add support to make SMB5 charger GKI compliant
SMB5 charger drivers and their helper files use several power supply
properties on msm-4.19 which cannot be supported on msm-5.4 due to the
need for GKI compliance. Add support for main charger to register
as an IIO device with individual channels under it corresponding to
missing power supply properties from msm-4.19.

Change-Id: I7182160258fa2ebd4af36b0531b11d988cffdbd3
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-08-22 10:37:14 +05:30
Jishnu Prakash
2e61611bb3 dt-bindings: iio: Add IIO channel numbers for QPNP-SMB5 charger
Add channel IDs required for QPNP-SMB5 IIO device's channels.

Change-Id: Id323424bfe66a396decc4babf248a2688438db75
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-08-22 10:09:12 +05:30
qctecmdr
f0e66e8900 Merge "arm64: defconfig: Set panic timeout and panic oops config" 2020-08-21 18:26:14 -07:00
Asutosh Das
608ed75968 scsi: ufs-qcom: Increase ah8 timeout to 5ms
Increases the ah8 value to 5ms for higher performance.
There's negligible power impact.

Change-Id: I053a167e56b0027d9c71918b4c574ce876518408
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-08-21 16:38:52 -07:00
Patrick Daly
fddc100d0a defconfig: Enable CONFIG_VMSPLIT_3G_OPT
sdxlemur will have at most 1GB of DDR, so allow all of it to be
mapped as lowmem instead of enabling CONFIG_HIGHMEM.

Change-Id: I89148d18e0be0c1d99795b7f49184bb5421af0f1
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-08-21 16:18:13 -07:00
Yue Ma
f9593505f8 cnss2: Use correct timer for forcing FW assert
When force FW assert, it should use RDDM timer instead of FW
boot timer since it expects FW entering RDDM mode.

Change-Id: Ic8498b0f3c23dc494267571da7f627eace9f91bd
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-08-21 15:35:43 -07:00
Prakruthi Deepak Heragu
c5f0d98fd9 defconfig: lahaina: Disable console on GKI builds
When serial driver is present in second stage ramdisk, it takes ~5 sec to
init the UART. All the data bufferred till then will have to be put onto
the console taking a console lock and this causes a watchdog bark. To
avoid this watchdog issue, disable the console. This also disables early
console.

Change-Id: Ibded81922cb735e3035fc960258213c4de1d6a74
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-08-21 14:26:38 -07:00
Bao D. Nguyen
a455049e0e mmc: core: Fix uninitialized clock scaling's freq table
For the UHS1 cards that have been initialized to operate
at 1.8V signaling level earlier and the card initialization
is invoked again, the driver would skip the voltage switching
sequence from 3.3V to 1.8V and exit the card initialization
because the SD card is already operating at 1.8V signaling voltage.
The clock scaling logic's clk_scaling_highest and clk_scaling_lowest
would be un-initialized in this case and cause failure to the
subsequent clock scaling initialization. Fix the issue by properly
initialize the clock scaling parameters that are later used by
the clock scaling initialization function.

Change-Id: I6489fbe3790feb07613d27b3c4bef62cd34fd44b
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-08-21 11:40:27 -07:00
Shivendra Kakrania
6e86463009 soc: mmrm: Multimedia Resource Manager interface
MMRM interface is used to do admission control of
specific resources (eg: clock) of multimedia clients
(camera/display/video/cvp).

Change-Id: Ife92d31ab08c80c06467771e74d05ab1a9a8a54b
Signed-off-by: Shivendra Kakrania <shiven@codeaurora.org>
2020-08-21 10:43:27 -07:00
Murali Nalajala
9f543e181c arm64: defconfig: enable autosleep and wakelock configs
SVM going to rely on kernel autosleep feature to do suspend-to-RAM.
Enable required configurations to achieve suspend-to-RAM functionality.

Change-Id: Ie31abce7927c8b6b2ce5dad6f917f96c52e90803
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-08-21 08:57:20 -07:00
Murali Nalajala
a02a3e54b2 haven: configure dbl and msgq interrupts as wakeup capable
Configure dbl and msgq interrupts as wakeup capable to wake up the SVM
from suspend-to-RAM state.

Change-Id: I1825109736ace36c5c871d52dfefe4a320fea335
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-08-21 08:56:15 -07:00
Sandeep Singh
a9974f00fc defconfig: Enable CONFIG_NL80211_TESTMODE config for holi
This change enables CONFIG_NL80211_TESTMODE config for
wlan host driver in holi.

Change-Id: I0974f58a2f25c14991ff4a22b998827b0a579b95
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-08-21 13:33:27 +05:30
Odelu Kukatla
5faed0d8ba interconnect: qcom: Add L3 support for Holi
Introduce an interconnect L3 driver to set L3 performance
states.

Change-Id: I31b73332429744fe2f04a2d9aa66f7972bbba7c1
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-08-21 12:18:34 +05:30
Odelu Kukatla
2f68fc670a iicc: dt-bindings: add endpoint IDs for L3 interconnect for HOLI
Add master and slave ID constants for all Qualcomm Technologies, Inc.
Holi interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.

Change-Id: I41888e2c8fbedb33c8c7cc21357fcb6f20d65f57
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-08-21 11:49:23 +05:30
Harshdeep Dhatt
7d44d933cf msm: kgsl: Update preemption context record size for a660
Add per a6xx target member to specify the preemption record size
in case it is different than the default size for all a6xx.

Change-Id: I6e5579eae47dc4ee6707437d858b8b969fe573ea
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-08-20 17:30:20 -06:00
Nitheesh Muthuraj
277697890b msm: kgsl: Fix overflow issue to gpu_busy
gpu_busy is an unsigned 64 bit int and accumulates overtime
while running gpu intensive application(no slumber)
which eventually results in overflow.

Change-Id: Ifda376918ac58fa393a1958101d3d4b161bdd3c0
Signed-off-by: Nitheesh Muthuraj <nmuthuraj@codeaurora.org>
2020-08-20 16:06:24 -07:00
Ram Chandrasekar
83d14255e3 drivers: thermal: cpu_voltage: Use the child device node
The cooling device registration is using the parent node of the cpu
voltage cooling device. The devicetree configs are using the child node
to identify the cooling device. Switch to use the child device node, so
that the cooling device is bound with the thermal zone.

Change-Id: Id501421002c5dac7cb924455e09538a384ec9f85
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-08-20 16:05:36 -07:00
Manikandan Mohan
cd7f415867 cnss2: Wait for power up complete during SSR restart
Update SSR power up function to wait for FW recovery complete to
avoid race condition with linux PM sleep entry.

Change-Id: Ief0d64e7699956ba30f2ff84732e36f6b2fdc3b0
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-08-20 15:01:35 -07:00
George Shen
81c40bf201 msm: cvp: Fixed a deadlock during power update
Change to use dyn_clk mutex from core mutex to avoid the deadlock.

Change-Id: I01a5aaba6f461255861f09e75c992d22217ae66a
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-08-20 13:06:43 -07:00
Raghavendra Rao Ananta
aec59fab94 soc: qcom: ramdump: Abort user-space read if timed-out
It's possible that the user-space process can be woken up
very late to collect the ramdumps by which time, the ramdump
collection timer would have expired. Following this, the PIL
driver unmaps the memory and continues. The user-space process
has no way to know about this and can make an attempt to read
the unmapped memory, thus resulting in a data abort.

Hence, notify the user-space process that the ramdump timer
has expired such that it can reset its state machine.

Also add the srcu related symbols to the allowed-list and update
the ABI snapshot accordingly.

Change-Id: Idb92d98406a9032c999c82e2089213883c5a65eb
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-20 10:10:42 -07:00
Hareesh Gundu
f2af78b73d msm: kgsl: Save and restore the power ctrl_flags during recovery
Power ctrl_flags will prevent the GPU power collapse when the
user has overwritten the force_rail_on, force_clk_on etc. This
will result into GPU wakeup problems in case power collapse
hasn’t happened during the hang recovery.

Change-Id: Ib1e86bbb70b2b71b8f8820692d13ce3ab6200db0
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-08-20 22:02:14 +05:30
Tapas Dey
8c7862e060 NFC: Align DT property name with DTSI files
Modified code in driver to align DT property
name with DTSI files.

Change-Id: I6423dcc68eb1dbf73c63240b128f41476caba99c
Signed-off-by: Tapas Dey <tdey@codeaurora.org>
2020-08-20 21:12:50 +05:30
qctecmdr
1e4aef37ea Merge "regulator: rpm-smd: Correct proxy regulator registration" 2020-08-20 04:00:19 -07:00
qctecmdr
b4566e9b72 Merge "coresight: tmc: Modified trigger number for reset CTI" 2020-08-20 04:00:19 -07:00
qctecmdr
6eda02cc70 Merge "spi: spi-msm-geni: Add support to disable dma mode for SPI transfers" 2020-08-20 01:26:16 -07:00
Jishnu Prakash
30b4881d6e regulator: rpm-smd: Correct proxy regulator registration
Correct the device passed for registering a proxy consumer supply
in the regulator device probe.

Change-Id: I33028648b66b922cb1132fd87ca8aa2be1b02799
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-08-20 12:16:05 +05:30
Jay Jayanna
a251e5e45e mailbox: msm_qmp: Assert on timeout
Dropped messages to AOP are generally fatal. The general rule of thumb
is to let clients decide whether the dropped message is fatal.

There have been some cases where there are messages sent to AOP as
part of the device shutdown, effectively overwriting the error state.

Add an assert to when QMP detects timeout so the error state on AOP
is preserved.

Change-Id: I5eaf42a76b1298246351ec9d66fe32e7308233bd
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
2020-08-19 23:22:11 -07:00
Isaac J. Manjarres
bf4e1bea47 iommu/arm-smmu: Ensure power resources are enabled during tlb maintenance
arm_smmu_iotlb_sync can be called outside of arm_smmu_unmap, meaning
that the power resources required to access the SMMU register space
may be disabled. Thus, call arm_smmu_power_[on/off] when invoking
arm_smmu_iotlb_sync and arm_smmu_flush_iotlb_all.

Change-Id: I9f6ec0db9b0e25a5c4bf2b0adb3fb950e6843a86
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-08-19 23:19:57 -07:00
qctecmdr
dcf7c5cb14 Merge "mm: Allow pages that are swapped in to come from the movable zone" 2020-08-19 22:51:13 -07:00
qctecmdr
d0eb308301 Merge "power: qpnp-smb5: Fix Initialize mutex for PD typec designs" 2020-08-19 22:51:13 -07:00
Can Guo
cf218ddb22 block: Fix a race in the runtime power management code
With the current implementation the following race can happen:
* blk_pre_runtime_suspend() calls blk_freeze_queue_start() and
  blk_mq_unfreeze_queue().
* blk_queue_enter() calls blk_queue_pm_only() and that function returns
  true.
* blk_queue_enter() calls blk_pm_request_resume() and that function does
  not call pm_request_resume() because the queue runtime status is
  RPM_ACTIVE.
* blk_pre_runtime_suspend() changes the queue status into RPM_SUSPENDING.

Fix this race by changing the queue runtime status into RPM_SUSPENDING
before switching q_usage_counter to atomic mode.

Change-Id: I5a2c842b959b8c57730b12e4f372abc515a8c8ab
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-08-20 12:17:49 +08:00
qctecmdr
a16407c5cc Merge "arm64: defconfig: Trim genericarmv8 defconfig" 2020-08-19 20:17:49 -07:00
qctecmdr
cdc7a0e02c Merge "soc: qcom: eud: Fix inconsistent nature of the cmdline" 2020-08-19 20:17:49 -07:00
qctecmdr
05a56a8195 Merge "input: qcom-hv-haptics: toggle CAL_EN mode if HBST is in open loop" 2020-08-19 20:17:48 -07:00
qctecmdr
9b0287edec Merge "byte-cntr: Don't start usb transfer when rwp offset is invalid" 2020-08-19 20:17:48 -07:00
qctecmdr
50b6104974 Merge "defconfig: Enable scheduler Uclamp for Holi" 2020-08-19 20:17:47 -07:00
Mao Jinlong
1c03177d1a byte-cntr: Don't start usb transfer when rwp offset is invalid
Don't start usb transfer when rwp offset is invalid to avoid exception
happening when transfer usb data.

Change-Id: I7182ebb2e66131a21d65f7df0ad239c6346c0e9d
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-08-20 09:10:34 +08:00
Raghavendra Rao Ananta
bd9bea635c soc: qcom: eud: Fix inconsistent nature of the cmdline
The EUD driver's 'enable' command line argument is set to
EUD_ENABLE_CMD even if the bootloader hasn't enabled it,
which is not correct. Hence, update the 'enable' variable
based on the state of the hardware.

Change-Id: I1159436c0e9a803462f2154ccc05649d3f7b40da
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-19 17:11:37 -07:00
qctecmdr
2b77ca772b Merge "soc: qcom: mem-buf: Relinquish unclaimed donated memory" 2020-08-19 15:08:38 -07:00
qctecmdr
26773d2817 Merge "pci: pci-msm-msi: Re-name irq chip name for the driver" 2020-08-19 15:08:37 -07:00
qctecmdr
5e72daf3f2 Merge "pci: msm: Add support to handle ep driver requested link down" 2020-08-19 15:08:37 -07:00
Yue Ma
2cf1df2b58 cnss2: Notify MSM PCIe bus driver when detect link down
There are cases that CNSS driver or WLAN host driver detects PCIe
link not accessible but link down interrupt is not triggered. In
order to handle these cases, instead of starting recovery directly,
notify MSM PCIe bus which can assert PCIe PERST GPIO and then handle
the link down callback from it as normal link down.

Change-Id: I9af8b3ae33d9c094a412c39962f5c1883c34a12a
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-08-19 12:36:42 -07:00