[igt-dev] [PATCH] lib/igt_debugfs: skip test instead of assert if crc/control is invalid

Arkadiusz Hiler arek at hiler.eu
Fri Jul 9 12:41:26 UTC 2021


On Thu, Jul 08, 2021 at 12:01:27PM -0400, Mark Yacoub wrote:
> From: Mark Yacoub <markyacoub at google.com>
> 
> [Why]
> Some drivers such as msm do not currently support debugfs yet.
> 
> [How]
> Change igt_assert of opening "crtc-%d/crc/control" to igt_require_f.
> Opening this file doesn't involved a complicated logic so assert isn't
> required to verify that things are smooth. -1 indicates that the file
> isn't supported by the driver.
> 
> Test: kms_atomic:plane-immutable-zpos on ChromeOS Trogdor(msm)

Hey Mark,

I am generally not a fan of hidden requirements that are burried deep in
the helper libraries. It's nice when the tests explicitly state what they
need through the use of functions with _require_ or _skip_ in the name.

When you probably want to do here is to call igt_require_pipe_crc[1] in
plane-immutable-zpos just like the other pipe crc tests do.

[0]: https://drm.pages.freedesktop.org/igt-gpu-tools/igt-gpu-tools-debugfs.html#igt-require-pipe-crc

-- 
Cheers,
Arek


More information about the igt-dev mailing list