aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2022-04-21 01:21:52 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-05-04 09:54:41 -0400
commitb95b5391684b39695887afb4a13cccee7820f5d6 (patch)
treea6fd19f641fccedfb4cdaec77d8f647438ed9188 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parente6e405e0481f753567bc0be081420ea3163bc313 (diff)
downloadlinux-b95b5391684b39695887afb4a13cccee7820f5d6.tar.gz
linux-b95b5391684b39695887afb4a13cccee7820f5d6.tar.bz2
linux-b95b5391684b39695887afb4a13cccee7820f5d6.zip
drm/amdgpu/psp: move PSP memory alloc from hw_init to sw_init
Memory allocations should be done in sw_init. hw_init should just be hardware programming needed to initialize the IP block. This is how most other IP blocks work. Move the GPU memory allocations from psp hw_init to psp sw_init and move the memory free to sw_fini. This also fixes a potential GPU memory leak if psp hw_init fails. Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions