mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
The resume clearance test skipped every other allocation, expecting an
interleaved clear/dirty layout. But the buddy allocator hands out blocks
contiguously, so this just allocated half the pages in one chunk and never
exercised gpu_buddy_reset_clear()'s force-merge of opposite-state buddies.
Allocate all pages into two lists instead and free one cleared, one dirty,
to build a truly interleaved pattern.
v2: Use for loops instead of do-while for the allocation loops (Jani Nikula)
Fixes:
|
||
|---|---|---|
| .. | ||
| .kunitconfig | ||
| gpu_buddy_test.c | ||
| gpu_random.c | ||
| gpu_random.h | ||
| Makefile | ||