On Fri, Dec 16, 2016 at 10:31:17AM +0100, Lukas Wunner wrote: > On Fri, Dec 16, 2016 at 07:46:46AM +0000, Chris Wilson wrote: > > Prime numbers are interesting for testing components that use multiplies > > and divides, such as testing struct drm_mm alignment computations. > > > > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > > --- > > drivers/gpu/drm/Kconfig | 4 + > > drivers/gpu/drm/Makefile | 1 + > > drivers/gpu/drm/lib/drm_prime_numbers.c | 175 ++++++++++++++++++++++++++++++++ > > drivers/gpu/drm/lib/drm_prime_numbers.h | 10 ++ > > 4 files changed, 190 insertions(+) > > create mode 100644 drivers/gpu/drm/lib/drm_prime_numbers.c > > create mode 100644 drivers/gpu/drm/lib/drm_prime_numbers.h > > Hm, why not put this in lib/ ? Don't see anything DRM-specific here > at first glance and this might be useful to others. Or others might > come up with improvements and they'll be more likely to discover it > outside of DRM. Because that is a 3+ month cycle before I can then apply the testcases, and without the testscases do you want the bugfixes? If I put in in drm/lib then lift it, I can use it immediately and drop the local copy once merged. -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel