Commit gráf

1998 Commit-ok

Szerző SHA1 Üzenet Dátum
Xiaowen Wu
52edf46bbd disp: msm: dp: add dpcd/edid support to dp aux simulator
Add dpcd/edid support to dp aux simulator to enable below features
as options:

  skip edid read
  skip link training
  skip dpcd read
  skip dpcd write
  skip hot plug
  skip sideband message

Also added debugfs support to update dpcd/edid and enable/disable
above features.

Change-Id: Ifa9153f2f00442f3cd5ee3db63fa93384ebc638f
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Karim Henain <khenain@codeaurora.org>
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-02-10 22:34:33 -05:00
Xiaowen Wu
5908171576 disp: msm: dp: add dp-mst sideband simulator
Add sideband simulator aux bridge to re-direct sideband message
from aux channel to internal emulation software stack. When this
bridge is connected to DP device, simulator will read ports configuration
from device tree and fake all sideband messages.

Change-Id: Ib8af2e0f4ba9b0d02413d40b796e5006b376ada8
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Karim Henain <khenain@codeaurora.org>
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-02-10 22:34:33 -05:00
Xiaowen Wu
c8a050c722 disp: msm: dp: add dp-mst protocol simulator helper
Add dp-mst sideband message protocol simulator to simulate
downstream reply. This is useful for special bridge that
doesn't support sideband message.

Change-Id: I7670abd3505affb9db3232747b86681cea0b4310
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Karim Henain <khenain@codeaurora.org>
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-02-10 22:34:33 -05:00
Xiaowen Wu
bdf97a004b disp: msm: dp: add dp aux bridge framework support
Create the framework to support external dp aux bridge device which
can handle DPCD/I2C/HPD from external.

Change-Id: Iabd0998efc8bf7134d186b1751d219c00217385c
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Karim Henain <khenain@codeaurora.org>
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-02-10 22:34:33 -05:00
Sudarsan Ramesh
b1120f3470 disp: enable dp compilation on waipio
Enable DP and DP_MST compilation flags for Waipio.

Change-Id: I5b821346c19132a09d3a1100946e8ddb9e8728ac
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-02-10 22:34:33 -05:00
qctecmdr
359caa1be3 Merge "disp: msm: sde: add multirect error status for ubwc and meta" 2021-02-10 18:52:04 -08:00
Sandeep Gangadharaiah
ed103ed1ef disp: msm: dp: fix dsc resource bookkeeping for mst
DP driver maintains the number of allocated DSCs per stream for managing
the availability of DSC blocks for each stream. In the current driver,
if there are errors in the disable path, it is possible for the refcount
to go negative thereby affecting the availability of DSC blocks in
subsequent enables.

This change fixes the refcount logic by making sure the DSC count in the
context correctly reflects the usage.

Change-Id: Id595ec87c186ddb3ed300e1390384f367ef79148
Signed-off-by: Sandeep Gangadharaiah <sandgang@codeaurora.org>
2021-02-10 09:54:54 -05: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
Satya Rama Aditya Pinapala
3ff78e8f7d disp: msm: dsi: set source to xo while turning off PLL
HW recommendation is to park the DSI byte clock and pixel clock at XO
before turning them off. The change parses XO from the DT and sets the
clock source as XO while turning off the PLL.

Change-Id: I788951d6341149300e80e8db4a5a3fd2c4eb3e03
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-02-01 16:03:20 -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
Christopher Braga
d036a97b00 disp: msm: sde: replace demura pipe index cap. with general pipe index
Generalize the demura pipe index capability on sde_plane objects to
instead provide the relative pipe index for all plane types. This
information can be used by clients to fully determine a plane type
and its position.

Change-Id: I597da0dab92c249b16934b9327353e4937635606
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2021-01-22 14:59: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