drm/amdgpu: update psp gfx i/f to support dynamic GECC
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 25 May 2021 12:16:11 +0000 (20:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Jun 2021 20:05:33 +0000 (16:05 -0400)
psp_gfx_uresp_bootcfg is used to inform driver
bootcfg settings maintained by tOS

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h

index f6d3180febc457f73f24afa08ffc5cd8b418ae01..dd0dce25490137f1fee57218dafd4c4c074b032f 100644 (file)
@@ -332,11 +332,16 @@ struct psp_gfx_uresp_fwar_db_info
     uint32_t fwar_db_addr_hi;
 };
 
+/* Command-specific response for boot config. */
+struct psp_gfx_uresp_bootcfg {
+       uint32_t boot_cfg;      /* boot config data */
+};
+
 /* Union of command-specific responses for GPCOM ring. */
-union psp_gfx_uresp
-{
-    struct psp_gfx_uresp_reserved reserved;
-    struct psp_gfx_uresp_fwar_db_info fwar_db_info;
+union psp_gfx_uresp {
+       struct psp_gfx_uresp_reserved           reserved;
+       struct psp_gfx_uresp_bootcfg            boot_cfg;
+       struct psp_gfx_uresp_fwar_db_info       fwar_db_info;
 };
 
 /* Structure of GFX Response buffer.