[igt-dev] [PATCH i-g-t 4/6] lib: Add support for opening panfrost devices

Tomeu Vizoso tomeu.vizoso at collabora.com
Fri May 10 14:44:56 UTC 2019


Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Acked-by: Petri Latvala <petri.latvala at intel.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 ce3804f9e9d1..25f20353023b 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -206,6 +206,7 @@ static const struct module {
 } modules[] = {
 	{ DRIVER_AMDGPU, "amdgpu" },
 	{ DRIVER_INTEL, "i915", modprobe_i915 },
+	{ DRIVER_PANFROST, "panfrost" },
 	{ DRIVER_V3D, "v3d" },
 	{ DRIVER_VC4, "vc4" },
 	{ DRIVER_VGEM, "vgem" },
@@ -366,6 +367,8 @@ static const char *chipset_to_str(int chipset)
 		return "virtio";
 	case DRIVER_AMDGPU:
 		return "amdgpu";
+	case DRIVER_PANFROST:
+		return "panfrost";
 	case DRIVER_ANY:
 		return "any";
 	default:
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 71d197f3a429..6c4c3899cb31 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -44,6 +44,7 @@
 #define DRIVER_VIRTIO	(1 << 3)
 #define DRIVER_AMDGPU	(1 << 4)
 #define DRIVER_V3D	(1 << 5)
+#define DRIVER_PANFROST	(1 << 6)
 /*
  * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system
  * with vgem as well as a supported driver, you can end up with a
-- 
2.20.1



More information about the igt-dev mailing list