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/amdgpu_kms.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/amdgpu_kms.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 12497a40ef92..b0b23101d1c8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |||
@@ -594,6 +594,8 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file | |||
594 | dev_info.cu_active_number = adev->gfx.cu_info.number; | 594 | dev_info.cu_active_number = adev->gfx.cu_info.number; |
595 | dev_info.cu_ao_mask = adev->gfx.cu_info.ao_cu_mask; | 595 | dev_info.cu_ao_mask = adev->gfx.cu_info.ao_cu_mask; |
596 | dev_info.ce_ram_size = adev->gfx.ce_ram_size; | 596 | dev_info.ce_ram_size = adev->gfx.ce_ram_size; |
597 | memcpy(&dev_info.cu_ao_bitmap[0], &adev->gfx.cu_info.ao_cu_bitmap[0], | ||
598 | sizeof(adev->gfx.cu_info.ao_cu_bitmap)); | ||
597 | memcpy(&dev_info.cu_bitmap[0], &adev->gfx.cu_info.bitmap[0], | 599 | memcpy(&dev_info.cu_bitmap[0], &adev->gfx.cu_info.bitmap[0], |
598 | sizeof(adev->gfx.cu_info.bitmap)); | 600 | sizeof(adev->gfx.cu_info.bitmap)); |
599 | dev_info.vram_type = adev->mc.vram_type; | 601 | dev_info.vram_type = adev->mc.vram_type; |