Commit Graph

1006307 Commits

Author SHA1 Message Date
qctecmdr
0f2a384d52 Merge "soc: qcom: qbt_handler: Add out-of-bound check" 2021-11-16 04:53:16 -08:00
qctecmdr
9bc5a5514e Merge "drivers: thermal: Add support to scale ibat current using range factor" 2021-11-16 02:38:14 -08:00
qctecmdr
91cb8eae35 Merge "msm: kgsl: Update GPUCC regs for A662 snapshot" 2021-11-16 02:38:13 -08:00
qctecmdr
2e0c481eca Merge "build.config: modules.list.msm.waipio: add ufs modules for cape" 2021-11-16 02:38:13 -08:00
Auditya Bhattaram
ba17f15124 remoteproc: spss: Set SPSS data for Cape platform
Set SPSS data for Cape platform.

Change-Id: I6ceac925e415b463d8016215a7d71718e7dd7c27
Signed-off-by: Auditya Bhattaram <audityab@codeaurora.org>
2021-11-16 02:36:34 -08:00
qctecmdr
66f5c85762 Merge "phy: ufs: UFS phy support for cape" 2021-11-16 00:26:16 -08:00
qctecmdr
fb66a798ac Merge "msm: kgsl: Drop aggregated bandwidth vote during thermal throttling" 2021-11-16 00:26:15 -08:00
qctecmdr
3fd1c3d464 Merge "sched: walt: Improve the Scheduler" 2021-11-16 00:26:14 -08:00
qctecmdr
c2e3b58f9d Merge "msm: mhi_dev: Defer mhi resume till M0 ack is sent" 2021-11-16 00:26:13 -08:00
Huang Yiwei
da1e0d784a Revert "locking/rwsem: Add vendor hook for rwsem enhancement"
This reverts commit 20d502b4a7.
Since the current solution conflict with handoff feature, revert
this rwsem enhancement change before upstream make changes.

Change-Id: I60e661b7105e123efe36807f75dd094164659a98
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2021-11-16 13:46:38 +08:00
Android Build Coastguard Worker
611d258f7f Snap for 7917045 from 06d5e2547c to android12-5.10-keystone-qcom-release
Change-Id: Id4ff384c0e9162260a4558d85c0bf79aee265cfa
2021-11-16 01:00:23 +00:00
Daniel Norman
06d5e2547c Merge keystone/mirror-android12-5.10 into keystone/android12-5.10-keystone-qcom-dev
* keystone/mirror-android12-5.10:
  ANDROID: GKI: add allowed list file for xiaomi
  ANDROID: GKI: Update symbol list

Signed-off-by: Daniel Norman <danielnorman@google.com>
Change-Id: If6c4e947ca3d2fc4cfc86c4070644d01f1ce3204
2021-11-15 09:00:17 -08:00
Visweswara Tanuku
5fb28224cb cnss2: Add sysfs support for configuring timer sync interval
It can be used to tune the host and fw time synchronization interval
for better accuracy.

Change-Id: I0a3d8895520cec526341f278c91f153dd0bd1966
CRs-Fixed: 2787916
Signed-off-by: Visweswara Tanuku <vtanuku@codeaurora.org>
2021-11-15 19:16:08 +05:30
hefayun
cc98cd4a3e ANDROID: GKI: add allowed list file for xiaomi
Leaf changes summary: 3 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 3 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

3 Added functions:

  [A] 'function void* mempool_alloc_pages(gfp_t, void*)'
  [A] 'function void mempool_free_pages(void*, void*)'
  [A] 'function int mempool_resize(mempool_t*, int)'

Bug: 205803389
Change-Id: Iaa91649754f327b579e53537f904b5adb425acd1
Signed-off-by: hefayun <hefayun@xiaomi.com>
Signed-off-by: Giuliano Procida <gprocida@google.com>
2021-11-15 09:24:11 +00:00
Amrit Anand
0b3e5d2f1e defconfig: Enable additional configs for compilation
Enable additional configs for compilation dependency.

Change-Id: Iab3b15e0f27810bbdd2fe2e6ea9712fc20fae32c
Signed-off-by: Amrit Anand <amrianan@codeaurora.org>
2021-11-15 12:59:46 +05:30
Ram Prakash Gupta
207b5d9567 phy: ufs: UFS phy support for cape
Add UFS phy support for cape.

Change-Id: I7a79090f303d62fccd2a0574cc952c0cdef2ad78
Signed-off-by: Ram Prakash Gupta <rampraka@codeaurora.org>
2021-11-15 12:28:40 +05:30
Priyansh Jain
0218cab959 drivers: thermal: Add support to scale ibat current using range factor
Add support to read ibat range factor from nvmem and use it to
scale ibat current for greater than default max supported
ibat range.

Change-Id: Iee83be8d6663920d4df0b792417820d222e3ff46
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
Signed-off-by: Priyansh Jain <priyjain@codeaurora.org>
2021-11-15 10:05:24 +05:30
Sivasri Kumar, Vanka
d9c40dd847 Merge keystone/android12-5.10-keystone-qcom-release.66+ (233f97e) into msm-5.10
* refs/heads/tmp-233f97e:
  ANDROID: Update symbol list for mtk
  ANDROID: binder: fix regression in sender_euid
  ANDROID: fips140: use UTS_RELEASE as FIPS version
  BACKPORT: binder: use cred instead of task for getsecid
  BACKPORT: binder: use cred instead of task for selinux checks
  BACKPORT: binder: use euid from cred instead of using task
  ANDROID: vendor_hooks: Add hooks for frequency optimization
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: vendor_hooks: export get_wchan
  ANDROID: vendor_hooks: Add hooks to record the time of the process in various states
  FROMGIT: dma-buf: acquire name lock before read/write dma_buf.name
  ANDROID: cpufreq: times: record fast switch frequency transitions
  ANDROID: GKI: add required symbols for btusb to virtual device
  ANDROID: arm64: add vendor hooks for bti and pauth fault
  FROMLIST: drivers: thermal: Reset previous low and high trip during thermal zone init
  UPSTREAM: mm: vmalloc: prevent use after free in _vm_unmap_aliases
  ANDROID: ABI: update allowed list for galaxy
  ANDROID: Add android_vh_rproc_recovery_set
  ANDROID: rproc: Add vendor hook when setting recovery mode
  BACKPORT: FROMLIST: scsi: ufs: Fix a deadlock in the error handler
  BACKPORT: FROMLIST: scsi: core: Reserve one tag for the UFS driver
  BACKPORT: FROMLIST: scsi: ufs: Limit the queue depth to host->can_queue
  ANDROID: GKI: fix up abi breakage from "cfg80211: fix management registrations locking"
  UPSTREAM: cfg80211: fix management registrations locking

Change-Id: I6963bbed02d5f62ca5ee34aa2a629dfa2cfe81b3
Signed-off-by: Sivasri Kumar, Vanka <quic_svanka@quicinc.com>
2021-11-15 10:00:07 +05:30
Nitin Rawat
87d4a1ee44 build.config: modules.list.msm.waipio: add ufs modules for cape
Add cape phy module for cape platform.

Change-Id: Iddfe60e20edac5419458e88ded672dd6cfc68f3b
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2021-11-15 03:35:03 +05:30
qctecmdr
2fd507ee22 Merge "cnss2: Add code to fallback to non-contiguous FW mem allocation" 2021-11-14 10:08:24 -08:00
Patrick Daly
55b85cb48d qcom_carveout_heap: Fix TUI failure handling
A TUI session which adds memory to the qcom,tui carveout heap is
represented by a file descriptor. This file descriptor is used by the
carveout_heap implementation for refcounting.

If there is a preexisting session, carveout_heap_add_memory() fails,
and we close the file descriptor.
fput()
-> mem_buf_buffer_release()
->-> carveout_heap_remove_memory() /* Fails */

Change carvout_heap_remove_memory() to return success if the memory
region in question is not part of the carveout heap.

Change-Id: I5567a10f4a7e0e14c98904e198eb76652c9d234f
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2021-11-13 09:07:32 -08:00
Sarthak Garg
3de647be61 mmc: sdhci-msm: Update pr_err condition in DLL init path
eMMC device operating at 1.8 V can be run up to 100 MHz without SDCDC
(DLL) and with DLL above 100 MHz.

Change the existing pr_err condition to less than 100MHz.

Change-Id: Ia6575ddfd0e4dc57723226e3dff24ad485a1a2ea
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-11-13 21:44:08 +05:30
Sarthak Garg
6f39caf17c mmc: sdhci-msm: Enable tuning for SDR50 mode for SD card
Certain targets with level shifter requires tuning for SDR50 mode.
As per Hardware Programing Guide few extra configurations need to be
done before performing tuning for SDR50 mode.

Enable tuning for SDR50 mode and do needed configurations.

Change-Id: If8aec8b793a17796b61d6d7826b5700b742be3fa
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-11-13 21:42:35 +05:30
Sarthak Garg
5f029f86df mmc: sdhci-msm: Limit HS mode frequency to 37.5MHz with Level shifter
Delays are seen on IO lines with data transfer due to latency added by
level shifter. To bring these delays in normal range and avoid CMD CRC
errors frequency for HS mode is being reduced to 37.5MHz.

Hence limit HS mode frequency to 37.5MHz.

Change-Id: I5e145972197339b77cf6553f57b3ee71862699e0
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-11-13 21:34:47 +05:30
Charan Teja Reddy
e6ad4b1557 soc: qcom: mem-offline: timeout mechanism for memory offline
Signal the memory offline operation after a specified time value.

Change-Id: Ia78f71c2baf040b2a127cf731c95803cec66628a
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
2021-11-13 15:17:30 +05:30
qctecmdr
e36382448c Merge "soc: qcom: Add LLCC slice config for Cape" 2021-11-12 19:32:45 -08:00
qctecmdr
868f60fbc7 Merge "defconfig: Enable CONFIG_ARM_SMMU_CONTEXT_FAULT_RETRY" 2021-11-12 19:32:44 -08:00
qctecmdr
b4630f7503 Merge "arm-smmu: Fix missing argument to print statement" 2021-11-12 17:08:29 -08:00
qctecmdr
22a35719f4 Merge "usb: dwc3: dwc3-msm-core: Keep DWC3 core active during stop host" 2021-11-12 17:08:29 -08:00
Android Build Coastguard Worker
233f97e46b Snap for 7911206 from b0e97c450f to android12-5.10-keystone-qcom-release
Change-Id: I004444b0d2a399953e77200d165032eb64fb046c
2021-11-13 01:00:19 +00:00
qctecmdr
4aff864cb8 Merge "cnss2: Log SW_CTRL GPIO value if PCIe link training fails" 2021-11-12 14:38:40 -08:00
Patrick Daly
9c8f20f4f7 defconfig: Enable CONFIG_ARM_SMMU_CONTEXT_FAULT_RETRY
Enable CONFIG_ARM_SMMU_CONTEXT_FAULT_RETRY, which retries
faulting iommu transactions after a tlb invalidate.

Change-Id: I8d16c33ceea25e416f0304f5031e3429be01f6ad
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2021-11-12 13:13:31 -08:00
Patrick Daly
309dfa55c4 arm-smmu: Add context fault retry sequence
Retry faulting transactions after tlb invalidate.

Change-Id: I756674f2aa84cc90711cd8b057a85c7ce8080081
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2021-11-12 13:12:04 -08:00
qctecmdr
e5d6fceba9 Merge "drivers: dcvs: memlat: fix locking in fast path voting" 2021-11-12 12:15:08 -08:00
qctecmdr
712b88cbf7 Merge "net: qrtr: Change error logging in callback" 2021-11-12 12:15:08 -08:00
qctecmdr
aa3d034fe6 Merge "gunyah: rm: Update vm prop table with different VM names" 2021-11-12 12:15:07 -08:00
qctecmdr
3fc9f39eb2 Merge "msm: pci: use local pointer for rpmsg_device while sending rpmsg" 2021-11-12 12:15:05 -08:00
Amir Vajid
199eef76ac drivers: firmware: pmu_vendor: add cmd to enable tracing
Update pmu_vendor protocol to include a command to enable
tracing on cpucp to improve debugging.

Change-Id: I1210df14bd98a22f8fde74f27fb88b577b5c1f8b
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
2021-11-12 11:00:06 -08:00
qctecmdr
c6d5e599ad Merge "Merge keystone/android12-5.10-keystone-qcom-release.66+ (9493059) into msm-5.10" 2021-11-12 09:48:40 -08:00
Daniel Norman
b0e97c450f Merge keystone/mirror-android12-5.10 into keystone/android12-5.10-keystone-qcom-dev
* keystone/mirror-android12-5.10:
  ANDROID: Update symbol list for mtk
  ANDROID: binder: fix regression in sender_euid
  ANDROID: fips140: use UTS_RELEASE as FIPS version
  BACKPORT: binder: use cred instead of task for getsecid
  BACKPORT: binder: use cred instead of task for selinux checks
  BACKPORT: binder: use euid from cred instead of using task
  ANDROID: vendor_hooks: Add hooks for frequency optimization
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: vendor_hooks: export get_wchan
  ANDROID: vendor_hooks: Add hooks to record the time of the process in various states

Signed-off-by: Daniel Norman <danielnorman@google.com>
Change-Id: Iea487c2386bcc18c8f2f0c8e562a7d83300a62a2
2021-11-12 09:18:48 -08:00
qctecmdr
baa6071638 Merge "drivers: thermal: qcom: Add support for ibat CCM trip setting to bcl_pmic5" 2021-11-12 07:22:44 -08:00
qctecmdr
daa56102ac Merge "interconnect: qcom: Add interconnect stubs for Neo" 2021-11-12 07:22:43 -08:00
Liujie Xie
fa9c907453 ANDROID: GKI: Update symbol list
Update the list of symbols exported in the patch below:
https://android-review.googlesource.com/c/kernel/common/+/1887858
https://android-review.googlesource.com/c/kernel/common/+/1889015

Leaf changes summary: 10 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 5 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 5 Added variables

5 Added functions:

  [A] 'function int __traceiter_android_vh_cpufreq_fast_switch(void*, cpufreq_policy*, unsigned int, unsigned int)'
  [A] 'function int __traceiter_android_vh_cpufreq_resolve_freq(void*, cpufreq_policy*, unsigned int, unsigned int)'
  [A] 'function int __traceiter_android_vh_cpufreq_target(void*, cpufreq_policy*, unsigned int, unsigned int)'
  [A] 'function int __traceiter_android_vh_sched_stat_runtime_rt(void*, task_struct*, u64)'
  [A] 'function int __traceiter_sched_stat_runtime(void*, task_struct*, u64, u64)'

5 Added variables:

  [A] 'tracepoint __tracepoint_android_vh_cpufreq_fast_switch'
  [A] 'tracepoint __tracepoint_android_vh_cpufreq_resolve_freq'
  [A] 'tracepoint __tracepoint_android_vh_cpufreq_target'
  [A] 'tracepoint __tracepoint_android_vh_sched_stat_runtime_rt'
  [A] 'tracepoint __tracepoint_sched_stat_runtime'

Bug: 206063495

Signed-off-by: Liujie Xie <xieliujie@oppo.com>
Change-Id: I55e2d4ffaf4f712389af1e364bcea9a6dd05dd6e
2021-11-12 11:36:25 +00:00
Vivek Pernamitta
8dfa3241b6 msm: pci: use local pointer for rpmsg_device while sending rpmsg
Use local pointer for struct rpdev_device while sending rpmsg
to avoid crash if ADSP SSR is triggered where rpdev_device is
set to null in ADSP SSR notification while handling
msm_pcie_drv_send_rpmsg().

Change-Id: Id0533611b629359142e54db428918cbce702ee44
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2021-11-12 16:05:00 +05:30
TF Huang
ea592f07f6 ANDROID: Update symbol list for mtk
1. Generated with:
  BUILD_CONFIG=common/build.config.gki.aarch64 build/build_abi.sh --update

Leaf changes summary: 1 artifact 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, 0 Added variable

1 Added function:

  [A] 'function int dev_change_flags(net_device*, unsigned int, netlink_ext_ack*)'

Bug: 206011764
Signed-off-by: TF Huang <tf.huang@mediatek.com>
Change-Id: Id90b001f629d5d0c525cc88b0abcbffa4ad24891
2021-11-12 10:20:50 +00:00
Mohammed Siddiq
262bbcb529 cnss2: Add code to fallback to non-contiguous FW mem allocation
Add code to fallback to non-contiguous FW mem allocation on
failure to allocate contiguous memory.

Change-Id: Idbc7ff7f9ea4d2157e3b549dde8ee090a0f0b412
Signed-off-by: Mohammed Siddiq <quic_msiddiq@quicinc.com>
2021-11-12 14:50:00 +05:30
Yue Ma
9d9a24969f cnss2: Log SW_CTRL GPIO value if PCIe link training fails
Add change to print SW_CTRL GPIO value when PCIe link training
fails during power on.

Change-Id: I77bd2db80dad4c56647f52d67acfab0fe7efb7a7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-11-12 09:50:17 +05:30
Todd Kjos
a4eacf3227 ANDROID: binder: fix regression in sender_euid
A recent change to use proc->cred instead of proc->tsk as the source
for sender_euid caused a failure in the CredentialsTest#CaptureLayersTest
test. Revert 1 line of the patch to fix the test. The rest of the patch
needs to remain since the subsequent patches rely on it.

Before fixing upstream, we need to investigate more since the code looks
correct so the issue may be a latent userspace bug.

Bug: 205938623
Fixes: d65efd5b73dc ("UPSTREAM: binder: use euid from cred instead of using task")
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I16543a50f43f79131234995fb0813de00795bd3d
2021-11-11 19:05:25 -08:00
Amir Vajid
ac9ade0fa6 drivers: dcvs: memlat: fix locking in fast path voting
The memlat fast path today uses the spin_lock irqsave and
restore APIs in an interleaved fashion for the agg and
commit locks. This causes interrupts to get re-enabled
before releasing the commit lock, which can lead to a
deadlock scenario. Disable interrupts during this entire
critical region and acquire the two locks separately.

Change-Id: I0ae55ac5c8e85bec15bc12de1f35cd24c8653e3d
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
2021-11-11 17:42:53 -08:00
Amir Vajid
9f64847f79 modules.list.msm.waipio: add scmi pmu to first stage
Add scmi pmu vendor protocol modules to first stage as
pmu_lib is also in first stage and they are dependent on
each other.

Change-Id: Id5d708ab5bcadf1c2caadbab8272adde8001fd2e
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
2021-11-11 17:01:16 -08:00