Skip to contentSkip to conversation

kmstest: Use util_open()

PATCH In review Stefan Agner 2 participants 3 messages Dec 20, 2015 – Jan 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 kmstest: Use util_open()

Use the new util_open() helper instead of open-coding the method for finding a usable device. While at it, make the command-line interface more consistent with that of modetest by adding the -D and -M options.

---
 tests/kmstest/Makefile.am |  4 +++-
 tests/kmstest/main.c      | 45 +++++++++++++++++++++++++++++----------------
 2 files changed, 32 insertions(+), 17 deletions(-)
tests/kmstest/Makefile.am +3 -1
index fd21e61..100662e 100644
@@ -2,6 +2,7 @@ AM_CFLAGS = \
 	$(WARN_CFLAGS)\
 	-I$(top_srcdir)/include/drm \
 	-I$(top_srcdir)/libkms/ \
+	-I$(top_srcdir)/tests/ \
 	-I$(top_srcdir)
 
 if HAVE_INSTALL_TESTS
@@ -17,7 +18,8 @@ kmstest_SOURCES = \
 
 kmstest_LDADD = \
 	$(top_builddir)/libdrm.la \
-	$(top_builddir)/libkms/libkms.la
+	$(top_builddir)/libkms/libkms.la \
+	$(top_builddir)/tests/util/libutil.la
 
 run: kmstest
 	./kmstest
tests/kmstest/main.c +29 -16

67 lines not on this page · raw message

Signature · 6 lines
2.6.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/2 tests: add fsl-dcu-drm to modules

---
 tests/util/kms.c | 1 +
 1 file changed, 1 insertion(+)
tests/util/kms.c +1 -0
index 57b0191..dcd5a8e 100644
@@ -139,6 +139,7 @@ static const char * const modules[] = {
 	"imx-drm",
 	"rockchip",
 	"atmel-hlcdc",
+	"fsl-dcu-drm",
 };
 
 int util_open(const char *device, const char *module)
Signature · 6 lines
2.6.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

Re: [PATCH libdrm 2/2] tests: add fsl-dcu-drm to modules

Quoted 10 lines · Stefan Agner
---
 tests/util/kms.c | 1 +
 1 file changed, 1 insertion(+)
tests/util/kms.c +0 -0
index 57b0191..dcd5a8e 100644

tests/util/kms.c static const char * const modules[] = { · line 142

Quoted 4 lines
tests/util/kms.c +1 -0
@@ -139,6 +139,7 @@ static const char * const modules[] = {
        "imx-drm",
        "rockchip",
        "atmel-hlcdc",
+       "fsl-dcu-drm",

Thanks for the patches Stefan. I'll do a quick test and push them out shortly. Although please take a look at adding platform device support to the drm*Device API - if anything is unclear do ask. I won't bite :-)

-Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel