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


Groups > linux.kernel > #1679476

Re: [PATCH v1.1 2/2] drm: rcar-du: Repair vblank for DRM page flips using the VSP1

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Newsgroups linux.kernel
Subject Re: [PATCH v1.1 2/2] drm: rcar-du: Repair vblank for DRM page flips using the VSP1
Date Sun, 02 Jul 2017 16:30:02 +0200
Message-ID <tYO2S-3b9-47@gated-at.bofh.it> (permalink)
References <tXIiR-80-7@gated-at.bofh.it> <tXK1j-11t-1@gated-at.bofh.it> <tYO2S-3b9-49@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1499005382; bh=WlUH3C+3uSxacTM+eEQw6KL97gkaiD9VhNzkELixzJk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gbtmkgfzKrm16q4zgiOtC7xbQG5DfuaSfUaIwR8nbzbWiDRSElMmplxnUfFrYYp/w DY0Gkl1l+o/WEXUlOT0nzXK/ghQsxJy7RxEedNOqtwBw7Qn2fyNei7opFToAGhCHJc oC36kmKWoxvVRL8FJoKgxnEJLpHOni6h9wwiJo1g=
User-Agent KMail/4.14.10 (Linux/4.9.16-gentoo; KDE/4.14.32; x86_64; ; )
MIME-Version 1.0
Content-Transfer-Encoding 7Bit
Content-Type text/plain; charset="us-ascii"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 43
Organization linux.* mail to news gateway
X-Original-Cc Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>, linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie <airlied@linux.ie>, Mauro Carvalho Chehab <mchehab@kernel.org>, open list <linux-kernel@vger.kernel.org>
X-Original-Date Sun, 02 Jul 2017 17:23:24 +0300
X-Original-Message-ID <1681295.5XGp1sIbmj@avalon>
X-Original-References <cover.22236bc88adc598797b31ea82329ec99304fe34d.1498744799.git-series.kieran.bingham+renesas@ideasonboard.com> <6d71aa0796dd8892510d6911a280eba235398ed4.1498751638.git-series.kieran.bingham+renesas@ideasonboard.com> <87mv8pj2z2.wl%kuninori.morimoto.gx@renesas.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1679476

Show key headers only | View raw


Hi Morimoto-san,

On Friday 30 Jun 2017 08:32:04 Kuninori Morimoto wrote:
> Hi Kieran
> 
> > -static void rcar_du_vsp_complete(void *private)
> > +static void rcar_du_vsp_complete(void *private, bool completed)
> >  {
> >  	struct rcar_du_crtc *crtc = private;
> > 
> > -	rcar_du_crtc_finish_page_flip(crtc);
> > +	if (crtc->vblank_enable)
> > +		drm_crtc_handle_vblank(&crtc->crtc);
> > +
> > +	if (completed)
> > +		rcar_du_crtc_finish_page_flip(crtc);
> >  }
> 
> Here, this "vblank_enable" flag, timestamp will be update on
> drm_crtc_handle_vblank().
> 
> For example modetest Flip test, if we stop it by Ctrl+C, then, vblank_enable
> will be false, Then, vblank timestamp isn't updated on waiting method on
> drm_atomic_helper_wait_for_vblanks(). Thus we will have timeout error.

I've noticed this issue as well when testing Kieran's patch, and I will fix 
it.

> And, print complete is now indicated on VSP Frame End,
> in interlace input case, print complete will be indicated to user
> on each ODD, EVEN timing.
> 
> Before this patch, for example 1080i@60Hz, print complete indication
> happen in 30Hz.
> After this patch, in interlace case, indication coming 60Hz

Isn't this to be expected ? In 1080i@60Hz the frame rate is 60 frames per 
second, so shouldn't vertical blanking be reported at 60Hz ?

-- 
Regards,

Laurent Pinchart

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v1 2/2] drm: rcar-du: Repair vblank for DRM page flips using the VSP1 Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> - 2017-06-29 16:10 +0200
  [PATCH v1.1 2/2] drm: rcar-du: Repair vblank for DRM page flips using the VSP1 Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> - 2017-06-29 18:00 +0200
    Re: [PATCH v1.1 2/2] drm: rcar-du: Repair vblank for DRM page flips using the VSP1 Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2017-07-02 16:30 +0200

csiph-web