diff options
author | Flora Cui <Flora.Cui@amd.com> | 2017-06-19 23:08:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-06-29 12:43:49 -0400 |
commit | dbfe85ea496728ccf7731601084853f760be77d7 (patch) | |
tree | 7029e2119b04924de3deb34f90dbb8e75f0ebfd8 /drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |
parent | 552c8f76afe7d24c1c1415ec951dea56d553d59c (diff) |
drm/amdgpu: Fix the exported always on CU bitmap
Newer asics with 4 SEs are not able to fit the entire bitmask in the
original field, use an array instead.
v2: keep cu_ao_mask for backward compatibility.
Signed-off-by: Flora Cui <Flora.Cui@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 9a268272d38e..a1ef7f6307b9 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -7087,7 +7087,9 @@ static void gfx_v8_0_get_cu_info(struct amdgpu_device *adev) | |||
7087 | mask <<= 1; | 7087 | mask <<= 1; |
7088 | } | 7088 | } |
7089 | active_cu_number += counter; | 7089 | active_cu_number += counter; |
7090 | ao_cu_mask |= (ao_bitmap << (i * 16 + j * 8)); | 7090 | if (i < 2 && j < 2) |
7091 | ao_cu_mask |= (ao_bitmap << (i * 16 + j * 8)); | ||
7092 | cu_info->ao_cu_bitmap[i][j] = ao_bitmap; | ||
7091 | } | 7093 | } |
7092 | } | 7094 | } |
7093 | gfx_v8_0_select_se_sh(adev, 0xffffffff, 0xffffffff, 0xffffffff); | 7095 | gfx_v8_0_select_se_sh(adev, 0xffffffff, 0xffffffff, 0xffffffff); |