* [PATCH i-g-t 1/2] lib/drmtest: Fix igt_skip message
@ 2016-06-30 21:29 Gustavo Padovan
2016-06-30 21:29 ` [PATCH i-g-t 2/2] lib/drmtest: add virtio_gpu support Gustavo Padovan
0 siblings, 1 reply; 4+ messages in thread
From: Gustavo Padovan @ 2016-06-30 21:29 UTC (permalink / raw)
To: dri-devel; +Cc: Gustavo Padovan
From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Now other gpus are supported too.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
---
lib/drmtest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 884fe7c..9f3ac7f 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -263,7 +263,7 @@ int __drm_open_driver(int chipset)
close(fd);
}
- igt_skip("No intel gpu found\n");
+ igt_skip("No known gpu found\n");
return -1;
}
--
2.5.5
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH i-g-t 2/2] lib/drmtest: add virtio_gpu support
2016-06-30 21:29 [PATCH i-g-t 1/2] lib/drmtest: Fix igt_skip message Gustavo Padovan
@ 2016-06-30 21:29 ` Gustavo Padovan
2016-07-12 12:24 ` Daniel Vetter
0 siblings, 1 reply; 4+ messages in thread
From: Gustavo Padovan @ 2016-06-30 21:29 UTC (permalink / raw)
To: dri-devel; +Cc: Gustavo Padovan
From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Support the virtio GPU on drmtest.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
---
lib/drmtest.c | 9 +++++++++
lib/drmtest.h | 1 +
2 files changed, 10 insertions(+)
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 9f3ac7f..b374006 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -115,6 +115,11 @@ static bool is_vgem_device(int fd)
return __is_device(fd, "vgem");
}
+static bool is_virtio_device(int fd)
+{
+ return __is_device(fd, "virt");
+}
+
static bool has_known_intel_chipset(int fd)
{
struct drm_i915_getparam gp;
@@ -260,6 +265,10 @@ int __drm_open_driver(int chipset)
is_vgem_device(fd))
return fd;
+ if (chipset & DRIVER_VIRTIO &&
+ is_virtio_device(fd))
+ return fd;
+
close(fd);
}
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 8ce32a6..19d4bd1 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -41,6 +41,7 @@
#define DRIVER_INTEL (1 << 0)
#define DRIVER_VC4 (1 << 1)
#define DRIVER_VGEM (1 << 2)
+#define DRIVER_VIRTIO (1 << 3)
#define DRIVER_ANY ~(DRIVER_VGEM)
#ifdef ANDROID
--
2.5.5
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH i-g-t 2/2] lib/drmtest: add virtio_gpu support
2016-06-30 21:29 ` [PATCH i-g-t 2/2] lib/drmtest: add virtio_gpu support Gustavo Padovan
@ 2016-07-12 12:24 ` Daniel Vetter
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Vetter @ 2016-07-12 12:24 UTC (permalink / raw)
To: Gustavo Padovan; +Cc: Gustavo Padovan, dri-devel
On Thu, Jun 30, 2016 at 06:29:47PM -0300, Gustavo Padovan wrote:
> From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
>
> Support the virtio GPU on drmtest.
>
> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Both applied, thanks for the patches. Aside: i-g-t patches should be
submitted to intel-gfx.
-Daniel
> ---
> lib/drmtest.c | 9 +++++++++
> lib/drmtest.h | 1 +
> 2 files changed, 10 insertions(+)
>
> diff --git a/lib/drmtest.c b/lib/drmtest.c
> index 9f3ac7f..b374006 100644
> --- a/lib/drmtest.c
> +++ b/lib/drmtest.c
> @@ -115,6 +115,11 @@ static bool is_vgem_device(int fd)
> return __is_device(fd, "vgem");
> }
>
> +static bool is_virtio_device(int fd)
> +{
> + return __is_device(fd, "virt");
> +}
> +
> static bool has_known_intel_chipset(int fd)
> {
> struct drm_i915_getparam gp;
> @@ -260,6 +265,10 @@ int __drm_open_driver(int chipset)
> is_vgem_device(fd))
> return fd;
>
> + if (chipset & DRIVER_VIRTIO &&
> + is_virtio_device(fd))
> + return fd;
> +
> close(fd);
> }
>
> diff --git a/lib/drmtest.h b/lib/drmtest.h
> index 8ce32a6..19d4bd1 100644
> --- a/lib/drmtest.h
> +++ b/lib/drmtest.h
> @@ -41,6 +41,7 @@
> #define DRIVER_INTEL (1 << 0)
> #define DRIVER_VC4 (1 << 1)
> #define DRIVER_VGEM (1 << 2)
> +#define DRIVER_VIRTIO (1 << 3)
> #define DRIVER_ANY ~(DRIVER_VGEM)
>
> #ifdef ANDROID
> --
> 2.5.5
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 00/12] kms tests for the DRM fences interfaces
@ 2016-11-14 9:59 Gustavo Padovan
2016-11-14 9:59 ` [PATCH i-g-t 1/2] lib/drmtest: Fix igt_skip message Gustavo Padovan
0 siblings, 1 reply; 4+ messages in thread
From: Gustavo Padovan @ 2016-11-14 9:59 UTC (permalink / raw)
To: intel-gfx; +Cc: Gustavo Padovan, dri-devel
From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Hi,
That is the first version of the igt tests for DRM fences[1]. The
first four patches are just fix/improvements on the kms_atomic
infrastructure.
These patches depends on Robert Foss tests for sw_sync and a branch
with those tests included can be seen here:
https://git.collabora.com/cgit/user/padovan/intel-gpu-tools.git/log/
Gustavo
---
[1] https://lkml.org/lkml/2016/11/13/324
Gustavo Padovan (11):
tests/kms_atomic_transition: use select + read instead of blocking
read
tests/kms_atomic_transition: don't assume max pipes
lib/igt_kms: move igt_kms_get_alt_edid() to the right place
lib/igt_kms: export properties names
tests/kms_atomic: use global atomic properties definitions
lib/igt_kms: Add support for the OUT_FENCE_PTR property
tests/kms_atomic: stress possible fence settings
tests/kms_atomic_transition: add fencing parameter to
run_transition_tests
tests/kms_atomic_transition: add out_fences tests
tests/kms_atomic_transition: add in_fences tests
tests/kms_atomic_transition: set out_fence for all crtcs
Robert Foss (1):
lib/igt_kms: Add support for the IN_FENCE_FD property
lib/igt_kms.c | 102 +++++++++++++----
lib/igt_kms.h | 13 +++
tests/kms_atomic.c | 247 ++++++++++++++++++++++++++----------------
tests/kms_atomic_transition.c | 148 ++++++++++++++++++++++---
4 files changed, 379 insertions(+), 131 deletions(-)
--
2.5.5
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-11-14 9:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30 21:29 [PATCH i-g-t 1/2] lib/drmtest: Fix igt_skip message Gustavo Padovan
2016-06-30 21:29 ` [PATCH i-g-t 2/2] lib/drmtest: add virtio_gpu support Gustavo Padovan
2016-07-12 12:24 ` Daniel Vetter
-- strict thread matches above, loose matches on Subject: below --
2016-11-14 9:59 [PATCH 00/12] kms tests for the DRM fences interfaces Gustavo Padovan
2016-11-14 9:59 ` [PATCH i-g-t 1/2] lib/drmtest: Fix igt_skip message Gustavo Padovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).