From: Tao Zhou Date: Tue, 28 Jul 2020 05:53:48 +0000 (+0800) Subject: drm/amdgpu: skip reroute ih for some ASICs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=aeec0744481633a747e39afd2d1c3127328e51e1;p=linux.git drm/amdgpu: skip reroute ih for some ASICs Add check before reroute ih setting, it's not supported by some ASICs. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c index 1a69c212ce685..993846f1d89f9 100644 --- a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c @@ -438,8 +438,8 @@ static int psp_v11_0_ring_init(struct psp_context *psp, struct amdgpu_device *adev = psp->adev; if ((!amdgpu_sriov_vf(adev)) && - (adev->asic_type != CHIP_SIENNA_CICHLID) && - (adev->asic_type != CHIP_NAVY_FLOUNDER)) + !(adev->asic_type >= CHIP_SIENNA_CICHLID && + adev->asic_type <= CHIP_DIMGREY_CAVEFISH)) psp_v11_0_reroute_ih(psp); ring = &psp->km_ring;