Commit graph

892,914 commits

Author SHA1 Message Date
qctecmdr
19866d43dc Merge "arm64: defconfig: Enable misc config for debugging for Holi" 2020-09-14 20:12:25 -07:00
qctecmdr
3a7521fc46 Merge "soc: qcom: eud: Do not fail the EUD probe for secure device" 2020-09-14 20:12:25 -07:00
Gaurav Kashyap
0fb3765e13 soc: qcom: hwkm: clear previous command errors correctly
Master and slave transactions were not clearing the previous
command errors correctly. We have to set only the error bits
to 1 in order to clear BANKN_ESR.

Change-Id: Ia7968577d27b6d53476b78f9083bed9ca233f108
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2020-09-14 18:40:36 -07:00
qctecmdr
65d212e2e0 Merge "clk: qcom: lahaina: Add runtime_pm support" 2020-09-14 17:26:15 -07:00
qctecmdr
26ef6f324c Merge "clk: qcom: clk-rpmh: Add div_clk1 for Lahaina" 2020-09-14 17:26:15 -07:00
Blagovest Kolenichev
23326187cd Merge android11-5.4.61+ (3a3ba4b) into msm-5.4
* refs/heads/tmp-3a3ba4b
  UPSTREAM: udp: initialize is_flist with 0 in udp_gro_receive
  UPSTREAM: udp: Support UDP fraglist GRO/GSO.
  UPSTREAM: net: Support GRO/GSO fraglist chaining.
  UPSTREAM: net: Add a netdev software feature set that defaults to off.
  BACKPORT: net: Add fraglist GRO/GSO feature flags
  Revert "BACKPORT: net: core: use listified Rx for GRO_NORMAL in napi_gro_receive()"
  ANDROID: vendor_hooks: Add vendor hooks for key combination

Change-Id: If5fd73581f5038b9f82be74a19c2deef8aaa1e4a
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-09-14 17:10:31 -07:00
David Collins
b3c61e3c51 thermal: qcom-spmi-temp-alarm: align temp readings with over-temp stage
Ensure that the PMIC temperature reported is at least the lowest
value possible for the current over-temperature stage.

This guarantees that we cannot hit the following corner case on
PMICs that have a GEN2 TEMP_ALARM peripheral:

0. The PMIC's thermal zone device tree configuration defines a
   passive trip point equal to the stage 1 over-temperature
   threshold (e.g. 95 C) and hysteresis=0, along with
   polling-delay=0 and polling-delay-passive>0.

1. The PMIC heats up and reaches 95 C at which point the over-
   temperature stage transitions from 0 to 1.

2. The PMIC triggers the TEMP_ALARM IRQ (which only occurs for
   over-temperature stage 0 -> 1 and 1 -> 0 transitions on GEN2
   peripherals).

3. The qcom-spmi-temp-alarm IRQ handler signals to the thermal
   framework that an event has occurred.

4. The thermal framework reads the PMIC temperature (via ADC).

5. If the temperature reported by the ADC is less than 95 C
   (e.g. 94.99 C), then no further action is taken.

6. The PMIC temperature can continue to increase without software
   awareness.

7. Eventually the PMIC temperature can hit the stage 3 over-
   temperature level (e.g. 145 C) at which point the PMIC abruptly
   shuts down the system.

This situation is avoided if at step #5, the qcom-spmi-temp-alarm
driver instead reports a temperature of 95 C (which is the minimum
possible for over-temperature stage 1) instead of the slightly low
ADC temperature reading.  Doing so causes the thermal framework to
switch to passive polling of the PMIC temperature.  This ensures
that further increase of the PMIC temperature is directly observed
by software.  That way, an orderly shutdown can be initiated by
software if needed before hitting over-temperature stage 3.

Change-Id: Ia4d12f092fb06970d686b830051788430afd32dc
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-09-14 16:43:53 -07:00
Jordan Crouse
bfd51517d4 msm: kgsl: Allow I/O coherency on imported buffers if we can
Allow I/O coherency to be enabled on imported buffers if I/O coherency
is enabled and we can determine the cache characteristics of the
imported buffer. The caller should check the flags after allocation
to determine if I/O coherency was enabled.

Change-Id: Ic0dedbade77189bd51dddad64d15f0835601e925
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-09-14 16:03:17 -06:00
Jordan Crouse
3b82217a24 msm: kgsl: Move the GMU kernel IOMMU device to the GMU platform device
In order to make devlink happy we need to bind an IOMMU device on the
primary GMU platform device.  Since we don't need GMU user yet the
decision is easy.  Move GMU kernel to the platform device instead
of a child.

Change-Id: Ic0dedbad082c57b2aeb6a35573ead8535f3b8ab9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-09-14 16:03:14 -06:00
Harshdeep Dhatt
bc3f915356 msm: kgsl: Skip DTCM and NMI if SMMU is stalled
Accessing DTCM when SMMU is stalled can lead to NoC timeouts.
Also, skip sending NMI to GMU because GMU will not be able
to save cm3 state to DDR if SMMU is stalled.

Change-Id: I56a5399ca4847c6463862141f362e01fb86d3669
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-09-14 15:28:12 -06:00
Himateja Reddy
420077a029 msm: adsprpc: remove redundant check for static PDR handle
Remove the redundant check for static PDR handle as the PD up flag
serves the same purpose.

Change-Id: I6c9d925fec745bf84bd26468bf39c8e6e78b858d
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-09-14 14:01:54 -07:00
Hareesh Gundu
c86af5a851 msm: kgsl: Enable HWCG after a6xx register configurations
For A6xx GPU enable hardware clock gating after register
configuration to avoid register access issue due to hardware
internal clock gating.

Change-Id: If55632ccf9171a7093bb1e925e4fcdb88066417c
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-09-14 10:09:54 -07:00
Manikandan Mohan
7e1ba3ba5e cnss2: Update bus bandwidth device tree config read
Fix out of bounds write during device tree bus bandwidth array copy.

Change-Id: I5fa1be5beabdccc4d662c74018d8fa22c547697b
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-09-14 10:03:45 -07:00
Raghavendra Kakarla
b4d4fb25b9 cpuidle: lpm-levels: Core isolation check to get PM QoS latency
Check the core isolation to get PM QoS request on that core while
it going to lpm. If its an isolated core pass long latency so
that core can select deeper lpm state.

Change-Id: Iafbfb75c484d602eb37bcd702e83371fd97362fd
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-09-14 22:06:56 +05:30
Raghavendra Rao Ananta
28c5792434 arm64: smp: Undo flushing of caches from local_cpu_stop
Upon a panic, the cache flushes are handled by the software
layers that collect the ramdumps. Hence doing it from the
kernel is no longer necessary and can be removed.

Change-Id: I83860fb4361e42aea69f0f5cc75aaff5c3c4e3b0
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-09-14 09:34:46 -07:00
Subbaraman Narayanamurthy
338debf2e5 iio: qcom-spmi-adc5: add support to read current channels
Add support to read current channels on PM8350B and SMB139x
charge pumps.

IIN_FB - Input current drawn by main charger (PM8350B)
ICHG_FB - Charging current from main charger (PM8350B)
IIN_SMB - Input current drawn by one of SMB139x
ICHG_SMB - Charging current from one of SMB139x

Since, most of these channels needs prescale ratios post reading
ADC code and before scaling, add the necessary prescale ratios.

Change-Id: Id9b866f684d574813904a5fd8e658f59b1d7bcbf
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-14 09:05:06 -07:00
Subbaraman Narayanamurthy
ace4dec329 iio: qcom-spmi-adc5: add CHG_TEMP channel for PMIC7
Add support to read CHG_TEMP channel on PM8350B to get charger
temperature.

Change-Id: I33c69e56d47b0ab37772df8d55eae2ab0c5bad86
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-14 09:04:40 -07:00
Subbaraman Narayanamurthy
b6d73800a7 iio: qcom-spmi-adc5: add SMB_TEMP channel for PMIC7
Add support to read SMB_TEMP channel on PM8350B that is output by
charge pump (smb139x). When this virtual channel is read for
one of SMB139x charger pumps, PBS does the configuration for that
SMB139x appropriately.

Change-Id: Ia9af1ef78571c56898057d567117fcd9b7d28172
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-14 09:03:30 -07:00
Changki Kim
bad091cc4b ANDROID: vendor_hooks: Add vendor hooks for getting printk messages
When sudden reset by watchdog occurs, kernel log is very helpful.
But the log has saved structure type in log_buf.
So we want to collect the log on runtime to string format at other
reserved memory.

Bug: 167766040

Change-Id: Ic9686acc7c284e2ab81395fb9cc076fafe142bf9
Signed-off-by: Changki Kim <changki.kim@samsung.com>
2020-09-14 14:42:20 +00:00
qctecmdr
7b54b39b21 Merge "soc: qcom: pil: track secure pages used by pil" 2020-09-14 06:19:36 -07:00
qctecmdr
c93faef925 Merge "serial: msm_geni_serial: Register normal suspend instead of suspend_noirq" 2020-09-14 06:19:36 -07:00
qctecmdr
6bebf92411 Merge "msm: kgsl: Add gcc_bimc_gpu_axi clock to smmu clock voteable list" 2020-09-14 06:19:35 -07:00
qctecmdr
9948a5bf34 Merge "defconfig: enable memlat hw log driver" 2020-09-14 06:19:35 -07:00
Deepak Kumar
6169704198 msm: kgsl: Enable Preemption on A660 GPU variant
Enable Preemption feature on A660 GPU variant.

Change-Id: I5a5dd33ca1fc7ececc5f8e52680ccad11d028726
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2020-09-14 15:41:02 +05:30
qctecmdr
522ef8875f Merge "clk: qcom: smd-rpm: Add panic notifier in HOLI" 2020-09-14 00:22:43 -07:00
qctecmdr
49212527fb Merge "mm/Kconfig: Default Enable LIMIT_MOVABLE_ZONE_ALLOC" 2020-09-14 00:22:43 -07:00
qctecmdr
35433c760e Merge "msm: kgsl: Skip state change in idle check, if requested state is NONE" 2020-09-14 00:22:42 -07:00
qctecmdr
1f716a06c5 Merge "msm-perf: Added node for perf notification" 2020-09-14 00:22:42 -07:00
Akash Asthana
47de94afaf serial: msm_geni_serial: Register normal suspend instead of suspend_noirq
While executing suspend_noirq callbacks non-wakeup interrupts are
disabled, wake-up interrupts are enabled but their handling is
deferred till the completion of suspend_noirq stage.

UART console vote/unvote the resources in suspend_noirq/resume_noirq
stages. There is no issue wrt managing clk and pinctrl resources at
noirq stage however ICC BW voting can't be done at noirq stage.

ICC requests are converted to ack based requested for RPM driver, the
ack here is nothing but interrupt from IPCC driver and it can't be
processed at noirq stage, hence flow is indefinitely stuck in UART
suspend_noirq callback.

Change-Id: Ie279580795d3c85db4dc42766b0b2d9a8adb3f00
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-09-14 12:39:01 +05:30
Sarannya S
873d5d2a58 rpmsg: glink: Add error message in case of callback failure
Sometimes due to late initialization glink callback may not be
initialized and incoming will be dropped.

Print error message if receive callback is not ready.

Change-Id: I3eae1717d4e1c14b319e288078d122762fd476e7
Signed-off-by: Sarannya S <sarannya@codeaurora.org>
2020-09-13 23:11:36 -07:00
Vinayak Menon
665cc127aa mm: page_alloc: avoid fatal sig check for GFP_NOFS
Some of the fs allocations like those for journalling
are critical and can cause a fatal error if allocation
fails. Avoid bailing out early in those cases, even if
a fatal signal is pending on the caller task.

Change-Id: Ib2803d763313b196123a4c1e2c66227b5d6e6e14
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-09-13 22:43:37 -07:00
Deepak Kumar Singh
4831a6abdd rpmsg: glink: check channel state before serving intent
Receive callback can be registered even before rpmsg driver probe is
complete. Assuming callback register as channel ready and allowing
remote host to send data is incorrect. In such case for any rx packet
callback may return prematurely thereby dropping the rx packet.

Adding a flag to store channel state when it is ready. Check this flag
before allocating rx intent and allowing data communication to proceed.
It will ensure that client driver is able to receive data correctly,
without any rx packet getting dropped.

CRs-Fixed: 2747216
Change-Id: Ib153cfe5689f31d7417622bf6177e9535fda628a
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-09-14 10:58:44 +05:30
Jagadeesh Kona
a314e4b894 cpufreq: qcom-cpufreq-hw: Fix possible NULL pointer dereferences
Add checks to properly handle and fix possible NULL pointer
dereferences and avoid usage of uninitialized variables.

Change-Id: I30f1b13ee4988286fbd1856f823858dee81fe5a3
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-09-14 10:22:34 +05:30
qctecmdr
4637ca5f0b Merge "msm: kgsl: Enable IFPC for A660 GPU variant" 2020-09-13 21:34:20 -07:00
qctecmdr
a6f1022c82 Merge "input: qcom-hv-haptics: read CAL_TLRA_CL_STS from SDAM after boot up" 2020-09-13 21:34:19 -07:00
qctecmdr
0f27a47479 Merge "power: step-chg-jeita: Add support to tune hysteresis for jeita-fcc-step" 2020-09-13 21:34:19 -07:00
qctecmdr
135494c096 Merge "power: battery: Fix typo for cp_slave channel name" 2020-09-13 21:34:18 -07:00
qctecmdr
abf363fab0 Merge "clk: qcom: gdsc-regulator: Update support to skip GDSC disable" 2020-09-13 21:34:18 -07:00
qctecmdr
f2de41e350 Merge "msm; kgsl: Correct secure pagetable pointer check" 2020-09-13 21:34:17 -07:00
qctecmdr
6688d82520 Merge "defconfig: lahaina-qgki: Enable CONFIG_PSTORE_PMSG" 2020-09-13 21:34:17 -07:00
richagar
5190e75017 msm-perf: Added node for perf notification
Added support for notifying hints from userspace

Change-Id: I3af1951614e4cd20826a595c6fca23b18c5a749b
Signed-off-by: richagar <richagar@codeaurora.org>
2020-09-13 21:23:41 -07:00
Liangcai Fan
8a8be5c013 ANDROID: ABI: add already existing symbols of mali_gondul.ko to unisoc
Bug: 160255258
Change-Id: I891eab1de6d3f0973501ee1199566978475fafff
Signed-off-by: Liangcai Fan <liangcai.fan@unisoc.com>
2020-09-14 11:28:08 +08:00
qctecmdr
98a140af35 Merge "sched/fair: Improve the scheduler" 2020-09-13 18:52:20 -07:00
Huang Yiwei
5213f0e7b7 defconfig: lahaina-qgki: Enable CONFIG_PSTORE_PMSG
Enable CONFIG_PSTORE_PMSG to collect user-space log.

Change-Id: I2c1a5482e7fe1bb28a953c777ecb7459b8958b9b
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
2020-09-14 09:36:36 +08:00
qctecmdr
3eb36f7420 Merge "soc: qcom: msm_perf: fix error checks" 2020-09-13 16:08:31 -07:00
qctecmdr
4fab22c7c1 Merge "binder: update low_latency selection for binder transactions" 2020-09-13 16:08:30 -07:00
qctecmdr
3462a9fc21 Merge "cnss2: Set CNSS PM ops to PM domain" 2020-09-13 16:08:29 -07:00
qctecmdr
1a9824ba7e Merge "msm: kgsl: Sending KGSL events to msm perf module" 2020-09-13 12:56:20 -07:00
Aman Mehta
37a0c3378e msm: kgsl: Sending KGSL events to msm perf module
Add msm performance module function calls to send
kgsl queue, submit and retired events. These events
will be accessed by userspace through msm performance
module to apply dynamic performance boosts.

Change-Id: I6d93831e5fe821032b8e32c52e88b72ab102f6a2
Signed-off-by: Aman Mehta <amanmeht@codeaurora.org>
2020-09-13 10:44:56 -07:00
qctecmdr
63eae4e5e5 Merge "staging: android: ion: Remove system heap aliasing" 2020-09-13 10:05:31 -07:00