From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org, Daniel Vetter <daniel@ffwll.ch>
Subject: Re: [igt-dev] [PATCH i-g-t] igt: Check drmModeGetResources()
Date: Thu, 4 Oct 2018 21:19:43 +0200 [thread overview]
Message-ID: <20181004191943.GO31561@phenom.ffwll.local> (raw)
In-Reply-To: <153866605534.5379.3056255152464775187@skylake-alporthouse-com>
On Thu, Oct 04, 2018 at 04:14:15PM +0100, Chris Wilson wrote:
> Quoting Daniel Vetter (2018-10-04 14:27:05)
> > On Thu, Oct 04, 2018 at 03:44:46PM +0300, Arkadiusz Hiler wrote:
> > > On Wed, Oct 03, 2018 at 08:43:49PM +0100, Chris Wilson wrote:
> > > > If KMS is not supported on the device, drmModeGetResources() will return
> > > > NULL, often this is an indication that we should not attempt to run the
> > > > test. Although it would be preferred to use something like
> > > > igt_require_display() as the canonical check and assert that
> > > > drmModeGetResources() did not hit an error, it is not always practical
> > > > as the tests do not utilize the common igt_display abstraction.
> > > >
> > > > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > > Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> > >
> > > and pushed
> >
> > I still think a kmstest_require() or so, plus then removing the pile of
> > add-how igt_require we just sprinkled all over, would be more maintainable
> > long term. kmstest_require() would also allow us to drop a not-so-cryptic
> > message into logs.
>
> But what does kmstest mean? igt_require_kms(), which can be the raw
> drm_mode_getresources ioctl, matches my expectations of a lowlevel check.
> But is that as descriptive for the tests that are just using
> drmModeGetResources() directly? That is the conundrum.
We should probably change the kmstest_ prefix to something slightly more
meaningful. And yeah there might be a few too many shades of grey with the
low-level tests. But fore the high-level ones I think outright requiring
that you have an output and at least one pipe seems reasonable.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-10-04 19:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-03 19:43 [igt-dev] [PATCH i-g-t] igt: Check drmModeGetResources() Chris Wilson
2018-10-03 20:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-04 9:03 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-10-04 12:44 ` [igt-dev] [PATCH i-g-t] " Arkadiusz Hiler
2018-10-04 13:27 ` Daniel Vetter
2018-10-04 15:14 ` Chris Wilson
2018-10-04 19:19 ` Daniel Vetter [this message]
2018-10-05 7:44 ` Arkadiusz Hiler
2018-10-05 8:27 ` Daniel Vetter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181004191943.GO31561@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox