diff options
| author | Sunil Khatri <[email protected]> | 2024-09-30 09:30:30 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-10-01 21:45:44 +0000 |
| commit | 0ef2a1e7aff53967958c2b87eecfac61cd9ed213 (patch) | |
| tree | 91c59802d97c062987b91db79c81ab1463fc489b /drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | |
| parent | drm/amdgpu/gfx9: Add Cleaner Shader Deinitialization in gfx_v9_0 Module (diff) | |
| download | kernel-0ef2a1e7aff53967958c2b87eecfac61cd9ed213.tar.gz kernel-0ef2a1e7aff53967958c2b87eecfac61cd9ed213.zip | |
drm/amdgpu: update the handle ptr in soft_reset
Update the *handle to amdgpu_ip_block ptr for all
functions pointers of soft_reset.
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/gfx_v10_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 123da87a3142..c544ea2aea6e 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -7495,11 +7495,11 @@ static int gfx_v10_0_wait_for_idle(void *handle) return -ETIMEDOUT; } -static int gfx_v10_0_soft_reset(void *handle) +static int gfx_v10_0_soft_reset(struct amdgpu_ip_block *ip_block) { u32 grbm_soft_reset = 0; u32 tmp; - struct amdgpu_device *adev = (struct amdgpu_device *)handle; + struct amdgpu_device *adev = ip_block->adev; /* GRBM_STATUS */ tmp = RREG32_SOC15(GC, 0, mmGRBM_STATUS); |
