Commit graph android_kernel_motorola_sm6375/techpack
Author SHA1 Message Date
Salvo Giangreco
e70533ab68
techpack: datarmnet-ext: shs: fix CFI failure on module init with newer Clang versions
<4>[    1.660990] [6:           init:    1]  ------------[ cut here ]------------
<4>[    1.661004] [6:           init:    1]  CFI failure (target: DATARMNET163e93649e+0x0/0xfb8 [rmnet_shs]):
<4>[    1.661018] [6:           init:    1]  WARNING: CPU: 6 PID: 1 at kernel/cfi.c:30 __ubsan_handle_cfi_check_fail+0x4c/0x54
<4>[    1.661020] [6:           init:    1]  Modules linked in: rmnet_shs(+) rmnet_offload rmnet_core rmnet_ctl camera hdmi_dlkm stub_dlkm swr_dmic_dlkm rx_macro_dlkm tx_macro_dlkm va_macro_dlkm wcd938x_slave_dlkm adsp_loader_dlkm native_dlkm platform_dlkm machine_dlkm tas256x_dlkm wcd938x_dlkm mbhc_dlkm wcd9xxx_dlkm wcd_core_dlkm bolero_cdc_dlkm swr_ctrl_dlkm swr_dlkm pinctrl_lpi_dlkm q6_dlkm apr_dlkm q6_notifier_dlkm q6_pdr_dlkm snd_event_dlkm pinctrl_wcd_dlkm sec_audio_sysfs slimbus_ngd stm_ts sec_cmd sec_tsp_dumpkey sec_common_fn sec_secure_touch sec_tclm_v2 sec_tsp_log kperfmon wlan(C) hid_aksys bt_fm_slim slimbus btpower tda18250 m88rs6000t qm1d1b0004 qm1d1c0042 mxl301rf r820t it913x fc0013 fc0012 fc0011 si2157 tua9001 fc2580 e4000 tda18212 tda18218 max2165 mc44s803 mxl5007t mxl5005s mt2131 qt1010 mt2266 mt2063 mt2060 msi001 xc4000 xc5000 tda9887 tea5761 tea5767 mt20xx tuner_simple tuner_types tuner_xc2028 aqc111 cdc_ncm cdc_eem rtl8150 nfc_sec rdbg llcc_perfmon ssg_iosched blk_sec_stats
<4>[    1.661052] [6:           init:    1]  CPU: 6 PID: 1 Comm: init Tainted: G S      WC        5.4.302-qgki-52214-g542c168ade6d-dirty #1
<4>[    1.661055] [6:           init:    1]  Hardware name: Samsung A52SXQ PROJECT (board-id,02) (DT)
<4>[    1.661058] [6:           init:    1]  pstate: 60400005 (nZCv daif +PAN -UAO)
<4>[    1.661061] [6:           init:    1]  pc : __ubsan_handle_cfi_check_fail+0x4c/0x54
<4>[    1.661063] [6:           init:    1]  lr : __ubsan_handle_cfi_check_fail+0x4c/0x54
<4>[    1.661065] [6:           init:    1]  sp : ffffffc010063a40
<4>[    1.661067] [6:           init:    1]  x29: ffffffc010063a40 x28: 0000000000000379
<4>[    1.661070] [6:           init:    1]  x27: 00000000000037e7 x26: ffffff8045f72f40
<4>[    1.661073] [6:           init:    1]  x25: 0000000000000000 x24: ffffffc00b66e000
<4>[    1.661075] [6:           init:    1]  x23: ffffff8045f72f40 x22: 0000000000000001
<4>[    1.661077] [6:           init:    1]  x21: 02b3a43e29242445 x20: ffffffc012b4a000
<4>[    1.661079] [6:           init:    1]  x19: ffffffc00b691048 x18: ffffffc010059048
<4>[    1.661081] [6:           init:    1]  x17: ffffffc012eb9000 x16: 0000000000000010
<4>[    1.661084] [6:           init:    1]  x15: ffffffc01188446c x14: 3a295d7368735f74
<4>[    1.661086] [6:           init:    1]  x13: 0000000000000330 x12: 0000000000000018
<4>[    1.661088] [6:           init:    1]  x11: 000000000000000a x10: 00000000ffffffff
<4>[    1.661091] [6:           init:    1]  x9 : 102999c091cf4200 x8 : 102999c091cf4200
<4>[    1.661093] [6:           init:    1]  x7 : 6c69616620494643 x6 : ffffffc012eb8aab
<4>[    1.661095] [6:           init:    1]  x5 : 0000000000000001 x4 : 0000000000000000
<4>[    1.661097] [6:           init:    1]  x3 : 0000000000002020 x2 : 0000000000000001
<4>[    1.661099] [6:           init:    1]  x1 : 0000000000000000 x0 : 0000000000000040
<4>[    1.661102] [6:           init:    1]  Call trace:
<4>[    1.661105] [6:           init:    1]   __ubsan_handle_cfi_check_fail+0x4c/0x54
<4>[    1.661113] [6:           init:    1]   __cfi_check_fail+0x3c/0x8c [rmnet_shs]
<4>[    1.661120] [6:           init:    1]   __cfi_check+0x3a8/0x3b0 [rmnet_shs]
<4>[    1.661123] [6:           init:    1]   __cfi_slowpath_diag+0x10c/0x164
<4>[    1.661127] [6:           init:    1]   do_one_initcall+0x2c0/0x478
<4>[    1.661130] [6:           init:    1]   do_init_module+0x4c/0x204
<4>[    1.661133] [6:           init:    1]   load_module+0x16f8/0x18d4
<4>[    1.661136] [6:           init:    1]   __arm64_sys_finit_module+0xb4/0xf0
<4>[    1.661139] [6:           init:    1]   el0_svc_common+0xc0/0x1b0
<4>[    1.661142] [6:           init:    1]   el0_svc_handler+0x24/0x84
<4>[    1.661145] [6:           init:    1]   el0_svc+0x8/0x140
<4>[    1.661147] [6:           init:    1]  ---[ end trace 91166a70db25a0a4 ]---

Change-Id: Ie89f1489dfb834836df13a30a0a03cb7eb0bf500
2026-08-08 16:40:24 +02:00
Nolen Johnson
33304e5fe0 techpack: display: msm: sde: Fix uninitialized errors
Change-Id: I481190f2a03bc49976241e4c0b60304ca634f89a
2026-06-24 21:58:49 -04:00
Alexander Winkowski
c404d8ddf7
disp: msm: Avoid UB in VBIF register shift calculation
Left-shifting a 32-bit integer by 32 bits or more results in UB. The
common values for vbif_xin_id[] are {10, 11} which means reg_shift
becomes 40/44. For IDs >= 8, the shift is meant to be relative to the
second 32-bit register, not to the first. Fix this issue by masking the
ID so that it will properly describe the intended shift.

Change-Id: Icd530a3bb7cfd9d087e2aecc763d24f775e20466
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2026-05-26 12:07:55 +00:00
Alexander Winkowski
3a757c1357
disp: msm: Fix division by zero during ESD recovery
During ESD recovery, num_mixers becomes 0 for a few moments.

[   34.758513] ================================================================================
[   34.758519] UBSAN: division-overflow in ../techpack/display/msm/sde/sde_crtc.h:522:32
[   34.758521] division by zero
[   34.758524] CPU: 6 PID: 1039 Comm: SDM_EventThread Tainted: G S                5.4.302~positron/4565e293 #17
[   34.758525] Hardware name: Qualcomm Technologies, Inc. Blair QRD NOPMI (DT)
[   34.758526] Call trace:
[   34.758531] dump_backtrace+0x0/0x298
[   34.758532] __dump_stack+0x20/0x28
[   34.758533] dump_stack+0x74/0x9c
[   34.758535] ubsan_epilogue+0xc/0x48
[   34.758538] __ubsan_handle_divrem_overflow+0x184/0x198
[   34.758540] _sde_crtc_setup_lm_bounds+0x300/0x318
[   34.758541] sde_crtc_atomic_check+0x260/0x253c
[   34.758543] drm_atomic_helper_check_planes+0x1b0/0x224
[   34.758544] sde_kms_atomic_check+0xb4/0x2f4
[   34.758545] drm_atomic_check_only+0x410/0x778
[   34.758546] drm_mode_atomic_ioctl+0xb24/0x1020
[   34.758548] drm_ioctl_kernel+0x21c/0x2c0
[   34.758549] drm_ioctl+0x2d0/0x434
[   34.758551] do_vfs_ioctl+0x9b4/0xf9c
[   34.758552] __arm64_sys_ioctl+0x128/0x144
[   34.758553] el0_svc_common+0xdc/0x158
[   34.758554] el0_svc+0x8/0x700
[   34.758555] ================================================================================

Fixes: 4fef803aff ("disp: msm: sde: increase max number of mixers to 4")
Change-Id: Idb60e329ffb47d842bb0b4a16b3d086cc4ec16bc
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2026-05-26 12:07:55 +00:00
Vedant Yevale
8c29510d44
disp: msm: dsi: Nullify display modes after kfree
The 'display->modes' pointer must be set to NULL immediately
after calling kfree on it to prevent potential double-free
vulnerabilities or use-after-free issues.

This change ensures robust memory management by clearing the
pointer to previously freed memory, aligning with best practices
for kernel memory deallocation.

Change-Id: I4fd939bc6ee5f3d9c506f0c311a9400f366e7fd2
Signed-off-by: Vedant Yevale <vyevale@qti.qualcomm.com>
(cherry picked from commit 1d3c5a477ea8f6aca1158209e1b87209c21c61f5)
2026-05-26 12:07:54 +00:00
duckyduckg
16c281182b msm: vidc/cvp: fix callback type for msm_vidc/cvp_callback
Change-Id: Id31de9aa86d78a046480fdbdbefba5e7b83b2a56
Signed-off-by: duckyduckg <duckyduckg65@gmail.com>
2026-05-17 00:17:24 +05:00
Flicker372
605ff4b4b8 msm: vidc/cvp: fix function type for hfi_cmd_response_callback
Change-Id: I5ae2a546fa08343a7e16dc6aff8183c08a5f3ea2
Signed-off-by: Flicker372 flicker372@outlook.com
2026-05-16 23:45:18 +05:00
Miguel de Dios
4545cdce64 msm: vidc/cvp: Fix handle_cmd_response parameter type
Bug: 117299373
Change-Id: Iffee5fd84fb1340bed7585d3dfb438e7955f61c5
Signed-off-by: Miguel de Dios <migueldedios@google.com>
Signed-off-by: Flicker372 <flicker372@outlook.com>
2026-05-16 23:42:13 +05:00
Michael Bestas
77d305881e
Merge tag 'LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/video-driver into android13-5.4-lahaina
LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0

* tag 'LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/video-driver:
  msm: vidc: Fix use after free in driver
  msm: vidc: Enable hybrid mode only for HFR usecase

Change-Id: Ic2a5c64a04bcd2bed2c853f541255b7563d9b65c
2026-04-30 21:20:07 +03:00
Michael Bestas
3700e67df3
Merge tag 'LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0

* tag 'LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: dsi: Fix potential data race in ctrl isr
  disp: msm: dsi: Fix potential data race in ctrl isr
  disp: msm: dsi: Fix potential data race in ctrl isr
  msm: smmu: Unregister SMMU fault handler before cleanup
  disp: msm: sde: Add change to fix slab out of bounds
  disp: msm: sde: fix splash resource cleanup for edp
  disp: msm: sde: get_modes from connector if not present
  disp: msm: dp: handle panel_init when host is ready
  disp: msm: sde: fix kms NULL pointer access in encoder IRQ control
  disp: msm: dsi: add support for hibernation
  disp: config: fix copyright marking for lahaina config
  disp: config: fix copyright marking for lahaina config
  disp: msm: dsi: fix error path for dsi_display init
  disp: msm: dsi: add null pointer check in dsi_display_dev_remove
  disp: config :disable CONFIG_DSI_PARSER for kodiak
  disp: msm: dp: parse display_type before connector initialization

 Conflicts:
	techpack/display/msm/dsi/dsi_display.c

Change-Id: I5263698636da978ff39d868e2305e3f4699e3ac8
2026-04-30 21:18:34 +03:00
Michael Bestas
be47524e56
Merge tag 'LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0

* tag 'LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  ipa: Added changes to move the hdr entry to free list
  msm: ipa: Avoid use-after-free scenario

Change-Id: I53d9b6e5cd83948d5a7cd67b8b7ffa58af13efef
2026-04-30 21:15:00 +03:00
Michael Bestas
d2ba8e663f
Merge tag 'LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0

* tag 'LA.UM.9.14.1.r1-21100-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  asoc: lsm: thread safety issue in hw params management
  asoc: lsm: Race condition protection in confidence levels handling
  asoc: lsm: thread safety issue while accessing substream data
  asoc: compress: race condition handling in stream cmd put function
  asoc: handle heap overflow in effect driver
  asoc: Update dai link for ACM8625S AMP.
  asoc: Modification for 8ch capture
  audio-kernel: Fix wcd938x DMIC unable to record
  audio-kernel: Enable hdmi in audio function for AIO bar
  dsp: q6adm: Checking array sizeof channel_type
  asoc: codec: avoid out of bound write to map array
  dsp: q6lsm: Check size of payload before access

Change-Id: I9eebb44e5b838891dc094853e28535930dee6b83
2026-04-30 21:13:31 +03:00
Tommy Webb
91ab127ff9 Merge tag 'LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0

# By Jayasri Sampath Kumaran
# Via Karthik Veeranki (1) and Linux Build Service Account (1)
* tag 'clo/display-drivers/LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0':
  disp: msm: sde: fix kms NULL pointer access in encoder IRQ control

Change-Id: I52a1f3a27d8eed895e1db8a48f15c225d1c1c3ea
2025-04-12 09:35:58 +00:00
Tommy Webb
b483dce61a Merge tag 'LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0

# By Ratna Deepthi Kudaravalli
# Via Linux Build Service Account (1) and Ratna Deepthi Kudaravalli (1)
* tag 'clo/audio-kernel/LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0':
  audio-kernel: avoid out of bound read while checking a bit

Change-Id: I70a5aa2eb95361d9181d5e93a2bbbcce590ce7db
2025-04-12 09:34:41 +00:00
Nick Reuter
638599aca3
Partially revert "msm: ipa: Check GSI status during deepsleep resume"
This partially reverts commit 2e77a46f0d.

Reason for revert: ipa3_mdt_load_ipa_fws is not present in this kernel,
this is a bad cherrypick resolution by qcom.

Change-Id: I218978168a6c3fe9f6139a6688be1cb4c0f96b94
2025-02-14 13:41:01 +02:00
Michael Bestas
e82fabf302
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: dsi: add null pointer check in dsi_display_dev_remove

 Conflicts:
	techpack/display/msm/dsi/dsi_display.c

Change-Id: Ife03a5542c77ab531a902c5b7f6c07d6a867f9b6
2025-02-14 03:39:30 +02:00
Michael Bestas
d1d77077b6
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa: Check GSI status during deepsleep resume
  msm: ipa3: supporting hibernate & cleanup unused deepsleep API's

 Conflicts:
	techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa.c

Change-Id: I7a69389ca80dee1ecb236f14706965b1d2bf3adb
2025-02-14 03:34:01 +02:00
Michael Bestas
8efcbedd97
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: isp: Copy the userdata in kernel to avoid TOCTOU condition
  msm: camera: ois: Copy packet header in kernel
  msm: camera: sensor: TOCTOU error handling
  msm: camera: common: Add missing put_cpu_buf calls

Change-Id: Ic121b19c5d8911f3e223a11389208763f5ac2229
2025-02-14 03:31:00 +02:00
Michael Bestas
cd0212695a
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  asoc: codec: avoid out of bound write to map array
  asoc: codec: avoid out of bound write to map array
  asoc: Fixed OOB issue in qcs405
  asoc: codec: wcd934x: enable auto recovery when port overflows

Change-Id: I51a30fe905251b6f66e733bae43fdcd3b0a7e787
2025-02-14 03:28:21 +02:00
Swami Reddy Reddy
771c29041c
msm: camera: sensor: TOCTOU error handling
- Proper Handling in case of invalid pinctrl index
- Removing dead code and unused variables
- Change to dereference s_ctrl only after proper
  NULL Dereference Check.

CRs-Fixed: 3875406
Change-Id: I8e2c717b22efff2a7d6503d38c048e30eff230da
Signed-off-by: Swami Reddy Reddy <quic_swamired@quicinc.com>
2025-02-04 21:35:46 +02:00
Albert Tang
281c6276aa techpack: camera: Fix enum comparison warning
drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c:3038:21: error:
comparison of different enumeration types ('enum cam_tfe_csid_halt_cmd'
and 'enum cam_ife_csid_halt_cmd') [-Werror,-Wenum-compare]

	if (csid_halt_type == CAM_CSID_HALT_IMMEDIATELY)
	    ~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: I13b0c86ded5ba544380c2ca9fd3d1a73db9ea63b
2024-12-20 13:26:37 -08:00
Michael Bestas
475adf7cee
Merge tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: sensor: handling condition for random read
  msm: camera: icp: io buf config num validation
  msm: camera: ope: check cpu buffer offset and cmd buf idx

Change-Id: Id26854dd09597215befc5aaff1e5f6731a0fb3e0
2024-10-09 18:08:16 +00:00
Michael Bestas
d600185073
Merge tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  dsp: q6voice: Add buf size check for cvp cal data
  asoc: msm-lsm-client: check for param size before copying

Change-Id: Ia786a33ae66c307d1af54b84796178928cf6ca01
2024-10-09 18:08:15 +00:00
Michael Bestas
cf9c5fb631
Merge tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa: Add additional cleanup in finish rt rule addition
  msm: ipa: Add additional cleanup in finish rt rule addition

Change-Id: Ic51c62ff63dc875fb537329316d09c52aee89197
2024-08-05 23:58:26 +03:00
Michael Bestas
6f41a7e92b
Merge tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom

Change-Id: I185fde58c627ce0efc41855773e3b7d52075fd39
2024-08-05 22:15:53 +03:00
Michael Bestas
7262b988ea
Merge tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  dsp: q6lsm: Check size of payload before access

Change-Id: I782131a810aaecf254b92d94e2db252c3741784e
2024-08-05 22:14:56 +03:00
Michael Bestas
97911c9236
Revert "dsp: q6lsm: Handle payload_size = sizeof(uint32_t) gracefully"
Reason for revert: Conflicts with upstream change.

This reverts commit 2ade12f6b1.

Change-Id: I189a7d9854d26ef14e5ba04ae94cea42bc4ede55
2024-08-05 22:14:15 +03:00
Michael Bestas
73f2cc1d2e
disp: msm: sde: Adjust max display check
sde_splash_data struct can fit MAX_DSI_DISPLAYS displays and >=
comparison here prevents us from storing the last display when
num_displays == MAX_DSI_DISPLAYS.

Change-Id: I56e62f77a56cdd2d5086e46762614c941ddacd6a
2024-06-23 19:54:35 +03:00
Michael Bestas
794bdf30ec
Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: dp: limit max width supported
  disp: msm: dp: add support of hotplug for eDP interface.
  disp: msm: sde: address array index out-of-bound issue
  disp: msm: dp: disable pluggable eDP display backlight config

Change-Id: I813b60f59671b80b32dfd6d36db3589860acd7fb
2024-06-22 17:52:34 +03:00
Michael Bestas
f6b6fc438e
Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/datarmnet into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/datarmnet:
  rmnet_core: pass correct length to ip_fast_csum

Change-Id: I9f2d36bcaceac3e94658e1e1c66472464c632182
2024-06-22 17:51:12 +03:00
Michael Bestas
48a7885440
Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa3: Adding changes to check pointer null or not

Change-Id: If597d4a2f9bda9e2da294cf40423a3688d00cc84
2024-06-22 17:50:31 +03:00
Michael Bestas
ff12c3d353
Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  asoc: Fix out-of-bound write
  dsp: q6voice: Adds checks for an integer overflow
  dsp: q6voice: Adds checks for an integer overflow

Change-Id: Ieb4b3e8ead0616624b7492cfc42bb72a024525b7
2024-06-22 17:49:19 +03:00
Samantha Tran
f7386b4ad7
disp: msm: retry dma buf attach on msm_gem_delayed_import error
In the event when msm_gem_delayed_import returns an error, reset
the obj_dirty property to true to allow the buffer to detach and
attach again.

Change-Id: Ib8da8f237c5a4ab696675cbcf66f1a3dfae02639
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2024-06-12 15:24:26 +00:00
LuK1337
2ade12f6b1
dsp: q6lsm: Handle payload_size = sizeof(uint32_t) gracefully
q6lsm_mmapcallback: payload has invalid size[4]

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/7269
Change-Id: Icf54b28b9c47585f9e56bba9e0dc417079856885
2024-06-12 10:02:23 +02:00
Michael Bestas
0edbb3c4df
Merge tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: memmgr: Add refcount to track umd in use buffers
  msm: camera: memmgr: Add refcount to track umd in use buffers
  msm: camera: sensor: Handling race condition in util api

Change-Id: I4708288ccf2096b70148fbeb2bb543991ac8df4d
2024-05-29 03:04:52 +03:00
Michael Bestas
bb0f246e35
Merge tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  Asoc: dsp: Fix to check the list is empty or not
  dsp: q6lsm: Check size of payload before access
  Fix for OOB access issue
  dsp: q6asm increase the locking range
  ASoC: msm-pcm-q6-v2: Add size check
  ASoC : Add proper copyright marking.
  dsp: afe: Add check for num_spks
  soc: pinctrl-lpi: remove pm ops
  asoc: msm-compress: Fix compress_pause failure on gki
  Audio legacy: Integer overflow in msm_lsm_ioctl_compat during audio playback usecase. size = sizeof(p_info_32) + p_info_32.param_size; This overflow issue may result heap overflow during copying the data: memcpy(param_info_rsp, &p_info_32, sizeof(p_info_32));
  ASoC : Add macro to differentiate auto code
  ASoC: msm: get CoPP index based on FE id
  asoc: codecs: add array bound check
  soc: Address SWR rate mismatch interrupt
  asoc : add configuration about SLIMBUS_7_TX
  asoc: lahaina: add support for aud_ref_clk_sel mux
  dsp: afe: add support for aud_ref_clk_sel mux
  ASoC: dsp: Release lock before return
  ASoC: wcd937x: Add flag to decide RX_MUTE for HPHL and EAR
  ASoC: bolero: Add check for CMPDR switch
  ASoC : add support of HDMI controller for rb3gen2 platform
  asoc: lahaina: fractional sample rate support for TDM
  asoc: support for fractional sample rate over tdm
  Revert "asoc: msm-compress : Fix for CTS-on-gsi with gki"
  audio-kernel:swr: Add dynamic SWRM clk support
  asoc: codec: make mclk freq configurable in Bolero
  asoc: lahaina: Add ext clk source support
  asoc: ext-clk: Add support for configuring ext clk
  dsp: afe: Enhance and expose API for configuring ext clk
  dsp: q6voice: Handle mutex lock-unlock
  asoc: msm-compress : Fix for CTS-on-gsi with gki

Change-Id: I21b8e5f5ef608bf298230419123e4ee37c9b0797
2024-05-29 03:04:05 +03:00
vantoman
21834caf71
ipa_v3: Fix enum conversion warnings
../techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c:510:41: warning: implicit conversion from enumeration type 'enum ipa_ip_type_enum_v01' to different enumeration type 'enum ipa_ip_type' [-Wenum-conversion]
        q6_ul_flt_rule_ptr->ip = flt_spec_ptr->ip_type;
                               ~ ~~~~~~~~~~~~~~^~~~~~~
../techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c:511:45: warning: implicit conversion from enumeration type 'enum ipa_filter_action_enum_v01' to different enumeration type 'enum ipa_flt_action' [-Wenum-conversion]
        q6_ul_flt_rule_ptr->action = flt_spec_ptr->filter_action;
                                   ~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~

Change-Id: I0eb68d707151cd103676a30659ab81bf6fced131
2024-05-18 18:07:45 +00:00
Alexander Winkowski
8f2a69d5a3
techpack: audio: Fix false positive -Wstrlcpy-strlcat-size
strlen(swr_dmic_name_prefix_of) + 1 bytes are allocated for prefix_name just above

techpack/audio/asoc/codecs/swr-dmic.c:685:11: error: size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination [-Werror,-Wstrlcpy-strlcat-size]
                        strlen(swr_dmic_name_prefix_of) + 1);
                        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Change-Id: I808b4f135d42fc50587eeb9348848f7e0a3561cc
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2024-05-18 18:07:41 +00:00
Sultan Alsawaf
6c876cb48f
msm: ipa3: Silence PM notifier log spam
We don't need to know that PM notifiers are working. Silence the entry/exit
log spam in ipa_pm_notify().

Change-Id: I9bae89fa5e27b8835683ec1423ecc751491ea13c
Signed-off-by: Sultan Alsawaf <sultan@osomprivacy.com>
2024-05-18 18:07:37 +00:00
Alexander Winkowski
0fd4ffe10a
techpack: dataipa: Fix compilation without PCI
Change-Id: Ice4284ce6a9b710638c21add2bef5f5bb4e52b63
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2024-05-18 18:07:36 +00:00
Michael Bestas
f49eef3f77
Merge tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: sde: program read pointer after configuring vsync_counter_en

Change-Id: I4d7e2a8c137e8ac6c608e3cc37f5ac3758211480
2024-03-23 17:42:23 +02:00
Michael Bestas
edd5792efd
Merge tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa3: reduce rx-wan pool and cmn page, temp pool sizes
  msm: ipa: allocate page recycling buffers only once
  msm: ipa: avoid OOM Killer for temp allocations
  msm: ipa3: Flush free page WQ only for page recyle replenish handler
  msm: ipa3: Fix to flush to workqueue during teardown pipe
  msm: ipa3: Fix to destory workqueue only if created
  msm: ipa3: Changes to enhance find free pages from list
  msm: ipa: page pool recycling enhancements
  msm: ipa: page pool recycling enhancements

Change-Id: I21c0f5974f08fc032605d2710858eb28e592d1f0
2024-03-23 17:41:41 +02:00
Michael Bestas
c609876f88
Merge tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: sensor: Proper handling of race condition in util api
  msm: camera: sensor: Proper handling of race condition in util api
  msm: camera: memmgr: Add missing calls of put buf to avoid leak

Change-Id: I0aff5a21e16f44c2e13ed99b463f326eb57b1653
2024-03-23 17:40:57 +02:00
Michael Bestas
7f04c28240
Merge tag 'LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: add support for hibernation

Change-Id: Ieefc35e48b8d7068279c592918329e43b3d3959e
2024-02-09 00:46:25 +02:00
Michael Bestas
db38838ac7
Merge tag 'LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa: Null terminated interface name string argument received from ioctl
  msm: ipa3: creating new ipc log file for IPA Clocks

Change-Id: I4135d434cb5e7dd1009ce2a66ce0f3d81bf3588a
2024-02-09 00:44:13 +02:00
Michael Bestas
5a22f4da61
Merge tag 'LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: common: Fix possible OOB reads and writes operation

Change-Id: I943de389f42e93c7ac39c827b176eaea1f65dcb1
2024-02-09 00:42:47 +02:00
Michael Bestas
5fba8adc73
Merge tag 'LA.UM.9.14.1.r1-12400-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.1.r1-12400-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-12400-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: dp: restore brightness on resume for eDP
  disp: msm: dp: restore brightness on resume for eDP
  disp: msm: dsi: add a new DT property to support ext bridge hpd
  disp: msm: dsi: correct external dsi bridge interface number
  disp: msm: dsi: avoid NULL pointer
  disp: msm: dp: skip aux switch configuration

Change-Id: Id266c0e49cf8fbe0e48972aeaf27b3dd6212d14e
2024-01-04 12:08:37 +02:00
Michael Bestas
5972580a35
Merge tag 'LA.UM.9.14.1.r1-12400-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.1.r1-12400-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-12400-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  asoc: msm-compress : Fix for CTS-on-gsi with gki

Change-Id: I63d61776981393532af5d6f7f96c2daca8349f7e
2024-01-04 12:02:37 +02:00
Michael Bestas
8b685a05b5
Merge tag 'LA.UM.9.14.r1-23300-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.r1-23300-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-23300-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: sde: skip msm_lastclose if display is stuck in splash
  disp: msm: cancel all delayed_works before triggering msm_lastclose
  disp: msm: sde: cancel delayed work items during TUI transition

Change-Id: I8dbdda8ada31d7d58a5aceaf7e72d6955cee2ec2
2023-12-11 20:41:53 +02:00
Michael Bestas
33bb2244fd
Merge tag 'LA.UM.9.14.r1-23300-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.r1-23300-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-23300-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  mdm: dataipa: increase the size of prefetch buffer

Change-Id: Ie19ffc3277e452fe8d2d0112bbdc7a1f87b6fb2f
2023-12-11 20:39:56 +02:00