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>
Fri, 11 Apr 2025 21:00:02 +0000 (17:00 -0400)
commit20c50a9a793300a1fc82f3ddd0e3c68f8213fbef
treebdea506b76645fcac85e9ff50f205dfd32f81b69
parenta61c16258a4720065972cf04fcfee1caa6ea5fc0
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>
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c