Skip to content

Tegra: Add DC one-shot support

Mark Zhang dri-devel linux-tegra 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 16 repliesIn review
  2. v1 RFC12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Define one-shot flag in drm_display_mode->private_flags, according to Daniel's comments
- Remove the "te-polarity" property in dts. The TE polarity is determined by panel so there is not necessary to define it in DTS. We can define it in panel driver.
- Rebased the patch series on top of 6/29 linux-next.
- Fix a bug in DSI suspend DPMS event, to wait DSI idle before suspend
- Fix a bug in DSI driver to correct the DPMS state(patch #11)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12drm: panel: Add a new private mode flag: DRM_PANEL_FLAG_PREFER_ONE_SHOTinclude/drm/drm_panel.h+2 -02 replies
2/12drm: panel: Add one-shot flag to Sharp lq101r1sx01 driverdrivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c+1 -00 replies
3/12drm: panel: Turn on TE(Tearing Effect) on Sharp lq101r1sx01drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c+7 -00 replies
4/12drm: panel: Add DRM panel private mode flag: TE polarityinclude/drm/drm_panel.h+2 -00 replies
5/12drm: panel: Set TE polarity flag in Sharp lq101r1sx01 driverdrivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c+2 -10 replies
6/12drm/tegra: Set NC(Non-contiguous) mode to dc for one-shotdrivers/gpu/drm/tegra/dc.c drivers/gpu/drm/tegra/dc.h+32 -60 replies
7/12drm/panel: Add panel func: idle/busyinclude/drm/drm_panel.h+18 -00 replies
8/12drm: dsi: Add "enter idle" & "exit idle" dcs functionsdrivers/gpu/drm/drm_mipi_dsi.c include/drm/drm_mipi_dsi.h+38 -02 replies
9/12drm: panel: Add idle/busy in Sharp lq101r1sx01 driverdrivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c+26 -00 replies
10/12drm/tegra: Suspend dc/dsi/panel in one-shot modedrivers/gpu/drm/tegra/dc.c drivers/gpu/drm/tegra/drm.h drivers/gpu/drm/tegra/dsi.c+132 -52 replies
11/12drm/tegra: dsi: Set connector DPMS state when enable/disabledrivers/gpu/drm/tegra/dsi.c+3 -00 replies
12/12JUST FOR TEST: Add one-shot trigger to update displaydrivers/gpu/drm/tegra/dc.c drivers/gpu/drm/tegra/drm.h+38 -010 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/12] Tegra: Add DC one-shot support

This patch set adds the Tegra dc one-shot support. The patch set is tested on Dalmore + Sharp lq101r1sx01.

Please be noticed that the patch #12 is not part of the feature, it's just used for testing.

Changes in v2:
- Define one-shot flag in drm_display_mode->private_flags, according to Daniel's comments
- Remove the "te-polarity" property in dts. The TE polarity is determined by panel so there is not necessary to define it in DTS. We can define it in panel driver.
- Rebased the patch series on top of 6/29 linux-next.
- Fix a bug in DSI suspend DPMS event, to wait DSI idle before suspend
- Fix a bug in DSI driver to correct the DPMS state(patch #11)

Mark Zhang (12):
drm: panel: Add a new private mode flag:
DRM_PANEL_FLAG_PREFER_ONE_SHOT
drm: panel: Add one-shot flag to Sharp lq101r1sx01 driver
drm: panel: Turn on TE(Tearing Effect) on Sharp lq101r1sx01
drm: panel: Add DRM panel private mode flag: TE polarity
drm: panel: Set TE polarity flag in Sharp lq101r1sx01 driver drm/tegra: Set NC(Non-contiguous) mode to dc for one-shot drm/panel: Add panel func: idle/busy
drm: dsi: Add "enter idle" & "exit idle" dcs functions
drm: panel: Add idle/busy in Sharp lq101r1sx01 driver drm/tegra: Suspend dc/dsi/panel in one-shot mode drm/tegra: dsi: Set connector DPMS state when enable/disable JUST FOR TEST: Add one-shot trigger to update display

 drivers/gpu/drm/drm_mipi_dsi.c                  |   36 +++++++
 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c |   35 +++++++
 drivers/gpu/drm/tegra/dc.c                      |  128 +++++++++++++++++++++--
 drivers/gpu/drm/tegra/dc.h                      |    5 +
 drivers/gpu/drm/tegra/drm.h                     |    4 +
 drivers/gpu/drm/tegra/dsi.c                     |   79 +++++++++++++-
 include/drm/drm_mipi_dsi.h                      |    2 +
 include/drm/drm_panel.h                         |   22 ++++
 8 files changed, 300 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.9.5