Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a576fe51 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/gfx8: set doorbell range for polaris as well



Add missing chips to the doorbell range setup.  These
were missed in the KIQ code.  Fixes power and performance
regressions with KIQ.  Spotted by Rex.

Tested-and-Reviewed-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ed6f55d1
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4894,7 +4894,10 @@ static int gfx_v8_0_kiq_init_register(struct amdgpu_ring *ring)
	if (ring->use_doorbell) {
		if ((adev->asic_type == CHIP_CARRIZO) ||
		    (adev->asic_type == CHIP_FIJI) ||
				(adev->asic_type == CHIP_STONEY)) {
		    (adev->asic_type == CHIP_STONEY) ||
		    (adev->asic_type == CHIP_POLARIS10) ||
		    (adev->asic_type == CHIP_POLARIS11) ||
		    (adev->asic_type == CHIP_POLARIS12)) {
			WREG32(mmCP_MEC_DOORBELL_RANGE_LOWER,
						AMDGPU_DOORBELL_KIQ << 2);
			WREG32(mmCP_MEC_DOORBELL_RANGE_UPPER,