From: Hawking Zhang Date: Tue, 12 Jun 2018 09:05:59 +0000 (+0800) Subject: drm/amdgpu: add gfx10 specific config in amdgpu_gfx_config X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=02a9e40a83bc220c6cb7dfc62b2e73d517cf6172;p=linux.git drm/amdgpu: add gfx10 specific config in amdgpu_gfx_config The two members are used to cache the values from gpu_info fw accordingly Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h index 09fc53af3d35f..9f55d428adb01 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h @@ -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 {