[Intel-gfx] [PATCH] drivers/gpu/drm/i915/selftests/i915_buddy.c: Fix bug
Chris Wilson
chris at chris-wilson.co.uk
Thu Aug 6 16:02:48 UTC 2020
Quoting George Spelvin (2020-03-25 19:24:29)
> igt_mm_config() calls ilog2() on the (pseudo)random 21-bit number
> s>>12. Once in 2 million seeds, this is zero and ilog2 summons
> the nasal demons.
I ran into a similar bug with random returning 0 and remembered this
patch sitting around.
Pushed, and many thanks for the fix!
-Chris
More information about the Intel-gfx
mailing list