Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1550552 > unrolled thread

Re: [PATCH] drm/meson: Fix plane atomic check when no crtc for the plane

Started byDaniel Vetter <daniel@ffwll.ch>
First post2017-01-04 10:20 +0100
Last post2017-01-04 11:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] drm/meson: Fix plane atomic check when no crtc for the  plane Daniel Vetter <daniel@ffwll.ch> - 2017-01-04 10:20 +0100
    Re: [PATCH] drm/meson: Fix plane atomic check when no crtc for the  plane Neil Armstrong <narmstrong@baylibre.com> - 2017-01-04 11:00 +0100

#1550552 — Re: [PATCH] drm/meson: Fix plane atomic check when no crtc for the plane

FromDaniel Vetter <daniel@ffwll.ch>
Date2017-01-04 10:20 +0100
SubjectRe: [PATCH] drm/meson: Fix plane atomic check when no crtc for the plane
Message-ID<sVPTI-2FK-5@gated-at.bofh.it>
On Tue, Jan 03, 2017 at 10:20:54AM +0100, Neil Armstrong wrote:
> When no CRTC is associated with the plane, the meson_plane_atomic_check()
> call breaks the kernel with an Oops.
> 
> Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Controller")
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>

Makes sense, pls send a pull request with this to Dave.
-Daniel

> ---
>  drivers/gpu/drm/meson/meson_plane.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/meson/meson_plane.c b/drivers/gpu/drm/meson/meson_plane.c
> index 4942ca0..7890e30 100644
> --- a/drivers/gpu/drm/meson/meson_plane.c
> +++ b/drivers/gpu/drm/meson/meson_plane.c
> @@ -51,6 +51,9 @@ static int meson_plane_atomic_check(struct drm_plane *plane,
>  	struct drm_crtc_state *crtc_state;
>  	struct drm_rect clip = { 0, };
>  
> +	if (!state->crtc)
> +		return 0;
> +
>  	crtc_state = drm_atomic_get_crtc_state(state->state, state->crtc);
>  	if (IS_ERR(crtc_state))
>  		return PTR_ERR(crtc_state);
> -- 
> 1.9.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

[toc] | [next] | [standalone]


#1550592

FromNeil Armstrong <narmstrong@baylibre.com>
Date2017-01-04 11:00 +0100
Message-ID<sVQwp-2U6-3@gated-at.bofh.it>
In reply to#1550552
On 01/04/2017 10:10 AM, Daniel Vetter wrote:
> On Tue, Jan 03, 2017 at 10:20:54AM +0100, Neil Armstrong wrote:
>> When no CRTC is associated with the plane, the meson_plane_atomic_check()
>> call breaks the kernel with an Oops.
>>
>> Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Controller")
>> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> 
> Makes sense, pls send a pull request with this to Dave.
> -Daniel

Hi Daniel,

OK, I will push this one with the CVBS fixes I just pushed.

Thanks,
Neil

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web