Skip to contentSkip to conversation

tests: add fsl-dcu-drm to modetest, kmstest, vbltest and proptest

PATCH In review Stefan Agner 2 participants 4 messages Dec 18, 2015 – Dec 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: add fsl-dcu-drm to modetest, kmstest, vbltest and proptest

From: Stefan Agner <[email protected]>

---
 tests/kmstest/main.c      | 1 +
 tests/modetest/modetest.c | 2 +-
 tests/proptest/proptest.c | 2 +-
 tests/vbltest/vbltest.c   | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
tests/kmstest/main.c +1 -0
index 120bc0f..54b2155 100644
@@ -66,6 +66,7 @@ static const char *drivers[] = {
 	"imx-drm",
 	"rockchip",
 	"atmel-hlcdc",
+	"fsl-dcu-drm",
 	NULL
 };
 
tests/modetest/modetest.c +1 -1
index 3b01918..05b6266 100644
@@ -1554,7 +1554,7 @@ int main(int argc, char **argv)
 	int drop_master = 0;
 	int test_vsync = 0;
 	int test_cursor = 0;
-	const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "exynos", "tilcdc", "msm", "sti", "tegra", "imx-drm", "rockchip", "atmel-hlcdc" };
+	const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "exynos", "tilcdc", "msm", "sti", "tegra", "imx-drm", "rockchip", "atmel-hlcdc", "fsl-dcu-drm" };
 	char *device = NULL;
 	char *module = NULL;
 	unsigned int i;
tests/proptest/proptest.c +1 -1
index b9296bd..5a79114 100644
@@ -303,7 +303,7 @@ static void printUsage(void)
 
 int main(int argc, char *argv[])
 {
-	const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "msm", "rockchip" };
+	const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "msm", "rockchip", "fsl-dcu-drm" };
 	unsigned int i, ret = 0;
 
 	for (i = 0; i < ARRAY_SIZE(modules); i++){
tests/vbltest/vbltest.c +1 -1
index e27f45c..531196c 100644
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
 {
 	unsigned i;
 	int c, fd, ret;
-	const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "exynos", "omapdrm", "tilcdc", "msm", "tegra", "imx-drm" , "rockchip" };
+	const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "exynos", "omapdrm", "tilcdc", "msm", "tegra", "imx-drm" , "rockchip", "fsl-dcu-drm" };
 	drmVBlank vbl;
 	drmEventContext evctx;
 	struct vbl_info handler_info;
Signature · 6 lines
2.6.4

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

Hi Stefan,

Quoted 10 lines · Stefan Agner

From: Stefan Agner <[email protected]>

---
 tests/kmstest/main.c      | 1 +
 tests/modetest/modetest.c | 2 +-
 tests/proptest/proptest.c | 2 +-
 tests/vbltest/vbltest.c   | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

I've pushed a series (where this patch will conflict) around the same time you sent this. Please can take a look at tests/util/kms.c... although kmstest, (even modeprint and others) could be updated to use the new helper.

Although I'd really love if one updates the drm*Device API to handle platform devices. I've been looking for volunteers, although most platform people tend to say low :-P
Feel free to skim through tests/drmdevice.c or let me know if something feels amiss.

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

#2 lore raw
Quoted 13 lines · Emil Velikov

Hi Stefan,

Quoted 10 lines · Stefan Agner

From: Stefan Agner <[email protected]>

---
 tests/kmstest/main.c      | 1 +
 tests/modetest/modetest.c | 2 +-
 tests/proptest/proptest.c | 2 +-
 tests/vbltest/vbltest.c   | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
Quoted 4 lines

I've pushed a series (where this patch will conflict) around the same time you sent this. Please can take a look at tests/util/kms.c... although kmstest, (even modeprint and others) could be updated to use the new helper.

I see, will rebase my patch.

Quoted 4 lines

Although I'd really love if one updates the drm*Device API to handle platform devices. I've been looking for volunteers, although most platform people tend to say low :-P

Do I get that right, you would like to extend drm*Device API to also enumerate platform devices? Hm, I guess one would have to have a reasonable understanding of what variations are out there to make the API future proof. I think right now I will join the other platform device developers and stay low :-)

Quoted 2 lines

Feel free to skim through tests/drmdevice.c or let me know if something feels amiss.

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

#3 lore raw
Quoted 22 lines · Stefan Agner
Quoted 13 lines · Emil Velikov

Hi Stefan,

Quoted 10 lines · Stefan Agner

From: Stefan Agner <[email protected]>

---
 tests/kmstest/main.c      | 1 +
 tests/modetest/modetest.c | 2 +-
 tests/proptest/proptest.c | 2 +-
 tests/vbltest/vbltest.c   | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
Quoted 4 lines

I've pushed a series (where this patch will conflict) around the same time you sent this. Please can take a look at tests/util/kms.c... although kmstest, (even modeprint and others) could be updated to use the new helper.

I see, will rebase my patch.

Quoted 1 line
Quoted 6 lines
Quoted 3 lines

Although I'd really love if one updates the drm*Device API to handle platform devices. I've been looking for volunteers, although most platform people tend to say low :-P

Do I get that right, you would like to extend drm*Device API to also enumerate platform devices?

That's right.

Quoted 5 lines

Hm, I guess one would have to have a
reasonable understanding of what variations are out there to make the API future proof. I think right now I will join the other platform device developers and stay low :-)

I wouldn't worry that much about future proofing it. The first implementation (of everything) is never perfect. Something like the platform id (alike the one reported by the kernel module) perhaps even the id "fused" with the location (like the one produced due to the DT bindings) or anything that you believe is reasonable.

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