diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-11-01 00:56:16 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-14 15:04:55 -0500 |
commit | 7450bbe7815b8286165c87a07340c80ca2764054 (patch) | |
tree | 77ace06a620e2f2bb86e4603db7418dafdd7533c /drivers/gpu/drm/amd/amdgpu/si.c | |
parent | 444018893abfde1df86be9d4be3e0c84832397dd (diff) |
drm/amdgpu/si: add need_reset_on_init asic callback for SI (v2)
SI chips don't require a reset on reload due to the nature of
the SMU on them.
v2: rebase
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/si.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 7d2a48727e76..79c1a9bbcc21 100644 --- a/drivers/gpu/drm/amd/amdgpu/si.c +++ b/drivers/gpu/drm/amd/amdgpu/si.c | |||
@@ -1259,6 +1259,11 @@ static bool si_need_full_reset(struct amdgpu_device *adev) | |||
1259 | return true; | 1259 | return true; |
1260 | } | 1260 | } |
1261 | 1261 | ||
1262 | static bool si_need_reset_on_init(struct amdgpu_device *adev) | ||
1263 | { | ||
1264 | return false; | ||
1265 | } | ||
1266 | |||
1262 | static int si_get_pcie_lanes(struct amdgpu_device *adev) | 1267 | static int si_get_pcie_lanes(struct amdgpu_device *adev) |
1263 | { | 1268 | { |
1264 | u32 link_width_cntl; | 1269 | u32 link_width_cntl; |
@@ -1387,6 +1392,7 @@ static const struct amdgpu_asic_funcs si_asic_funcs = | |||
1387 | .invalidate_hdp = &si_invalidate_hdp, | 1392 | .invalidate_hdp = &si_invalidate_hdp, |
1388 | .need_full_reset = &si_need_full_reset, | 1393 | .need_full_reset = &si_need_full_reset, |
1389 | .get_pcie_usage = &si_get_pcie_usage, | 1394 | .get_pcie_usage = &si_get_pcie_usage, |
1395 | .need_reset_on_init = &si_need_reset_on_init, | ||
1390 | }; | 1396 | }; |
1391 | 1397 | ||
1392 | static uint32_t si_get_rev_id(struct amdgpu_device *adev) | 1398 | static uint32_t si_get_rev_id(struct amdgpu_device *adev) |