Compare commits

...

120 Commits

Author SHA1 Message Date
cc61aec5b5 AYN changes compared to DISPLAY.LA.3.0.r1-11400-KAILUA.0 2026-01-23 00:16:30 -08:00
Linux Build Service Account
4257f40b7b Merge ccedfd643a on remote branch
Change-Id: Ibc05d655d17bf432699d5fe1a888e0fda18ba917
2024-01-22 03:01:51 -08:00
qctecmdr
ccedfd643a Merge "disp: msm: sde: fix null dereference in sde_encoder_destroy" 2023-12-22 00:15:30 -08:00
qctecmdr
1d0172db83 Merge "disp: msm: sde: update dither, unsharp along with VLUT" 2023-12-14 02:24:19 -08:00
qctecmdr
d2dfe94cb3 Merge "disp: msm: update seamless check for cwb + any modeset" 2023-12-14 02:24:18 -08:00
qctecmdr
c3b0ffe249 Merge "disp: msm: dsi: add dsiclk_sel support for DPHY and CPHY as per HPG" 2023-12-13 05:00:44 -08:00
qctecmdr
cc5db09db6 Merge "disp: msm: dsi: rename dsi_clk mux as dsiclk_sel to match with HPG" 2023-12-13 01:46:50 -08:00
Kirill Shpin
08e0ffa970 disp: msm: dsi: add dsiclk_sel support for DPHY and CPHY as per HPG
Add dsiclk_sel support for both DPHY and CPHY, update pclk_div
calculation w.r.t dsiclk_sel as per HPG.

Change-Id: I573addd62c77d1c9f089b7aadf386cd2e579f442
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
Signed-off-by: Kirill Shpin <quic_kshpin@quicinc.com>
Signed-off-by: Ayushi Makhija <quic_amakhija@quicinc.com>
2023-12-11 21:23:13 -08:00
Srihitha Tangudu
9277455efe disp: msm: dsi: rename dsi_clk mux as dsiclk_sel to match with HPG
Rename dsi_clk mux as dsiclk_sel to match the naming convention
with HPG.

Change-Id: I50671a78fccdd10d74d43fdf8ef4ede0c55fd09b
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
Signed-off-by: Ayushi Makhija <quic_amakhija@quicinc.com>
2023-12-11 21:22:34 -08:00
Anjaneya Prasad Musunuri
54da6b5312 disp: msm: sde: update dither, unsharp along with VLUT
Dither, unsharp should not be enable when VLUT
is disabled. This change ties dither, unsharp to VLUT
enable/disable and not during init property.

Change-Id: Idfad899a13252b22104c9746c86f4e158d9b0980
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Anjaneya Prasad Musunuri <quic_aprasad@quicinc.com>
2023-12-11 14:30:20 +05:30
Kirill Shpin
6d38542acc disp: msm: dsi: follow the HPG guidelines for DATABUS_WIDEN
In case of DATABUS_WIDEN, follow the HPG to calculate bitclk,
byteclk and pclk. Configure the DST_FORMAT and the clock
dividers in DSI PHY and DISP_CC w.r.t. the bpp before
compression.

Change-Id: I526eab5bc88b8d667b8b1a0d257b2f147998286a
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
Signed-off-by: Kirill Shpin <quic_kshpin@quicinc.com>
Signed-off-by: Ayushi Makhija <quic_amakhija@quicinc.com>
2023-12-10 22:59:39 -08:00
Jayaprakash Madisetty
cdc962d109 disp: msm: update seamless check for cwb + any modeset
When there is CWB enablement + dynamic clock change request in
single commit, during modeset enables the cwb seamless check
is hit for primary connector causing bridge pre enable
and enable calls skipped for dsi connector. This change ensures
the above seamless transition is taken care with any modeset case
as well.

Change-Id: I8d7ef4f8c579d44ddb0bfd5dc584fe5c778df886
Signed-off-by: Jayaprakash Madisetty <quic_jmadiset@quicinc.com>
2023-12-06 02:04:53 -08:00
Venkata Prahlad Valluru
a2ed5b2400 disp: msm: sde: fix null dereference in sde_encoder_destroy
Avoid use-after-free for phys_encs.

Change-Id: Ic44013dbe7099c3ef22338f4531fb42a55bb38ef
Signed-off-by: Venkata Prahlad Valluru <quic_vvalluru@quicinc.com>
2023-12-04 01:59:48 -08:00
Linux Build Service Account
87e231c579 Merge 21dabac3b4 on remote branch
Change-Id: Ic9dbfac087591a64538065e951c8a1fb28eac5fb
2023-11-21 22:34:39 -08:00
Linux Build Service Account
b9458a4350 Merge 95b35463ed on remote branch
Change-Id: I218912d644ba132cb8d423edeb63a414d989c14a
2023-11-08 02:13:56 -08:00
Linux Build Service Account
c2e7604ab5 Merge fa7865a678 on remote branch
Change-Id: I95bc696ae4a8a42afa0751e041e17bc51d35884c
2023-10-12 02:55:00 -07:00
Linux Build Service Account
cf5b65d33c Merge 3c3ad36503 on remote branch
Change-Id: I9aa89cca6236c92baadde3db57c6d8882fb07e13
2023-09-28 04:37:59 -07:00
Yojana Juadi
b81da48725 disp: msm: sde: configure ubwc ctrl ver in hw as per devicetree
This change fixes the 'commit 1aacef1e1d ("disp: msm:
sde: fix UBWC decoder version support for Kalama")'.
Ubwc_ctrl must be set with global ubwc encoder version populated
from devicetree setting.

Change-Id: I85dc80e2e0436536a9b14e7e43199dc7b4421485
Signed-off-by: Yojana Juadi <quic_yjuadi@quicinc.com>
(cherry picked from commit e664bd181f)
2023-09-19 00:19:41 -07:00
Yojana Juadi
4b6bddd9c6 disp: msm: sde: wait for autorefresh_status to be idle in prepare kickoff
If cont splash is enabled, wait for autorefresh_status to be idle for
1 vsync in prepare kickoff. This patch also prevents entering to
rsc_solver_mode if autorefresh_status is busy.

Change-Id: Ic4458dcbe8e06ff6f338dd264eb9371365120dd1
Signed-off-by: Yojana Juadi <quic_yjuadi@quicinc.com>
2023-09-12 00:01:12 -07:00
Linux Build Service Account
9fee136f51 Merge d9f5e03b7d on remote branch
Change-Id: I2be639b73985cfe79143298254c6b6220bf34526
2023-09-08 10:58:31 -07:00
Linux Build Service Account
5d4e584172 Merge c84b917f06 on remote branch
Change-Id: Ib05d1607188c040afe8553bd8405098bd40dc317
2023-08-30 22:28:07 -07:00
Linux Build Service Account
57ce3c2471 Merge f119b3e97f on remote branch
Change-Id: Ie65868a44d45c94bed8292802f4db2d9cf49b853
Signed-off-by: Mohit Sharma <quic_smohit@quicinc.com>
2023-08-12 14:13:25 +05:30
Linux Build Service Account
b5bb16a5f3 Merge a94f99c621 on remote branch
Change-Id: I279410afa2699f1944289045d4f78c7cfd728122
2023-07-21 06:21:09 -07:00
Linux Build Service Account
155e704e54 Merge changes If50226c5,Iafbee4d9,Iced3b117 into display-kernel.lnx.5.15.r1-rel
* changes:
  disp: config: add support for fsa and wcd aux switch for crow target
  disp: msm: dp: Parse device tree to find specific aux switch
  disp: msm: dp: Add abstract and wcd939x aux switch support
2023-07-07 01:58:26 -07:00
Soutrik Mukhopadhyay
c564969f8e disp: msm: dp: update PHY settings for crow target
Update PHY settings for crow target.

Change-Id: I1242154cdb3aef5c9a84954d69e40f0520157620
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
2023-07-06 23:46:48 -07:00
Kashish Jain
2c8b12d2a5 disp: config: add support for fsa and wcd aux switch for crow target
Add support for fsa and wcd aux switch for crow target.

Change-Id: If50226c5f9f7cbb3a1ab1d469bc2c9efa0b541c4
Signed-off-by: Kashish Jain <quic_kashjain@quicinc.com>
2023-07-06 23:46:24 -07:00
Soutrik Mukhopadhyay
0a9bb868d0 disp: msm: dp: Parse device tree to find specific aux switch
Changes to select particular dp_aux_switch based on board
requirements. Currently provision to support both fsa4480
and wcd939x as aux switches are provided.

Change-Id: Iafbee4d91d14aafb1e7a37ddfa2b1ea0d0e5e784
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
2023-07-06 23:45:57 -07:00
Nisarg Bhavsar
489e038851 disp: msm: dp: Add abstract and wcd939x aux switch support
Add functionality to change which aux switch is used
at compile time for different targets. Add wcd939x
switch support.

Change-Id: Iced3b11733009680063790dfa8f180b19002f963
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
2023-07-06 23:45:29 -07:00
Linux Build Service Account
c922debfcc Merge 59417d5d89 on remote branch
Change-Id: I803a082cacbec0ce6e0b37cdbefc8fd66ca5203f
2023-07-03 21:56:29 -07:00
Linux Build Service Account
c4fce2e724 Merge 74c700ca88 on remote branch
Change-Id: I2b50643dad4e548584ceea7af65a2250ff31f268
2023-06-28 23:01:35 -07:00
Linux Build Service Account
d119e2e4bb Merge dfc4131bc6 on remote branch
Change-Id: Idb7143f5703ab4df7c9b9e20b22b516fb4f115c5
2023-06-09 03:28:39 -07:00
Linux Build Service Account
d3b53d1d9d Merge cff5b253c3 on remote branch
Change-Id: I23030be4c6caddc379da2652cd7cfda8b8a2bce7
2023-05-16 10:07:53 -07:00
Linux Build Service Account
6ee467def5 Merge 5af4c28a10 on remote branch
Change-Id: I36e3750786ee1d06a6721dcd065824c12a6225d3
2023-05-02 02:09:36 -07:00
Anand Tarakh
60cdf3a505 disp: msm: dsi: use ctrl cell index to set frequencies for link clks
To set frequencies for link clks, the clk manager index of
ctrl is require. Use ctrl cell index to get clk manager index.

Change-Id: I175d0721e672fb4d368349584c8b448ba63f4224
Signed-off-by: Anand Tarakh <quic_atarakh@quicinc.com>
2023-04-23 22:27:53 -07:00
Linux Build Service Account
adb0083d20 Merge 5215f2a6dd on remote branch
Change-Id: Ie73340811ca6428287de369c87662de5912f1647
2023-04-18 10:24:31 -07:00
Linux Build Service Account
145f965b5e Merge 48fb12268c on remote branch
Change-Id: Ic84c1e7fac51488c00858a4a25b39143ec6085ba
2023-04-04 04:54:30 -07:00
Mahadevan
c5f6aecbbf disp: msm: sde: avoid white color solid fill staging on input fence timeout
The issue is as follows:
Commit N:
   1. VIG sspp qseed block programmed through lutdma. LUTDMA packet with
      (ram offset, length_0) is queued to internal HW queue to enable
      scaler.
   2. Input_fence timeout seen on VIG plane.
   3. White color solid fill layer staged on VIG plane.
   4. Disable VIG sspp qseed block through LUTDMA. LUTDMA packet is queued
      by overriding buffer with (ram offset, length_1) to internal HW queue
      to disable scaler.
   5. Trigger_flush is picked by HW on vsync.

Since 2 LUTDMA packets are queued on single vsync boundary pp_done timeout
with lutdma HW hang is seen. The only way to fix this is to reset LUTDMA
in step4 and then flush the Hardware. The current SW does not support this
reset sequence, so the change avoids staging solid fill on input fence
timeout.

Change-Id: Ia243e42c863f56b11bee5aeed2dd434efcbd5d75
Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
2023-03-23 23:37:36 -07:00
Linux Build Service Account
e9f70aadad Merge 132458ad67 on remote branch
Change-Id: I7c4dc30285481b89c79a66eb27ad616469687a8b
2023-03-16 02:00:50 -07:00
Linux Build Service Account
e035f467ae Merge cd074fb4e9 on remote branch
Change-Id: Icbd6411bd88a92e6083194cd58b95e9c9a11bd79
2023-02-15 11:05:21 -08:00
Saurabh Yadav
bcaea1e94f disp: msm: sde: handle rc feature disable for all instances
Add rc feature disable handling in case set rc feature fails.
This will disable rc feature for all instances if set rc feature
fails for any instance.

Change-Id: I159b9bd3ed1416c4b2d32440d10132cb024f9529
Signed-off-by: Saurabh Yadav <quic_sauyad@quicinc.com>
2023-01-28 05:23:00 -08:00
Linux Build Service Account
1ec2914518 Merge 1ad20d00ad on remote branch
Change-Id: Ib287801c3b271af219ba745d74f0b10a6e9dabec
2023-01-02 21:19:37 -08:00
Linux Build Service Account
3903e3c682 Merge "Revert "disp: msm: dp: check for display status before SDP config"" into display-kernel.lnx.5.15.r1-rel 2022-12-06 08:15:31 -08:00
Sankeerth Billakanti
e2c0202fa4 Revert "disp: msm: dp: check for display status before SDP config"
This gerrit reverts the change I330f6fc162f3366a9ca0aeb64956927dceca4c80
(disp: msm: dp: check for display status before SDP config)

Change-Id: I74391df3493652397d0456c43feba38521baadb5
Signed-off-by: Sankeerth Billakanti <quic_sbillaka@quicinc.com>
2022-12-06 07:57:45 -08:00
Kashish Jain
b819a9311d disp: msm: dsi: Reset DMA trigger mux when initializing DSI_TRIG_CTRL
When broadcast command is sent with command DMA window scheduling enabled,
DSI_TRIG_CTRL.COMMAND_MODE_DMA_TRG_MUX does not get reset after command
transfer. Due to this next unicast command on slave fails.
This change resets DMA trigger mux during DSI_TRIG_CTRL initialization.

Change-Id: I74503d82ab1cb6ca4d61a9d14f2b3cd2c3936ea7
Signed-off-by: Kashish Jain <quic_kashjain@quicinc.com>
2022-12-06 06:21:19 -08:00
Rajeev Nandan
d0b6f9857c disp: msm: dsi: Fix DMA window scheduling programming
In DMA start window scheduling, TRIG_CTRL.COMMAND_MODE_DMA_TRIGGER_SEL
is programmed to SW + DMA start window trigger. But if DMS switch
comes after command is scheduled, COMMAND_MODE_DMA_TRIGGER_SEL gets
reprogrammed to SW trigger leading to command transfer failure.

Program the COMMAND_MODE_DMA_TRIGGER_SEL only from the CMD DMA Tx path.

Change-Id: I01062497bb70aa5fdcb25be3715c7cbc4c68b681
Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
Signed-off-by: Rajeev Nandan <quic_rajeevny@quicinc.com>
2022-12-06 06:20:31 -08:00
Linux Build Service Account
1768bf4fc3 Merge 212962f3df on remote branch
Change-Id: If46c7ee4ae69d4262c7f36612b7c595e0e571e63
2022-11-30 23:58:49 -08:00
Linux Build Service Account
3968cc5882 Merge "correcting code diff" into display-kernel.lnx.5.15.r1-rel 2022-11-21 08:10:04 -08:00
Linux Build Service Account
ee7dc6dc04 Merge "disp: msm: dp: do not skip wait for usb disconnect with dp_sim" into display-kernel.lnx.5.15.r1-rel 2022-11-21 08:10:03 -08:00
V S Ganga VaraPrasad (VARA) Adabala
2c85905256 correcting code diff
Change-Id: I6f790ec62dac88b916897fb9aa0722bd41d97f73
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-11-21 08:04:11 -08:00
Sankeerth Billakanti
377e3d073a disp: msm: dp: do not skip wait for usb disconnect with dp_sim
Wait for the userspace to disable DP when usb cable is removed
during DP simulation. The usb notifier is a blocking call.

Change-Id: I6c00cc684b4d99da30a129f034eb17bf505738bb
Signed-off-by: Sankeerth Billakanti <quic_sbillaka@quicinc.com>
2022-11-21 08:03:20 -08:00
Andhavarapu Karthik
7f76bbaaa7 disp: msm: sde: flush event thread workqueue before vm release
In some cases while transitioning between vm, vblank
work might be get executed on event thread after handoff is
completed on commit thread leading to crash. This change
flush the event thread queue during vm pre-release before
lending the io resources to the other vm.

Change-Id: Ife1fea54dd236cc4cbca70f7636d27c4de1280ec
Signed-off-by: Andhavarapu Karthik <quic_kartkart@quicinc.com>
2022-11-21 07:58:06 -08:00
Linux Build Service Account
fba06e2000 Merge 2ea74a3bb2 on remote branch
Change-Id: Ib69c361653fa5bf5a4e9c9438a80669fdf326f74
2022-10-31 01:39:37 -07:00
Linux Build Service Account
26b0bbdf66 Merge 99e01152fa on remote branch
Change-Id: I25136915f3744c208b38dddaf505112e997ca2c7
2022-10-16 22:57:35 -07:00
V S Ganga VaraPrasad (VARA) Adabala
a1d035f4cc Merge commit '3272f7e726e51dac9f79b06c930e79a4d85b66bd' into display-kernel.lnx.5.15.r1-rel
Change-Id: Ia13bc0331c276c87a523d1f6207fb589f382ea43
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-10-01 23:25:13 +05:30
Veera Sundaram Sankaran
23f0eec24b disp: msm: sde: move some frame_events from crtc commit to event thread
Move frame data stats collection/notification during frame-done and
retire fence sysfs notification to event thread. This will free up
some interrupt time.

Change-Id: I2648ac4287ce8712e9a059edd408a59753aa6d32
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 10:37:23 -07:00
Dmitry Baryshkov
df3ab4c237 drm/msm/dpu: merge dpu_hw_intr_get_interrupt_statuses into dpu_hw_intr_dispatch_irqs
There is little sense in reading interrupt statuses and right after that
going after the array of statuses to dispatch them. Merge both loops
into single function doing read and dispatch.

Change-Id: I1259476549bcaf9f9f4e12591a7e182796e150dd
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Git-commit: 0abdba47dc1df708c365421d481734d3f7fecb01
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 10:37:05 -07:00
Amine Najahi
d3516bd83f disp: msm: update RSC bandwidth during solver mode transition
Currently when disconnecting a secondary monitor, RSC will
transition to solver mode. If the bandwidth remains the same
for primary display, SW will not update BW indication register
causing stale TCS wait values.

This change forces a register update when RSC mode is
changed to solver mode.

Change-Id: I99d2332621bad75a7b6abdb64d6aedd35c30ca63
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 10:36:57 -07:00
Renchao Liu
43dbaf14b4 disp: msm: sde: fix null pointer dereference issue
This changes fixes null pointer dereference issue.

Change-Id: I9a9628f1fb274aea86a15792dc85b8505f25d28f
Signed-off-by: Renchao Liu <quic_rencliu@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 10:36:48 -07:00
V S Ganga VaraPrasad (VARA) Adabala
65216e3693 Revert "disp: msm: dp: free DP sim ports during DP sim disable"
This reverts commit 2e9d68e174.

Change-Id: I02602dd6e1add1ac1a2ec474625a44880c0f45d7
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 23:03:41 +05:30
ntarte
543b4d62d4 Revert "disp: msm: sde: fix null pointer dereference issue"
This reverts commit b2f3452dbe.
Change-Id: I3b7dbb75b954a5b6b20c7186ac2a333d21de0fce
Signed-off-by: Nikhil Tarte <quic_ntarte@quicinc.com>
2022-09-20 12:09:57 +05:30
ntarte
769e9693c7 Revert "Revert "disp: msm: dp: free DP sim ports during DP sim disable""
This reverts commit ac1ab5fb46.
Change-Id: I200a765112d7c85f5a069716dfae2c5418cf7c7b
Signed-off-by: Nikhil Tarte <quic_ntarte@quicinc.com>
2022-09-20 12:07:33 +05:30
Bruce Levy
ac1ab5fb46 Revert "disp: msm: dp: free DP sim ports during DP sim disable"
This reverts commit 2e9d68e174.

Change-Id: I6524134ce6c0168185f6d670ef7a222d380bdb6d
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-10 13:46:55 -07:00
Renchao Liu
b2f3452dbe disp: msm: sde: fix null pointer dereference issue
This changes fixes null pointer dereference issue.

Change-Id: I9a9628f1fb274aea86a15792ac85b8505f25d28f
Signed-off-by: Renchao Liu <quic_rencliu@quicinc.com>
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-09 23:50:25 -07:00
Linux Build Service Account
bebdadd24d Merge df56ac358f on remote branch
Change-Id: Ibf686b254e185d1bc7c6bc6e9e9cced18198a707
2022-09-07 09:19:42 -07:00
Bruce Levy
7da7af851d Revert "disp: msm: sde: update hw configs on dnsc_blur disable"
This reverts commit 7b4ea8c54c.

Change-Id: I8d9143086c38f49a819db9c365e3ad9060f8ed68
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 19:00:00 -07:00
Bruce Levy
0426d1258e Revert "disp: msm: dp: remove disconnect call for downstream port status change"
This reverts commit 10ac060759.

Change-Id: I8cd416df1f27c97fc7ecbfbf41cdd669069289e5
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:52 -07:00
Bruce Levy
a1f10f798b Revert "disp: msm: sde: bound event log traversal to allocated memory in coredump"
This reverts commit 174c107f6a.

Change-Id: I4ef0d4364623389159bc2c3ca950add4d500fa93
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:34 -07:00
Bruce Levy
dbeaf04922 Revert "disp: msm: sde: add crtc width restriction when 3d-merge is enabled"
This reverts commit d66b542c43.

Change-Id: I8ce020b7a305ce345f9b716d2f8c8d34ac5ef35f
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:25 -07:00
Bruce Levy
7b02c6d146 Revert "disp: msm: sde: add check to avoid NULL WB output fb"
This reverts commit e46400196a.

Change-Id: Iee38893a5a36cf1439b97aa494b069d1f525a55e
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:13 -07:00
Bruce Levy
e8dfa47d10 Revert "disp: msm: dsi: reorder various resets of DSI PHY"
This reverts commit a26fe8667d.

Change-Id: I2c50354521bb0a6ec4490b3a390841c1239d05a4
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:03 -07:00
Bruce Levy
b89826f14f Revert "disp: msm: dsi: avoid DSI PHY shutdown during idle"
This reverts commit c4a9630939.

Change-Id: I440c3aa45e5a75f9ba6bf33f7fd9379eb6ead895
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:58:53 -07:00
Bruce Levy
51410a8413 Revert "disp: msm: sde: use new connector state for topology checks"
This reverts commit 762d8a8f1b.

Change-Id: Ibb5c0e248f79659aa1cae7878c40d3e6c3de9bac
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:58:41 -07:00
Linux Build Service Account
1554d485ed Merge "disp: msm: sde: use new connector state for topology checks" into display-kernel.lnx.5.15.r1-rel 2022-08-27 16:45:01 -07:00
Linux Build Service Account
ab47310f7b Merge "disp: msm: dsi: avoid DSI PHY shutdown during idle" into display-kernel.lnx.5.15.r1-rel 2022-08-27 16:45:00 -07:00
Linux Build Service Account
055324bcf8 Merge "disp: msm: dsi: reorder various resets of DSI PHY" into display-kernel.lnx.5.15.r1-rel 2022-08-27 16:45:00 -07:00
Veera Sundaram Sankaran
762d8a8f1b disp: msm: sde: use new connector state for topology checks
Use with the new connector state during validation phase for
checking the 3d-merge topology, since this is the state that
needs to be validated.

Change-Id: Ie212f948affa4dc439ef508363bac6713e560006
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-08-27 14:34:51 -07:00
Shashank Babu Chinta Venkata
c4a9630939 disp: msm: dsi: avoid DSI PHY shutdown during idle
Avoid shutting down DSI PHY and lanes before entering into
idle collapse.

Change-Id: I62fb40c2398e544b08b8cb8788ac2dc1143a82ce
Signed-off-by: Shashank Babu Chinta Venkata <quic_schintav@quicinc.com>
2022-08-27 14:12:07 -07:00
Shashank Babu Chinta Venkata
a26fe8667d disp: msm: dsi: reorder various resets of DSI PHY
DSI PHY has various resets defined to reset analog, PLL and digital
portions. In current sequence, these resets happen after PLL is locked
which can result in introduction of jitter on PHY lanes.Reordering these
resets to happen before PLL is programmed to have intended clean start
of DSI PHY.

Change-Id: I4eb5c05ea0e6015a5447728b2845b49817411c50
Signed-off-by: Shashank Babu Chinta Venkata <quic_schintav@quicinc.com>
2022-08-27 14:11:17 -07:00
Veera Sundaram Sankaran
e46400196a disp: msm: sde: add check to avoid NULL WB output fb
Change the debug message to error during the writeback
encoder validate for wb output buffer. The output buffer
can be NULL only during disable frame and all other frames
need to have a valid output buffer.

Change-Id: I4d6fecfeaf863e56fe25e17ab1200849003b3309
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-08-27 14:03:20 -07:00
Linux Build Service Account
ea7e73f13b Merge "disp: msm: sde: add crtc width restriction when 3d-merge is enabled" into display-kernel.lnx.5.15.r1-rel 2022-08-24 10:42:26 -07:00
Linux Build Service Account
cb83e5d8b4 Merge "disp: msm: sde: bound event log traversal to allocated memory in coredump" into display-kernel.lnx.5.15.r1-rel 2022-08-24 10:42:25 -07:00
Linux Build Service Account
c0cb8e74ef Merge "disp: msm: dp: remove disconnect call for downstream port status change" into display-kernel.lnx.5.15.r1-rel 2022-08-24 10:42:18 -07:00
Veera Sundaram Sankaran
d66b542c43 disp: msm: sde: add crtc width restriction when 3d-merge is enabled
Add validation during crtc_atomic_check to have crtc width as
multiple of 4 when dualpipe 3d-mux is enabled and multiple of 8
when quadpipe 3d-mux is enabled. This ensures each layer mixer
is having an even width.

Change-Id: I5dc173c1b0349430a8e12a7b1c9440c7854e7ecd
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-08-24 00:26:14 -07:00
Amine Najahi
174c107f6a disp: msm: sde: bound event log traversal to allocated memory in coredump
Currently, driver is determining the amount of memory to allocate
based on the event log object indexes (first, last). The last index
can change if there is additional logging done during the coredump
phase and potentially cause an out-of-bound memory access during
buffer traversal.

This change restrict the event log object traversal to a maximum
of the output buffer size.

Change-Id: I91e5734362d2d7a796129fce85e27611bab2245f
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-08-24 00:25:27 -07:00
Sandeep Gangadharaiah
10ac060759 disp: msm: dp: remove disconnect call for downstream port status change
During MST scenario, plugging out all the downstream monitors connected
to the MST hub would trigger a disconnect handler which would cleanup
display structure. This isn't required since MST hub is still connected
and the display cleanup would be taken care during the actual MST hub
disconnect. Also, handling the disconnect immediately on port status
notification leaves the usermode in an invalid state where it assumes
the display is still enabled and results in commit errors.

Change-Id: Ia9a58fadd89bd05746da25f142b54b31e8567258
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-08-24 00:00:01 -07:00
Veera Sundaram Sankaran
7b4ea8c54c disp: msm: sde: update hw configs on dnsc_blur disable
Currently, dnsc_blur hardware block is not updated when the connector
dnsc_blur property is set to NULL or when dnsc_blur_count is 0. Update
the dnsc_blur hw block configs to avoid stale configs affecting the
current frame.

Change-Id: I39934a8b9490a13a0f77f3b5dbc5053b76a9370b
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-08-23 23:56:49 -07:00
Linux Build Service Account
f47a4bd39b Merge 5a5adbba9f on remote branch
Change-Id: I82779224a7c3752c42974842515efd6e06acdfd7
2022-08-19 15:24:37 -07:00
Arya Anand
16512fbd66 Revert "disp: msm: sde: reduce stack size in _sde_crtc_check_rois"
This reverts commit 9e8739b820.

Change-Id: I27fa7eae4c6f243779534c9d6561ce27bdac437e
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-08-18 16:33:35 -07:00
Arya Anand
e097620d90 Revert "disp: msm: dp: address race condition in LM allocation"
This reverts commit ad1b9376ab.

Change-Id: Ib5eae02546b3a31c3609b5a6af32910b4193ca38
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-08-18 16:33:22 -07:00
Arya Anand
a315c77ed7 Revert "disp: msm: sde: update hw configs on dnsc_blur disable"
This reverts commit 728f9d65ca.

Change-Id: I664a71adfece87f0c570a273b929a8e9e9691108
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-08-18 16:33:10 -07:00
Arya Anand
77a8968663 Revert "disp: msm: sde: enable encoder resources before phys enc disable"
This reverts commit 8eef598b0b.

Change-Id: Ia219731034901fd6bbbd80a53e7865b2fcda4bc4
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-08-18 16:32:59 -07:00
Arya Anand
2d176f445c Revert "disp: msm: sde: use mode from new state during CP check phase"
This reverts commit a9294b7329.

Change-Id: I1258955eebc11ae2694ea106e0a90e7221e4d82d
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-08-18 16:32:47 -07:00
Arya Anand
9c68afbcb0 Revert "disp: msm: sde: reset wb output crop during cwb disable"
This reverts commit 600e4ef057.

Change-Id: Ida30631e3a7272ed8d72e711da1a33792d95ba19
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-08-18 16:32:34 -07:00
Veera Sundaram Sankaran
9e8739b820 disp: msm: sde: reduce stack size in _sde_crtc_check_rois
Use pointer and allocate dynamic memory for msm_mode_info
in _sde_crtc_check_rois instead of object to reduce the
stack memory size.

Change-Id: Ida8fc7e2b94e19b3c791dcda55a465a4107ef976
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
Signed-off-by: Jeykumar Sankaran <quic_jeykumar@quicinc.com>
2022-08-15 08:08:06 -07:00
Linux Build Service Account
69d4b70dd9 Merge "disp: msm: dp: address race condition in LM allocation" into display-kernel.lnx.5.15.r1-rel 2022-08-13 22:02:48 -07:00
Linux Build Service Account
109ff3e2f7 Merge "disp: msm: sde: update hw configs on dnsc_blur disable" into display-kernel.lnx.5.15.r1-rel 2022-08-13 22:02:48 -07:00
Linux Build Service Account
8bcdc2f87e Merge "disp: msm: sde: enable encoder resources before phys enc disable" into display-kernel.lnx.5.15.r1-rel 2022-08-13 22:02:47 -07:00
Linux Build Service Account
f344738459 Merge "disp: msm: sde: use mode from new state during CP check phase" into display-kernel.lnx.5.15.r1-rel 2022-08-13 22:02:46 -07:00
Alex Danila
ad1b9376ab disp: msm: dp: address race condition in LM allocation
Addresses a race condition which could cause the RM to overcommiting LMs to
DP when multiple DP displays are used.

sde_rm_get_resource_info now uses the RM's mutex and assumes a null
encoder is not a built in display so that it can return an accurate
count of unreserved resources.

DP layer now maintains internal accounting of LMs in use to avoid
validating modes that have insufficient remaining resources.

Change-Id: I908c1597c1d651b6f9c9b74a34137f30087d8801
Signed-off-by: Alex Danila <quic_eadanila@quicinc.com>
2022-08-13 21:23:34 -07:00
Veera Sundaram Sankaran
728f9d65ca disp: msm: sde: update hw configs on dnsc_blur disable
Currently, dnsc_blur hardware block is not updated when the connector
dnsc_blur property is set to NULL or when dnsc_blur_count is 0. Update
the dnsc_blur hw block configs to avoid stale configs affecting the
current frame.

Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
Change-Id: If64dc5548b03edba401fb7f40edf3419dbe57ca3
2022-08-13 21:22:49 -07:00
Veera Sundaram Sankaran
8eef598b0b disp: msm: sde: enable encoder resources before phys enc disable
Enable the clks/irqs & update RSC state during encoder disable.
This ensures RSC is in correct state during the non-primary disable
commit as it might have entered idle power collapse before the
disable.

Change-Id: Idf82efb3a7bc895e1a97c6cdeeb62970184c8e5d
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-08-13 21:22:11 -07:00
Amine Najahi
a9294b7329 disp: msm: sde: use mode from new state during CP check phase
Currently previous mode information is passed to CP check phase
instead of the new incoming mode, which cause RC to silently
pass the check phase when there is a resolution mismatch between
the RC mask and new mode.

This change also adds various event log to better track RC codeflow.

Change-Id: I8953fd76e2cb0eb12e2df23038a7866edd3dcb1e
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-08-13 21:21:31 -07:00
Veera Sundaram Sankaran
600e4ef057 disp: msm: sde: reset wb output crop during cwb disable
Reset the wb crop configs from hardware, while disabling
concurrent writeback. This avoids stale configs which
affects the subsequent writeback session.

Change-Id: I4927effd0650bcdca2852a5d72c3e5478683a90f
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-08-13 21:20:46 -07:00
Linux Build Service Account
d7c495fba1 Merge df69a7d379 on remote branch
Change-Id: I07c21074e78da573a17e1568cf008aeb7239b68b
2022-08-11 11:55:27 -07:00
Arya Anand
d387c7f251 Revert "disp: msm: sde: force RC mask revalidation during mode switch"
This reverts commit acfb3acb1f.

Change-Id: I196b6e76e4aeb2ee3446eecf539c5b57234f77c7
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-08-10 15:48:59 -07:00
Amine Najahi
acfb3acb1f disp: msm: sde: force RC mask revalidation during mode switch
Force rounded corner mask revalidation during mode switch.

Change-Id: I4037290b91885dfa16357f43685d7fd894b301c4
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-07-26 19:19:03 -07:00
Linux Build Service Account
69cb283184 Merge 7b00783abe on remote branch
Change-Id: I12caff240a0d25b2b89a42d914eed3be577e35e4
2022-07-21 16:54:07 -07:00
Linux Build Service Account
10da5973aa Merge 90276a462e on remote branch
Change-Id: Iddccd1aca2199206709b08c5b6fc79f92fbe5a74
2022-06-23 11:49:52 -07:00
Linux Build Service Account
af98c90c39 Merge "Revert "Revert "disp: msm: link HDCP sec-module as a dependency""" into display-kernel.lnx.5.15.r1-rel 2022-06-22 14:05:33 -07:00
Linux Build Service Account
d17652354c Merge "Revert "Revert "disp: config: enable HDCP config for kalama""" into display-kernel.lnx.5.15.r1-rel 2022-06-22 14:05:32 -07:00
quic_aryaanan
e3832ed389 Revert "Revert "disp: msm: link HDCP sec-module as a dependency""
This reverts commit f9c022e48a.

Change-Id: I5c453a420eca0311a6afd1ec4ade93ddcab31ecb
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-06-22 12:40:05 -07:00
quic_aryaanan
e090f6b365 Revert "Revert "disp: config: enable HDCP config for kalama""
This reverts commit 9c45051e9a.

Change-Id: Ic49cc980ee803d1bc37201740717cccfb4b9a75f
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-06-22 12:39:16 -07:00
Arya Anand
f9c022e48a Revert "disp: msm: link HDCP sec-module as a dependency"
Recovery mode is not working.

This reverts commit 8c413f511e.

Change-Id: Iaea8a674e132b0b06a3c3e0739af523e7190d453
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-05-20 16:03:06 -07:00
Arya Anand
9c45051e9a Revert "disp: config: enable HDCP config for kalama"
Recovery mode is not working.

This reverts commit 657ac66343.

Change-Id: I31d1470935cf0fbc0892d78d64303413eb36676e
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
Signed-off-by: Arya Anand <quic_aryaanan@quicinc.com>
2022-05-20 16:01:33 -07:00
Linux Build Service Account
31f7b95795 Merge 7f6a4cdee7 on remote branch
Change-Id: Ib165b9db7f215194d55e1ac8d33e385198a98c5c
2022-05-17 14:26:54 -07:00
Linux Build Service Account
3f9823af1e Merge 99e41b7489 on remote branch
Change-Id: I7961f2644b846789a3368f3e139062b874f125e5
2022-04-19 08:47:49 -07:00
Linux Build Service Account
c3a4e78027 Merge 6ddda369b3 on remote branch
Change-Id: I01015d8817e1dba329788143f4ce35d27e8ddf0c
2022-03-22 10:46:35 -07:00
Linux Build Service Account
f7a29a5c2c Merge e62a6512a1 on remote branch
Change-Id: Ifbebd47a93ef67fbf6c4cdceac38e3231c493185
2022-03-07 07:56:06 -08:00
Linux Build Service Account
1e9d21f389 Merge 7d0468f562 on remote branch
Change-Id: Id4b03b50cfa993684615e6e5fa55f1eb5e4b5b20
2022-02-28 12:10:21 -08:00
Linux Build Service Account
69486b1cdc Merge f96beac76e on remote branch
Change-Id: I26843218ab9390269abfe63f256ce4340c1aa2d7
2022-01-31 12:30:09 -08:00
328 changed files with 808 additions and 133 deletions

0
Android.bp Normal file → Executable file
View File

0
Android.mk Normal file → Executable file
View File

View File

0
Kbuild Normal file → Executable file
View File

0
Makefile Normal file → Executable file
View File

0
Makefile.am Normal file → Executable file
View File

0
NOTICE Normal file → Executable file
View File

0
config/augen3disp.conf Normal file → Executable file
View File

0
config/augen3dispconf.h Normal file → Executable file
View File

0
config/bengaldisp.conf Normal file → Executable file
View File

0
config/bengaldispconf.h Normal file → Executable file
View File

0
config/gki_crowdisp.conf Normal file → Executable file
View File

0
config/gki_crowdispconf.h Normal file → Executable file
View File

0
config/gki_crowdisptui.conf Normal file → Executable file
View File

0
config/gki_crowdisptuiconf.h Normal file → Executable file
View File

0
config/gki_holidisp.conf Normal file → Executable file
View File

0
config/gki_holidispconf.h Normal file → Executable file
View File

0
config/gki_kalamadisp.conf Normal file → Executable file
View File

0
config/gki_kalamadispconf.h Normal file → Executable file
View File

0
config/gki_kalamadisptui.conf Normal file → Executable file
View File

0
config/gki_kalamadisptuiconf.h Normal file → Executable file
View File

0
config/gki_lahainadisp.conf Normal file → Executable file
View File

0
config/gki_lahainadispconf.h Normal file → Executable file
View File

0
config/gki_neodisp.conf Normal file → Executable file
View File

0
config/gki_neodispconf.h Normal file → Executable file
View File

0
config/gki_parrotdisp.conf Normal file → Executable file
View File

0
config/gki_parrotdispconf.h Normal file → Executable file
View File

0
config/gki_waipiodisp.conf Normal file → Executable file
View File

0
config/gki_waipiodispconf.h Normal file → Executable file
View File

0
config/gki_waipiodisptui.conf Normal file → Executable file
View File

0
config/gki_waipiodisptuiconf.h Normal file → Executable file
View File

0
config/holidisp.conf Normal file → Executable file
View File

0
config/holidispconf.h Normal file → Executable file
View File

0
config/konadisp.conf Normal file → Executable file
View File

0
config/konadispconf.h Normal file → Executable file
View File

0
config/lahainadisp.conf Normal file → Executable file
View File

0
config/lahainadispconf.h Normal file → Executable file
View File

0
config/saipdisp.conf Normal file → Executable file
View File

0
config/saipdispconf.h Normal file → Executable file
View File

0
display_driver_board.mk Normal file → Executable file
View File

0
display_driver_product.mk Normal file → Executable file
View File

0
display_kernel_headers.py Normal file → Executable file
View File

0
hdcp/msm_hdcp.c Normal file → Executable file
View File

0
include/Kbuild Normal file → Executable file
View File

0
include/linux/Kbuild Normal file → Executable file
View File

0
include/linux/msm_hdcp.h Normal file → Executable file
View File

0
include/linux/sde_io_util.h Normal file → Executable file
View File

0
include/linux/sde_rsc.h Normal file → Executable file
View File

0
include/linux/sde_vm_event.h Normal file → Executable file
View File

0
include/uapi/Kbuild Normal file → Executable file
View File

0
include/uapi/display/Kbuild Normal file → Executable file
View File

0
include/uapi/display/drm/Kbuild Normal file → Executable file
View File

0
include/uapi/display/drm/msm_drm_pp.h Normal file → Executable file
View File

0
include/uapi/display/drm/sde_drm.h Normal file → Executable file
View File

0
include/uapi/display/hdcp/Kbuild Normal file → Executable file
View File

0
include/uapi/display/hdcp/msm_hdmi_hdcp_mgr.h Normal file → Executable file
View File

0
include/uapi/display/media/Kbuild Normal file → Executable file
View File

0
include/uapi/display/media/mmm_color_fmt.h Normal file → Executable file
View File

0
include/uapi/display/media/msm_sde_rotator.h Normal file → Executable file
View File

0
msm/Android.mk Normal file → Executable file
View File

0
msm/Kbuild Normal file → Executable file
View File

0
msm/Makefile Normal file → Executable file
View File

0
msm/dp/dp_altmode.c Normal file → Executable file
View File

0
msm/dp/dp_altmode.h Normal file → Executable file
View File

0
msm/dp/dp_audio.c Normal file → Executable file
View File

0
msm/dp/dp_audio.h Normal file → Executable file
View File

0
msm/dp/dp_aux.c Normal file → Executable file
View File

0
msm/dp/dp_aux.h Normal file → Executable file
View File

0
msm/dp/dp_aux_bridge.c Normal file → Executable file
View File

0
msm/dp/dp_aux_bridge.h Normal file → Executable file
View File

0
msm/dp/dp_bridge_hpd.c Normal file → Executable file
View File

0
msm/dp/dp_bridge_hpd.h Normal file → Executable file
View File

0
msm/dp/dp_catalog.c Normal file → Executable file
View File

0
msm/dp/dp_catalog.h Normal file → Executable file
View File

0
msm/dp/dp_catalog_v200.c Normal file → Executable file
View File

0
msm/dp/dp_catalog_v420.c Normal file → Executable file
View File

0
msm/dp/dp_ctrl.c Normal file → Executable file
View File

0
msm/dp/dp_ctrl.h Normal file → Executable file
View File

0
msm/dp/dp_debug.c Normal file → Executable file
View File

0
msm/dp/dp_debug.h Normal file → Executable file
View File

0
msm/dp/dp_display.c Normal file → Executable file
View File

0
msm/dp/dp_display.h Normal file → Executable file
View File

0
msm/dp/dp_drm.c Normal file → Executable file
View File

0
msm/dp/dp_drm.h Normal file → Executable file
View File

0
msm/dp/dp_gpio_hpd.c Normal file → Executable file
View File

0
msm/dp/dp_gpio_hpd.h Normal file → Executable file
View File

0
msm/dp/dp_hdcp2p2.c Normal file → Executable file
View File

0
msm/dp/dp_hpd.c Normal file → Executable file
View File

0
msm/dp/dp_hpd.h Normal file → Executable file
View File

0
msm/dp/dp_link.c Normal file → Executable file
View File

0
msm/dp/dp_link.h Normal file → Executable file
View File

0
msm/dp/dp_lphw_hpd.c Normal file → Executable file
View File

0
msm/dp/dp_lphw_hpd.h Normal file → Executable file
View File

0
msm/dp/dp_mst_drm.c Normal file → Executable file
View File

0
msm/dp/dp_mst_drm.h Normal file → Executable file
View File

0
msm/dp/dp_mst_sim.c Normal file → Executable file
View File

0
msm/dp/dp_mst_sim.h Normal file → Executable file
View File

0
msm/dp/dp_mst_sim_helper.c Normal file → Executable file
View File

0
msm/dp/dp_mst_sim_helper.h Normal file → Executable file
View File

6
msm/dp/dp_panel.c Normal file → Executable file
View File

@@ -1575,7 +1575,7 @@ static int dp_panel_dsc_prepare_basic_params(
comp_info->comp_type = MSM_DISPLAY_COMPRESSION_DSC; comp_info->comp_type = MSM_DISPLAY_COMPRESSION_DSC;
comp_info->tgt_bpp = DSC_TGT_BPP; comp_info->tgt_bpp = DSC_TGT_BPP;
comp_info->src_bpp = dp_mode->timing.bpp; comp_info->src_bpp = dp_mode->timing.bpp;
comp_info->comp_ratio = dp_mode->timing.bpp / DSC_TGT_BPP; comp_info->comp_ratio = mult_frac(100, dp_mode->timing.bpp, DSC_TGT_BPP);
comp_info->enabled = true; comp_info->enabled = true;
return 0; return 0;
@@ -3001,7 +3001,7 @@ static void dp_panel_convert_to_dp_mode(struct dp_panel *dp_panel,
comp_info->src_bpp = default_bpp; comp_info->src_bpp = default_bpp;
comp_info->tgt_bpp = default_bpp; comp_info->tgt_bpp = default_bpp;
comp_info->comp_type = MSM_DISPLAY_COMPRESSION_NONE; comp_info->comp_type = MSM_DISPLAY_COMPRESSION_NONE;
comp_info->comp_ratio = 1; comp_info->comp_ratio = MSM_DISPLAY_COMPRESSION_RATIO_NONE;
comp_info->enabled = false; comp_info->enabled = false;
/* As YUV was not supported now, so set the default format to RGB */ /* As YUV was not supported now, so set the default format to RGB */
@@ -3036,7 +3036,7 @@ static void dp_panel_convert_to_dp_mode(struct dp_panel *dp_panel,
} }
rc = sde_dsc_populate_dsc_private_params(&comp_info->dsc_info, rc = sde_dsc_populate_dsc_private_params(&comp_info->dsc_info,
dp_mode->timing.h_active); dp_mode->timing.h_active, dp_mode->timing.widebus_en);
if (rc) { if (rc) {
DP_DEBUG("failed populating other dsc params\n"); DP_DEBUG("failed populating other dsc params\n");
return; return;

Some files were not shown because too many files have changed in this diff Show More