drm/amd/display: use kvmalloc for dc_state (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Aug 2019 05:29:23 +0000 (00:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2019 03:01:53 +0000 (22:01 -0500)
commit31ec0dd38085aaeb75ab04211bf3b51ad917c9b4
tree69831ae7ccb77b5bf51bea50e7418b322fcec426
parent17b6d2d528542bc60ad400add35728b2259b3cc1
drm/amd/display: use kvmalloc for dc_state (v2)

It's large and doesn't need contiguous memory.  Fixes
allocation failures in some cases.

v2: kvfree the memory.

Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c