summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Liu <aaron.liu@amd.com>2020-04-07 11:46:04 +0200
committerAlex Deucher <alexander.deucher@amd.com>2020-04-09 16:43:18 +0200
commitba714a56fcb58782023514bb11455c549c572099 (patch)
treeedd2543d01da1b53847b415569f7fdb3c4d6fa77
parentdrm/amdgpu: support access regs outside of mmio bar (diff)
downloadlinux-ba714a56fcb58782023514bb11455c549c572099.tar.xz
linux-ba714a56fcb58782023514bb11455c549c572099.zip
drm/amdgpu: unify fw_write_wait for new gfx9 asics
Make the fw_write_wait default case true since presumably all new gfx9 asics will have updated firmware. That is using unique WAIT_REG_MEM packet with opration=1. Signed-off-by: Aaron Liu <aaron.liu@amd.com> Tested-by: Aaron Liu <aaron.liu@amd.com> Tested-by: Yuxian Dai <Yuxian.Dai@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index 342c7bb070bf..d4841276a74e 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -1214,6 +1214,8 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev)
adev->gfx.mec_fw_write_wait = true;
break;
default:
+ adev->gfx.me_fw_write_wait = true;
+ adev->gfx.mec_fw_write_wait = true;
break;
}
}