Graf commitů

2091 Commity

Autor SHA1 Zpráva Datum
qctecmdr
2d9a52fe5c Merge "disp: msm: extend the maximum value of backlight scale" 2021-03-15 20:52:16 -07:00
Rajkumar Subbiah
a2cad30a8b disp: enable msm ext display module
Enable msm ext display module flag to enable dp audio
registration.

Change-Id: If0b444ffe81bbcf77199dc88127affdf0c147fe8
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
2021-03-15 21:04:26 -04:00
Ritesh Kumar
74435c1580 disp: msm: dsi: Fix DFPS sequence when constant fps is enabled
When DFPS and dynamic clock switch with constant fps are
enabled, wait for dynamic refresh done only if clock switch
is triggered. In case where only fps changes, clock remains
same. So, wait for dynamic refresh done is not required.

Change-Id: I1a96d8d6756086afe2cd6e5bdc19be27c2ffed92
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-03-15 14:15:11 -07:00
qctecmdr
de7a10fd68 Merge "disp: msm: sde: add inline rotation support for UBWC_RGBA1010102" 2021-03-15 10:32:42 -07:00
qctecmdr
33b4fc3e8d Merge "disp: msm: sde: change noise layer device tree log into info" 2021-03-14 23:48:20 -07:00
qctecmdr
95acc8bbab Merge "disp: msm: add dp register & debugbus dump support" 2021-03-14 21:10:39 -07:00
qctecmdr
3d61ecfa30 Merge "disp: msm: add rscc wrapper debugbus support" 2021-03-14 20:14:15 -07:00
qctecmdr
af5cc7d9ca Merge "disp: msm: add capability to dump limited debugbus info in logs" 2021-03-14 19:09:24 -07:00
qctecmdr
f593f27385 Merge "disp: msm: format register/debugbus dumping in logs" 2021-03-14 18:13:07 -07:00
qctecmdr
e21e941c87 Merge "disp: msm: refactor debugbus to use same helpers" 2021-03-14 17:19:35 -07:00
qctecmdr
8554b1aeae Merge "disp: msm: sde: reduce log level of thermal backlight device" 2021-03-10 17:47:04 -08:00
qctecmdr
52f55ac353 Merge "disp: msm: dsi: update DSI PHY programming" 2021-03-10 16:50:04 -08:00
qctecmdr
125cc02596 Merge "disp: msm: dsi: fix mutiplier frac_bits assignment" 2021-03-10 15:55:31 -08:00
Satya Rama Aditya Pinapala
26b26c8422 disp: msm: sde: reduce log level of thermal backlight device
The change reduces the log level if the thermal backlight device
registration fails. This is not a fatal use case and hence shouldn't
be an error log.

Change-Id: I08d4014a2629c5181bd7219c4836affb81da96ae
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-03-10 14:43:00 -08:00
qctecmdr
8308435276 Merge "disp: msm: sde: move DRM_EVENT_CRTC_POWER trigger" 2021-03-10 07:18:44 -08:00
qctecmdr
0d0a538bf6 Merge "disp: msm: dsi: parse PLL dfps data only if dynamic clock is enabled" 2021-03-10 06:25:39 -08:00
qctecmdr
685a464505 Merge "disp: msm: add check for null pointer dereferencing" 2021-03-10 02:49:06 -08:00
qctecmdr
1ae6847345 Merge "disp: msms: dsi: avoid hardcoding pll_lockdet_rate" 2021-03-10 01:56:06 -08:00
Dhaval Patel
c9a5def3b2 disp: msm: sde: provide rm status through debugfs node
Provide rm status through debugfs node.
cat /d/dri/0/debug/rm_status.

Change-Id: Ic1950b1881f0b57582701a342793aa06adb9da39
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2021-03-09 17:14:53 -08:00
Samantha Tran
0ff34fb3c2 disp: msm: sde: add inline rotation support for UBWC_RGBA1010102
This change adds UBWC_RGBA1010102 to the list of formats which inline
rotation supports.

Change-Id: I6e0374895dd27bf21f19d9b97e84a8f343777874
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-03-09 16:26:31 -08:00
Samantha Tran
10a48e58f6 disp: msm: sde: move DRM_EVENT_CRTC_POWER trigger
Currently, power on and off are being triggered prematurely.
This changes moves both calls to the end of enable and disable
functions to better align with events. It also creates a common
function to simplify event notifications.

Change-Id: I0291747a84991deb139552b2bff476a6436d5409
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-03-09 15:08:18 -08:00
Satya Rama Aditya Pinapala
18d245cad8 disp: msm: dsi: parse PLL dfps data only if dynamic clock is enabled
PLL codes from devicetree are only required if dynamic clock is enabled
for video mode panels. This change ensures that unnecessary error logs are
not seen for all other panels, by parsing the data only if the panel property
is set.

Change-Id: I206520aab65b7a5613909c8ff527e88303533617
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-03-09 11:42:05 -08:00
Satya Rama Aditya Pinapala
7eef141621 disp: msms: dsi: avoid hardcoding pll_lockdet_rate
This change avoids hardcoding the PLL_LOCKDET_RATE_1 register
value, rather using the variable with the same name that has
been initialized in dsi_pll_regs.

Change-Id: Ideb2c2b593156a4361feeb071df41f65e52c3beb
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-03-08 19:23:45 -08:00
Satya Rama Aditya Pinapala
ddbd9adaaf disp: msm: dsi: fix mutiplier frac_bits assignment
While recalculating VCO rate, currently the frac_bits value
is being hardcoded. The change instead uses the initialized
value from the 5nm PLL configuration.

Change-Id: I245574f4810a7b036d512ff1a347aa7e296702d1
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-03-08 19:23:35 -08:00
Satya Rama Aditya Pinapala
1b2b7a6c93 disp: msm: dsi: allocate DSI command buffer during bind
The DMA buffer allocation for DSI happens during the first
command transfer. This change moves this allocation to happen during
bind.

Change-Id: I7969a019a8b84282e8a153f5393c9a3de5a28043
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-03-08 18:03:37 -08:00
Gopikrishnaiah Anandan
ddda68fe06 disp: msm: sde: change noise layer device tree log into info
Noise layer feature is not mandatory feature, if device tree entry is
missing or hardware doesn't support the feature print a info log instead
of error print. Change updates the driver to change print as info.

Change-Id: I73f82d9f0877bcc859096c9f86b722871574e736
2021-03-08 17:52:58 -08:00
Satya Rama Aditya Pinapala
1d0cb57f98 disp: msm: dsi: update DSI PHY programming
The change updates DSI DPHY and CPHY programming for
PHY version 4_3.

Change-Id: Id6b5cfefdce9530891e1e0f5a34814606954d843
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-03-08 15:50:28 -08:00
Veera Sundaram Sankaran
84ec84696e disp: msm: add dp register & debugbus dump support
Add support to the dump the DP register space and debugbus information.

Change-Id: I903471b07fdd1926b0fc505a980b2a5048387b69
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-03-08 14:38:28 -08:00
Veera Sundaram Sankaran
6389071ca8 disp: msm: add rscc wrapper debugbus support
Add support to the dump rscc wrapper debugbus information.

Change-Id: Id680615ebda6aeec093437b1b0b1708357f01d37
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-03-08 14:38:25 -08:00
Veera Sundaram Sankaran
e8dd7a5ab3 disp: msm: add capability to dump limited debugbus info in logs
Add a flag SDE_DBG_DUMP_IN_LOG_LIMITED based on which the debug bus
registers dumped in log can be limited. In memory logging will continue
to dump the full range of configured registers if that flag is set.
Currently the in-log limited support is enabled  only for the sde/vbif
debugbus and both IN_LOG & IN_LOG_LIMITED will be treated the same way
for other blocks.

Change-Id: Ie85d3d16955cfa507bb3e02954d9b313851eef78
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-03-08 14:38:21 -08:00
Veera Sundaram Sankaran
cbdfd8b56d disp: msm: format register/debugbus dumping in logs
Add macros for logging the registers/debugbus, so all blocks
can use the same macros to keep the log format consistent.

Change-Id: Ie28ce83a742f24f3091bedab66c8cf1454bbb943
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-03-08 14:38:18 -08:00
Veera Sundaram Sankaran
32db918ef9 disp: msm: refactor debugbus to use same helpers
Refactor the debugbus read/logging for sde/dsi/vbif/lutdma to use the
same helpers. Use function pointers to read/write specific hw block
operations. Remove the DBGBUS_FLAGS_DSPP and related checks  as it is
not used. Increase the debugbus block/test-point ranges for all the
blocks to log all the test-points used by hardware.

Change-Id: I07b23d21f9c556eb7575b892f87ab94adfe41116
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-03-08 14:38:15 -08:00
Rajeev Nandan
75037208b6 Revert "disp: msm: dsi: move backlight operations to post kickoff"
This reverts commit e60959b052.

Change-Id: I539522a6a01297fecfafb446a44e725679bc39c0
Signed-off-by: Rajeev Nandan <rajeevny@codeaurora.org>
2021-03-03 23:55:49 -08:00
qctecmdr
53ff8d853a Merge "disp: msm: sde: install retire fence offset property" 2021-03-03 12:03:35 -08:00
qctecmdr
1da70fd8f1 Merge "disp: msm: dsi: fix pclk divider calculation" 2021-03-03 11:18:22 -08:00
qctecmdr
10580c7895 Merge "disp: msm: add Makefile.am for standalone dlkm compilation" 2021-03-03 09:50:16 -08:00
Samantha Tran
e8cbb8822b disp: msm: add check for null pointer dereferencing
Add check for null pointers before accessing.

Change-Id: I33deb1e931098c246326a01e743a2db760320471
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-03-03 09:12:19 -08:00
qctecmdr
60471cb6a1 Merge "disp: msm: sde: enable precise vblank feature support for waipio" 2021-03-02 17:42:49 -08:00
qctecmdr
e252e85f29 Merge "disp: msm: dp: fix tpg configuration to handle widebus" 2021-03-02 16:14:12 -08:00
qctecmdr
3a47092f4d Merge "disp: msm: sde: only enable wb crop on cwb usecase" 2021-03-02 15:29:56 -08:00
qctecmdr
dc40891a91 Merge "disp: msm: sde: update wb irq ctrl with a distinct dcwb irq table" 2021-03-02 14:24:28 -08:00
Nilaan Gunabalachandran
8b5e6c2feb disp: msm: sde: only enable wb crop on cwb usecase
Writeback cropping should only be enabled in concurrent writeback
usecases, and otherwise can lead to writeback failures. This change
adds a check for this before enabling the feature.

Change-Id: I587c1e755810c836fb64291ec3b0005bc28efdc2
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-03-02 13:41:26 -08:00
qctecmdr
1269ba8e88 Merge "disp: msm: dp: fix disp_cc offsets for pixel clk dividers" 2021-03-02 13:25:08 -08:00
qctecmdr
b3c4aa6c8f Merge "disp: msm: dp: update link clock name in dp_parser" 2021-03-02 13:25:08 -08:00
Nilaan Gunabalachandran
3fd3c6b7e5 disp: msm: sde: update wb irq ctrl with a distinct dcwb irq table
With dedicated concurrent write back feature enabled, only one
cwb overflow irq is initialized. However, the table has not been
updated to reflect this. This can result in bad attempts to
register unavailable overflow irqs for different pingpongs.

This change creates a new dcwb irq table to be used when
dcwb is enabled.

Change-Id: Ib683b4cdaea2d2fe4f1131b92b1abaa096fa2cc0
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-03-02 14:23:10 -05:00
Sudarsan Ramesh
5133857184 disp: msm: dp: fix disp_cc offsets for pixel clk dividers
The offset for DP pixel clock configuration registers in disp_cc has
changed in waipio. Currently the driver is using incorrect offsets to
read M/N values to calculate SW MVID/NVID during MSA programming. This
results in a blank screen as the sink is not able to restore the pixel
clock.

This change fixes this issue by selecting the correct base address
based on dp core version.

Change-Id: I44214ce52c1bc346715362df0a138f1f8cc011e1
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-03-02 12:22:06 -05:00
Nilaan Gunabalachandran
8e2e3358d6 Revert "disp: msm: sde: Avoid kcallocs in atomic commit path"
This reverts commit 6886d03e4a.
It tries to memset the pstate from UI thread (crtc atomic check)
and crtc commit thread.

Change-Id: Ic9d3e5555d7085832df76025e53488d2b3365739
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-03-02 09:06:22 -05:00
Jayaprakash Madisetty
1b460b9200 disp: msm: sde: install retire fence offset property
Add changes to install retire fence offset property
and this configurable offset property can be used
to create speculative retire fences.

Change-Id: I0b5bf9bab5bfb811ddbc7a3e8813a3e801272d41
Signed-off-by: Jayaprakash Madisetty <jmadiset@codeaurora.org>
2021-03-02 12:54:39 +05:30
Sudarsan Ramesh
e66a2089f4 disp: msm: dp: update pll driver to fix clock names per target
With the change in the clock names for newer targets, this fix
updates the driver to support different clock names per target.

Change-Id: I58c35fce34356f8c79adb0ac8a907e2fb60813ae
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-03-01 11:09:15 -05:00
Veera Sundaram Sankaran
9a88e196b9 disp: msm: sde: enable precise vblank feature support for waipio
Enable the vblank feature to report the precise HW vsync timestamp
using the DRM vblank timestamp and counter hooks for waipio target.

Change-Id: If4224e19572b8e08cb76296d11b7154fe9a16375
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-02-26 13:49:29 -08:00