Re: [PATCH xserver] modesetting: Fix inverted check in dri2 WaitMSC
On Mon, 2018-04-16 at 22:58 +, Mike Lothian wrote: > I've applied this too as part of my testing, I don't see a dri3 file > - does that mean the dri2 one covers both dri2&3? It covers just DRI2. In the DRI3 model the equivalent operation lives in Present (.../present.c), and the code there does not have this bug. > If it doesn't please ignore > > Tested-by: Mike LothianMerged, thanks: remote: I: patch #217290 updated using rev 78b6f940217c127f0f345b7710aa5994c6ded99c. remote: I: 1 patch(es) updated to state Accepted. To ssh://git.freedesktop.org/git/xorg/xserver 4e92c51ce4..78b6f94021 master -> master - ajax ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xserver] modesetting: Fix inverted check in dri2 WaitMSC
> Frank Binnshat am 16. April 2018 um 22:17 > geschrieben: > > > Adam Jackson writes: > > > ms_queue_vblank() returns false on failure. > > > > Reported-by: Chris Wilson > > Signed-off-by: Adam Jackson > > Reviewed-by: Frank Binns > > > --- > > hw/xfree86/drivers/modesetting/dri2.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/hw/xfree86/drivers/modesetting/dri2.c > > b/hw/xfree86/drivers/modesetting/dri2.c > > index fd36aa118..96ef7 100644 > > --- a/hw/xfree86/drivers/modesetting/dri2.c > > +++ b/hw/xfree86/drivers/modesetting/dri2.c > > @@ -749,7 +749,7 @@ ms_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr > > draw, CARD64 target_msc, > > target_msc = current_msc; > > > > ret = ms_queue_vblank(crtc, MS_QUEUE_ABSOLUTE, target_msc, > > _msc, seq); > > -if (ret) { > > +if (!ret) { > > static int limit = 5; > > if (limit) { > > xf86DrvMsg(scrn->scrnIndex, X_WARNING, > A few lines later there is: if (!ms_queue_vblank(crtc, MS_QUEUE_ABSOLUTE, request_msc, _msc, seq)) { static int limit = 5; if (limit) { xf86DrvMsg(scrn->scrnIndex, X_WARNING, "%s:%d get vblank counter failed: %s\n", __FUNCTION__, __LINE__, strerror(errno)); limit--; } goto out_free; } perhaps that can be changed into the same style ? Either with or without ret i do not care but the same. re, wh > ___ > xorg-devel@lists.x.org: X.Org development > Archives: http://lists.x.org/archives/xorg-devel > Info: https://lists.x.org/mailman/listinfo/xorg-devel ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xserver] modesetting: Fix inverted check in dri2 WaitMSC
I've applied this too as part of my testing, I don't see a dri3 file - does that mean the dri2 one covers both dri2&3? If it doesn't please ignore Tested-by: Mike LothianOn Mon, 16 Apr 2018 at 21:17 Frank Binns wrote: > Adam Jackson writes: > > > ms_queue_vblank() returns false on failure. > > > > Reported-by: Chris Wilson > > Signed-off-by: Adam Jackson > > Reviewed-by: Frank Binns > > > --- > > hw/xfree86/drivers/modesetting/dri2.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/hw/xfree86/drivers/modesetting/dri2.c > b/hw/xfree86/drivers/modesetting/dri2.c > > index fd36aa118..96ef7 100644 > > --- a/hw/xfree86/drivers/modesetting/dri2.c > > +++ b/hw/xfree86/drivers/modesetting/dri2.c > > @@ -749,7 +749,7 @@ ms_dri2_schedule_wait_msc(ClientPtr client, > DrawablePtr draw, CARD64 target_msc, > > target_msc = current_msc; > > > > ret = ms_queue_vblank(crtc, MS_QUEUE_ABSOLUTE, target_msc, > _msc, seq); > > -if (ret) { > > +if (!ret) { > > static int limit = 5; > > if (limit) { > > xf86DrvMsg(scrn->scrnIndex, X_WARNING, > > ___ > xorg-devel@lists.x.org: X.Org development > Archives: http://lists.x.org/archives/xorg-devel > Info: https://lists.x.org/mailman/listinfo/xorg-devel ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xserver] modesetting: Fix inverted check in dri2 WaitMSC
Adam Jacksonwrites: > ms_queue_vblank() returns false on failure. > > Reported-by: Chris Wilson > Signed-off-by: Adam Jackson Reviewed-by: Frank Binns > --- > hw/xfree86/drivers/modesetting/dri2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/xfree86/drivers/modesetting/dri2.c > b/hw/xfree86/drivers/modesetting/dri2.c > index fd36aa118..96ef7 100644 > --- a/hw/xfree86/drivers/modesetting/dri2.c > +++ b/hw/xfree86/drivers/modesetting/dri2.c > @@ -749,7 +749,7 @@ ms_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr > draw, CARD64 target_msc, > target_msc = current_msc; > > ret = ms_queue_vblank(crtc, MS_QUEUE_ABSOLUTE, target_msc, > _msc, seq); > -if (ret) { > +if (!ret) { > static int limit = 5; > if (limit) { > xf86DrvMsg(scrn->scrnIndex, X_WARNING, ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
[PATCH xserver] modesetting: Fix inverted check in dri2 WaitMSC
ms_queue_vblank() returns false on failure. Reported-by: Chris WilsonSigned-off-by: Adam Jackson --- hw/xfree86/drivers/modesetting/dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c index fd36aa118..96ef7 100644 --- a/hw/xfree86/drivers/modesetting/dri2.c +++ b/hw/xfree86/drivers/modesetting/dri2.c @@ -749,7 +749,7 @@ ms_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw, CARD64 target_msc, target_msc = current_msc; ret = ms_queue_vblank(crtc, MS_QUEUE_ABSOLUTE, target_msc, _msc, seq); -if (ret) { +if (!ret) { static int limit = 5; if (limit) { xf86DrvMsg(scrn->scrnIndex, X_WARNING, -- 2.16.2 ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel