Skip to content
Commit 35d67ee3 authored by Rajneesh Bhardwaj's avatar Rajneesh Bhardwaj Committed by Christian König
Browse files

drm/ttm: Use init_on_free to delay release TTM BOs



Delay release TTM BOs when the kernel default setting is init_on_free.
This offloads the overhead of clearing the system memory to the work
item and potentially a different CPU. This could be very beneficial when
the application does a lot of malloc/free style allocations of system
memory.

Signed-off-by: default avatarRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com&gt;.>
Link: https://patchwork.freedesktop.org/patch/msgid/20230708011355.853-1-rajneesh.bhardwaj@amd.com


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 45a4ff62
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