diff options
| author | Lijo Lazar <[email protected]> | 2025-04-11 12:10:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-11 21:01:06 +0000 |
| commit | 1d9bff4cf8c53d33ee2ff1b11574e5da739ce61c (patch) | |
| tree | 352580af7fcf97233401c3bff962a40be6f8b34d /drivers/gpu/drm/amd/amdgpu/psp_v14_0.c | |
| parent | drm/amdgpu: Direct ret in ras_reset_err_cnt on VF (diff) | |
| download | kernel-1d9bff4cf8c53d33ee2ff1b11574e5da739ce61c.tar.gz kernel-1d9bff4cf8c53d33ee2ff1b11574e5da739ce61c.zip | |
drm/amdgpu: Use the right function for hdp flush
There are a few prechecks made before HDP flush like a flush is not
required on APU bare metal. Using hdp callback directly bypasses those
checks. Use amdgpu_device_flush_hdp which takes care of prechecks.
Signed-off-by: Lijo Lazar <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_v14_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/psp_v14_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v14_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v14_0.c index 7c49c3f3c388..256288c6cd78 100644 --- a/drivers/gpu/drm/amd/amdgpu/psp_v14_0.c +++ b/drivers/gpu/drm/amd/amdgpu/psp_v14_0.c @@ -498,7 +498,7 @@ static int psp_v14_0_memory_training(struct psp_context *psp, uint32_t ops) } memcpy_toio(adev->mman.aper_base_kaddr, buf, sz); - adev->hdp.funcs->flush_hdp(adev, NULL); + amdgpu_device_flush_hdp(adev, NULL); vfree(buf); drm_dev_exit(idx); } else { |
