[Intel-gfx] [RFC] drm/i915: Provide a hook for selftests

Chris Wilson chris at chris-wilson.co.uk
Thu Dec 1 23:50:05 UTC 2016


On Thu, Dec 01, 2016 at 11:32:44PM +0000, Chris Wilson wrote:
> To facilitate integration with igt, any parameter beginning with
> i915.subtest__ is interpreted as a selftest subtest executable
> independently via igt/drv_selftest.
> 
> +#define selftest(name, func) \
> +module_param_named(subtest__##name, i915_selftests[name].enabled, bool, 0400);
> +#include "i915_selftests.h"
> +#undef selftest

Maybe igt__ is more useful as a prefix for the subtests? Shorter at
least.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list