Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Erico Nunes <nunes.erico@gmail.com>
To: igt-dev@lists.freedesktop.org
Cc: anarsoul@gmail.com, yuq825@gmail.com, lima@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 1/3] lib: Add support for opening lima devices
Date: Wed, 24 May 2023 15:49:28 +0200	[thread overview]
Message-ID: <20230524134930.61911-2-nunes.erico@gmail.com> (raw)
In-Reply-To: <20230524134930.61911-1-nunes.erico@gmail.com>

This will be to test the lima drm driver specific ioctls, so adding lima
to the list.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
---
 lib/drmtest.c | 3 +++
 lib/drmtest.h | 1 +
 2 files changed, 4 insertions(+)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index aa2e6b08..677f411c 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -195,6 +195,7 @@ static const struct module {
 } modules[] = {
 	{ DRIVER_AMDGPU, "amdgpu" },
 	{ DRIVER_INTEL, "i915", modprobe_i915 },
+	{ DRIVER_LIMA, "lima" },
 	{ DRIVER_MSM, "msm" },
 	{ DRIVER_PANFROST, "panfrost" },
 	{ DRIVER_V3D, "v3d" },
@@ -596,6 +597,8 @@ static const char *chipset_to_str(int chipset)
 		return "xe";
 	case DRIVER_VMWGFX:
 		return "vmwgfx";
+	case DRIVER_LIMA:
+		return "lima";
 	case DRIVER_ANY:
 		return "any";
 	default:
diff --git a/lib/drmtest.h b/lib/drmtest.h
index ae86ee19..cedac89b 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -53,6 +53,7 @@
 #define DRIVER_MSM	(1 << 6)
 #define DRIVER_XE	(1 << 7)
 #define DRIVER_VMWGFX   (1 << 8)
+#define DRIVER_LIMA	(1 << 9)
 
 /*
  * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system
-- 
2.40.1

  reply	other threads:[~2023-05-24 13:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-24 13:49 [igt-dev] [PATCH i-g-t 0/3] Initial tests for the lima drm driver Erico Nunes
2023-05-24 13:49 ` Erico Nunes [this message]
2023-05-24 13:49 ` [igt-dev] [PATCH i-g-t 2/3] lib/lima: Add lima helpers Erico Nunes
2023-05-24 13:49 ` [igt-dev] [PATCH i-g-t 3/3] tests/lima: Add initial tests for lima Erico Nunes
2023-05-24 15:27 ` [igt-dev] ✗ Fi.CI.BUILD: failure for Initial tests for the lima drm driver Patchwork

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=20230524134930.61911-2-nunes.erico@gmail.com \
    --to=nunes.erico@gmail.com \
    --cc=anarsoul@gmail.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=lima@lists.freedesktop.org \
    --cc=yuq825@gmail.com \
    /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