Thread (1 message) 1 message, 1 author, 2014-01-13

Re: [PATCH 1/2] drm/tegra: Fix possible CRTC mask for RGB outputs

From: Stephen Warren <hidden>
Date: 2014-01-13 17:44:26
Also in: dri-devel

Possibly related (same subject, not in this thread)

On 01/13/2014 07:21 AM, Thierry Reding wrote:
The mask of possible CRTCs that an output (DRM encoder) can be attached
to is relative to the position within the DRM device's list of CRTCs.
Deferred probing can cause this to not match the pipe number associated
with a CRTC. Use the newly introduced drm_crtc_mask() to compute the
mask by looking up the proper index of the given CRTC in the list.
quoted hunk
diff --git a/drivers/gpu/drm/tegra/rgb.c b/drivers/gpu/drm/tegra/rgb.c
quoted hunk
@@ -258,7 +258,7 @@ int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc)
-	rgb->output.encoder.possible_crtcs = 1 << dc->pipe;
+	rgb->output.encoder.possible_crtcs = drm_crtc_mask(&dc->base);
For me, on top of either next-20140109 or next-20140113, this causes:
drivers/gpu/drm/tegra/rgb.c: In function ‘tegra_dc_rgb_init’:
drivers/gpu/drm/tegra/rgb.c:261:2: error: implicit declaration of function ‘drm_crtc_mask’ [-Werror=implicit-function-declaration]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help