diff options
author | Likun Gao <Likun.Gao@amd.com> | 2022-05-31 10:30:14 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-07-13 11:25:16 -0400 |
commit | c0ff84cb58faff9fdb8d955c6e1e07fd75d88c16 (patch) | |
tree | 8767f8482ab524d582e0274f9437ec131adcb50f /drivers | |
parent | a84e43b81e45b3da19e51e1e9426ba9e4d0fd1bc (diff) | |
download | linux-stable-c0ff84cb58faff9fdb8d955c6e1e07fd75d88c16.tar.gz linux-stable-c0ff84cb58faff9fdb8d955c6e1e07fd75d88c16.tar.bz2 linux-stable-c0ff84cb58faff9fdb8d955c6e1e07fd75d88c16.zip |
drm/amdgpu: enable soft reset for gfx 11
Enable soft reset for gfx 11.
V2: enable both gfx v11.0.0 and gfx v11.0.2.
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc21.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index 495848515edf..765c3543ad18 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c @@ -417,7 +417,13 @@ static uint32_t soc21_get_rev_id(struct amdgpu_device *adev) static bool soc21_need_full_reset(struct amdgpu_device *adev) { - return true; + switch (adev->ip_versions[GC_HWIP][0]) { + case IP_VERSION(11, 0, 0): + case IP_VERSION(11, 0, 2): + return false; + default: + return true; + } } static bool soc21_need_reset_on_init(struct amdgpu_device *adev) |