"LA.UM.9.14.1.r1-21700-QCM6490.QISI15.0"
* tag 'LA.UM.9.14.1.r1-21700-QCM6490.QISI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
disp: msm: dsi: Nullify display modes after kfree
disp: msm: dp: handle panel_init for eDP case
Change-Id: I5e3fe03b3bbfe41bbb3898bce78299dce8769b3a
* sm8350/lineage-20:
disp: msm: Avoid UB in VBIF register shift calculation
disp: msm: Fix division by zero during ESD recovery
disp: msm: dsi: Nullify display modes after kfree
devfreq: Fix suspend callback for non-zero min_freq
devfreq: Fix PM callbacks to support zero frequency
devfreq: Allow zero values in opp table
devfreq: govener_memlat: fix cpu_hotplug_lock recursive lock warning
devfreq: governor_memlat: avoid deadlock due to cpu_grp->mons_lock usage
devfreq: governor_bw_hwmon: fix deadlock warning due to state_lock usage
msm: kgsl: Fix UBSAN warnings
msm: kgsl: Use kthread instead of workqueue for event work
BACKPORT: msm: kgsl: Avoid unmap after kgsl system suspend
fixup! BACKPORT: kbuild: check the minimum assembler version in Kconfig
Change-Id: I2f722ad0f53673157f841eaf0ef032e4f5b1703d
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>
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)
* sm8350/lineage-20: (306 commits)
ANDROID: gki_defconfig: reduce KFENCE pool size
ANDROID: GKI: enable KFENCE by setting the sample interval to 500ms
ANDROID: GKI: Enable KFENCE
UPSTREAM: random: split initialization into early step and later step
UPSTREAM: kfence: avoid passing -g for test
UPSTREAM: net: add and use skb_unclone_keeptruesize() helper
UPSTREAM: kfence: fix memory leak when cat kfence objects
UPSTREAM: kfence: unconditionally use unbound work queue
UPSTREAM: kfence: use TASK_IDLE when awaiting allocation
UPSTREAM: kfence: fix is_kfence_address() for addresses below KFENCE_POOL_SIZE
FROMLIST: kfence: skip all GFP_ZONEMASK allocations
FROMLIST: kfence: move the size check to the beginning of __kfence_alloc()
ANDROID: kasan: fix interoperability with KFENCE
UPSTREAM: arm64: mm: don't use CON and BLK mapping if KFENCE is enabled
ANDROID: kfence: clean up unused variables
FROMGIT: kfence: use power-efficient work queue to run delayed work
FROMGIT: kfence: maximize allocation wait timeout duration
FROMGIT: kfence: await for allocation using wait_event
FROMGIT: kfence: zero guard page after out-of-bounds access
UPSTREAM: kfence: make compatible with kmemleak
...
Change-Id: Id1436b77692839dc2394f500bba42487fac1b2b4
This reverts commit 7d3114211e.
Reason for revert: Causing display to turn off automatically on moderate and high temperature
Change-Id: I501ae17414f6b4e0c34b7dec2921a90603cbb44a
Signed-off-by: dodyirawan85 <dev.irawans@gmail.com>
Bangkk push for Android 15
* tag 'MMI-V1TC35H.88-16' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-display:
disp: msm: dsi: add null pointer check in dsi_display_dev_remove
msm/dsi_display: resend new roi to panel, fix pu dup issue
disp: msm: sde: clear cached rectangles when PU ROI is set
Change-Id: I2eed4c78f491b527ed088576e799dfb4488e5e97
Dynamic mode switch (DMS) is not supported for video mode panels
before cont-splash handoff handled for first frame. so avoid
dynamic mode-switch during cont-splash handoff for any DRM mode change.
WA is given by QC for GSI issue, as of observation there are no
side effects
QC SR:05515278
QC CR:NA
QC Change ID:Icd5881af99afb3e398d3bba3746b7a35bcda4491
Change-Id: I97f5712ce5bb8448f1c600ccf306d0dac7fa6eae
Signed-off-by: maheshmk <maheshmk@motorola.com>
Reviewed-on: https://gerrit.mot.com/2113033
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ashwin Kumar Pathmudi <jfxr63@motorola.com>
Reviewed-by: Shuo Yan <shuoyan@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
* sm8350/lineage-20:
UPSTREAM: net: sched: Disallow replacing of child qdisc from one parent to another
FROMGIT: media: venus: hfi: add a check to handle OOB in sfr region
FROMGIT: media: venus: hfi: add check to handle incorrect queue size
FROMGIT: media: venus: hfi_parser: refactor hfi packet parsing logic
FROMGIT: media: venus: hfi_parser: add check to avoid out of bound access
UPSTREAM: pfifo_tail_enqueue: Drop new packet when sch->limit == 0
UPSTREAM: f2fs: compress: don't allow unaligned truncation on released compress inode
UPSTREAM: net: core: reject skb_copy(_expand) for fraglist GSO skbs
UPSTREAM: udp: prevent local UDP tunnel packets from being GROed
UPSTREAM: udp: do not transition UDP GRO fraglist partial checksums to unnecessary
UPSTREAM: udp: do not accept non-tunnel GSO skbs landing in a tunnel
UPSTREAM: binder: Return EFAULT if we fail BINDER_ENABLE_ONEWAY_SPAM_DETECTION
UPSTREAM: usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK
UPSTREAM: usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK
UPSTREAM: usb: xhci: Add error handling in xhci_map_urb_for_dma
UPSTREAM: usb: xhci: Use temporary buffer to consolidate SG
UPSTREAM: usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK
defconfig: Enable RTL8152 ETH-USB driver
ANDROID: ABI: Cuttlefish Symbol update
fw-api: CL 28563606 - update fw common interface files
...
Change-Id: I39d8fa1352de578a5a6c15be2b4b9911bf1c154c
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
techpack/display/msm/dsi/dsi_panel.c:1326:3: error: misleading indentation; sta
tement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
1326 | rc = dsi_panel_send_param_cmd(panel, param_info);
| ^
techpack/display/msm/dsi/dsi_panel.c:1323:2: note: previous statement is here
1323 | if (panel->lhbm_config.lhbm_wait_for_fps_valid && param_info->value == HBM_FOD_ON_STATE)
| ^
Broken code was added by Motorola:
d67e46e138
Change-Id: If122cbae26b5e8a23f9766cf685d3a3599adc8f5
Signed-off-by: Sevenrock <sevenrock@hotmail.de>
Fogos push for Android 14
* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-display: (116 commits)
dsi_panel: panel_feature: corret the code mistake
dsi_panel: fix the bug of local HBM
gpu/msm: check fps value before enable lhbm
msm/display-drivers: release lhbm resource
dsi/dfps: update the dfps code to support "OLED+vid mode"
dsi/dfps: set the right fps when panel resume
Support 120Hz command sending
dts/display: [bangkok] update the dsc configure for tianma panel
display-drivers: local hbm: add suport for dc_hybird_threshold
optimze lcd log
kernel:pnangn:update 2nd panel brightness settings to 11bits
kernel/panel:power on/off reset sequence
display/backlight: support hbm dcs only with 51 cmd
display/dsi:add new lcd backlight align type for bit11_4
display: The lcd backlight shift mode update
drm_ioctl: add return value for set_param
drm/dsi_panel: resend hbm off commands
msm/drm:compatible with different hbm table in panel
drm/msm:add delay between mipi0 to reset0 when power off
drm/panel: check panel status before send custom commands
...
Conflicts:
techpack/display/msm/sde/sde_connector.c
techpack/display/msm/sde/sde_kms.c
Change-Id: I13ede04c21415717cd009ae73871894f1be74927
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
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>
"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
CONFIG_DRM_MSM_DP is disabled on holi, making this function undefined
and breaking compilation. Like all other inline functions, make this one
return 0.
Change-Id: I1ae0eeab563c3a67fb35d92e8ad2c391458778e6
Based on panel hardware support, display brightness levels can
be very high value. This high value display brightness cooling
device levels can cause exceeding PAGE_SIZE for cooling device stat
buffer. It leads to buffer failure for cooling device stat feature.
Limit display panel mitigation level max to 255. If hardware
supports more than 255, then scale brightness levels fit
into above limit.
Change-Id: Ieeee4ff2aa5cd884819b30b4fd9839e48ac4d804
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
"LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0"
* tag 'LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
disp: msm: dsi: clear the panel esd_recovery_pending in power on commit
drm: msm: remove YUV format setting
Change-Id: I35059b0dc99d1d3e2c9d1bff1fe6b121d00b173b
"LA.UM.9.14.r1-20700-LAHAINA.QSSI13.0"
* tag 'LA.UM.9.14.r1-20700-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
disp: msm: sde: fix min ib vote in mnoc and ebi_ib path
disp: msm: dsi: add support for dsi config
Change-Id: Ie88226bfc57764c185a1e013e9ed6e2a6819a419
"LA.UM.9.14.r1-20500.01-LAHAINA.QSSI12.0"
* tag 'LA.UM.9.14.r1-20500.01-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
disp: msm: add msm framebuffer emulation
makefile: add gki config support for display techpack for kona
Revert "disp: msm: dsi: Add DSI PLL support for 7nm_v4_1 arch"
disp: msm: dsi: Add DSI PLL support for 7nm_v4_1 arch
disp: msm: sde: disable dsi ctrl regulator during deepsleep
disp: msm: sde: update uidle ctl register only for master encoder
disp: msm: avoid minidump region addition for mdss register dumps
disp: msm: add skip panel power off dt property
Change-Id: I1ade9627b3ade718cb923b0ca23031fc9e639808
"LA.UM.9.14.r1-19500-LAHAINA.QSSI12.0"
* tag 'LA.UM.9.14.r1-19500-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
disp: msm: use vzalloc for large allocations
disp: msm: sde: Fix data width calculation when widebus is enabled
drm: msm: call rsc hw_init after hibernation
disp: msm: sde: remove redundant backlight update
disp: msm: sde: take min ib votes from perf config
disp: msm: sde: validate plane mode and gem obj flags
disp: msm: dsi: fix compressed RGB101010 support
disp: msm: sde: set parent to xo for link clks while enterting suspend
disp: msm: sde: while timing engine enabling poll for active region
disp: msm: sde: fix null pointer dereference
disp: msm: sde: set NOAUTOEN for sde irq to match with power event
disp: msm: sde: always set CTL_x_UIDLE_ACTIVE register to "1"
disp: msm: sde: move sde power event call into kms post init
disp: msm: sde: fix RM poll timeouts during PM suspend/resume usecase
disp: msm: sde: remove clearing cur_master in encoder enable function
disp: msm: sde: cancel delayed_off_work before reinitialization
disp: msm: sde: update TEAR_SYNC_WRCOUNT register before vsync counter
disp: msm: sde: disable vsync counter before tear check update
disp: msm: sde: disable vsync_in to update tear check
disp: msm: sde: avoid tx wait during DMS for targets with dsc rev2
disp: msm: sde: avoid irq enable/disable during modeset
disp: msm: fix rsc static wakeup time calculation
disp: msm: dsi: allocate DSI command buffer during bind
disp: msm: sde: update uidle_db_updates in both enable/disable cases
disp: msm: dsi: add API to handle PHY programming during 0p9 collapse
disp: msm: sde: modify format specifier
disp: msm: dsi: Clear slave dma status only for broadcast command
disp: msm: sde: avoid CWB in power on commit
disp: msm: sde: avoid sde irq enable or disable when sde irq not active
disp: msm: dsi: remove early return from dma_cmd_wait_for_done
disp: msm: sde: protect file private structure with mutex lock
disp: msm: add support for twm entry
disp: msm: sde: add twm mode sysfs mode
disp: msm: sde: add sysfs node to give panel power state
disp: msm: dsi: Support uncompressed rgb101010 format
disp: msm: sde: avoid rsvp_nxt allocation for suspend commit
disp: rotator: remove ubwc format support for rotator
disp: msm: sde: add changes to allocate compatible cwb mixers in RM
disp: msm: sde: add evt log in rsc timer calculation
msm: disp: rotator: add ROT macros for logs
disp: msm: dp: replace pr_err with DP_ERR
disp: msm: dsi: Do not call devm_clk_put() with invalid clk
disp: msm: sde: disable CWB crop after cwb session is ended
disp: rotator: remove warning log from spin_lock
disp: msm: sde: protect file private structure with mutex lock
disp: msm: dsi: add support for ultra low power state
disp: msm: sde: switch rsc state before CTL_PREPARE in dual display
disp: msm: sde: add checks to avoid null pointer dereference
drm: msm: dsi: Update DSI parser util to skip disabled child nodes
disp: msm: qpic: fix kw issues in QPIC display driver
disp: msm: dsi: Fix deadlock issue in debugfs_esd_trigger_check function
Change-Id: I4acda3b051e4306f0c1f1a99c9aa61dfeb99ef90
Rename Android.bp to Androidbp. This is done to
avoid compilation failure reported for SA* targets.
Ignore tracking of Android.bp link file.
Change-Id: Ie36f8bf5e0ac011e5f82e4cbd3c2cc7d6bf14070
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>