Commit Graph

1009179 Commits

Author SHA1 Message Date
Elliot Berman
f5cd767989 Revert "ANDROID: arm64: cputype: Add QCOM Kryo 7XX CPU descriptors"
This reverts commit 5c2fd21b16.

The correspodning commit from android12-5.10 is commit 2f011ad71eea
("FROMLIST: arm64: Add Cortex-A510 CPU part definition").

Bug: 208481398
Change-Id: I5db24cef59523d797e45ffe5139dd73b16f68a21
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
2022-01-28 08:17:36 -08:00
Elliot Berman
10f690a91f Revert "ANDROID: arm64: cpufeature: Add DBM workaround for QCOM Kryo 7XX CPUs"
This reverts commit 9ada4545d5.

The corresponding commit from android12-5.10 is commit 1a2ec52356de
("FROMLIST: arm64: cpufeature: List early Cortex-A510 parts as having
broken dbm").

Bug: 208481398
Change-Id: If93b35cf677e5abd3c62bc659cc1a0be2b9a2f22
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
2022-01-28 08:17:36 -08:00
qctecmdr
f28f53e2d2 Merge "soc: qcom: helioscom: initial change of porting of helioscom driver" 2022-01-28 07:08:34 -08:00
Charan Teja Reddy
37869b29a2 arm64: defconfig: enable CONFIG_ARM_SMMU_CONTEXT_FAULT_RETRY on parrot
Enable CONFIG_ARM_SMMU_CONTEXT_FAULT_RETRY for parrot. This is used to
retry the transactin on stall-on-fault model after issuing invalidate.

Change-Id: I286cc5f801b59506180690e96f147b767e41703d
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
2022-01-28 20:07:29 +05:30
Charan Teja Reddy
7fdbc7b896 iommu: add ARM_SMMU_CONTEXT_FAULT_RETRY for parrot
Add CONFIG_ARM_SMMU_CONTEXT_FAULT_RETRY for parrot target. This is used
to retry the transaction after tlb invalidate operation in
stall-on-fault model.

Change-Id: I39dea2ac85c9e67a7115debe4e147d847b6f781c
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
2022-01-28 20:05:16 +05:30
Akhil P Oommen
5369d6c426 msm: kgsl: Trigger timers during inline submission
Currently, we don't trigger dispatcher timer while doing an inline
submission. This breaks the long ib detection. So, trigger dispatcher
timer during an inline submission.

Change-Id: I36397cea3f6ea4393789cd4b54a2258e189f4b13
Signed-off-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
2022-01-28 18:21:19 +05:30
Pratham Pratap
d9d0f3d567 usb: repeater: Use of_irq_get_byname() instead of gpiod_to_irq()
GPIOLIB library doesn't allow to request IRQ line with OUTPUT GPIO
received with gpiod_to_irq() API. Hence get eUSB2 repeater reset PMIC
GPIO related irq using of_irq_get_byname() instead of gpiod_to_irq().
For this functionality repeater device tree node needs to have
interrupt-parent, interrupts and interrupt-names as
"eusb2_rptr_reset_gpio_irq" properties updated.

Also while at it, configure reset_gpio is low by default and assert
it when repeater needs to be reset.

Change-Id: Id1781b933f7f3f2332382b98ad12faff387888eb
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2022-01-28 01:56:31 -08:00
qctecmdr
173094dbf6 Merge "icnss2: Get SMP2P info on SERVER ARRIVE" 2022-01-28 00:56:54 -08:00
Jun Li
d89306485c scsi: ufs-qcom: fix ufs err count error
When obtaining the UFS error count, cnt_err is always less than
UFS_EVENT_HIST_LENGTH. Such as pa_err_cnt_total, maximum cnt_err of
ufs_qcom_gec is 8, which is unexpectable when it has lots of pa/dl
error. So return cnt from struct ufs_event_hist to fix this error.

Change-Id: I09748f54599a112b8d21121cac83b639c969f508
Signed-off-by: Jun Li <quic_liju@quicinc.com>
2022-01-28 16:11:57 +08:00
Sahitya Tummala
b4b2d90b2b Kconfig: Add support for Anorak chipset
Add CONFIG_ARCH_ANORAK to enable support for the Anorak chipset.

Change-Id: If24f7ceb2c76ce4df65d8819fd2ec51d88192304
Signed-off-by: Sahitya Tummala <quic_stummala@quicinc.com>
2022-01-28 13:29:40 +05:30
Ajit Kumar
df9523841c soc: qcom: helioscom: initial change of porting of helioscom driver
Added snapshot from msm-5.4 commit a3d4f5d5c3f7
Added snapshot from msm-5.4 commit 8f6d9d8de088

Helioscom driver will be used to communicate with helios device over
spi interface.

Change-Id: If11f295ebeb6456a108697fd1fe3469b7b55581b
Signed-off-by: Ajit Kumar <quic_kajit@quicinc.com>
Signed-off-by: Anurudh Kumar Tiwari <quic_aktiwari@quicinc.com>
2022-01-28 12:38:31 +05:30
qctecmdr
b21369f869 Merge "usb: dt-bindings: Add USB 4NM QMP DP PHY register macros" 2022-01-27 22:27:10 -08:00
qctecmdr
3f423b7264 Merge "gunyah: gh_rm_iface: Avoid integer overflow for multiplication" 2022-01-27 22:27:10 -08:00
qctecmdr
0309815148 Merge "drivers: qcom: llcc: Update llcc driver for neo" 2022-01-27 22:27:08 -08:00
Faiyaz Mohammed
d28e503fb9 arm-smmu: avoids force suspend for non atomic clients during shutdown
During device shutdown smmu driver is doing the force suspend [Thread 1]
and it do smmu power off. It's found that if any non-atomic client
is doing the smmu register space access [Thread 2] during the shutdown
it's leading to unclocked access. To avoid such case adding smmu atomic
power refcount.

Thread 1
Core 1 PC: msm_rtb_get_idx[msm_rtb]+68
...
msm_rtb_get_idx[msm_rtb]+0x68
__log_write_mmio+0x4c
__arm_smmu_tlb_sync[arm_smmu][jt]+0x58
arm_smmu_tlb_sync_context[arm_smmu]+0x50
arm_smmu_tlb_inv_context_s1[arm_smmu]+0x6c
arm_smmu_flush_iotlb_all[arm_smmu]+0x74
_iopgtbl_unmap[msm_kgsl][jt]+0xe0
kgsl_iopgtbl_unmap[msm_kgsl]+0x40
...

Thread 2
Core 5 PC: arch_counter_get_cntvct+18 <ffffffdd574cf228>
...
arm_smmu_power_off[arm_smmu]+0xd4
arm_smmu_runtime_suspend[arm_smmu]+0x1c
pm_generic_runtime_suspend+0x48
pm_runtime_force_suspend+0x74
arm_smmu_device_remove[arm_smmu]+0x120
arm_smmu_device_shutdown[arm_smmu]+0x14
platform_drv_shutdown+0x40
device_shutdown+0x234
...

Change-Id: I1c241a6a43df17e17edc23f6ed879d85c0c3319c
Signed-off-by: Faiyaz Mohammed <quic_faiyazm@quicinc.com>
2022-01-28 11:04:43 +05:30
qctecmdr
d050c6a345 Merge "usb: repeater: Fix override_seq handling with repeater driver" 2022-01-27 20:19:24 -08:00
qctecmdr
502be87cdc Merge "cnss2: Add code to address boot timer debug corner case" 2022-01-27 20:19:23 -08:00
qctecmdr
82a3582505 Merge "remoteproc: qcom: pas: Add elf64 coredumps to wpss for Diwali" 2022-01-27 18:11:08 -08:00
qctecmdr
ad90c966ee Merge "usb: phy: Use IS_ERR instead of PTR_ERR with eusb2 PHY driver" 2022-01-27 18:11:08 -08:00
qctecmdr
13b8d180e0 Merge "usb: repeater: Avoid NULL pointer dereference" 2022-01-27 18:11:07 -08:00
qctecmdr
8ed7bb0103 Merge "usb: phy: Add proper init sequence for eUSB2 phy" 2022-01-27 18:11:07 -08:00
Android Build Coastguard Worker
5784e6e328 Snap for 8125393 from 364ad52311 to android12-5.10-keystone-qcom-release
Change-Id: I4138ec0e8d7434ec2833e63329a04d682a9d7216
2022-01-28 01:00:53 +00:00
qctecmdr
d198da8c8b Merge "uapi: helioscom: adding helioscom header file" 2022-01-27 15:54:19 -08:00
qctecmdr
a8d4943bbc Merge "defconfig: enable the config for memory modules on neo" 2022-01-27 15:54:19 -08:00
qctecmdr
b9c983dd9b Merge "mem-buf: Remove completed txns from idr" 2022-01-27 15:54:18 -08:00
qctecmdr
372f446d0c Merge "msm: kgsl: Use the GMU GX state check in HW scheduling" 2022-01-27 15:54:18 -08:00
qctecmdr
6cf7b18458 Merge "msm: kgsl: Pre allocate command buffer in hwscheduling" 2022-01-27 15:54:17 -08:00
qctecmdr
0d50f20de0 Merge "msm: kgsl: Correctly cleanup gmu globals" 2022-01-27 15:54:17 -08:00
qctecmdr
27d5dca484 Merge "msm: kgsl: Take device mutex for hwsched preemption count" 2022-01-27 15:54:16 -08:00
qctecmdr
67b5213668 Merge "scsi: ufs: features cpufreq call in ufs driver" 2022-01-27 13:42:32 -08:00
qctecmdr
4554b44d18 Merge "drivers: qcom: subsystem_sleep_stats: support ddr residency sync" 2022-01-27 13:42:32 -08:00
qctecmdr
553c64b569 Merge "generic_sxr_defconfig: Remove FORTIFY_SOURCE" 2022-01-27 13:42:31 -08:00
qctecmdr
0e900aeaf4 Merge "usb: pd: Process request message as soon as it is received" 2022-01-27 13:42:31 -08:00
qctecmdr
aa41e6cbec Merge "tmc-usb: Fix use after free issue for usb_req" 2022-01-27 13:42:31 -08:00
qctecmdr
da81bf0442 Merge "icnss2: Update bdf file name for helium" 2022-01-27 13:42:29 -08:00
Kamal Agrawal
c5098e4dac msm: kgsl: Skip active state transition validation in atomic path
KGSL waits for GMU to move to active state before triggering preemption.
It is done by polling GMU_CX_GMU_RPMH_POWER_STATE register. KGSL explicitly
keeps GPU alive while handling GPU interrupt, because of which GPU cannot
enter IFPC. Hence, it is guaranteed that GPU will be in active state. Skip
active state transition validation while processing GPU interrupt.

Change-Id: I2f0e06f9bccb1a6b5f3047aa53bf0ff8120ab073
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
2022-01-28 02:07:32 +05:30
qctecmdr
8bf4124053 Merge "msm: mhi_dev: Keeping event req memory without clearing in close channel" 2022-01-27 11:11:15 -08:00
qctecmdr
abff73ea8d Merge "icnss2: Get DDR type and send it to firmware" 2022-01-27 11:11:14 -08:00
qctecmdr
72b54733de Merge "scsi: ufs: Update Controller setting as per HPG Ver19.0" 2022-01-27 11:11:14 -08:00
keystone-kernel-automerger
364ad52311 Merge remote-tracking branch into HEAD
* keystone/mirror-android12-5.10:
  FROMGIT: printk: ringbuffer: Improve prb_next_seq() performance
  ANDROID: incremental-fs: fix GPF in pending_reads_dispatch_ioctl
  UPSTREAM: bpf: Fix integer overflow in argument calculation for bpf_map_area_alloc
  UPSTREAM: tee: handle lookup of shm with reference count 0
  ANDROID: Incremental-fs: Doc: correct a sysfs path in incfs.rst
  ANDROID: selftests: fix incfs_test
  ANDROID: incremental-fs: fix mount_fs issue
  BACKPORT: arm64: errata: Add workaround for TSB flush failures
  UPSTREAM: arm64: Add Neoverse-N2, Cortex-A710 CPU part definition
  UPSTREAM: coresight: trbe: Defer the probe on offline CPUs
  UPSTREAM: coresight: etm4x: Use Trace Filtering controls dynamically
  BACKPORT: coresight: etm4x: Save restore TRFCR_EL1
  UPSTREAM: coresight: tmc-etr: Speed up for bounce buffer in flat mode
  UPSTREAM: coresight: tmc-etr: Add barrier after updating AUX ring buffer

Change-Id: Ibb5532f86b02abddd76fca342e35240a40d0b13f
Signed-off-by: keystone-kernel-automerger <keystone-kernel-automerger@google.com>
2022-01-27 18:27:17 +00:00
James Morse
2aba795b31 FROMLIST: arm64: cpufeature: List early Cortex-A510 parts as having broken dbm
Versions of Cortex-A510 before r0p3 are affected by a hardware erratum
where the hardware update of the dirty bit is not correctly ordered.

Add these cpus to the cpu_has_broken_dbm list.

Cc: stable@vger.kernel.org
Signed-off-by: James Morse <james.morse@arm.com>

Bug: 208481398
Link: https://lore.kernel.org/all/20220125154040.549272-3-james.morse@arm.com/
Change-Id: I6ad53c88c034f49f43e61aa2ff3547990583c654
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
2022-01-27 17:50:33 +00:00
Anshuman Khandual
2861bbc5b5 FROMLIST: arm64: Add Cortex-A510 CPU part definition
Add the CPU Partnumbers for the new Arm designs.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Suzuki Poulose <suzuki.poulose@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>

Bug: 208481398
Link: https://lore.kernel.org/all/20220125154040.549272-2-james.morse@arm.com/
Change-Id: I5ac1ef6a69ae4ad87792e8b128cc79cfc02fc839
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
2022-01-27 17:50:23 +00:00
Pratham Pratap
347abc2aba usb: repeater: Fix override_seq handling with repeater driver
of_property_count_elems_of_size() API shall return error value
if override_seq is not present as part of repeater device node.
This results into failing repeater probe due to comparing
error value with unsigned int which would result into check
against override_seq_cnt to true. Fix by using int variable to
get return value of of_property_count_elems_of_size() before
validating override_seq parameter size.

Change-Id: I039a99ad252e6660bc265fff3d712ab6ec5f0131
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2022-01-27 22:11:38 +05:30
Pratham Pratap
988a9f91f0 usb: repeater: Avoid NULL pointer dereference
Consider a case where, for some reason, eUSB2 PHY driver
probe gets deferred. Since repeater driver and eUSB PHY
driver are modules they don't have any module loading
dependency. By this time if repeater driver probe is
not called the repeater's device driver structure won't
be populated. Repeater framework will try to release
the resources of the repeater by calling put_repeater
and might run in NULL pointer dereference.

Avoid this by adding NULL pointer check in put_repeater.

Change-Id: I637eb073acd672487d174a966d98c8739df4feb4
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2022-01-27 21:57:57 +05:30
Faiyaz Mohammed
9d1d7d0d13 dma-heap: qcom: system heap alloc update with spin lock
If dmabuf deferred_free_thread is preempted then system heap alloc
path is taking longer time due to mutex lock contention. To avoid
preemption due to low priority updating with spin lock.

Change-Id: I63cd224543dc42c0710bc9202bebed9ced2bf341
Signed-off-by: Faiyaz Mohammed <quic_faiyazm@quicinc.com>
2022-01-27 19:29:11 +05:30
Pratham Pratap
77518fbddb usb: phy: Add proper init sequence for eUSB2 phy
This change add proper init sequence for eUSB2 PHY
as per HPG.

Change-Id: Ia1f2d574d9dc0cc072f4ce2a0616d448d1eead52
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2022-01-27 18:15:06 +05:30
Naman Jain
470047b5c8 gunyah: gh_rm_iface: Avoid integer overflow for multiplication
Add a check to ensure that overflow does not happen in multiplication
operation.

Change-Id: I8b3be6acd92147543ab785c5762a1b2609e5a93d
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2022-01-27 17:49:09 +05:30
Mayank Rana
8d6752dae7 usb: phy: Use IS_ERR instead of PTR_ERR with eusb2 PHY driver
devm_usb_get_repeater_by_phandle() shall returns ERR_PTR (if usb
repeater device is not found) or pointer to usb repeater
device. Using PTR_ERR against this return value would always
result into true causing eUSB2 PHY driver probe failure. Fix
this issue by using IS_ERR instead of PTR_ERR.

Change-Id: I538160bf0192c7f9e5f75450949dd5161de0e3be
Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
2022-01-27 04:01:41 -08:00
qctecmdr
b29f5124eb Merge "msm: adsprpc: Handle UAF in fastrpc debugfs read" 2022-01-26 22:10:10 -08:00
qctecmdr
0ed0785471 Merge "cnss2: Add code to parse and store hwid bitmap received from FW" 2022-01-26 22:10:10 -08:00