Commit bea07b21 authored by Victor Lu's avatar Victor Lu Committed by Alex Deucher
Browse files

drm/amdgpu: Do not program IH_CHICKEN in vega20_ih.c under SRIOV



IH_CHICKEN is blocked for VF writes; this access should be skipped.

Signed-off-by: default avatarVictor Lu <victorchengchi.lu@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8093383a
Loading
Loading
Loading
Loading
+20 −18
Original line number Diff line number Diff line
@@ -291,6 +291,7 @@ static int vega20_ih_irq_init(struct amdgpu_device *adev)

	adev->nbio.funcs->ih_control(adev);

	if (!amdgpu_sriov_vf(adev)) {
		if ((amdgpu_ip_version(adev, OSSSYS_HWIP, 0) == IP_VERSION(4, 2, 1)) &&
		    adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT) {
			ih_chicken = RREG32_SOC15(OSSSYS, 0, mmIH_CHICKEN);
@@ -313,6 +314,7 @@ static int vega20_ih_irq_init(struct amdgpu_device *adev)
			}
			WREG32_SOC15(OSSSYS, 0, mmIH_CHICKEN_ALDEBARAN, ih_chicken);
		}
	}

	for (i = 0; i < ARRAY_SIZE(ih); i++) {
		if (ih[i]->ring_size) {