mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/amdgpu: skip call ras_late_init if ras block is not supported
skip call ras_late_init callback if ras block is not supported. Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
9c3f6e2c4e
commit
2866a4549c
1 changed files with 5 additions and 2 deletions
|
@ -3346,12 +3346,15 @@ int amdgpu_ras_late_init(struct amdgpu_device *adev)
|
|||
amdgpu_ras_set_mca_debug_mode(adev, false);
|
||||
|
||||
list_for_each_entry_safe(node, tmp, &adev->ras_list, node) {
|
||||
if (!node->ras_obj) {
|
||||
obj = node->ras_obj;
|
||||
if (!obj) {
|
||||
dev_warn(adev->dev, "Warning: abnormal ras list node.\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
obj = node->ras_obj;
|
||||
if (!amdgpu_ras_is_supported(adev, obj->ras_comm.block))
|
||||
continue;
|
||||
|
||||
if (obj->ras_late_init) {
|
||||
r = obj->ras_late_init(adev, &obj->ras_comm);
|
||||
if (r) {
|
||||
|
|
Loading…
Add table
Reference in a new issue