]> www.infradead.org Git - users/hch/misc.git/commit
drm/amd/display: Deallocate DML 2.1 Memory Allocation
authorChris Park <chris.park@amd.com>
Wed, 17 Apr 2024 19:27:01 +0000 (15:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2024 20:20:24 +0000 (16:20 -0400)
commitccb167104a8fea3cca08d1d1d451858436a4b9c8
tree19ce2306bd70deea94662e9dcf1bf8c1989bcecf
parentc6bce984b8917b4a2fba17b5f19f1b44cf69d736
drm/amd/display: Deallocate DML 2.1 Memory Allocation

[Why]
DML 2.1 allocates two types of memory in its ctx structure but does not
destroy them, causing memory leak whenever DML 2.1 instance is created
and destroyed.

[How]
Deallocate two instances of allocated memory whenever DML 2.1 is
destroyed.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Chris Park <chris.park@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.h
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c