* [PATCH igt] igt/kms_frontbuffer_tracking: Disable FBC testing for -ENODEV
@ 2018-02-11 18:54 Chris Wilson
2018-02-15 9:21 ` Chris Wilson
0 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2018-02-11 18:54 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/kms_frontbuffer_tracking.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 602707f98..6d3fe8d02 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1588,6 +1588,9 @@ static bool fbc_supported_on_chipset(void)
char buf[128];
debugfs_read("i915_fbc_status", buf);
+ if (*buf == '\0')
+ return false;
+
return !strstr(buf, "FBC unsupported on this chipset\n");
}
--
2.16.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH igt] igt/kms_frontbuffer_tracking: Disable FBC testing for -ENODEV
2018-02-11 18:54 [PATCH igt] igt/kms_frontbuffer_tracking: Disable FBC testing for -ENODEV Chris Wilson
@ 2018-02-15 9:21 ` Chris Wilson
2018-02-20 12:17 ` [igt-dev] " Daniel Vetter
0 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2018-02-15 9:21 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
Quoting Chris Wilson (2018-02-11 18:54:33)
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Poke, CI is still tripping over this...
> ---
> tests/kms_frontbuffer_tracking.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
> index 602707f98..6d3fe8d02 100644
> --- a/tests/kms_frontbuffer_tracking.c
> +++ b/tests/kms_frontbuffer_tracking.c
> @@ -1588,6 +1588,9 @@ static bool fbc_supported_on_chipset(void)
> char buf[128];
>
> debugfs_read("i915_fbc_status", buf);
> + if (*buf == '\0')
> + return false;
> +
> return !strstr(buf, "FBC unsupported on this chipset\n");
> }
>
> --
> 2.16.1
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH igt] igt/kms_frontbuffer_tracking: Disable FBC testing for -ENODEV
2018-02-15 9:21 ` Chris Wilson
@ 2018-02-20 12:17 ` Daniel Vetter
2018-02-20 12:22 ` Chris Wilson
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Vetter @ 2018-02-20 12:17 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev, intel-gfx
On Thu, Feb 15, 2018 at 09:21:47AM +0000, Chris Wilson wrote:
> Quoting Chris Wilson (2018-02-11 18:54:33)
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>
> Poke, CI is still tripping over this...
Can you give a bit more context about what's going on and how this
happens? Bugzilla or whatever ... I'm confused.
-Daniel
>
> > ---
> > tests/kms_frontbuffer_tracking.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
> > index 602707f98..6d3fe8d02 100644
> > --- a/tests/kms_frontbuffer_tracking.c
> > +++ b/tests/kms_frontbuffer_tracking.c
> > @@ -1588,6 +1588,9 @@ static bool fbc_supported_on_chipset(void)
> > char buf[128];
> >
> > debugfs_read("i915_fbc_status", buf);
> > + if (*buf == '\0')
> > + return false;
> > +
> > return !strstr(buf, "FBC unsupported on this chipset\n");
> > }
> >
> > --
> > 2.16.1
> >
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH igt] igt/kms_frontbuffer_tracking: Disable FBC testing for -ENODEV
2018-02-20 12:17 ` [igt-dev] " Daniel Vetter
@ 2018-02-20 12:22 ` Chris Wilson
2018-03-06 14:42 ` Daniel Vetter
0 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2018-02-20 12:22 UTC (permalink / raw)
To: Daniel Vetter; +Cc: igt-dev, intel-gfx
Quoting Daniel Vetter (2018-02-20 12:17:18)
> On Thu, Feb 15, 2018 at 09:21:47AM +0000, Chris Wilson wrote:
> > Quoting Chris Wilson (2018-02-11 18:54:33)
> > > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> >
> > Poke, CI is still tripping over this...
>
> Can you give a bit more context about what's going on and how this
> happens? Bugzilla or whatever ... I'm confused.
i915_fbc_status():
if (!HAS_FBC(dev_priv))
return -ENODEV;
So whenever CI is run on machines without FBC (all of its gen3-gen5
machine, as the only ilk appears to be a desktop unless I missed one)
buf is empty.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH igt] igt/kms_frontbuffer_tracking: Disable FBC testing for -ENODEV
2018-02-20 12:22 ` Chris Wilson
@ 2018-03-06 14:42 ` Daniel Vetter
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Vetter @ 2018-03-06 14:42 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev, intel-gfx
On Tue, Feb 20, 2018 at 12:22:19PM +0000, Chris Wilson wrote:
> Quoting Daniel Vetter (2018-02-20 12:17:18)
> > On Thu, Feb 15, 2018 at 09:21:47AM +0000, Chris Wilson wrote:
> > > Quoting Chris Wilson (2018-02-11 18:54:33)
> > > > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > >
> > > Poke, CI is still tripping over this...
> >
> > Can you give a bit more context about what's going on and how this
> > happens? Bugzilla or whatever ... I'm confused.
>
> i915_fbc_status():
> if (!HAS_FBC(dev_priv))
> return -ENODEV;
>
> So whenever CI is run on machines without FBC (all of its gen3-gen5
> machine, as the only ilk appears to be a desktop unless I missed one)
> buf is empty.
Oh, I entirely missed that we errno out the read right away in that case.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-03-06 14:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-11 18:54 [PATCH igt] igt/kms_frontbuffer_tracking: Disable FBC testing for -ENODEV Chris Wilson
2018-02-15 9:21 ` Chris Wilson
2018-02-20 12:17 ` [igt-dev] " Daniel Vetter
2018-02-20 12:22 ` Chris Wilson
2018-03-06 14:42 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox