Re: [PATCH] drm/tests/gpu_buddy: fix interleaving in buffer clearance test

Matthew Auld <[email protected]>
Newsgroups org.freedesktop.lists.amd-gfx,org.freedesktop.lists.dri-devel,org.freedesktop.lists.intel-gfx,org.freedesktop.lists.intel-xe
Message-ID <[email protected]>
On 22/07/2026 07:17, Arunpravin Paneer Selvam wrote:
> 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.
> 
> Fixes: e3335ccbf4da ("drm/tests/gpu_buddy: add a new test case for buffer clearance during resume")
> Closes: https://sashiko.dev/#/patchset/[email protected]?part=1
> Cc: Matthew Auld <[email protected]>
> Cc: Christian König <[email protected]>
> Signed-off-by: Arunpravin Paneer Selvam <[email protected]>

Reviewed-by: Matthew Auld <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.