aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-10-10 10:56:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-10-25 14:38:30 -0400
commite3fa76306f072e1c92b50f866c2583d74ace58ed (patch)
tree1f25deaf52637fc64672b0e1570ec1642b27138b
parentb88c8796d815f80b958d6a35043d16d74bdfed24 (diff)
drm/amdgpu: add additional cached gca config variables
We need to cache some additional values to handle SR-IOV and PG. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 7d30a8e03bed..efbd9ef41785 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -770,6 +770,16 @@ struct amdgpu_scratch {
770/* 770/*
771 * GFX configurations 771 * GFX configurations
772 */ 772 */
773#define AMDGPU_GFX_MAX_SE 4
774#define AMDGPU_GFX_MAX_SH_PER_SE 2
775
776struct amdgpu_rb_config {
777 uint32_t rb_backend_disable;
778 uint32_t user_rb_backend_disable;
779 uint32_t raster_config;
780 uint32_t raster_config_1;
781};
782
773struct amdgpu_gca_config { 783struct amdgpu_gca_config {
774 unsigned max_shader_engines; 784 unsigned max_shader_engines;
775 unsigned max_tile_pipes; 785 unsigned max_tile_pipes;
@@ -798,6 +808,8 @@ struct amdgpu_gca_config {
798 808
799 uint32_t tile_mode_array[32]; 809 uint32_t tile_mode_array[32];
800 uint32_t macrotile_mode_array[16]; 810 uint32_t macrotile_mode_array[16];
811
812 struct amdgpu_rb_config rb_config[AMDGPU_GFX_MAX_SE][AMDGPU_GFX_MAX_SH_PER_SE];
801}; 813};
802 814
803struct amdgpu_cu_info { 815struct amdgpu_cu_info {