Skip to content

Commit 0689dcf

Browse files
committed
drm/amdgpu/display: use kvzalloc again in dc_create_state
It looks this was accidently lost in a follow up patch. dc context is large and we don't need contiguous pages. Fixes: e4863f1 ("drm/amd/display: Multi display cause system lag on mode change") Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: Aric Cyr <aric.cyr@amd.com> Cc: Alex Xu <alex_y_xu@yahoo.ca> Reported-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca> Tested-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca> Cc: stable@vger.kernel.org
1 parent a1d2afc commit 0689dcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/gpu/drm/amd/display/dc/core

‎drivers/gpu/drm/amd/display/dc/core/dc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,8 +1571,8 @@ static void init_state(struct dc *dc, struct dc_state *context)
15711571

15721572
struct dc_state *dc_create_state(struct dc *dc)
15731573
{
1574-
struct dc_state *context = kzalloc(sizeof(struct dc_state),
1575-
GFP_KERNEL);
1574+
struct dc_state *context = kvzalloc(sizeof(struct dc_state),
1575+
GFP_KERNEL);
15761576

15771577
if (!context)
15781578
return NULL;

0 commit comments

Comments
 (0)