Gráfico de commits

2356 Commits

Autor SHA1 Mensagem Data
qctecmdr
f83978b07b Merge "disp: msm: dsi: fix kasan out of bound in dsi reception" 2021-06-23 00:02:16 -07:00
qctecmdr
d2ac3d143c Merge "disp: msm: sde: do not expose Demura CWB tap point capability" 2021-06-23 00:02:16 -07:00
qctecmdr
14afd4ea1c Merge "disp: msm: fix issues in hdcp2p2 repeater authentication" 2021-06-23 00:02:16 -07:00
qctecmdr
cf799d8de0 Merge "disp: msm: sde: add changes to fix the sde fence signaled logic" 2021-06-23 00:02:16 -07:00
Vara Reddy
47c9fdca01 disp: msm: fix issues in hdcp2p2 repeater authentication
Change fixes issue where HDCP 2p2 authentication process
was broken for repeater usecases.

Change-Id: Iae7fc6a2cabd5e5a592d7e234f11d748539124e5
Signed-off-by: Vara Reddy <varar@codeaurora.org>
2021-06-22 12:16:55 -07:00
Samantha Tran
9d67c9da7a disp: msm: sde: do not expose Demura CWB tap point capability
This change removes exposing Demura CWB tap point capability
to userspace.

Change-Id: I7be24a2004ce489fca76593cdb9f75e8b52d4461
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-06-21 15:21:19 -07:00
qctecmdr
036bf2584c Merge "disp: msm: sde: assign correct size for sspp color proc feature data" 2021-06-20 01:23:41 -07:00
qctecmdr
3e829e3e62 Merge "disp: msm: dsi: add HW programming for split link clock ctrl" 2021-06-19 14:33:14 -07:00
qctecmdr
9adf97bd10 Merge "disp: msm: dp: change the detect callback to detect_ctx" 2021-06-18 21:58:17 -07:00
Ping Li
1971601fbd disp: msm: sde: assign correct size for sspp color proc feature data
Instead of hard coding the size of the blob data, pass the exact
size retrieved from drm property framework to color processing layer.
Color processing layer has size check to make sure the blob data size
matches the expected size.

Change-Id: I277f9be1ba84e4e4707847756a9ed0ea1ed23f53
Signed-off-by: Ping Li <pingli@codeaurora.org>
2021-06-17 20:56:11 -07:00
qctecmdr
40f770fc53 Merge "disp: msm: sde: fix color processing property handling in crtc state" 2021-06-17 00:55:05 -07:00
qctecmdr
b5db7f9016 Merge "disp: msm: sde: use dma_fence_signal_timestamp api for fence signal" 2021-06-16 15:32:50 -07:00
qctecmdr
69fb2edab7 Merge "disp: msm: replace iommu_attach/detach with iommu_sid_switch" 2021-06-16 15:32:50 -07:00
Linux Build Service Account
38c32e36d1 Merge "disp: msm: sde: program qseed through ahb" into display-kernel.lnx.5.10 2021-06-16 15:19:39 -07:00
Linux Build Service Account
9c4e8b157c Merge "disp: msm: sde: add esd check during wr_ptr wait" into display-kernel.lnx.5.10 2021-06-16 15:19:38 -07:00
Linux Build Service Account
2a08ea7da0 Merge "disp: msm: dsi: fix illegal memory access " into display-kernel.lnx.5.10 2021-06-16 15:18:38 -07:00
Sudarsan Ramesh
65f1c136ea disp: msm: dp: change the detect callback to detect_ctx
The connector detect function is currently implemented as a
callback from the framework, and creates a context before
calling the detect_port_ctx MST callback. This change updates
the callflow so that the framework calls the new detect_ctx
function in the MST case. This removes the need for creating a
new context before calling further downstream functions.

In addition, references to the mst_connector_get_info
function were replaced by connector_get_info to avoid
redundancy.

Change-Id: I224d09e77fad4b6925a42b1bc912a05e3e4d060a
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-06-16 15:57:54 -04:00
Jayaprakash Madisetty
08278cb8cb disp: msm: sde: add changes to fix the sde fence signaled logic
This change allows signalling of sde fences when sequence number is
less than done_count. In current scenario, fence is not signaled as
the subtraction result is not typecasted to int before updating
the status causing the UI thread to block on sde fence.

Change-Id: I3ca62222e0c67223b9eaf299474a2c282d761d3a
Signed-off-by: Jayaprakash Madisetty <jmadiset@codeaurora.org>
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-06-15 14:55:49 -07:00
Nilaan Gunabalachandran
ab52bfd181 disp: msm: sde: poll for rsvp nxt after idle
During mode enable after idle, rsvp next would be be set without
rsvp cur. Back to back test only should be serialized, but currently
this would be possible right after idle. This is established by
commit 11aab5f9c3 (disp: msm: sde: Fix null dereference errors).
This change updates the condition to poll for rsvp next clear
during this usecase as well.

Change-Id: I300254967cbec69fff8b31545b8d659afc56f283
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-06-15 13:12:32 -04:00
Ritesh Kumar
d52b019c50 disp: msm: dsi: fix kasan out of bound in dsi reception
Fix out of bounds access that occurs when reading dsi
commands with custom non 4 bytes aligned payload.
When misaligned, the code is overfetching data due
to 32 bits reading constraint. This creates an offset
in receiving buffer. Using a local copy buffer large
enough to hold the extra bytes fixes the issue.

Change-Id: Ia0ee791d2e87639edd58191cfd5cb6f8f825f8c8
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-06-15 21:48:42 +05:30
Samantha Tran
dc56d01f20 disp: msm: sde: add esd check during wr_ptr wait
Move esd check to write pointer wait instead of during
write pointer timeout. With this change display will avoid
improperly signaling a retire fence and allowing two flushes
to happen within a single vsync in cases where ESD failure
is happening.

Change-Id: I6fbd76a2f6b47d3237039f66a3b1edd1f72a0a1d
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-06-14 13:35:46 -07:00
Satya Rama Aditya Pinapala
d575e0cb37 disp: msm: dsi: add HW programming for split link clock ctrl
There is a new clock lane that is used for the sublink when
split link is enabled. The following change adds programming
to control the sublink clock lane.

Change-Id: I1af370cd39e02130569815766fb748ae6bad72d0
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-06-14 13:09:03 -07:00
Veera Sundaram Sankaran
52ba19edb4 disp: msm: sde: use dma_fence_signal_timestamp api for fence signal
Use the upstream function dma_fence_signal_timestamp_locked to signal
the sde fences with timestamp parameter instead of the downstream version.

Change-Id: I9e0dcc3bafa16e78fe80268f560bf003ac1a2bc1
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-06-13 21:17:55 -07:00
Ravi Ranjan
eacfafbaed mmm_color_format: update alignment for linear RGBA8888 format
Video requires width of linear RGBA8888 format byte-aligned to 256.

Change-Id: I7fa3822abb2912ef78e192756d19a5f8468bd493
Signed-off-by: Ravi Ranjan <rravi@codeaurora.org>
2021-06-13 19:13:15 -07:00
qctecmdr
9685e229a2 Merge "disp: msm: dsi: fix gpio warning message" 2021-06-11 14:26:06 -07:00
qctecmdr
1b5eb90df4 Merge "disp: msm: sde: mute autorefresh seq2 error log" 2021-06-11 12:15:51 -07:00
qctecmdr
5a9148d169 Merge "disp: msm: sde: add line count to video mode TE event log info" 2021-06-11 10:09:42 -07:00
Satya Rama Aditya Pinapala
4f604d5c21 disp: msm: dsi: fix illegal memory access
The priv_info for dsi_display_mode is assigned to NULL after use, so
that it cannot be outside the dsi_find_mode function.

Change-Id: Ifacd1f1ea4edab1e6659b42522c5f216676a9a01
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-06-10 12:37:36 -07:00
Prabhanjan Kandula
1aa3b25147 disp: msm: sde: mute autorefresh seq2 error log
In SDE driver auto refresh disable sequence, seq2 execution
is possible. Avoid error log for every iteration and log
only when seq2 fails.

Change-Id: I1e2b3dcc775bf5fef28fe2e0c6846d3940a2bad1
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2021-06-10 12:12:09 -07:00
Nilaan Gunabalachandran
3617430855 disp: msm: sde: program qseed through ahb
This change ensures that qseed programming to be completed through AHB
path only.

Change-Id: I26270fdf51d1ac8c68c6967b3ee99857be9c801e
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-06-10 13:16:08 -04:00
Grace An
58fa6aa87a disp: msm: sde: add line count to video mode TE event log info
This change adds line count to info being added to the
event log buffer.

Change-Id: Ic51b12bb3fbff206603ca8265cd916972418d0d2
Signed-off-by: Grace An <gracan@codeaurora.org>
2021-06-09 13:21:03 -07:00
qctecmdr
4f79a6ceef Merge "disp: msm: sde: cancel delayed_off_work before reinitialization" 2021-06-09 10:00:48 -07:00
qctecmdr
4ed05e18ad Merge "disp: msm: sde: add support for partial size CWB output buffer" 2021-06-09 10:00:48 -07:00
qctecmdr
d66e86af95 Merge "disp: msm: dsi: enable DCS command ASYNC wait for video mode panels" 2021-06-09 04:48:39 -07:00
qctecmdr
2bd58a2e46 Merge "disp: msm: sde: add explicit sub-driver mappings for TVM" 2021-06-09 02:43:04 -07:00
Samantha Tran
928ee64b46 disp: msm: sde: add support for partial size CWB output buffer
Add support for accepting a smaller output buffer size than full
frame. In this case, input will be cropped as needed and set to
0,0 coordinate in the output buffer.

Change-Id: Ie6d60aa313ae87ce148a08108e09b56c908147da
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-06-08 15:51:13 -07:00
qctecmdr
eb5415ad65 Merge "disp: msm: dsi: clear ctrl_flags for private DCS panel command" 2021-06-08 08:50:24 -07:00
Jeykumar Sankaran
7a112bb744 disp: msm: sde: add explicit sub-driver mappings for TVM
TUI clients are the display sub-drivers that participate
during the TUI transition. They register with the display
TUI notification framework with a list of callbacks functions
that will be invoked during pre/post transitions and for quering
I/O memory that need to be access controlled. This change
adds RSC to the TUI client list.

In Trusted VM, all the sub-drivers are not enabled to avoid
any re-configuration of respective module registers. But the
TUI framework need to know the sub-driver I/O memory ranges
in order to accept the I/O memory list lent by the HLOS VM.
So, SDE provides them ranges by reading from a custom
devicetree property.

Change-Id: I2c4b254d539d04771339ae4a7bf4d296b7a7f91a
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2021-06-07 23:48:09 -07:00
Jeykumar Sankaran
5ec8dc1afc disp: msm: dsi: update gpio mappings using tlmm api
Use tlmm api to retrieve and populate address mappings of
the panel gpio pins participating in the VM swtich
on Trusted UI.

Change-Id: Ibf2d13eac3fe907b729f4c2b54c63a3808022583
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2021-06-07 23:48:09 -07:00
Jeykumar Sankaran
77d648442f disp: msm: dsi: implement ESD trigger for trusted vm
DSI driver stubs out GPIO parsing in trusted vm. Add support
for ESD trigger in trusted vm by explicitly parsing the
reset gpio and setting the value.

Change-Id: I8c04e4b27b234eb236ec51df633c06738f2a5c96
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2021-06-07 23:48:01 -07:00
Gopikrishnaiah Anandan
db9d3e8601 disp: msm: sde: fix color processing property handling in crtc state
Drm frame-work crtc state doesn't need to duplicate color processing
properties since color processing frame-work caches these properties to
apply across suspend/resume, idle power collapse use-cases.
Change removes copying color processing properties during state duplication.

Change-Id: Ieafa7e5bacdf0ad814d579070c8aaa30c12e887f
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2021-06-07 18:46:28 -07:00
Santosh Kumar Aenugu
8d9384423c disp: msm: dsi: fix gpio warning message
At present, the sim panels and physical panels booting up as sim
panels have a call flow issue causing reset gpio to be set in the
panel reset sequence even without valid reset gpio. This causes
GPIO warnings as it tries to set value for invalid reset GPIO.
The following change fixes these GPIO warnings, by checking
valid reset GPIO before setting value.

Change-Id: Id8f54a563c61dd3d244d31b10081042e376287d4
Signed-off-by: Santosh Kumar Aenugu <santoshkumar@codeaurora.org>
2021-06-07 17:18:10 -07:00
Lei Chen
9d4d003e30 disp: msm: sde: cancel delayed_off_work before reinitialization
Canceling delayed_off_work in encoder pre_modeset might not be
executed in all cases, but the following encoder enable might
initialize the work.
This will lead to list corruption as delayed_off work list node
is reinitialized before removing from linked list.
Move canceling delayed_off_work to start of encoder mode_set to
ensure work is canceled before reinitialization.

Change-Id: I38687604f2eedced308ea02019c162022725534e
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
2021-06-07 17:03:31 +08:00
Lei Chen
484091de41 disp: msm: dsi: clear ctrl_flags for private DCS panel command
DSI or panel configurations might be changed dynamically, so clear
ctrl_flags of private DCS command to regenerate it according
to current display configurations.

Change-Id: Iddfcbe7f14de65ed0edf408a75b0a50bdb0a2d29
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
2021-06-07 16:59:28 +08:00
qctecmdr
4a9b41b801 Merge "disp: msm: dp: check for pixel1 rcg only for mst supported platforms" 2021-06-05 08:40:10 -07:00
qctecmdr
91a9206cb8 Merge "display: msm: optimize driver debug allocations" 2021-06-04 19:50:11 -07:00
qctecmdr
97b1db8547 Merge "disp: msm: sde: set watchdog TE when panel fails ESD check" 2021-06-04 13:29:20 -07:00
Samantha Tran
11f2efbe16 disp: msm: sde: set watchdog TE when panel fails ESD check
In the event of panel dead scenario, it is possible to receive a
mode set call before the panel has recovered. When this happens,
display should select watchdog TE as the vsync source.

Similarly when detecting a write pointer timeout, if the panel is
dead then watchdog TE should be or has already been configured and
display should not make a change to this vsync selection.

Change-Id: I732c75e54d734b00889151b914b0749ae1f27d08
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-06-04 09:59:44 -07:00
qctecmdr
028a432785 Merge "disp: msm: sde: update perf cpu dma latency votes on idle in video mode" 2021-06-04 09:24:46 -07:00
qctecmdr
087fdfd66f Merge "disp: msm: sde: reset retire fence when CWB is disabled" 2021-06-04 02:58:05 -07:00