Commit Graph

1018445 Commits

Author SHA1 Message Date
Zhenhua Huang
af1f9d665e ravelin: Add gpucc-ravelin to modules.list.msm.parrot
Add gpucc-ravelin to modules.list.msm.parrot, to enable
it to load during first stage initialization.

Change-Id: Ic29d21a725aefc076d94c0eb066de5b1fba18edc
Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com>
2023-01-04 21:58:11 +08:00
Zhenhua Huang
43b9a1a2a7 soc: qcom: mem-hooks: remove module_exit to make the module permanent
Restricted vendor hook can not be unregistered. In this case, the risk
disclosed when doing rmmod. Fix it by making the module permanent.

Change-Id: Ie252a3461050e87ce958f9c9997a10e88b67ec15
Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com>
2022-12-24 17:58:30 +08:00
qctecmdr
94d692b043 Merge "i2c: i2c-msm-geni: Add bus recovery support for slave devices" 2022-12-23 16:45:17 -08:00
Mukesh Kumar Savaliya
789ff70535 i2c: i2c-msm-geni: Add bus recovery support for slave devices
This change adds bus recovery mechansim to recover slave when slave
device went bad. This is an attempt from master SE to send recovery
command to slave.

As of now only FIFO/DMA mode supported, GSI mode can be added later.
To enable this mechanism, client must define the flag qcom,slave_recovery
in the client DTSI node.

Change-Id: I51e896c84ddc97960eedbd2f828293a6d45a2604
Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
2022-12-23 18:40:34 +05:30
qctecmdr
acdd522791 Merge "msm: kgsl: Cleanup correctly when platform probe fails" 2022-12-23 02:59:46 -08:00
qctecmdr
83d1ec34e2 Merge "interconnect: qcom: enable QoS for Ravelin" 2022-12-23 02:59:45 -08:00
qctecmdr
cde0670b09 Merge "msm: kgsl: Add dynamic QoS control support in HWSCHED path" 2022-12-23 00:18:11 -08:00
qctecmdr
61c6454777 Merge "input: touchscreen: focaltech: fix pinctrl state in suspend resume" 2022-12-23 00:18:11 -08:00
qctecmdr
b8652d71c6 Merge "msm: kgsl: Dump IB data inline if force panic is enabled" 2022-12-23 00:18:11 -08:00
qctecmdr
86c50ddd46 Merge "arm64: defconfig: Enable FLASH and AW2016 LED module for Ravelin" 2022-12-23 00:18:10 -08:00
qctecmdr
2319bccf54 Merge "Merge keystone/android12-5.10-keystone-qcom-release.136+ (897411a) into msm-5.10" 2022-12-22 20:48:39 -08:00
Kamal Agrawal
c97c2489c2 msm: kgsl: Dump IB data inline if force panic is enabled
BUG_ON due to force panic is triggered in worker thread. To keep the
driver state intact in dumps, don't proceed further and collect the
IB data inline if force panic is enabled.

Change-Id: Ib4f9c3fadb1859965b181d513ab11f80932f8bb8
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
2022-12-23 02:53:15 +05:30
Ritesh Kumar
e5108fa7e7 input: touchscreen: focaltech: fix pinctrl state in suspend resume
In FT8726 touch controller, separate regulators are not needed. But
regulator voting and pinctrl suspend / normal calls are done together.
This leads to wrong pinctrl state during suspend leading to leakage.

Change-Id: Ia9fe89db1c0c87fd02ee4a7cf6f5a485cb7e23d4
Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
2022-12-22 09:22:52 -08:00
Rakesh Kota
d834a4a46c arm64: defconfig: Enable FLASH and AW2016 LED module for Ravelin
Enable SCHGM_FLASH module under charger and AW2016i RGB LED
module for ravelin.

Change-Id: Ifae15a66d384dfb4abb3934bc44237a3538a4993
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
2022-12-22 17:30:36 +05:30
Jishnu Prakash
2d0be977a2 leds:qpnp-flash-v2: update FLASH_ACTIVE property support
Add support for setting the FLASH_ACTIVE property for targets
with PMI632 where charging firmware runs on a remote processor.

Change-Id: I21459b324cb9993d9a59654520fad9abe0ea7c3b
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
2022-12-22 17:30:36 +05:30
Rakesh Kota
9b8e876677 power: supply: qcom: Add support for SCHGM_FLASH module
Add support for SCHGM_FLASH module under charger.
SCHGM_FLASH module handles flash failure, de-rating and
allows configuration for different flash features.

Change-Id: Ie957459a5e71c4fa223f1c71dd3f37ed97105873
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
2022-12-22 17:30:36 +05:30
Jishnu Prakash
53655273de power: supply: qti_battery_charger: Add support for FLASH_ACTIVE property
Add support for FLASH_ACTIVE property, which is used to notify the charger
when flash or torch are in use.

Change-Id: I429f8b5fb15ff206cf75b536a03c463d8668a652
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
2022-12-22 17:30:36 +05:30
Srinivasarao Pathipati
f0e9702eed Merge keystone/android12-5.10-keystone-qcom-release.136+ (897411a) into msm-5.10
* refs/heads/tmp-897411a:
  ANDROID: dma-buf: don't re-purpose kobject as work_struct
  ANDROID: dma-buf: Fix build breakage with !CONFIG_DMABUF_SYSFS_STATS
  ANDROID: usb: gadget: uvc: remove duplicate code in unbind
  FROMGIT: mm/madvise: fix madvise_pageout for private file mappings
  ANDROID: arm64: mm: perform clean & invalidation in __dma_map_area
  BACKPORT: mm/page_alloc: always initialize memory map for the holes
  ANDROID: dma-buf: Add vendor hook for deferred dmabuf sysfs stats release
  ANDROID: dm-user: Remove bio recount in I/O path
  ANDROID: abi_gki_aarch64_qcom: Add wait_on_page_bit
  UPSTREAM: drm/meson: Fix overflow implicit truncation warnings
  UPSTREAM: irqchip/tegra: Fix overflow implicit truncation warnings
  UPSTREAM: video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write
  UPSTREAM: irqchip/gic-v4: Wait for GICR_VPENDBASER.Dirty to clear before descheduling
  UPSTREAM: mm: kfence: fix missing objcg housekeeping for SLAB
  UPSTREAM: clk: Fix clk_hw_get_clk() when dev is NULL
  UPSTREAM: arm64: kasan: fix include error in MTE functions
  UPSTREAM: arm64: prevent instrumentation of bp hardening callbacks
  UPSTREAM: PM: domains: Fix sleep-in-atomic bug caused by genpd_debug_remove()
  UPSTREAM: mm: fix use-after-free bug when mm->mmap is reused after being freed
  BACKPORT: vsprintf: Fix %pK with kptr_restrict == 0
  UPSTREAM: net: preserve skb_end_offset() in skb_unclone_keeptruesize()
  BACKPORT: net: add skb_set_end_offset() helper
  UPSTREAM: arm64: Correct wrong label in macro __init_el2_gicv3
  UPSTREAM: KVM: arm64: Stop handle_exit() from handling HVC twice when an SError occurs
  UPSTREAM: KVM: arm64: Avoid consuming a stale esr value when SError occur
  BACKPORT: arm64: Enable Cortex-A510 erratum 2051678 by default
  UPSTREAM: usb: typec: tcpm: Do not disconnect when receiving VSAFE0V
  UPSTREAM: usb: typec: tcpci: don't touch CC line if it's Vconn source
  UPSTREAM: dt-bindings: memory: mtk-smi: Correct minItems to 2 for the gals clocks
  BACKPORT: dt-bindings: memory: mtk-smi: No need mediatek,larb-id for mt8167
  BACKPORT: dt-bindings: memory: mtk-smi: Rename clock to clocks
  UPSTREAM: KVM: arm64: Use shadow SPSR_EL1 when injecting exceptions on !VHE
  UPSTREAM: block: fix async_depth sysfs interface for mq-deadline
  UPSTREAM: dma-buf: cma_heap: Fix mutex locking section
  UPSTREAM: scsi: ufs: ufs-mediatek: Fix error checking in ufs_mtk_init_va09_pwr_ctrl()
  UPSTREAM: f2fs: include non-compressed blocks in compr_written_block
  UPSTREAM: kasan: fix Kconfig check of CC_HAS_WORKING_NOSANITIZE_ADDRESS
  UPSTREAM: dma-buf: DMABUF_SYSFS_STATS should depend on DMA_SHARED_BUFFER
  UPSTREAM: mmflags.h: add missing __GFP_ZEROTAGS and __GFP_SKIP_KASAN_POISON names
  BACKPORT: scsi: ufs: Optimize serialization of setup_xfer_req() calls
  UPSTREAM: Kbuild: lto: fix module versionings mismatch in GNU make 3.X
  UPSTREAM: clk: versatile: Depend on HAS_IOMEM
  BACKPORT: arm64: meson: select COMMON_CLK
  UPSTREAM: kbuild: do not include include/config/auto.conf from adjust_autoksyms.sh
  UPSTREAM: inet: fully convert sk->sk_rx_dst to RCU rules
  ANDROID: Update symbol list for mtk
  FROMLIST: binder: fix UAF of alloc->vma in race with munmap()
  ANDROID: GKI: Update symbol list for mtk tablet projects
  UPSTREAM: af_key: Do not call xfrm_probe_algs in parallel
  UPSTREAM: mm: Fix TLB flush for not-first PFNMAP mappings in unmap_region()
  UPSTREAM: mm: Force TLB flush for PFNMAP mappings before unlink_file_vma()
  FROMGIT: f2fs: let's avoid to get cp_rwsem twice by f2fs_evict_inode by d_invalidate
  ANDROID: abi_gki_aarch64_qcom: whitelist some vm symbols
  ANDROID: vendor_hook: skip trace_android_vh_page_trylock_set when ignore_references is true
  BACKPORT: ANDROID: dma-buf: Move sysfs work out of DMA-BUF export path
  UPSTREAM: wifi: mac80211: fix MBSSID parsing use-after-free
  UPSTREAM: wifi: mac80211: don't parse mbssid in assoc response
  UPSTREAM: mac80211: mlme: find auth challenge directly
  UPSTREAM: wifi: cfg80211: update hidden BSSes to avoid WARN_ON
  UPSTREAM: wifi: mac80211: fix crash in beacon protection for P2P-device
  UPSTREAM: wifi: mac80211_hwsim: avoid mac80211 warning on bad rate
  UPSTREAM: wifi: cfg80211: avoid nontransmitted BSS list corruption
  UPSTREAM: wifi: cfg80211: fix BSS refcounting bugs
  UPSTREAM: wifi: cfg80211: ensure length byte is present before access
  UPSTREAM: wifi: cfg80211/mac80211: reject bad MBSSID elements
  UPSTREAM: wifi: cfg80211: fix u8 overflow in cfg80211_update_notlisted_nontrans()
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: sched: add restricted hooks to replace the former hooks
  ANDROID: GKI: Add symbol snd_pcm_stop_xrun
  ANDROID: ABI: update allowed list for galaxy
  ANDROID: GKI: Update symbols to symbol list
  UPSTREAM: dma-buf: ensure unique directory name for dmabuf stats
  UPSTREAM: dma-buf: call dma_buf_stats_setup after dmabuf is in valid list

 Conflicts:
	Documentation/devicetree/bindings
	Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
	Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml

Change-Id: If8181c06536ceb430cde0826f557298b4ab648e7
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2022-12-22 16:55:49 +05:30
qctecmdr
22c7cba0c9 Merge "cnss2: Add NULL check for 'dev' and 'plat_priv' pointers" 2022-12-22 02:39:47 -08:00
qctecmdr
025650f89c Merge "pci:msm: mask interrupts when link enable failed" 2022-12-22 02:39:46 -08:00
qctecmdr
8679b08ed3 Merge "clk: qcom: gcc-ravelin: Update halt_check flag for pcie_pipe div2 clock" 2022-12-22 02:39:46 -08:00
qctecmdr
ba9e2580ce Merge "soc: qcom: sys_pm_vx: Add drv_names for ravelin" 2022-12-22 02:39:46 -08:00
Raviteja Laggyshetty
7d5645f467 interconnect: qcom: enable QoS for Ravelin
Enable QoS for the master ports on ravelin with
predefined values for priority and urgency.

Change-Id: I85051ecb1a66d4106f85491fc9eff6f22cd9c4dc
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2022-12-21 19:23:46 +05:30
Kamal Agrawal
7a8f0d98fa msm: kgsl: Add dynamic QoS control support in HWSCHED path
Some targets need to support dynamic qos control per ringbuffer
for time sensitive tasks. Add support to update the qos value
based on the active ringbuffer for HWSCHED targets. To enable
this feature, specify qos_value array in adreno gpu list.

Update minimum required firmware version for gen7_6_0. GMU FW
4.01.09 adds support for dynamic QOS HFI message.

Also, disable dynamic QOS control setting if preemption is disabled.

Change-Id: I9d95da3ab73a516276b1cfbe0970fdb4c6d5ed3c
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
2022-12-21 15:49:37 +05:30
Sai Kumar Kunchala
e2602ecb6e cnss2: Add NULL check for 'dev' and 'plat_priv' pointers
Add NULL check for 'dev' pointer before passing to
cnss_bus_dev_to_plat_priv function.
Add NULL check for 'plat_priv' pointer before use.

Change-Id: I334504be6cf2de0a086628568a3cdee98894f423
CRs-Fixed: 3364740
Signed-off-by: Sai Kumar Kunchala <quic_kunchala@quicinc.com>
2022-12-21 00:29:33 -08:00
qctecmdr
1415e3cd18 Merge "cnss2: Validate maximum number of memory segments" 2022-12-20 22:52:41 -08:00
Raghavendra Kakarla
335e1188bb soc: qcom: sys_pm_vx: Add drv_names for ravelin
This change adds drv names to get stats information.

Change-Id: I36c32f8ca0fca6647c32e1790a481aa4b177fcb1
Signed-off-by: Raghavendra Kakarla <quic_rkakarla@quicinc.com>
2022-12-21 10:55:22 +05:30
qctecmdr
e899a6cba5 Merge "cnss2: Add data length validation in cnss_wlfw_qdss_data_send_sync()" 2022-12-20 16:49:17 -08:00
Alan Chen
dbe0230ce3 cnss2: Add data length validation in cnss_wlfw_qdss_data_send_sync()
Add a data length validation check in fw response message in
qdss_data_send_sync().

Change-Id: I197b8d52c06e35f5fcf0f8fee94429fdcf500fcb
CRs-Fixed: 3359589
Signed-off-by: Alan Chen <quic_alache@quicinc.com>
2022-12-20 11:44:52 -08:00
Krishna chaitanya chundru
0c969f106d pci:msm: mask interrupts when link enable failed
In some cases, we see continuous AER's after link up and also EP
config space is not accessible at that point. So the driver is releasing
all the resources. At the time of releasing we are still getting AER's
resulting in un-clocked access to registers which is resulting in NOC
error.

This issue is seen with quick hotplug of SDXC (when system in suspended)
scenario and AER errors could be due to SDXC is not contacted properly
with connector due to quick insertion/removal.

So masking the interrupts before releasing resources and also added a
check in the AER irq handler to read error registers only after link is
up.

Change-Id: Ic027b2f83483a2d7b5d28e623dfb58bae0e091ea
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
2022-12-20 21:45:03 +05:30
qctecmdr
3e567d8fc9 Merge "defconfig: Exclude zs_handle and zspage from slub_debug for neo LE" 2022-12-20 05:14:00 -08:00
qctecmdr
09e6d06e1f Merge "slimbus: messaging: Fix returning of local variable from slim_do_transfer" 2022-12-20 05:14:00 -08:00
qctecmdr
ec1ee8df81 Merge "smcinvoke: post process object release" 2022-12-20 01:24:14 -08:00
qctecmdr
dd3495811d Merge "iio: qcom-spmi-adc5: remove the remove callback" 2022-12-19 21:23:24 -08:00
Naman Padhiar
d176e841bc cnss2: Validate maximum number of memory segments
For WIN use case maximum number of memory segments requested
by FW is increased to 52 in QMI layer. Since CNSS2 driver uses
same QMI header files and message structures the same maximum
number of segment is applicable for CNSS2. It means for memory
allocation, FW can request 52 memory segments to CNSS2 via QMI
indication but local CNSS2 variable which get segment info from
indication supports maximum 32 segments.
To fix it, change CNSS2 array variable size to same as number of
maximum segment supported in QMI layer.

Change-Id: I661b55b53cb31327da12f064d0a516884159eb5b
Signed-off-by: Naman Padhiar <quic_npadhiar@quicinc.com>
2022-12-20 10:31:40 +05:30
Android Build Coastguard Worker
897411a3f5 Snap for 9421047 from 031ea788a9 to android12-5.10-keystone-qcom-release
Change-Id: Ibc0eeec52e265cbecfa1b32b5ce347f8071c9120
2022-12-20 01:00:35 +00:00
deyaoren@google.com
031ea788a9 Merge remote-tracking branch into HEAD
* keystone/mirror-android12-5.10-2022-11:
  ANDROID: dma-buf: don't re-purpose kobject as work_struct
  ANDROID: dma-buf: Fix build breakage with !CONFIG_DMABUF_SYSFS_STATS
  ANDROID: usb: gadget: uvc: remove duplicate code in unbind

Change-Id: I5d3984e973601dfdc3d3889b922c527a01768aad
Signed-off-by: deyaoren@google.com <deyaoren@google.com>
2022-12-19 18:04:01 +00:00
qctecmdr
19d07dc310 Merge "defconfig: anorak: add qti epm hardware driver" 2022-12-19 09:08:34 -08:00
qctecmdr
0be2332b8e Merge "nvme: Add wake capability support for card detect irq" 2022-12-19 09:08:34 -08:00
qctecmdr
7872b677bd Merge "ARM: msm : Add fix to segfault" 2022-12-19 05:57:11 -08:00
qctecmdr
67a4e20614 Merge "waipio_le: configs: Enable CONFIG_DEVTMPFS configs" 2022-12-19 05:57:11 -08:00
qctecmdr
99fe5a9427 Merge "cpuidle: governors: qcom-lpm: Add missing kobject_put()" 2022-12-19 05:57:10 -08:00
Divisha Bisht
2557354dd5 smcinvoke: post process object release
When the QTEE is busy with a high concurrency, the objects and shared
memory bridge will not be released and deleted in time, this will lead
to memory leakage issues in the QTEE. To avoid the memory leakage in case
of EBUSY, we add 2 exclusive worker threads to postprocess the object
release and shmbridge deletion separately.
When there is a large shambridge memory which is not deleted in time,
the shambridge in QTEE might be out of memory.We met this issue in the
TVM TUI unit test. To avoid being out of shambridge memory, we should
postpone the deletion of shambridge created by smcinvoke itself.

Change-Id: I620f27cc129255abbe0c3b33c9999dd2a252dd42
Signed-off-by: Divisha Bisht <quic_divibish@quicinc.com>
2022-12-19 16:45:12 +05:30
qctecmdr
2a36a0621d Merge "cnss2: Add NULL check for 'dev' and 'plat_priv' pointers" 2022-12-19 02:43:21 -08:00
qctecmdr
6eceae1964 Merge "drivers: dcvs: bwmon: Disallow module unloading" 2022-12-19 02:43:21 -08:00
Pradeep P V K
293e572a72 nvme: Add wake capability support for card detect irq
Enable power management wakeup mode, which is disabled by default.
Wakeup mode lets the IRQ wake the system from sleep states.

Without this change, the card detect irq might not fires during
system supend. As a result, this not let to call pcie deenumerate
function and makes the pcie/nvme nodes remains unremoved.

So, in it's next re-insert, as the nodes are not removed, pcie
assumes that RC2 node is already present and skip to call enumeration.
This leaves it in non-functional state.

So, add wake capability support for sdexpress card detect irq.

Change-Id: Icad4bcaf7159f709f1f2dbbca2726f121881cff9
Signed-off-by: Pradeep P V K <quic_pragalla@quicinc.com>
2022-12-19 13:35:09 +05:30
Mukesh Pilaniya
dd143eac6e waipio_le: configs: Enable CONFIG_DEVTMPFS configs
Enable CONFIG_DEVTMPFS config for waipio_le target.

Change-Id: Id80ea43523dee6433505a6b786260dd202b16861
Signed-off-by: Mukesh Pilaniya <quic_mpilaniy@quicinc.com>
2022-12-18 21:17:43 -08:00
Maulik Shah
4294307a8e cpuidle: governors: qcom-lpm: Add missing kobject_put()
Add missing kobject_put() in the error path to create sysfs entries.

Change-Id: I6457d3e603c5f3462184423779997f47879bc4a8
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2022-12-19 10:25:36 +05:30
Sai Kumar Kunchala
65cf573604 cnss2: Add NULL check for 'dev' and 'plat_priv' pointers
Add NULL check for 'dev' pointer before passing to
cnss_bus_dev_to_plat_priv function.
Add NULL check for 'plat_priv' pointer before using in
cnss_wlan_enable function.

Change-Id: Ifef34b01da7de22be2b3c6043277d2ee74c344c6
CRs-Fixed: 3360223
Signed-off-by: Sai Kumar Kunchala <quic_kunchala@quicinc.com>
2022-12-18 02:21:32 -08:00
qctecmdr
4ba22bf80c Merge "remoteproc: helios: collect coredump after image load fail" 2022-12-16 14:01:23 -08:00