Re: [PATCH 04/34] drm: Add some kselftests for the DRM range manager (struct drm_mm)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux