drm/amdgpu: add structures for buffer allocate/release for rlc autoload
authorLe.Ma <Le.Ma@amd.com>
Thu, 26 Apr 2018 08:13:14 +0000 (16:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 02:36:07 +0000 (21:36 -0500)
Allocate a visible framebuffer to store all gfxip ucodes as the format of TOC.

Signed-off-by: Le.Ma <Le.Ma@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h

index 49a8ab52113b6421c10e257c6be85cd9dde58d68..ff43fa9a14a94660acffc77110c84e699b0bca77 100644 (file)
@@ -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);