Commit Graph

48 Commits

Author SHA1 Message Date
Davide Garberi
fa99342727 Merge branch 'lineage-20' of github.com:LineageOS/android_kernel_qcom_sm8350 into lineage-21
Change-Id: Ic2f27579a391262e3ce327e50fe0b0f5490b0750
2024-02-16 13:18:40 +01: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
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
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
b0ccde81e4
Merge tag 'LA.UM.9.14.r1-23100-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-23100-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-23100-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: send power_on event in dual display composer kill scenario

Change-Id: I724d0c184dcb34d831bc6f4b1e9d33ed7a03dbca
2023-11-09 14:35:05 +02:00
Albert Tang
17aff28713 techpack: display: Define dp_connector_set_backlight inline
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
2023-10-25 11:03:38 +00:00
LuK1337
436708b8e5 disp: msm: sde: Fix strict-prototypes error
Change-Id: I2c6d8f58782ee52225916bf10b572bb08054f443
2023-10-21 12:59:37 +02:00
Michael Bestas
0124532c0e
Merge tag 'LA.UM.9.14.1.r1-10900-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-10900-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-10900-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: dp: fix compilation errors
  Revert "disp: msm: dp: skip hpd config"
  disp: msm: dp: wait for resources init in case of cont splash
  disp: msm: sde: Remove pm vote at time of handoff
  disp: msm: eDP continuous splash implementation
  disp: msm: dp: add backlight for edp
  disp: msm: dp: skip hpd config
  disp: msm: edp continuous splash implementation
  disp: msm: dp: add eDP panel notifier support
  disp: msm: dp: add eDP panel notifier support
  disp: msm: dp: add pinctrl state for backlight pwm
  drm/msm/dp: add support to multiple dp instances
  disp: msm: dp: move fsa init from dp probe to dp hotplug
  disp: msm: sde: update sde interrupt map
  disp: msm: dp: update pll and catalog sequence
  disp: msm: dp: Convert clock operations to byte2 ops
  disp: msm: dp: Masking interrupt for eDP
  disp: msm: dp: add support for eDP display
  disp: msm: dp: add eDP support as a primary display
  disp: msm: dp: Support DP display as primary
  disp: msm: dp: add pixel base offset support in device tree
  disp: msm: dp: add 7nm eDP PHY support
  disp: msm: dp: add files for 7nm eDP PHY

Change-Id: I614c52764b1479b90bd5a603828b5dff7e6c83db
2023-08-29 04:01:21 +03:00
Manaf Meethalavalappu Pallikunhi
7d3114211e
disp: msm: limit display brightness max cooling device level
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>
2023-08-15 17:49:42 +00:00
Davide Garberi
441046e79d techpack: display: dsi: Log backlight brightness when switching to HBM
Change-Id: I0b57c0967236381e22e815d90bebfc2cce0b5452
2023-08-05 22:51:32 +02:00
Davide Garberi
8132037c63 techpack: display: Handle HBM mode properly in AOD mode
Change-Id: Ic9ed7fc2ce8db4d55f13d2197ec9d09b3c30098e
2023-07-20 04:16:43 +02:00
Davide Garberi
3a65d1546d techpack: display: Handle FOD properly when HBM mode is enabled
Change-Id: Idb5c73254c60288d1b46c8617a25b18c74d1b93e
2023-07-20 04:16:41 +02:00
Davide Garberi
8de701c4a9 techpack: display: dsi_panel: Re-set hbm when turning screen on
Change-Id: I5502a369e934fb60fcf4afc578acdeaf40a1da53
2023-07-20 04:06:28 +02:00
Davide Garberi
be8942094c techpack: display: dsi: Add a sysfs node for HBM
Change-Id: I78d40708349a59911209e9417f44515968f80442
2023-07-20 04:06:28 +02:00
Davide Garberi
aea72ad342 techpack: display: Add a variable to mark if hbm is manually enabled
Change-Id: I75e1c754ad3072d23f25024ed6bfa63009039613
2023-07-20 04:06:28 +02:00
Davide Garberi
38c28866ab techpack: display: Remove fod naming from hbm set function
* This will be used for other purposes as well, so just use a more
   standard naming.

Change-Id: I15c5bd66d59f1e9cb755f62f5cb5e752dbeea1b9
2023-07-20 04:06:28 +02:00
Davide Garberi
904df5c8e8 techpack: display: dsi: Remove fod naming from HBM props
Change-Id: I46d29a54a98ffd862512bc41a80dffed6d39c436
2023-07-20 04:06:28 +02:00
Davide Garberi
b3df98d832 techpack: display: Revert AOD related changes
Revert "techpack: display: dsi_panel: re-enter AOD after exiting FOD HBM"

This reverts commit 47ec4e8588.

Revert "techpack: display: dsi_panel: prevent entering AOD while FOD HBM is enabled"

This reverts commit f2ec910217.

Revert "techpack: display: dsi_panel: update AOD mode on lp1/lp2/backlight update"

This reverts commit 3395cdd200.

Revert "techpack: display: dsi_panel: define AOD commands"

This reverts commit 7265d3e4db.

Change-Id: I731eb58a331c59673d24431550803504c4526f9f
2023-07-20 04:06:23 +02:00
Juhyung Park
6dc1af3fff disp: msm: hdcp: Switch to interruptible event listener
These tasks can block for a while and trigger hung task warnings.

Switch to interruptible wait_event() so that the scheduler can preempt it
freely. This shouldn't matter as all the conditions are re-checked after.

Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Change-Id: I069181b4f1c1ab65e71d125ae0b8bd6f5d260c81
2023-05-21 18:37:37 +02:00
Danny Lin
a9e81a1c7d drm/msm/sde: Remove register write debug logging
Writing to registers is frequent enough that there is a measurably
significant portion of CPU time spent on checking the debug mask for
whether to log. Remove the check and logging call altogether to
eliminate the overhead.

Change-Id: Iea73c5cd106edc96659fa1a1591be6bc8cb4bf88
2023-05-21 18:37:36 +02:00
Cosmin Tanislav
47ec4e8588 techpack: display: dsi_panel: re-enter AOD after exiting FOD HBM
Change-Id: Ib5bcc99f2e92a2cbd2f6b19b5f419661b0d0f457
2023-05-21 18:23:51 +02:00
Cosmin Tanislav
f2ec910217 techpack: display: dsi_panel: prevent entering AOD while FOD HBM is enabled
Change-Id: If377736c8899cefb4edd9545867974168a00d3ea
2023-05-21 18:23:50 +02:00
Cosmin Tanislav
3395cdd200 techpack: display: dsi_panel: update AOD mode on lp1/lp2/backlight update
Change-Id: I50f82edcaccf904de0c696610435cd40a8fc2e0f
2023-05-21 18:23:50 +02:00
Cosmin Tanislav
7265d3e4db techpack: display: dsi_panel: define AOD commands
Change-Id: Ibb0103e66da565d9893bb28b849c2020095b85bb
2023-05-21 18:23:50 +02:00
Cosmin Tanislav
cbf5181dd8 techpack: display: sde_connector: update fod hbm on dim layer change
Change-Id: Ifd50bfe7996c70d03c9bf41b72da1893a90137c0
2023-05-21 18:23:50 +02:00
Cosmin Tanislav
0833e7dcaf techpack: display: sde_crtc: setup dim layer
Change-Id: I267c6692374f368e6adb31bf28692330130cd720
2023-05-21 18:23:49 +02:00
Cosmin Tanislav
89440af2aa techpack: display: sde_plane: expose method to check if plane is FOD
Change-Id: Iee3baea1e89cd4573021ce500fb1ed653add410f
2023-05-21 18:23:49 +02:00
Cosmin Tanislav
44c0de4516 techpack: display: dsi_panel: expose attribute to notify of fod changes
Change-Id: I6bdb767567c09e1a4cbd3b2d626e1173baf9089f
2023-05-21 18:23:49 +02:00
Cosmin Tanislav
eae1d84a64 techpack: display: dsi_panel: expose FOD dim and method to set FOD HBM
Change-Id: I439f536efefb7b338462ccf6d03b078cea76c1c3
2023-05-21 18:23:49 +02:00
Cosmin Tanislav
9dc9391841 techpack: display: dsi_panel: track real backlight value
Change-Id: I5b6d71687cc6c208381c285187eaa1a6bfffecc7
2023-05-21 18:23:49 +02:00
Cosmin Tanislav
c53f429efb techpack: display: dsi_panel: read FOD dimming LUT
Change-Id: I23f7914ce0adf6c1942c09212516ed5f6b22d289
2023-05-21 18:23:48 +02:00
Cosmin Tanislav
768f85df5a techpack: display: dsi_panel: define FOD HBM commands
Change-Id: If910f52f209b52710a71d3211df786243369c362
2023-05-21 18:23:48 +02:00
GuaiYiHu
f01ce0b6d4 techpack: display: sde_hw_mdss: Increase sde stage to map zpos changes
Otherwise fingerprint payment won't work in some apps.

Change-Id: I94f6a32751db8a5771362923d376efcde9845f9f
2023-05-21 18:23:48 +02:00
Cosmin Tanislav
3a498ba940 teckpack: display: dsi_panel: create empty ettributes group
Change-Id: Ia1e747272240d380c82843d9faeeedac7bc58d9b
2023-05-21 18:23:48 +02:00
DevriesL
87a2d49640 techpack: display: dsi_display: expose method to get main display
Change-Id: Id670875adc18659521c424a716cf0ef194f9627f
2023-05-21 18:23:48 +02:00
Cosmin Tanislav
3243933dab techpack: display: sde_plane: extract bit in ZPOS into FOD
Change-Id: If4dc829375682817ce4b778749710d9bda33491a
2023-05-21 18:23:48 +02:00
Cosmin Tanislav
6d96b78024 techpack: display: sde_plane: add FOD prop
Change-Id: I4799a64e90cfd3e1fd464f90ce13a5db75f81dd3
2023-05-21 18:23:47 +02:00
Cosmin Tanislav
5cf5bc46a1 techpack: display: properly set last IGC values
Change-Id: I0921fd74028d7d40970cab222d052a8c634076f0
2023-05-21 18:10:07 +02:00
Cosmin Tanislav
ed1b1a6525 techpack: display: increase rsc mode 2 entry power up wait time
Change-Id: I802854392ae62f901cef58b11eb92b01778e26d7
2023-05-21 18:10:07 +02:00
Cosmin Tanislav
04a2a9c715 techpack: display: adjust panel power on / off sequence
Change-Id: I5f3dbe44cfbb1bd0077f4f555bd5468f639220c1
2023-05-21 18:10:07 +02:00
Michael Bestas
27fc8da46b
Merge tag 'LA.UM.9.14.r1-21200-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-21200-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-21200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: sde: drop suspend state if commit is skipped
  disp: msm: sde: cancel delayed idle_notify_work beginning of every commit
  disp: msm: dsi: add missing dsi ctrl mutex lock in host timing update
  disp: rsc: update mode-1 threshold config to 1 hz
  disp: msm: dsi: Handle absence of dsi select clocks in device-tree

Change-Id: I7740381b7589295c83d5fb18fbba4def0fbce8ce
2023-03-19 17:13:03 +02:00
Michael Bestas
d877019ecf
Merge tag 'LA.UM.9.14.r1-21000-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-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
2022-12-17 02:56:29 +02:00
Michael Bestas
99fc40776e
Merge tag 'LA.UM.9.14.r1-20700-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-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
2022-11-09 19:42:47 +02:00
Michael Bestas
aa81b48ce0
Merge tag 'LA.UM.9.14.r1-20500.01-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android12-5.4-lahaina
"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
2022-10-02 01:49:51 +03:00
Michael Bestas
df22692bb1
Merge tag 'LA.UM.9.14.r1-19600.01-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android12-5.4-lahaina
"LA.UM.9.14.r1-19600.01-LAHAINA.QSSI12.0"

* tag 'LA.UM.9.14.r1-19600.01-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: avoid minidump region addition for mdss register dumps
  disp: msm: dsi: avoid setting ulp load to disable load
  disp: msm: dsi: handle read cmd tx failure from dsi host transfer
  disp: msm: sde: unset and set clk parents during pm_suspend
  disp: msm: dsi: handle panel detection after a pp done timeout
  disp: msm: dsi: Fix DMA window scheduling programming

Change-Id: Iebd52dc842fa23e119b15d3d4f1df73f311c48b3
2022-05-24 09:17:17 +03:00
Michael Bestas
e4409f8201
Merge tag 'LA.UM.9.14.r1-19500-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android12-5.4-lahaina
"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
2022-05-19 00:40:44 +03:00
Prateek Sood
a254ae1578
headers_lib: rename Android.bp
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>
2022-05-19 00:06:15 +03:00
Michael Bestas
23b65c3a24
Add 'techpack/display/' from tag 'LA.UM.9.14.r1-18300-LAHAINA.0'
git-subtree-dir: techpack/display
git-subtree-mainline: 2d46776923
git-subtree-split: 64f31403b4
Change-Id: I7f4c42a3ba6b11a8db861cdd171a52d8f58f2e06
2022-05-19 00:04:54 +03:00