Skip to content

drm/tegra: Fix CRTC association with outputs

Thierry Reding 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 Latest2 patches 3 repliesIn review
  2. v12 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/tegra: Fix possible CRTC mask for RGB outputsdrivers/gpu/drm/tegra/rgb.c+1 -10 replies
2/2drm/tegra: Obtain head number from DTDocumentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt drivers/gpu/drm/tegra/dc.c+42 -23 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchStephen Warren
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] drm/tegra: Fix CRTC association with outputs

The Tegra DRM driver assumes that CRTCs are probed in the order listed in the DT. While DT makes no such guarantees in the first place, this used to work fine. With the introduction of the panel support, however, more often than not one of the CRTCs will defer probing (caused by the panel not having been registered yet) and the assumptions are broken.

To fix this, we use the new drm_crtc_mask() function to obtain the mask of the display controller that an RGB output can be associated with, thereby making it resistant to changes in probe order.

A second patch is required to obtain the number of the head from the device tree, since we can no longer rely on the probe order providing us with the right one.

Thierry

Thierry Reding (2):
drm/tegra: Fix possible CRTC mask for RGB outputs drm/tegra: Obtain head number from DT

 .../bindings/gpu/nvidia,tegra20-host1x.txt         |  3 ++
 drivers/gpu/drm/tegra/dc.c                         | 41 ++++++++++++++++++++--
 drivers/gpu/drm/tegra/rgb.c                        |  2 +-
 3 files changed, 43 insertions(+), 3 deletions(-)
Signature · 1 line
1.8.4.2