From: Le.Ma Date: Thu, 26 Apr 2018 08:13:14 +0000 (+0800) Subject: drm/amdgpu: add structures for buffer allocate/release for rlc autoload X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2beae55e392939f80e4ace11064c461e824f1a24;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu: add structures for buffer allocate/release for rlc autoload Allocate a visible framebuffer to store all gfxip ucodes as the format of TOC. Signed-off-by: Le.Ma Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h index 49a8ab52113b..ff43fa9a14a9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h @@ -85,6 +85,11 @@ struct amdgpu_rlc { u8 *save_restore_list_srm; bool is_rlc_v2_1; + + /* for rlc autoload */ + struct amdgpu_bo *rlc_autoload_bo; + u64 rlc_autoload_gpu_addr; + void *rlc_autoload_ptr; }; void amdgpu_gfx_rlc_enter_safe_mode(struct amdgpu_device *adev);