On Tue, Dec 13, 2016 at 11:58:54AM +0200, Joonas Lahtinen wrote: > On ma, 2016-12-12 at 11:53 +0000, Chris Wilson wrote: > > +++ b/drivers/gpu/drm/selftests/test-drm_mm.c > > @@ -0,0 +1,47 @@ > > +/* > > + * Test cases for the drm_mm range manager > > + */ > > + > > +#define pr_fmt(fmt) "drm_mm: " fmt > > + > > +#include <linux/module.h> > > +#include <linux/slab.h> > > +#include <linux/random.h> > > +#include <linux/vmalloc.h> > > + > > +#include <drm/drm_mm.h> > > + > > +#define TESTS "drm_mm_selftests.h" > > +#include "drm_selftest.h" > > + > > +static unsigned int random_seed = 0x12345678; > > This could be build time, depending on the intended use. I was thinking module param for the seed, just in case we want different patterns. -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx