Commit 0689dcf3 authored by Alex Deucher's avatar Alex Deucher

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: e4863f11 ("drm/amd/display: Multi display cause system lag on mode change")
Reviewed-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: Aric Cyr <aric.cyr@amd.com>
Cc: Alex Xu <alex_y_xu@yahoo.ca>
Reported-by: default avatarAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Tested-by: default avatarAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Cc: stable@vger.kernel.org
parent a1d2afc5
...@@ -1571,7 +1571,7 @@ static void init_state(struct dc *dc, struct dc_state *context) ...@@ -1571,7 +1571,7 @@ static void init_state(struct dc *dc, struct dc_state *context)
struct dc_state *dc_create_state(struct dc *dc) struct dc_state *dc_create_state(struct dc *dc)
{ {
struct dc_state *context = kzalloc(sizeof(struct dc_state), struct dc_state *context = kvzalloc(sizeof(struct dc_state),
GFP_KERNEL); GFP_KERNEL);
if (!context) if (!context)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment