Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4062725ybd; Tue, 25 Jun 2019 13:23:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+Wx4rmQdAnjB2cnrSAUYG2FTo9WZ3ty4i+h2906SGlG+FIKZVGGEAnyCFBpL5vDW5ymCl X-Received: by 2002:a17:902:903:: with SMTP id 3mr577930plm.281.1561494212230; Tue, 25 Jun 2019 13:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561494212; cv=none; d=google.com; s=arc-20160816; b=RBTP+kRNxyHSdOb3mwzNmdJRFiEVyFmY+8ff1NJQqkxuTL+ZxDdEYO7vZWngMi6M+p FTZiYw1KUppepXGVdQoJM/mWBhmfmcx0aax2oits8BoEXcghbrCyrfv+qBxAFvn7rSBt eD+Pu20SSyWWfhgF1p2H3GZwG/t+QgBsOQQ8BMIUu3tu6hU7C2twyyn0XSA2VJL5oblv hF+XH4cI2zYvN4AJb+X62nun1mEmWryisr/lTI6rrQ9TtTpPvLJiOLYj5gyuLA2zDdrG ZLOO+GA+/KKtIqmEoXMoAeOgXLwH/S+ZtBfqxIKjX67wvoX7NGjPvLi7++0bovIkFUVE tSKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=IbaPTmVSK1Auuensg5mZK66IsBxApH2FblnD8ib5Dg0=; b=0S4x3Dt/1R84WrF8d5aD+3Bnc8D6JtqSWwCqw7+Un1p5UtGytZ+Vqw7eea9FPlEj2a illuP7rIy7Be/6EjAq9xdjqrGgdIDx8QZCMCt58ze4oGCOUDg4MFhv1k/vEJTj7jopP1 7w+M0EIjWFGavz9qaXshacEXQSsY6ehOpX5rNkI4w7p9UYe5M29rS4wJrCdTqqwj7lYA hNJHLiD7uteXXXNmIbSKAPyrKzTO82nrRRII54pxKwJPnvfovJoMQwKTPZqBj0PM5kaz LO285juC8A9GO/G+BCDA1zPTcnFwRVXRrRgXyrZLzBrUqsew0WL3jSjwf6jr1KXX2SQF XMfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=DZxe9WXK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2si1043038pls.196.2019.06.25.13.23.15; Tue, 25 Jun 2019 13:23:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=DZxe9WXK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726776AbfFYUWt (ORCPT + 99 others); Tue, 25 Jun 2019 16:22:49 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:44344 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbfFYUWt (ORCPT ); Tue, 25 Jun 2019 16:22:49 -0400 Received: by mail-ed1-f66.google.com with SMTP id k8so28974116edr.11 for ; Tue, 25 Jun 2019 13:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=IbaPTmVSK1Auuensg5mZK66IsBxApH2FblnD8ib5Dg0=; b=DZxe9WXKrsmxaaroa2rbKK1EsEntZAaqVR/+UjyyI7hGgL3bekEganJsyf+fyFbk0X PktDQ/QOboGkcqQb2mlJEWZ60RRAFBy6DQixbZ+b8tm+c4oLCvC4oKBiMlUvm+ludtHT A88M05J210TfYPMN3036eGm3lcpipS7i2woEk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=IbaPTmVSK1Auuensg5mZK66IsBxApH2FblnD8ib5Dg0=; b=BnDbSVjgroqksEiDYcJs+BKdr+kvpXVQQi858CVc4ly4tHXvBs0oIDYsiXpt0FuAwt kjjnV98LSQLC1PxeCfwkRHKHd+34oIGj282cu9PYsExBE9lIDSPNbnLDF88nd9v6kQvg 0lHAylDyiDDpJQRzlusRln93ZEBzuooILM2Y1qZZsOZAw30TYpl6+Z/2BPEwcRn46wEU 6GhnWLPK97bD5CulR3wk/17Pn9Tp/y6hlhMP01i03mixQKr12EOcC1rt37awD7PCRY9j YoLAL4TJUyxo68TsrPHVcOpK9n7ji8fpPAB0Hlon7+8TpsRfDSYrvJ0HHBcpmeOUTNmg SalA== X-Gm-Message-State: APjAAAXM/hnTAZx3zlNOXMYrP9Ask8bjqiaKMmloRynYmt6FgedWWlzC m/5PjtlMX6oqINw2l3eZ2iJDSg== X-Received: by 2002:a17:906:b211:: with SMTP id p17mr410520ejz.11.1561494168042; Tue, 25 Jun 2019 13:22:48 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id s5sm4839873edh.3.2019.06.25.13.22.46 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 25 Jun 2019 13:22:47 -0700 (PDT) Date: Tue, 25 Jun 2019 22:22:44 +0200 From: Daniel Vetter To: Robert Beckett Cc: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 4/4] drm/imx: only send event on crtc disable if kept disabled Message-ID: <20190625202244.GG12905@phenom.ffwll.local> Mail-Followup-To: Robert Beckett , dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <6599f538740632c5524bab86514b8ba026798537.1561483965.git.bob.beckett@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6599f538740632c5524bab86514b8ba026798537.1561483965.git.bob.beckett@collabora.com> X-Operating-System: Linux phenom 4.19.0-5-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 25, 2019 at 06:59:15PM +0100, Robert Beckett wrote: > The event will be sent as part of the vblank enable during the modeset > if the crtc is not being kept disabled. > > Fixes: 5f2f911578fb ("drm/imx: atomic phase 3 step 1: Use atomic configuration") > > Signed-off-by: Robert Beckett Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/imx/ipuv3-crtc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/imx/ipuv3-crtc.c b/drivers/gpu/drm/imx/ipuv3-crtc.c > index e04d6efff1b5..c436a28d50e4 100644 > --- a/drivers/gpu/drm/imx/ipuv3-crtc.c > +++ b/drivers/gpu/drm/imx/ipuv3-crtc.c > @@ -94,7 +94,7 @@ static void ipu_crtc_atomic_disable(struct drm_crtc *crtc, > drm_crtc_vblank_off(crtc); > > spin_lock_irq(&crtc->dev->event_lock); > - if (crtc->state->event) { > + if (crtc->state->event && !crtc->state->active) { > drm_crtc_send_vblank_event(crtc, crtc->state->event); > crtc->state->event = NULL; > } > -- > 2.18.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch