diff options
| author | Alex Deucher <[email protected]> | 2020-10-26 14:25:36 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-10-26 17:35:00 +0000 |
| commit | 1b3c7564113a073143a8b45f5f50efa44ac0ee3c (patch) | |
| tree | bc01ea139cb54548da194d3dd71a16936252d491 | |
| parent | drm/amd/display: combined user regamma and OS GAMMA_CS_TFM_1D (diff) | |
| download | kernel-1b3c7564113a073143a8b45f5f50efa44ac0ee3c.tar.gz kernel-1b3c7564113a073143a8b45f5f50efa44ac0ee3c.zip | |
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: e4863f118a7d ("drm/amd/display: Multi display cause system lag on mode change")
Reviewed-by: Nicholas Kazlauskas <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: Aric Cyr <[email protected]>
Cc: Alex Xu <[email protected]>
Reported-by: Alex Xu (Hello71) <[email protected]>
Tested-by: Alex Xu (Hello71) <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 36f9bba4a321..1fa4a50e0a44 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1575,8 +1575,8 @@ static void init_state(struct dc *dc, struct dc_state *context) struct dc_state *dc_create_state(struct dc *dc) { - struct dc_state *context = kzalloc(sizeof(struct dc_state), - GFP_KERNEL); + struct dc_state *context = kvzalloc(sizeof(struct dc_state), + GFP_KERNEL); if (!context) return NULL; |
