Commit graph

892,914 commits

Author SHA1 Message Date
Neeraj Upadhyay
831a64e11d soc: qcom: Dump cpu registers content during panic
Add minidump entry and dump memory around addresses
contained in registers in panic.

Change-Id: Id4857e3b08838838d8aa3a51cb9d6961be37b579
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 05:08:41 -07:00
Neeraj Upadhyay
f8a6a88e57 soc: qcom: Add minidump collection on panic
Add minidump collection for cpu runqueues, on panic.

Change-Id: Ib9d313c25cb53547fff075587b3fdd9297a74756
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 05:08:36 -07:00
Neeraj Upadhyay
52a0d3dcb7 soc: qcom: Enable ftrace support in minidump
Register and dump ftrace buffer on kernel panic, to minidump
table. The dumps are collected in parsed format.

Change-Id: I10605467d2b566425cc2cb4fd67dbc59fcd592e7
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 17:36:17 +05:30
Sarthak Garg
40fdaf3134 mmc: sdhci-msm: Disable always-on LDO's when eMMC is absent
Both eMMC and UFS share the regulators (vdd & vdd-io).
On UFS based devices this regulator can be turned off after the eMMC
probe fails.

Override vdd-io-always-on flag as false.

Change-Id: I2e2abb14512d5e3f8fc0cb67d1aa734c78674cfa
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-09-07 17:10:19 +05:30
qctecmdr
122f4cad33 Merge "backlight: qcom-spmi-wled: Force HFRC off when WLED is disabled" 2020-09-07 01:24:47 -07:00
qctecmdr
6fb13e7c75 Merge "platform: msm: free the codec node after disconnect" 2020-09-07 01:24:47 -07:00
qctecmdr
f64f2f13d4 Merge "cpufreq: qcom: Add support for performance lock feature" 2020-09-07 01:24:47 -07:00
qctecmdr
7765a70ffe Merge "mem-offline: improve the effective utilization of movable zone" 2020-09-07 01:24:46 -07:00
qctecmdr
f048fe34f8 Merge "defconfig: lahaina: Enable F2FS_CHECK_FS for lahaina" 2020-09-07 01:24:46 -07:00
qctecmdr
a9c39c41e9 Merge "power: smb1398: Do not disable FP_FET during IREV condition" 2020-09-07 01:24:45 -07:00
Luhua Xu
987c7b940b UPSTREAM: spi: add power control when set_cs
As to set_cs takes effect immediately, power spi
is needed when setup spi.

Bug: 167938264
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Luhua Xu <luhua.xu@mediatek.com>
Link: https://lore.kernel.org/r/1572426234-30019-1-git-send-email-luhua.xu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit d948e6ca189985495a21cd622c31e30e72b6b688)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I4ed7f854419901f9537916096b941135796956d1
2020-09-07 10:13:03 +02:00
Zhenhua Huang
8ec15472ef soc: qcom: pil: track secure pages used by pil
PIL secures pages are using direct scm call, mark these pages using a magic
flag so that it can be easily identified.

add one check for removing carve out pages, that's already excluded.

Change-Id: If75ab6b4537323e7202c1dd52e2e6677cb61e437
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2020-09-07 13:54:13 +08:00
Sankeerth Billakanti
4945008ef3 platform: msm: free the codec node after disconnect
The codec interface node is allocated during the codec
addition during dp connect. These changes will free the
node after the dp disconnect.

Change-Id: I6f1fc5639f1a5fa61ef04557b888b3389800dce1
Signed-off-by: Sankeerth Billakanti <sbillaka@codeaurora.org>
2020-09-06 20:35:34 -07:00
Kiran Gunda
de264826a9 backlight: qcom-spmi-wled: Force HFRC off when WLED is disabled
Apply the configuration to force HFRC off when WLED module
is disabled.

Change-Id: Iff1df47fd26a620664087eb4c9140cc4e45251bc
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2020-09-06 20:22:07 -07:00
Kishore Sri venkata Ganesh Bolisetty
e025cec440 binder: update low_latency selection for binder transactions
The change limits the low_latency flag selection to binder
transactions of the foreground high priority tasks.

Change-Id: Id191e63ba2ccf5537cb45711c20bc22831129a18
Signed-off-by: Kishore Sri venkata Ganesh Bolisetty <bsrivenk@codeaurora.org>
2020-09-06 11:51:07 -07:00
Odelu Kukatla
fad935364b interconnect: qcom: Enable QoS for Shima
Enable QoS for the master ports on Shima with predefined
values for priority and urgency.

Change-Id: I587306831ef3dea0855230d4316a68060f9f223b
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-09-07 00:15:30 +05:30
qctecmdr
9a469b261f Merge "Minidump: Add registration/update support for suspend context" 2020-09-06 10:39:38 -07:00
qctecmdr
ebb72ba9c7 Merge "arm64: defconfig: Enable QCOM_SPMI_WLED driver for holi" 2020-09-06 10:39:37 -07:00
qctecmdr
4bb9d8e08b Merge "power: qpnp-smb5: Do not set BC1P2_START_ON_CC on DAM" 2020-09-06 10:39:37 -07:00
qctecmdr
2a46a957b7 Merge "msm: ipa: IPAv5 updates" 2020-09-06 10:39:36 -07:00
Jishnu Prakash
55463a63db dt-bindings: iio: Add IIO channel numbers for SMB1398
Add channel IDs required for SMB1398 IIO device's channels.

Change-Id: I20192dba7d9b20f4163a4c648681d1d517e92587
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-09-06 18:09:06 +05:30
Jishnu Prakash
b4ac30156e iio: adc: Correct smb1398 scaling function
Correct scaling function for SMB1398 to ensure
temperature is calculated accurately.

Change-Id: I7ec497ef9d1171da7a08a97730912727c583830a
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-09-06 18:08:16 +05:30
Konstantin Dorfman
8005d59933 soc: qcom: add disable/enable SPSS SSR ioctl()
During SPSS firmware update by fota, SPSS SSR causes cryptographic erase
of Secure Processor user data. To mitigate this, instead of related
SSR, platform reboot requested during fota update. In the end of fota
update, SPSS SSR re-enabled.

This change adds ioctl() to update internal driver configuration
(functionally disable or enable SSR).

Change-Id: I1d8362b4691e1a335f7f1f29bc2358d3f9b1cb21
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Signed-off-by: Nurit Lichtenstein <nuritl@codeaurora.org>
2020-09-05 23:24:43 -07:00
qctecmdr
9eaefd9787 Merge "arm64: defconfig: Enable cpufreq hw debug for HOLI and SHIMA" 2020-09-05 23:03:23 -07:00
Johannes Berg
6d9aec4bc5 UPSTREAM: nl80211: fix NL80211_ATTR_HE_6GHZ_CAPABILITY usage
commit fce2ff728f95b8894db14f51c9274dc56c37616f upstream.

In nl80211_set_station(), we check NL80211_ATTR_HE_6GHZ_CAPABILITY
and then use NL80211_ATTR_HE_CAPABILITY, which is clearly wrong.
Fix this to use NL80211_ATTR_HE_6GHZ_CAPABILITY as well.

Cc: stable@vger.kernel.org
Fixes: 43e64bf301fd ("cfg80211: handle 6 GHz capability of new station")
Link: https://lore.kernel.org/r/20200805153516.310cef625955.I0abc04dc8abb2c7c005c88ef8fa2d0e3c9fb95c4@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit fce2ff728f95b8894db14f51c9274dc56c37616f)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ib3951a485537514e26a9ac70ad9773580ecc4f53
2020-09-05 11:19:47 +02:00
qctecmdr
c373fc1ff6 Merge "soc: qcom: Move watchdog suspend/resume callbacks to syscore ops" 2020-09-04 21:28:06 -07:00
qctecmdr
4afbca2a87 Merge "msm: kgsl: Define RBBM_SW_RESET_CMD for a6xx targets" 2020-09-04 21:28:05 -07:00
qctecmdr
b0f8e690f6 Merge "power: qpnp-qg: Allow signed values for Rconn property" 2020-09-04 21:28:05 -07:00
qctecmdr
8f5c855adb Merge "msm: kgsl: Set the bit mask for read-modify-write of GMU registers" 2020-09-04 21:28:05 -07:00
qctecmdr
dfcc9e01ba Merge "ASoC: soc-pcm: Fix playback shutdown sequence" 2020-09-04 21:28:04 -07:00
qctecmdr
ac90e240e6 Merge "drivers: thermal: sdpm: Add support for regulator notification" 2020-09-04 21:28:04 -07:00
Jagadeesh Kona
822d6597b7 arm64: defconfig: Enable cpufreq hw debug for HOLI and SHIMA
Enable cpufreq hw debug support for HOLI and SHIMA.

Change-Id: I62b3404b918a738addeada83a1069712c55ebc21
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-09-05 07:36:21 +05:30
qctecmdr
e3bf003c8b Merge "crypto: Fix possible stack out of bound error" 2020-09-04 18:40:15 -07:00
qctecmdr
c1f96e11b1 Merge "usb: pd: Clear send_get_status flag in protocol reset" 2020-09-04 18:40:14 -07:00
qctecmdr
7b3ceccc73 Merge "Minidump: Add update region support for minidump regions" 2020-09-04 18:40:14 -07:00
David Collins
9ce5aaedf0 thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when required
Certain TEMP_ALARM GEN2 PMIC peripherals need over-temperature
stage 2 automatic PMIC partial shutdown to be enabled in order to
avoid repeated faults in the event of reaching over-temperature
stage 3.  Modify the stage 2 shutdown control logic to ensure that
stage 2 shutdown is enabled on all affected PMICs.  Read the
digital major and minor revision registers to identify these
PMICs.

Change-Id: Ieefbd4c9478f99d407da5ff12df593d56cbc1092
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-09-04 17:46:07 -07:00
qctecmdr
5f046bd246 Merge "clk: qcom: smd-rpm: Add support for clock handoff" 2020-09-04 15:55:42 -07:00
qctecmdr
5f689b7eb5 Merge "msm: cvp: All CVP load treated as real-time" 2020-09-04 15:55:42 -07:00
qctecmdr
e826883017 Merge "power: qpnp-smb5: Update the interrupt handler names" 2020-09-04 15:55:42 -07:00
qctecmdr
9d3f22c3a5 Merge "dt-bindings: msm: Add bindings for MFHDR fuse support" 2020-09-04 15:55:41 -07:00
qctecmdr
083c252107 Merge "clk: qcom: Add BIMC logging support during kernel panic" 2020-09-04 15:55:40 -07:00
Raghavendra Rao Ananta
2bcdc156d9 ANDROID: ABI: Update allowed list for QCOM
Leaf changes summary: 2 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added
function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added
variable

1 Added function:

  [A] 'function void regmap_mmio_detach_clk(regmap*)'

1 Added variable:

  [A] 'const vb2_mem_ops vb2_vmalloc_memops'

Bug: 167839566
Change-Id: I503d09516e077a354ee7380597a4015baf80d75f
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-09-04 15:47:26 -07:00
Blagovest Kolenichev
3e8eac8366 Merge android11-5.4.61+ (54e6ca5) into msm-5.4
* refs/heads/tmp-54e6ca5:
  ANDROID: ABI: Update allowed list for EXYNOS
  ANDROID: GKI: add abi_gki_aarch64_oneplus
  ANDROID: GKI: prevent removal of monitored symbols
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: ABI: Update allowed list for EXYNOS
  ANDROID: GKI: add abi_gki_aarch64_galaxy
  UPSTREAM: module: Correctly truncate sysfs sections output
  Revert "ANDROID: Revert "module: Do not expose section addresses to non-CAP_SYSLOG""
  Revert "ANDROID: Revert "module: Refactor section attr into bin attribute""
  Revert "ANDROID: vendor_hooks: Add vendor hooks for key combination"
  Revert "ANDROID: fix i386 build break"
  ANDROID: fix i386 build break
  ANDROID: vendor_hooks: Add vendor hooks for key combination
  ANDROID: ABI: Update allowed list for QCOM
  FROMLIST: power: supply: core: property to control reverse charge
  FROMLIST: power: supply: core: add wireless signal strength property
  FROMLIST: power: supply: core: add wireless charger adapter type property
  FROMLIST: power: supply: core: add quick charge type property

Conflicts:
	android/abi_gki_aarch64_qcom

Change-Id: I97977300f5ba7dfb546835a94637b25b551edcbf
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-09-04 15:09:32 -07:00
Liam Mark
f03a6783a0 dma-buf: Cache the dma-buf inode number
Now that dma-buf has switched to handling its release from the
file_operations' release function to the dentry_operations' d_release
function there is a potential use-after-free when accessing the
buf_obj->file->f_inode as the path called by __fput eventually calls
__dentry_kill which frees the inode before calling the dentry_operations'
d_release function, so buf_obj->file->f_inode may no longer be valid.

It doesn't look like there is a clean way to check if the inode is valid.
For example using dentry->d_lock to look at the dentry inode would first
involve getting the dentry via a call to file_dentry which potentially
uses buf_obj->file->f_inode and it may no longer be valid.

It looks safer to simply cache the inode number since it is a useful value
to have as it identifies dma-buf objects.

KASAN log gave the following:
KASAN: use-after-free in dma_buf_debug_show+0x190/0x660
E : Read of size 8 at addr ffffff81051d7740 by task cat/19499
I Call trace:
I : dump_backtrace+0x0/0x2c8
I : show_stack+0x20/0x2c
I : dump_stack+0x154/0x1f4
I : print_address_description+0x84/0x580
I : __kasan_report+0x1b8/0x218
I : kasan_report+0x10/0x18
I : __asan_load8+0x90/0x98
I : dma_buf_debug_show+0x190/0x660
I : seq_read+0x2dc/0x830
I : full_proxy_read+0xbc/0x110
I : __vfs_read+0xd8/0x3d0
I : vfs_read+0x158/0x278
I : ksys_read+0x114/0x1e0
I : __arm64_sys_read+0x4c/0x5c
I : el0_svc_common+0x130/0x294
I : el0_svc_handler+0xdc/0xec
I : el0_svc+0x8/0xc
E : Allocated by task 912:
I : __kasan_kmalloc+0xfc/0x1b8
I : kasan_slab_alloc+0x14/0x1c
I : kmem_cache_alloc+0x320/0x3c4
I : new_inode_pseudo+0xbc/0x168
I : alloc_anon_inode+0x28/0x170
I : dma_buf_export+0x1e0/0x3ec
I : ion_dmabuf_alloc+0x168/0x1d4
I : ion_ioctl+0x24c/0x5c8
I : do_vfs_ioctl+0x55c/0xcb4
I : __arm64_sys_ioctl+0xa0/0xe4
I : el0_svc_common+0x130/0x294
I : el0_svc_handler+0xdc/0xec
I : el0_svc+0x8/0xc
E : Freed by task 40:
I : __kasan_slab_free+0x160/0x22c
I : kasan_slab_free+0x10/0x1c
I : slab_free_freelist_hook+0xdc/0x15c
I : kmem_cache_free+0xf8/0x350
I : i_callback+0x48/0x220
I : rcu_do_batch+0x2e8/0x594
I : nocb_cb_wait+0x158/0x930
I : rcu_nocb_cb_kthread+0x20/0x44
I : kthread+0x1ec/0x204

Change-Id: Ic3cfabf3524d2d34fe8b341e84f2ff259e4fad63
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-09-04 14:09:47 -07:00
Melody Olvera
e421d0e26c defconfig: Enable configs for pil modem on sdxlemur
Enabled configurations for pil modem support on sdxlemur.

Change-Id: I517c3f3b81d650338625cc4c48539b67a7e43ac3
Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2020-09-04 13:20:47 -07:00
qctecmdr
c1d17bef32 Merge "cnss2: Remove unnecessary logs for Bus BW voting" 2020-09-04 13:08:02 -07:00
Chris Lew
a0e8519538 mailbox: msm_qmp: Add msgram readback
On some device memory used by msm_qmp, there can be an early ack of a
write to memory succeeding. This may cause the outgoing interrupt to be
triggered before the msgram reflects the write.

Add a readback to ensure the data is flushed to device memory before
triggering the ipc interrupt.

Change-Id: I37618f2921dc34d969a04de80badf1820a188351
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-09-04 11:39:59 -07:00
hajun.sung
54e6ca5c23 ANDROID: ABI: Update allowed list for EXYNOS
Leaf changes summary: 8 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 8 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

8 Added functions:

  [A] 'function void cpuidle_pause_and_lock()'
  [A] 'function void cpuidle_resume_and_unlock()'
  [A] 'function int tcp_register_congestion_control(tcp_congestion_ops*)'
  [A] 'function void tcp_reno_cong_avoid(sock*, u32, u32)'
  [A] 'function u32 tcp_reno_ssthresh(sock*)'
  [A] 'function u32 tcp_reno_undo_cwnd(sock*)'
  [A] 'function unsigned int tcp_slow_start(tcp_sock*, unsigned int)'
  [A] 'function void tcp_unregister_congestion_control(tcp_congestion_ops*)'

Bug: 167787841

Change-Id: I0b3569e73ecd45d9759e32e0819a94ef19e2a481
Signed-off-by: hajun.sung <hajun.sung@samsung.com>
2020-09-04 17:06:01 +00:00
Taniya Das
71821a2fe9 cpufreq: qcom: Add support for performance lock feature
In the case where the 'qcom,perf-lock-support' feature is enabled the
memory region bases would be required to be provided from the device
node. Any DCVS request requires the shared memory region to be updated
before the cpufreq-hw perf desired register is updated.

Change-Id: I16d068d3311edf8e32654ab29070d4721a7c1493
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-09-04 22:12:58 +05:30
Prateek Sood
b9483eb801 soc: qcom: Add support to dump initial bootup logs
Add support to dump initial dmesg buffer into a
buffer available in minidump and fulldump.

Make logs copying from log_buf at configurable.
This is required to avoid memory sensitive target
from using this.

Change-Id: I7e4d0ddc138ff09c9cbe7679db5e790cdaf1db5c
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-09-04 20:54:40 +05:30