drm/amd/display/dml2: use vzalloc rather than kzalloc
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Apr 2025 01:27:15 +0000 (21:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Apr 2025 19:55:37 +0000 (15:55 -0400)
commitcd9e6d6fdd2de60bfb4672387c17d4ee7157cf8e
treeb3ddf59806b8572da6d7323e9d4afca88c4ca0ec
parent2036be31741b00f030530381643a8b35a5a42b5c
drm/amd/display/dml2: use vzalloc rather than kzalloc

The structures are large and they do not require contiguous
memory so use vzalloc.

Fixes: 70839da63605 ("drm/amd/display: Add new DCN401 sources")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4126
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 20c50a9a793300a1fc82f3ddd0e3c68f8213fbef)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c