OSDN Git Service

drm/amdgpu: add gfx10 specific config in amdgpu_gfx_config
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 12 Jun 2018 09:05:59 +0000 (17:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 02:14:57 +0000 (21:14 -0500)
The two members are used to cache the values from gpu_info fw accordingly

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

index 09fc53a..9f55d42 100644 (file)
@@ -131,6 +131,9 @@ struct amdgpu_gfx_config {
        uint32_t double_offchip_lds_buf;
        /* cached value of DB_DEBUG2 */
        uint32_t db_debug2;
+       /* gfx10 specific config */
+       uint32_t num_sc_per_sh;
+       uint32_t num_packer_per_sc;
 };
 
 struct amdgpu_cu_info {