diff options
author | Tao Zhou <tao.zhou1@amd.com> | 2020-07-28 07:53:48 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-12 20:01:14 +0200 |
commit | aeec0744481633a747e39afd2d1c3127328e51e1 (patch) | |
tree | e150c7d1c55ad40b9e0d7dd0f939c9dfb53994eb /drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | |
parent | drm/amdgpu: add psp support for dimgrey_cavefish(v2) (diff) | |
download | linux-aeec0744481633a747e39afd2d1c3127328e51e1.tar.xz linux-aeec0744481633a747e39afd2d1c3127328e51e1.zip |
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 <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_v11_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c index 1a69c212ce68..993846f1d89f 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; |