1006197 Commits

Author SHA1 Message Date
94cd9e41cf usb: repeater: Add eUSB2 repeater driver
This change adds eUSB2 repeater driver. This driver
provides reset, initialization and power up/down interfaces
for eUSB2 repeater.

Change-Id: Ifa427f1971e8ebca5da3c12de694499ced7a48aa
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2021-11-17 11:12:46 -08:00
eea757d3fa usb: phy: Add USB EUSB2 HSPHY driver for USB HS/LS/FS functionality
This change adds SNPS USB eUSB2 PHY driver which is used to reset
and initialize USB eUSB2 PHY for USB HS/LS/FS functionality. As eUSB2
PHY communicates with conneced repeater for USB2 signaling this driver
uses registered repeater to invoke repeater specific reset and
initialization sequence.

Change-Id: I497ad608e19f4b8f61aeb0420e73b69981d0f4a5
Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2021-11-17 09:33:07 -08:00
904a766e16 usb: repeater: Add USB repeater framework for eUSB2 functionality
eUSB2 PHY needs to communicate with repeater, and can't work
independently for USB2 functionality. Hence this change adds
repeater framework which allows repeater driver to register and
provide supported repeater operations (reset, init, powerup,
powerdown, suspend). It also allows eUSB2 PHY driver to get
reference of connected repeater driver, and invoke required set
of operations to get repeater into functional mode for USB2
functionality.

Change-Id: I2bc6b1dbb958334373d1652205bcc63257130172
Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2021-11-17 09:32:42 -08:00
fb98460535 Merge "Merge keystone/android12-5.10-keystone-qcom-release.66+ (233f97e) into msm-5.10" 2021-11-17 06:32:54 -08:00
f833c40230 Merge "qcom_carveout_heap: Fix TUI failure handling" 2021-11-16 18:10:13 -08:00
2ee1b1a8e0 Merge "soc: qcom: Register irq stacks with minidump" 2021-11-16 09:17:30 -08:00
bcbec334f8 Merge "cnss2: Add sysfs support for configuring timer sync interval" 2021-11-16 07:13:28 -08:00
4661d8304c Merge "remoteproc: spss: Set SPSS data for Cape platform" 2021-11-16 07:13:27 -08:00
98aaf00a15 Merge "remoteproc: qcom: Register SSR subdevice with the q6v5 IRQ driver" 2021-11-16 07:13:26 -08:00
7b1442878f Merge "mmc: sdhci-msm: Update pr_err condition in DLL init path" 2021-11-16 04:53:17 -08:00
46e35d6cc0 Merge "gunyah: Moving the struct gh_vm_status" 2021-11-16 04:53:16 -08:00
0f2a384d52 Merge "soc: qcom: qbt_handler: Add out-of-bound check" 2021-11-16 04:53:16 -08:00
9bc5a5514e Merge "drivers: thermal: Add support to scale ibat current using range factor" 2021-11-16 02:38:14 -08:00
91cb8eae35 Merge "msm: kgsl: Update GPUCC regs for A662 snapshot" 2021-11-16 02:38:13 -08:00
2e0c481eca Merge "build.config: modules.list.msm.waipio: add ufs modules for cape" 2021-11-16 02:38:13 -08:00
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
66f5c85762 Merge "phy: ufs: UFS phy support for cape" 2021-11-16 00:26:16 -08:00
fb66a798ac Merge "msm: kgsl: Drop aggregated bandwidth vote during thermal throttling" 2021-11-16 00:26:15 -08:00
3fd1c3d464 Merge "sched: walt: Improve the Scheduler" 2021-11-16 00:26:14 -08:00
c2e3b58f9d Merge "msm: mhi_dev: Defer mhi resume till M0 ack is sent" 2021-11-16 00:26:13 -08:00
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
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
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
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
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
2fd507ee22 Merge "cnss2: Add code to fallback to non-contiguous FW mem allocation" 2021-11-14 10:08:24 -08:00
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
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
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
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
e36382448c Merge "soc: qcom: Add LLCC slice config for Cape" 2021-11-12 19:32:45 -08:00
868f60fbc7 Merge "defconfig: Enable CONFIG_ARM_SMMU_CONTEXT_FAULT_RETRY" 2021-11-12 19:32:44 -08:00
b4630f7503 Merge "arm-smmu: Fix missing argument to print statement" 2021-11-12 17:08:29 -08:00
22a35719f4 Merge "usb: dwc3: dwc3-msm-core: Keep DWC3 core active during stop host" 2021-11-12 17:08:29 -08:00
233f97e46b Snap for 7911206 from b0e97c450f2c5231fd60a4d9d60cecd886e05af2 to android12-5.10-keystone-qcom-release
Change-Id: I004444b0d2a399953e77200d165032eb64fb046c
2021-11-13 01:00:19 +00:00
4aff864cb8 Merge "cnss2: Log SW_CTRL GPIO value if PCIe link training fails" 2021-11-12 14:38:40 -08:00
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
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
e5d6fceba9 Merge "drivers: dcvs: memlat: fix locking in fast path voting" 2021-11-12 12:15:08 -08:00
712b88cbf7 Merge "net: qrtr: Change error logging in callback" 2021-11-12 12:15:08 -08:00
aa3d034fe6 Merge "gunyah: rm: Update vm prop table with different VM names" 2021-11-12 12:15:07 -08:00
3fc9f39eb2 Merge "msm: pci: use local pointer for rpmsg_device while sending rpmsg" 2021-11-12 12:15:05 -08:00
c6d5e599ad Merge "Merge keystone/android12-5.10-keystone-qcom-release.66+ (9493059) into msm-5.10" 2021-11-12 09:48:40 -08:00
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
baa6071638 Merge "drivers: thermal: qcom: Add support for ibat CCM trip setting to bcl_pmic5" 2021-11-12 07:22:44 -08:00
daa56102ac Merge "interconnect: qcom: Add interconnect stubs for Neo" 2021-11-12 07:22:43 -08:00
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
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
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
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