* [i.MX6 DRM IPUv3] Regression 4.9-rc5: greenish screen with YUV420 video
@ 2016-11-17 9:43 Krzysztof Hałasa
2016-12-01 14:54 ` Philipp Zabel
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Hałasa @ 2016-11-17 9:43 UTC (permalink / raw)
To: Philipp Zabel, David Airlie, dri-devel, linux-kernel
Hi,
The following GStreamer pipeline causes screen to become green with
v4.9-rc4+:
gst-launch-1.0 udpsrc uri=udp://239.1.2.2:5100 reuse=true caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! h264parse ! v4l2video1dec capture-io-mode=dmabuf ! kmssink name=imx-drm sync=0
Reverting "drm/imx: ipuv3-plane: Skip setting u/vbo only when we don't
need modeset", commit 81d553545a1510ff7c7c00cbc9b57d6172d411a4, fixes
the problem.
Hardware is Gateworks Ventana GW5400, i.MX6Q, HDMI output, no X (console
only).
--
Krzysztof Halasa
Industrial Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [i.MX6 DRM IPUv3] Regression 4.9-rc5: greenish screen with YUV420 video
2016-11-17 9:43 [i.MX6 DRM IPUv3] Regression 4.9-rc5: greenish screen with YUV420 video Krzysztof Hałasa
@ 2016-12-01 14:54 ` Philipp Zabel
2016-12-02 13:05 ` Krzysztof Hałasa
0 siblings, 1 reply; 3+ messages in thread
From: Philipp Zabel @ 2016-12-01 14:54 UTC (permalink / raw)
To: Krzysztof Hałasa; +Cc: David Airlie, dri-devel, linux-kernel
Hi Krzysztof,
Am Donnerstag, den 17.11.2016, 10:43 +0100 schrieb Krzysztof Hałasa:
> Hi,
>
> The following GStreamer pipeline causes screen to become green with
> v4.9-rc4+:
>
> gst-launch-1.0 udpsrc uri=udp://239.1.2.2:5100 reuse=true caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! h264parse ! v4l2video1dec capture-io-mode=dmabuf ! kmssink name=imx-drm sync=0
>
> Reverting "drm/imx: ipuv3-plane: Skip setting u/vbo only when we don't
> need modeset", commit 81d553545a1510ff7c7c00cbc9b57d6172d411a4, fixes
> the problem.
>
> Hardware is Gateworks Ventana GW5400, i.MX6Q, HDMI output, no X (console
> only).
I had already (accidentally) fixed this with 3fd8b292ae6b ("drm/imx:
ipuv3-plane: merge ipu_plane_atomic_set_base into atomic_update").
The bug is in this hunk in commit 81d553545a15:
@@ -118,7 +117,7 @@ static void ipu_plane_atomic_set_base(struct ipu_plane *ipu_plane,
switch (fb->pixel_format) {
case DRM_FORMAT_YUV420:
case DRM_FORMAT_YVU420:
- if (old_state->fb)
+ if (!drm_atomic_crtc_needs_modeset(crtc_state))
break;
/*
When the plane is first enabled, a modeset is not needed, so
drm_atomic_crtc_needs_modeset(crtc_state) is false and
ipu_plane_atomic_set_base then skipped the ubo/vbo setup.
When moving the code around in 3fd8b292ae6b I assumed that this
condition should never be true where the code ended up (as it was for
old_state->fb before), and I removed it.
regards
Philipp
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [i.MX6 DRM IPUv3] Regression 4.9-rc5: greenish screen with YUV420 video
2016-12-01 14:54 ` Philipp Zabel
@ 2016-12-02 13:05 ` Krzysztof Hałasa
0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Hałasa @ 2016-12-02 13:05 UTC (permalink / raw)
To: Philipp Zabel; +Cc: David Airlie, dri-devel, linux-kernel
Philipp Zabel <p.zabel@pengutronix.de> writes:
> I had already (accidentally) fixed this with 3fd8b292ae6b ("drm/imx:
> ipuv3-plane: merge ipu_plane_atomic_set_base into atomic_update").
Thanks, I've merged your pza/imx-drm/next and it now works.
--
Krzysztof Halasa
Industrial Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-02 13:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-17 9:43 [i.MX6 DRM IPUv3] Regression 4.9-rc5: greenish screen with YUV420 video Krzysztof Hałasa
2016-12-01 14:54 ` Philipp Zabel
2016-12-02 13:05 ` Krzysztof Hałasa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome