Skip to content
Commit 9c7abd50 authored by Dave Stevenson's avatar Dave Stevenson Committed by Dom Cobley
Browse files

drm: vc4: Free the dlist alloc immediately if it never hit the hw



atomic_check creates a state, and allocates the dlist memory for
it such that atomic_flush can not fail.

On destroy that dlist allocation was being put in the stale list,
even though it had never been programmed into the hardware,
therefore doing lots of atomic_checks could consume all the dlist
memory and fail.

If the dlist has never been programmed into the hardware, then
free it immediately.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
parent 95ec5c25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment