aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-08-24 16:46:29 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-08-29 15:27:58 -0400
commit925d5d798f465671c6b8011e80c636da46ef1a16 (patch)
tree912931a9baa18e74e55ce7fd64235afd7f3071e7 /drivers/gpu/drm/amd
parentecf9d3448540830d2cd2fadd0cf70f236d1c5c6a (diff)
drm/amdgpu/gfx8: apply dynamic cu mask to APUs as well
Confirmed with the hw team. It's the same for all asics. Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 775484639f79..6666fcd8b08f 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -4622,12 +4622,10 @@ static int gfx_v8_0_mqd_init(struct amdgpu_ring *ring)
4622 mqd->compute_static_thread_mgmt_se2 = 0xffffffff; 4622 mqd->compute_static_thread_mgmt_se2 = 0xffffffff;
4623 mqd->compute_static_thread_mgmt_se3 = 0xffffffff; 4623 mqd->compute_static_thread_mgmt_se3 = 0xffffffff;
4624 mqd->compute_misc_reserved = 0x00000003; 4624 mqd->compute_misc_reserved = 0x00000003;
4625 if (!(adev->flags & AMD_IS_APU)) { 4625 mqd->dynamic_cu_mask_addr_lo = lower_32_bits(ring->mqd_gpu_addr
4626 mqd->dynamic_cu_mask_addr_lo = lower_32_bits(ring->mqd_gpu_addr 4626 + offsetof(struct vi_mqd_allocation, dynamic_cu_mask));
4627 + offsetof(struct vi_mqd_allocation, dynamic_cu_mask)); 4627 mqd->dynamic_cu_mask_addr_hi = upper_32_bits(ring->mqd_gpu_addr
4628 mqd->dynamic_cu_mask_addr_hi = upper_32_bits(ring->mqd_gpu_addr 4628 + offsetof(struct vi_mqd_allocation, dynamic_cu_mask));
4629 + offsetof(struct vi_mqd_allocation, dynamic_cu_mask));
4630 }
4631 eop_base_addr = ring->eop_gpu_addr >> 8; 4629 eop_base_addr = ring->eop_gpu_addr >> 8;
4632 mqd->cp_hqd_eop_base_addr_lo = eop_base_addr; 4630 mqd->cp_hqd_eop_base_addr_lo = eop_base_addr;
4633 mqd->cp_hqd_eop_base_addr_hi = upper_32_bits(eop_base_addr); 4631 mqd->cp_hqd_eop_base_addr_hi = upper_32_bits(eop_base_addr);