diff options
author | Sunil Khatri <sunil.khatri@amd.com> | 2024-09-30 14:32:13 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-01 17:43:45 -0400 |
commit | 6a9456e0e3270438b2aab5e6ef8433aa25c8f974 (patch) | |
tree | c3c4ffe3ce87ab9f83219147cf901de02507e3a4 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 94b2e07ad493f09e79aceb4942f9065fa100eea6 (diff) | |
download | linux-6a9456e0e3270438b2aab5e6ef8433aa25c8f974.tar.gz linux-6a9456e0e3270438b2aab5e6ef8433aa25c8f974.tar.bz2 linux-6a9456e0e3270438b2aab5e6ef8433aa25c8f974.zip |
drm/amdgpu: update the handle ptr in check_soft_reset
Update the *handle to amdgpu_ip_block ptr for all
functions pointers of check_soft_reset.
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index e79370dc3ac7..d66f76408a96 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4949,7 +4949,8 @@ static bool amdgpu_device_ip_check_soft_reset(struct amdgpu_device *adev) continue; if (adev->ip_blocks[i].version->funcs->check_soft_reset) adev->ip_blocks[i].status.hang = - adev->ip_blocks[i].version->funcs->check_soft_reset(adev); + adev->ip_blocks[i].version->funcs->check_soft_reset( + &adev->ip_blocks[i]); if (adev->ip_blocks[i].status.hang) { dev_info(adev->dev, "IP block:%s is hung!\n", adev->ip_blocks[i].version->funcs->name); asic_hang = true; |