All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marius Vlad <marius.c.vlad@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t 2/2] lib/drmtest: Report proper err message when opening the driver.
Date: Thu, 23 Jun 2016 19:46:03 +0300	[thread overview]
Message-ID: <1466700363-22009-2-git-send-email-marius.c.vlad@intel.com> (raw)
In-Reply-To: <1466700363-22009-1-git-send-email-marius.c.vlad@intel.com>

Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
CC: Chris Wilson <chris@chris-wilson.co.uk>
---
 lib/drmtest.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index 1e28f60..d2ee2d1 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -261,7 +261,17 @@ int __drm_open_driver(int chipset)
 		close(fd);
 	}
 
-	igt_skip("No intel gpu found\n");
+	switch (chipset & (DRIVER_INTEL | DRIVER_VC4 | DRIVER_VGEM)) {
+	case DRIVER_INTEL:
+		igt_skip("No intel gpu found\n");
+	break;
+	case DRIVER_VC4:
+		igt_skip("No vc4 gpu found\n");
+	break;
+	case DRIVER_VGEM:
+		igt_skip("No vgem support found\n");
+	break;
+	}
 	return -1;
 }
 
-- 
2.5.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-06-23 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-23 16:46 [PATCH i-g-t 1/2] tests/{kms_cursor_legacy, drv_missed_irq}, lib/drmtest: Fix warnings about unused function return values Marius Vlad
2016-06-23 16:46 ` Marius Vlad [this message]
2016-06-23 19:54   ` [PATCH i-g-t 2/2] lib/drmtest: Report proper err message when opening the driver Chris Wilson
2016-06-23 19:53 ` [PATCH i-g-t 1/2] tests/{kms_cursor_legacy, drv_missed_irq}, lib/drmtest: Fix warnings about unused function return values Chris Wilson

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=1466700363-22009-2-git-send-email-marius.c.vlad@intel.com \
    --to=marius.c.vlad@intel.com \
    --cc=intel-gfx@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.