Commit e3fa7630 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: add additional cached gca config variables

We need to cache some additional values to handle SR-IOV
and PG.
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b88c8796
...@@ -770,6 +770,16 @@ struct amdgpu_scratch { ...@@ -770,6 +770,16 @@ struct amdgpu_scratch {
/* /*
* GFX configurations * GFX configurations
*/ */
#define AMDGPU_GFX_MAX_SE 4
#define AMDGPU_GFX_MAX_SH_PER_SE 2
struct amdgpu_rb_config {
uint32_t rb_backend_disable;
uint32_t user_rb_backend_disable;
uint32_t raster_config;
uint32_t raster_config_1;
};
struct amdgpu_gca_config { struct amdgpu_gca_config {
unsigned max_shader_engines; unsigned max_shader_engines;
unsigned max_tile_pipes; unsigned max_tile_pipes;
...@@ -798,6 +808,8 @@ struct amdgpu_gca_config { ...@@ -798,6 +808,8 @@ struct amdgpu_gca_config {
uint32_t tile_mode_array[32]; uint32_t tile_mode_array[32];
uint32_t macrotile_mode_array[16]; uint32_t macrotile_mode_array[16];
struct amdgpu_rb_config rb_config[AMDGPU_GFX_MAX_SE][AMDGPU_GFX_MAX_SH_PER_SE];
}; };
struct amdgpu_cu_info { struct amdgpu_cu_info {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment