提交图

3776 次代码提交

作者 SHA1 备注 提交日期
Anand Tarakh
3c4efe4bd4 disp: msm: dsi: add support to update brightness through drm prop
Add support to update display brightness through drm property.

Change-Id: I1954e040060a00014aae2486700dbf270147c6b0
Signed-off-by: Anand Tarakh <quic_atarakh@quicinc.com>
2024-01-02 15:44:30 +05:30
qctecmdr
8ffa8d427b Merge "disp: msm: sde: fix state transition and vm release in TUI" 2023-12-26 09:15:06 -08:00
Linux Build Service Account
8bbb79fffb Merge "disp: msm: dp: fix call to undeclared function build error" into display-kernel.lnx.1.0 2023-12-25 03:08:05 -08:00
qctecmdr
b31864b9cd Merge "disp: msm: dsi: update the phy timings and clocks together" 2023-12-21 05:13:20 -08:00
qctecmdr
8efe11c0ba Merge "disp: msm: sde: avoid race on in_clone_mode flag in wb encoder" 2023-12-20 05:12:21 -08:00
qctecmdr
4c8ffb7d17 Merge "disp: msm: sde: update rsc timer during video mode boot up" 2023-12-20 05:12:21 -08:00
jianzhou
5ddfb2b11e disp: msm: dp: fix call to undeclared function build error
drm_dp_mst_hpd_irq was removed, replaced by
drm_dp_mst_hpd_irq_handle_event.

Change-Id: I2a897283ab27ebd1d6a0e89f0f2fa10757a64c04
Signed-off-by: jianzhou <quic_jianzhou@quicinc.com>
2023-12-20 01:01:03 -08:00
Andhavarapu Karthik
13d31e5111 disp: msm: sde: avoid race on in_clone_mode flag in wb encoder
The issue scenario is as follows:
1. User space issues CWB commit N-1, frame got picked up and wr_ptr_irq
   is received.

2. Next commit N CWB disable commit is programmed waits for N-1 wb_done
   irq.

3. The kickoff count is decremented on wb_done_irq of commit N-1
   and wb wait_for_idle is exited.

4. wb_frame_done irq thread execution stalled before populating fences
   and commit thread execution continues.

5. wb_reset disables in_clone_mode flag, the stalled wb_done_irq thread
   resumes its execution and signals the release fences on primary crtc.

6. Commit N-1  frame_done irq is received and release fences is
   signaled again.

Made changes to avoid the race between irq thread and commit thread
over in_clone_mode flag, by adding a lock over wb physical encoder.

Change-Id: Iba9b6613c49d413239c9603228fe16b0d64c0ab6
Signed-off-by: Andhavarapu Karthik <quic_kartkart@quicinc.com>
2023-12-18 18:14:40 +05:30
qctecmdr
39d1a4857e Merge "disp: msm: dp: Update internal lm tracking" 2023-12-18 01:58:05 -08:00
qctecmdr
6d7ac58f55 Merge "disp: msm: sde: assign a non-pairable DSC to a topology that requires single DSC" 2023-12-18 01:58:04 -08:00
Andhavarapu Karthik
b35752cb3c disp: msm: sde: update rsc timer during video mode boot up
When poms supported panel is booting up with video mode
rsc timers are not configured. Made changes to update rsc
timers configuration during bootup with video mode as well,
to avoid rsc stuck issues during poms switch.

Change-Id: I8c03b3e5483c17f73e3d8c6b57bd8d3eabb33b10
Signed-off-by: Andhavarapu Karthik <quic_kartkart@quicinc.com>
2023-12-18 14:38:05 +05:30
Rajeev Nandan
d6e2761b94 disp: msm: dsi: update the phy timings and clocks together
In the case of DMS the dsi phy timings get updated in
dsi_display_set_mode() and the clock in pre_kickoff().
This brings a mismatch between phy timing and the clock between the
above two operations. For example, during dsi_display_enable(),
the HW is programmed with the new phy timings but the clock is still
running at the older rate. This mismatch can lead to screen flicker
or error.
Update the phy timings and clocks together during pre_kickoff().

Change-Id: I30198e91aba5879b1773103c088d94175639790c
Signed-off-by: Rajeev Nandan <quic_rajeevny@quicinc.com>
2023-12-15 10:37:06 +05:30
Shamika Joshi
723d8a5895 disp: msm: sde: fix state transition and vm release in TUI
This change fixes state machine transition during TUI process
kill to disable crtc and release vm resources cleanly.

Change-Id: If92c548bea5a3ed69721a9ecc28848910b44558d
Signed-off-by: Shamika Joshi <quic_shamjosh@quicinc.com>
2023-12-14 09:24:43 -08:00
Akash Gajjar
4676e59d3d disp: msm: sde: assign a non-pairable DSC to a topology that requires single DSC
During suspend-resume in a dual-display scenario with primary
display topology <2 2 1> and secondary display topology <1 1 1>
with 3 DSC instances, allocating DSC block 1 to the secondary
display results in DSC blocks 2 and 3 being assigned to the
primary display. However, as DSC block 2 is not a peer of DSC
block 3, it triggers an atomic check failure as a part of the RM
reservation failure. While reserving the DSC resources, prefer non
pairable DSC if the topology requests for single DSC instance. If
there are no non pairable DSCs available, then select one of the
available DSC.

Change-Id: I3e3f7ec343b5bc99aa23786a3cb65cf7bbbd7275
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2023-12-14 16:03:02 +05:30
qctecmdr
953d70e49b Merge "disp: msm: sde: force revalidation of LTM and RC features" 2023-12-10 04:51:01 -08:00
qctecmdr
89bfdcfedb Merge "disp: msm: sde: update dither, unsharp along with VLUT" 2023-12-10 04:51:01 -08:00
Nisarg Bhavsar
56d1c40031 disp: msm: dp: Update internal lm tracking
Clear internally tracked total number of lm blocks in
use when there are zero active streams.

This is required to have an accurate count of lm blocks
in use in a mst scenario.

Change-Id: Ida5d509bab60b3b6a4c0ace07c7c68380d28a0dd
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2023-12-06 13:54:15 -08:00
Anjaneya Prasad Musunuri
61e3e2b6cf 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-06 19:16:31 +05:30
Mitika Dodiya
1bc25bb976 disp: msm: sde: add support for cwb capture downscale
Anti aging requires cwb capture for algorithm. This change adds
support for cwb capture with downscale. Dnsc block needs to be
disabled when cwb is disabled.

Change-Id: I52e3eb4442440e6c59eb96566b0f6af1fd10c973
Signed-off-by: Mitika Dodiya <quic_mdodiya@quicinc.com>
2023-12-05 21:14:14 -08:00
qctecmdr
58cd5f8e39 Merge "disp: msm: dp: Parse device tree for aux switch" 2023-12-03 11:29:32 -08:00
Soutrik Mukhopadhyay
5073940a9a disp: msm: dp: Parse device tree for 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-12-01 11:28:44 +05:30
qctecmdr
14e67f0bf1 Merge "disp: msm: dsi: fix cmdline topology selection" 2023-11-30 19:27:17 -08:00
qctecmdr
0b5d746481 Merge "disp/bridge/lt9611uxc: update bridge_attach and compatible string" 2023-11-30 19:27:17 -08:00
Srihitha Tangudu
3f43908efe disp: msm: dsi: fix cmdline topology selection
Set topology override to cmdline topology before parsing timings so that
correct topology is set in mode.

Change-Id: I7ba371370c71516b436dbe5ec07064f7b54975bb
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
2023-11-28 21:49:09 -08:00
qctecmdr
a07896383d Merge "disp: msm: sde: handle first commit after resume for demura init property" 2023-11-28 21:09:42 -08:00
qctecmdr
9f256b91aa Merge "disp: msm: sde: adjust the vblank refcount until the completion of poms" 2023-11-28 12:04:13 -08:00
qctecmdr
1ed1014609 Merge "disp: msm: sde: avoid returning zero vsync count in poms usecase" 2023-11-28 12:04:13 -08:00
qctecmdr
efcfeb4c13 Merge "disp: msm: sde: avoid returning vsync count for cwb encoder" 2023-11-28 12:04:12 -08:00
qctecmdr
2d1d8e0686 Merge "disp: msm: dsi: fix mode count for POMS enabled video mode panel" 2023-11-28 12:04:12 -08:00
qctecmdr
41bbe3da22 Merge "disp: bridge: Add lt9611uxc display bridge driver" 2023-11-28 07:35:06 -08:00
Sanskar Omar
c4f0b40ddd disp: msm: sde: handle first commit after resume for demura init property
Demura init property gets reapplied during first commit after resume.
However, first commit after resume is null commit and HFC correction
file will not be available during first commit.
This change marks error to warning for first commit after resume.

Change-Id: I01ec4bd977d60925d9b7a54076329c3becaa0b20
Signed-off-by: Sanskar Omar <quic_sansomar@quicinc.com>
2023-11-27 20:15:19 -08:00
Shubham Talekar
de1e6dfd58 disp/bridge/lt9611uxc: update bridge_attach and compatible string
Update lt9611uxc bridge attach function for external bridge
to create drm connector.
Update compatible string to avoid conflict with upstream
lt9611uxc driver.

Change-Id: I5933b14ac724cc1417f89f000046ba3c3afbcf5c
Signed-off-by: Shubham Talekar <quic_stalekar@quicinc.com>
2023-11-26 22:27:26 -08:00
Anand Tarakh
78cde5eaf5 disp: msm: dsi: fix mode count for POMS enabled video mode panel
In legacy POMS feature, there were separate timing nodes for
video and command mode. So, while calculating the total number
of modes, 1 extra mode is added for command mode if POMS feature
is enabled in video mode panel.

But as per the new design, this is clubbed into one timing node.
So, there is no separate mode for command mode. This change removes
the check to add 1 extra mode count otherwise it leads to null
pointer dereference while getting lm for this extra mode. Also
avoid overriding mode capability when POMS is enabled.

Change-Id: I73f3b89b22f566e40c88178f2af392214b1ada8d
Signed-off-by: Anand Tarakh <quic_atarakh@quicinc.com>
2023-11-27 11:34:37 +05:30
Akash Gajjar
9cd74e699e disp: msm: sde: avoid returning zero vsync count in poms usecase
In POMS use case while disabling the virtual encoder, the virt
reset function sets the current master to null. concurrently, if
there is a query from the DRM client for the current vsync count,
it returns a zero value. This results in the blocking of the
drm_crtc_funcs.disable_vblank function. since the vsync count
has been relocated to the virtual encoder, remove the physical
encoder structure.

Change-Id: Ie692df657b5a86b6b8915a15e9a070642243fcfb
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2023-11-24 23:25:24 -08:00
Akash Gajjar
ea70c32ab5 disp: msm: sde: adjust the vblank refcount until the completion of poms
In POMS use case, the handling of the wait for vsync event
completion coincides with the concurrent
drm_crtc_funcs.enable_vblank. This concurrency causes a vsync
event complete timeout while disabling the encoder. to fix this
concurrency problem, increment the vblank refcount in encoder
disable and release the vblank refcount in encoder enable.

Change-Id: I79671e4a2bafdd01a6b2523a80fe511bff23d6b6
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2023-11-24 23:25:02 -08:00
Akash Gajjar
bfcd87de91 disp: msm: sde: avoid returning vsync count for cwb encoder
In CWB use case along with suspend commit, the function
drm_crtc_funcs.get_vblank_counter returns a zero vsync count
value. This causes blocking of drm_crtc_funcs.disable_vblank,
leading to a wait for vsync timeout while disabling the encoder.
hence clear a cwb encoder mask in encoder disable and set it
while performing mode set.

Change-Id: Ic994aa0a86faf48e2b25955cf6fe12166fe9d328
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2023-11-24 23:24:19 -08:00
Akash Gajjar
3e3c2b50a2 disp: msm: sde: add vsync count in virtual encoder
Introduce vsync count variable in virtual encoder structure
to keep the vsync count variable value in sync while performing
the poms. Consequently, this prevents the blocking of
drm_vblank_put and the invocation of
drm_crtc_funcs.disable_vblank.

Change-Id: I74903a89b17a8f46fb1b21338500553f36771dd0
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2023-11-24 10:33:58 -08:00
Shubham Talekar
3ea46d2f3b disp/bridge/lt9611uxc: remove lt9611uxc_attach_dsi from probe
Attach lt9611uxc bridge to DSI connector once drm connector and
encoder is initialized and attached.

Change-Id: I144938bc06b28a0b440b86318f45f18476182b3a
Signed-off-by: Shubham Talekar <quic_stalekar@quicinc.com>
2023-11-22 01:46:14 -08:00
Anjaneya Prasad Musunuri
686443a90f disp: msm: sde: force revalidation of LTM and RC features
Currently revalidation of features happening for mode change(like
fps change, resolution change). This change limits revalidation
of feature only to resolution switch.

Change-Id: I3678e0e94eaad51e7b7a342eb451aa6329e8279d
Signed-off-by: Anjaneya Prasad Musunuri <quic_aprasad@quicinc.com>
2023-11-21 13:04:22 +05:30
qctecmdr
1bb44a8184 Merge "disp: msm: sde: update idle_pc_duration based on frame rate" 2023-11-20 20:52:51 -08:00
Mahadevan
950c2c9fc9 disp: msm: sde: update idle_pc_duration based on frame rate
In lower fps the scheduled off_work for idle pc race with
crtc_commit thread causing janks in display. This change
updates the time required to enter idle_pc based on frame
rate instead of default time. It also sets max and min bound
for optimized performance.

Change-Id: I514015361d6773156971dcc5801ed4b75d78db86
Signed-off-by: Yojana Juadi <quic_yjuadi@quicinc.com>
Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
2023-11-17 14:28:10 +05:30
qctecmdr
c16cf9327c Merge "disp: msm: sde: add input handler unregister check before encoder wakeup" 2023-11-16 14:39:00 -08:00
Mahadevan
f392cc26e2 disp: msm: sde: add input handler unregister check before encoder wakeup
During PM suspend in dual display usecase, the power off commit to
turn off primary and secondary crtcs is done with only one
drm_atomic_state scheduled on primary crtc_commit thread. At the
same, touch events can happen on secondary panel, which will
run input_event_work and schedule the sde_enc->delayed_off_work
to turn off its enabled resources. There can be race between primary
crtc_commit thread which unregisters input_event, cancels
all the pending works before setting sde_enc->cur_master to NULL
and input_event_work_handler which schedules the delayed_off_work
without checking the input_event_handler state.
This change adds input handler unregister check before triggering
_sde_encoder_rc_early_wakeup.

Change-Id: If6de3d45ccda5d0b84065a1a76964c1ab00eeaa1
Signed-off-by: Jayaprakash Madisetty <quic_jmadiset@quicinc.com>
Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
2023-11-14 23:01:47 -08:00
qctecmdr
b94fd46183 Merge "disp: msm: sde: Clear CRTC cached ROI on IPC" 2023-11-12 23:28:47 -08:00
qctecmdr
6bf0e6df41 Merge "disp: msm: enable display driver compilation for niobe" 2023-11-12 23:28:46 -08:00
qctecmdr
bf1096d174 Merge "disp: msm: dp: cache connector id before post disable" 2023-11-09 04:09:54 -08:00
Ritesh Kumar
ebc41f1140 disp: msm: enable display driver compilation for niobe
Enable display driver compilation for niobe target.

Change-Id: I04a5e837fc7302894f707148b0ccd9ca5dc52abd
Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
2023-11-08 13:13:33 +05:30
Shubham Talekar
7f94f1f067 disp: bridge: Add lt9611uxc display bridge driver
Add lt9611uxc DSI-HDMI bridge driver.
Display lt9611uxc bridge driver snapshot from LKP.QCLINUX.1.0.

snapshot commit <332af828ce78f9c49c65ff35b9fe171060c9d045>
("drm: Switch i2c drivers back to use .probe()".)

Change-Id: I4b957ec35f559d912b8921dec1d43bbe1ab6d9e2
Signed-off-by: Shubham Talekar <quic_stalekar@quicinc.com>
2023-11-07 15:07:21 +05:30
qctecmdr
7adfef47c8 Merge "disp: msm: sde: avoid double clearing of INTR registers" 2023-11-06 10:20:53 -08:00
qctecmdr
cfc5bbb3fd Merge "disp: msm: sde: add mmrm validation check" 2023-11-06 02:17:23 -08:00