]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: Implement functions to let DC allocate GPU memory
authorZhan Liu <zhan.liu@amd.com>
Tue, 9 Mar 2021 01:20:44 +0000 (20:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:10:49 +0000 (23:10 -0400)
commita5c7521fb67bd251da9f66721e911366b07ec6ee
tree3ccce3d9dae826fe413e51b5430b714ea171458d
parentbd10c8eaef7073cf8ab182eb1545260b8a944a93
drm/amdgpu/display: Implement functions to let DC allocate GPU memory

[Why]
DC needs to communicate with PM FW through GPU memory. In order
to do so we need to be able to allocate memory from within DC.

[How]
Call amdgpu_bo_create_kernel to allocate GPU memory and use a
list in amdgpu_display_manager to track our allocations so we
can clean them up later.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Zhan Liu <zhan.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c