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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:58:58 +0000 (07:58 +0200)
commitb26ac563704cf5d0025f4af3290d4b88fa345a3a
treee8f796c00d2b1ad750d31353b6b1c3cf853da1b5
parent50ec8c24286e528ecc60ebaf5121ae308b742a9c
drm/amd/display/dml2: use vzalloc rather than kzalloc

[ Upstream commit cd9e6d6fdd2de60bfb4672387c17d4ee7157cf8e ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c