Commit-Graf

1893 Incheckningar

Upphovsman SHA1 Meddelande Datum
Chandan Uddaraju
2c252d9f5c disp: msm: wb: Add support for IRQs in new Pingpong blocks
For dedicated CWB pingpong blocks, the overflow irq needs
to be mapped properly to existing IRQ handlers. Add the
needed changes in code.

Change-Id: Ibf398faac60acc027e4577504f9292ac2b72bae2
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2021-02-19 12:53:09 -08:00
Chandan Uddaraju
1b7fba16bd disp: msm: sde: update RM to support dedicated CWB
Add dummy layer mixer blocks to be used for dedicated
CWB.

Change-Id: Ie1fe4fa7502cf5cf4dba3f2c129257887a20b7ad
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2021-02-19 12:53:09 -08:00
Chandan Uddaraju
4fe3d97078 sde: wb: add changes to support Dedicated-CWB
Add new capture/tap point as CRTC property for
D-CWB feature. Update the hardware blocks and
corresponding APIs to configure D-CWB data path.
Add new hardware pingpong blocks that
are dedicated for CWB.

Change-Id: I22576df1768b50f9f47d8527f62913b01ff4d9a7
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2021-02-19 12:52:59 -08:00
qctecmdr
359caa1be3 Merge "disp: msm: sde: add multirect error status for ubwc and meta" 2021-02-10 18:52:04 -08:00
Samantha Tran
73373271a7 disp: msm: sde: add multirect error status for ubwc and meta
This change adds support for error checking ubwc and meta error status
based off whether REC0 or RECT1 is used.

Change-Id: I7c39755da99a9d6c0d02b4ef16fa93b8ec7458a9
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-02-09 22:12:38 -08:00
qctecmdr
77b66f2f84 Merge "disp: msm: dp: add support to request dp link clk through mmrm" 2021-02-09 12:02:56 -08:00
Christina Oliveira
6092206a12 disp: msm: dp: add support to request dp link clk through mmrm
This change adds the support to request the dp link clk rate
through the mmrm driver. In the case the system can not
support the rate, user space is notified of the failure and
dp is diconnected.

Change-Id: I4a074054ce42425ca940d4aec505723724736b44
Signed-off-by: Christina Oliveira <coliveir@codeaurora.org>
2021-02-08 12:55:12 -08:00
Shashank Babu Chinta Venkata
23734fc295 disp: msm: dsi: reorder resource validation in probe
Reorder resource validation to report probe deferral
appropriately.

Change-Id: I63aab1b3282bda24dba2b84906564de290345fdd
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2021-02-04 10:22:17 -08:00
qctecmdr
6ba5291f77 Merge "disp: msm: sde: Avoid kcallocs in atomic commit path" 2021-02-02 16:15:40 -08:00
qctecmdr
457b3d3397 Merge "disp: msm: dp: fix modeset locking in dp_mst_connector_detect" 2021-01-30 22:17:05 -08:00
Satya Rama Aditya Pinapala
6fe6395a75 disp: msm: sde: use backlight_device_register to register for backlight device
Reverting the backlight register call, as devm_backlight_device_register is not
available in the abi whitelist.

Change-Id: Ieb200bd8fb9393397fd3f0e013e3f7573eda8a38
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-01-29 11:56:51 -08:00
Sudarsan Ramesh
d2f89901b1 disp: msm: dp: fix modeset locking in dp_mst_connector_detect
The modeset lock acquired in dp_mst_connector_detect is not
being released after the detection is completed, which
causes subsequent deadlock.

Added a call to drm_modeset_drop_locks when coming out of
dp_mst_connector_detect.

Change-Id: Ibce79934d0ac23fed4985291c5c6078cb982e812
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-01-29 11:36:10 -05:00
qctecmdr
6e1746d1f5 Merge "disp: msm: sde: clean up ctl setup blend stages" 2021-01-28 23:10:42 -08:00
qctecmdr
169fa37d1b Merge "disp: msm: sde: move IB bw vote from DISP RSC to APPS RSC" 2021-01-28 13:31:38 -08:00
qctecmdr
b5ea199f36 Merge "disp: msm: sde: fix vrefresh condition check in TE config" 2021-01-28 13:14:20 -08:00
qctecmdr
d9c8fb1cbd Merge "disp: msm: dp: set the output format YUV or RGB" 2021-01-28 12:57:43 -08:00
Nilaan Gunabalachandran
160a890600 disp: msm: sde: clean up ctl setup blend stages
Clean up ctl set up blend stages op to be more robust by
relying on global sspp stage register mapping.

Change-Id: I6d1594d52c275b6d848f51597a8f2411a8711b95
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-01-28 14:19:31 -05:00
Samantha Tran
6886d03e4a disp: msm: sde: Avoid kcallocs in atomic commit path
To avoid kcalloc for the multirect plane states and plane states will now
be stored sde crtc. These states are populated momentarily and accessed in
a single context for a handful of functions then are not used. This will
clean up parameters passed between functions in the commit path as well.

Change-Id: I6a8116a43c140b3f1c0464734032b8db13c1cfb0
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-01-28 08:04:08 -08:00
Yuan Zhao
a264f27680 disp: msm: dp: set the output format YUV or RGB
When doing mode set, check the given videomode, if it
can be only supported in YCBCR420, set the output
format to YUV420.

Change-Id: I74224e5ad70f4fd8834b5b1e19109d4868cc14ff
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2021-01-28 01:53:15 -08:00
Ravi Ranjan
53bcfe5906 mmm_color_format: Align NV12/NV21 formats to 128x32
NV12 and NV21 formats need to be aligned to 128x32 as per the
requirement.

Change-Id: Ic03ac5786703d8d46a2f2a57559ac334d4e66971
Signed-off-by: Ravi Ranjan <rravi@codeaurora.org>
2021-01-27 22:35:04 -08:00
qctecmdr
45644f811d Merge "disp: msm: update iommu parameter to orig_nents" 2021-01-27 18:54:47 -08:00
orion brody
a076fe6f5c disp: rotator: Add msm_rtb.h header for no_log support
rtb driver is moved to tracepoint method as of 5.10, and there is no proper
support for no_log variants of read/write operations. Add dummy no_log apis
to msm_rtb.h file as temporary solution, and include msm_rtb.h in rotator
for no_log support.

Change-Id: I3f833fdfb741039a30a7d23aee2b20b9f62e14e1
Signed-off-by: orion brody <obrody@codeaurora.org>
2021-01-26 13:10:24 -08:00
Amine Najahi
1cfb7a84a6 disp: msm: sde: fix vrefresh condition check in TE config
Fix invalid condition in TE configuration missed during
porting of previous change.

Change-Id: Ie6b1926e6fdd1e0ec3b520593b1e5cbfbf9e4202
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2021-01-26 13:40:26 -05:00
Christina Oliveira
43c0b07cdb disp: msm: sde: move IB bw vote from DISP RSC to APPS RSC
This change splits the APPS RSC bandwidth vote to use
MNOC and EBI and moves the IB bandwidth
vote from DISP RSC to APPS RSC.

Change-Id: Ib329a018cafdec33a6838bdb46c7f5ac2352dd88
Signed-off-by: Christina Oliveira <coliveir@codeaurora.org>
2021-01-26 09:45:37 -08:00
Yu Wu
f409da06b7 disp: msm: dsi: parse dsi pll codes from DT node
Parse pll codes from /soc/dsi_pll_codes node.

Change-Id: I09703cbe06e4daf458bf4ff284404c7f9d413e8b
2021-01-25 22:12:46 -08:00
qctecmdr
6732090d17 Merge "disp: msm: dsi: add new compatible strings for DSI PHY and controller" 2021-01-25 17:17:15 -08:00
qctecmdr
a63687bf87 Merge "techpack: Install headers for display techpack" 2021-01-25 16:09:10 -08:00
Manoj Kumar AVM
ac636ad746 techpack: Install headers for display techpack
These can be reference with the qti_display_kernel_headers header
library.

Change-Id: Id8b983bb2c7d9d3f999d93b88de953a8b606aa1b
Signed-off-by: Manoj Kumar AVM <mkavm@codeaurora.org>
2021-01-25 14:52:42 -08:00
Satya Rama Aditya Pinapala
f44bfc5e19 disp: msm: sde: update backlight register call
Change uses devm_backlight_device_register to register for backlight device
as backlight_device_register is deprecated as of 5.10. Change also removes
failure if cooling device is not present to avoid connector_init failures.

Change-Id: Icc834fa39ec0de221cc48e280637e6cbbf3451b4
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-01-21 17:53:32 -08:00
Prabhanjan Kandula
f6a6169748 disp: msm: include qcom iommu util header for early map
Recent iommu refactor changes moved few defines for early map to
qcom_iommu_util header. This change includes the iommu util header
for fixing compilation.

Change-Id: I4db203bc4131829d40aa86ddcb58f58a20a8a271
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2021-01-20 18:43:56 -08:00
Satya Rama Aditya Pinapala
b78db36c48 disp: msm: dsi: add new compatible strings for DSI PHY and controller
Change adds the new compatible version strings for DSI PHY and DSI CTRL
for waipio.

Change-Id: I1073034e608cace9d41cc04a9854f15f56828dfe
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-01-19 16:12:56 -08:00
Prabhanjan Kandula
eaa7be6e79 disp: disable dp comilation for waipio
This change disables dp compilation on waipio. This is required
till the missing abi symbols for dp compilation are available

Change-Id: Ib8f0a390870ead9c37e89641a49d12a91288c375
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2021-01-19 16:11:11 -08:00
qctecmdr
3774705522 Merge "disp: msm: re-factor debug bus logic to dump all test points" 2021-01-19 12:17:09 -08:00
Satya Rama Aditya Pinapala
c3c683472d disp: msm: dsi: remove custom upstream MSM DSI flags
Change removes the use of custom MSM DSI flags that will not be
available as part of GKI.2.0

Change-Id: I2337a54b1d6346ebdc18e9e6c3c8e7a07f421bdd
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-01-15 17:55:19 -08:00
Prabhanjan Kandula
2837d90418 disp: enable display driver compilation in vendor SI
This change adds required make file support to include
display driver in vendor SI compilation and packaging.

Change-Id: Ib7b97ac136b536da9a297f1a3725ff4b2107e2ed
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2021-01-15 10:13:54 -08:00
Samantha Tran
0bae60fcc6 disp: msm: update iommu parameter to orig_nents
iommu_map_sg has been updated and is expecting argument
orig_nents instead of nents. This change updates the parameter
in places where that function is being used.

Change-Id: I3b15485e3f0186f1d2f1c81a8205c46b521893f3
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-01-15 09:55:52 -08:00
Prabhanjan Kandula
77f7be6b12 disp: msm: enable waipio gki config for dlkm compilation
This change enables compilation of sde, dsi, dp, dp_mst, rsc etc.
for waipio gki config. Change also includes minor fixes in make files
for dlkm.

Change-Id: Ia3f8cfa43ba84239cd7606215196ff57c6a43215
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2021-01-15 00:34:58 -08:00
Samantha Tran
13bb35435c disp: add changes to generate display dlkm in android
Add Android make files and Kbuild files to support dlkm
for display driver. Also resolve header and config issues
to allow successful compilation of display driver.

Change-Id: I04d6233864ea54c0a808b295fbdccb83058f1fd2
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2021-01-15 00:32:42 -08:00
Linux Build Service Account
8bb1e0a34d Merge "disp: msm: dsi: update panel commands for panel operating mode switch" into display-kernel.lnx.5.10 2021-01-13 15:27:14 -08:00
Linux Build Service Account
43a74b1467 Merge "disp: msm: sde: simplify wait for active function" into display-kernel.lnx.5.10 2021-01-13 14:37:32 -08:00
Linux Build Service Account
9f1d12098e Merge "disp: msm: dp: replace dp clock trees with single nodes" into display-kernel.lnx.5.10 2021-01-13 14:24:34 -08:00
Linux Build Service Account
6c367a8fed Merge "disp: msm: dsi: rework DSI PLL to be configured within PHY" into display-kernel.lnx.5.10 2021-01-13 14:24:33 -08:00
Linux Build Service Account
a8ca469548 Merge "disp: msm: remove use of drm_display_mode vrefresh" into display-kernel.lnx.5.10 2021-01-13 14:23:33 -08:00
Linux Build Service Account
bcce6e27b2 Merge "disp: msm: use connector properties to expose and set panel mode" into display-kernel.lnx.5.10 2021-01-13 14:23:32 -08:00
Amine Najahi
08358fd857 disp: msm: remove use of drm_display_mode vrefresh
Use of drm_display_mode vrefresh is being deprecated in
upstream DRM framework. Downstream driver need to use
drm_mode_vrefresh API from now on.

This change removes dependency on drm_display_mode vrefresh
and replaces it with drm_mode_vrefresh API in SDE, DSI and
DP driver. In addition, it also modifies drm_display_mode clock
to align with upstream approach where an uncompressed mode clock
is required to match drm_mode_vrefresh API.

Change-Id: Ie972a2e140adfd81c4e68df8e7bc69feaaca22e1
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2021-01-13 16:08:27 -05:00
Lei Chen
8cdb80455f disp: msm: dsi: update panel commands for panel operating mode switch
Update panel commands to support panel operating mode switch in
one timing node.

Change-Id: Ieb8303cebe78c699dfd5f274830418e87655ff56
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
2021-01-13 07:43:52 -08:00
Lei Chen
ab3f86f918 disp: msm: use connector properties to expose and set panel mode
Expose panel mode from kernel to SDM with SDE connector property
CONNECTOR_PROP_MODE_INFO and set panel mode from SDM to kernel
with SDE connector property CONNECTOR_PROP_SET_PANEL_MODE for
avoiding private change in upstream code in QGKI kernel.

Change-Id: I0629dad9399967cc1118ac02ce30597076ca367d
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
2021-01-13 23:40:22 +08:00
Yuan Zhao
600416fa77 disp: msm: dp: replace dp clock trees with single nodes
The current pll driver models the entire DP clock
hierarchy using the clock framework. This creates
unnecessary dependency between the dp driver and
the clock driver and also limits the flexibility
to dp driver when configuring the DP clocks.

This change models these clocks as single nodes
and provide full control to the dp driver and
also minimizes the dependency on the clock driver.

Change-Id: Id5221441ea33b576e7c543396a12cbeb7b44d319
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2021-01-13 01:18:08 -08:00
Satya Rama Aditya Pinapala
0a93edbae6 disp: msm: dsi: rework DSI PLL to be configured within PHY
Change avoids clock framework APIs to configure the DSI PHY
PLL. It follows HW recommendation to set the byte and pclk
dividers.

Change-Id: I8c110f3997e4ec4c2eaa28778b70091855725ab8
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-01-12 23:49:11 -08:00
Linux Build Service Account
819630e6b0 Merge "drm: msm: remove YUV format setting" into display-kernel.lnx.5.10 2021-01-12 22:09:13 -08:00