diff options
| author | Sunil Khatri <[email protected]> | 2024-10-17 14:04:27 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-10-22 21:50:39 +0000 |
| commit | 502d76308d45a9ef79b9266c5a090e9e6954faaa (patch) | |
| tree | ef164d1642eda454e7faf8654ce46d874732b90c /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu: validate suspend before function call (diff) | |
| download | kernel-502d76308d45a9ef79b9266c5a090e9e6954faaa.tar.gz kernel-502d76308d45a9ef79b9266c5a090e9e6954faaa.zip | |
drm/amdgpu: validate resume before function call
Before making a function call to resume, validate
the function pointer like we do in sw_init.
Use the helper function amdgpu_ip_block_resume where
same checks and calls are repeated.
Signed-off-by: Sunil Khatri <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 9c93d0a47904..3af5acff8518 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -365,6 +365,8 @@ bool amdgpu_device_ip_is_valid(struct amdgpu_device *adev, enum amd_ip_block_type block_type); int amdgpu_ip_block_suspend(struct amdgpu_ip_block *ip_block); +int amdgpu_ip_block_resume(struct amdgpu_ip_block *ip_block); + #define AMDGPU_MAX_IP_NUM 16 struct amdgpu_ip_block_status { |
