mirror of
https://github.com/torvalds/linux.git
synced 2026-04-22 16:53:59 -04:00
Revert "drm/amdgpu: Add judgement to avoid infinite loop"
The commitd5e8ff5f7b("drm/amdgpu: Fixed the defect of soft lock caused by infinite loop") had fixed this defect. Revert workaround commita2170b4af6("drm/amdgpu: Add judgement to avoid infinite loop"). Signed-off-by: yipechai <YiPeng.Chai@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -886,7 +886,6 @@ static int amdgpu_ras_block_match_default(struct amdgpu_ras_block_object *block_
|
||||
static struct amdgpu_ras_block_object *amdgpu_ras_get_ras_block(struct amdgpu_device *adev,
|
||||
enum amdgpu_ras_block block, uint32_t sub_block_index)
|
||||
{
|
||||
int loop_cnt = 0;
|
||||
struct amdgpu_ras_block_list *node, *tmp;
|
||||
struct amdgpu_ras_block_object *obj;
|
||||
|
||||
@@ -910,9 +909,6 @@ static struct amdgpu_ras_block_object *amdgpu_ras_get_ras_block(struct amdgpu_de
|
||||
if (amdgpu_ras_block_match_default(obj, block) == 0)
|
||||
return obj;
|
||||
}
|
||||
|
||||
if (++loop_cnt >= AMDGPU_RAS_BLOCK__LAST)
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user