Commit 0a881af8 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/si: implement asic need_full_reset callback

Used to check on a per SoC basis whether the SoC needs
a full reset of a per IP soft reset.
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 69070690
...@@ -1252,6 +1252,12 @@ static void si_invalidate_hdp(struct amdgpu_device *adev, ...@@ -1252,6 +1252,12 @@ static void si_invalidate_hdp(struct amdgpu_device *adev,
} }
} }
static bool si_need_full_reset(struct amdgpu_device *adev)
{
/* change this when we support soft reset */
return true;
}
static int si_get_pcie_lanes(struct amdgpu_device *adev) static int si_get_pcie_lanes(struct amdgpu_device *adev)
{ {
u32 link_width_cntl; u32 link_width_cntl;
...@@ -1332,6 +1338,7 @@ static const struct amdgpu_asic_funcs si_asic_funcs = ...@@ -1332,6 +1338,7 @@ static const struct amdgpu_asic_funcs si_asic_funcs =
.get_config_memsize = &si_get_config_memsize, .get_config_memsize = &si_get_config_memsize,
.flush_hdp = &si_flush_hdp, .flush_hdp = &si_flush_hdp,
.invalidate_hdp = &si_invalidate_hdp, .invalidate_hdp = &si_invalidate_hdp,
.need_full_reset = &si_need_full_reset,
}; };
static uint32_t si_get_rev_id(struct amdgpu_device *adev) static uint32_t si_get_rev_id(struct amdgpu_device *adev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment